OSDN Git Service

Check if linker supports R_386_TLS_GD_PLT, R_386_TLS_LDM_PLT relocs
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_objs
647 extra_headers_list
648 user_headers_inc_next_post
649 user_headers_inc_next_pre
650 extra_gcc_objs
651 TM_MULTILIB_EXCEPTIONS_CONFIG
652 TM_MULTILIB_CONFIG
653 TM_ENDIAN_CONFIG
654 tmake_file
655 xmake_file
656 cpp_install_dir
657 check_languages
658 build_file_translate
659 build_xm_defines
660 build_xm_include_list
661 build_xm_file_list
662 build_install_headers_dir
663 build_exeext
664 all_selected_languages
665 all_languages
666 all_lang_makefrags
667 all_gtfiles
668 all_compilers
669 srcdir
670 subdirs
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 GGC
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 STRIP
697 OBJDUMP
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 SED
703 LIBTOOL
704 collect2
705 STMP_FIXINC
706 BUILD_LDFLAGS
707 BUILD_CFLAGS
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
711 ALL
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 NATIVE_SYSTEM_HEADER_DIR
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 EXTRA_GCC_LIBS
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 CXXCPP
738 AR
739 NM
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
752 LN
753 LN_S
754 AWK
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 CONFIGURE_SPECS
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 SYSROOT_CFLAGS_FOR_TARGET
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 enable_multilib
768 ENABLE_BUILD_WITH_CXX
769 coverage_flags
770 valgrind_command
771 valgrind_path_defines
772 valgrind_path
773 TREEBROWSER
774 nocommon_flag
775 noexception_flags
776 warn_cxxflags
777 warn_cflags
778 c_strict_warn
779 strict_warn
780 c_loose_warn
781 loose_warn
782 EGREP
783 GREP
784 CPP
785 PICFLAG_FOR_TARGET
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
792 CXX
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='option_includes
857 language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_largefile
871 enable_werror_always
872 enable_checking
873 enable_coverage
874 enable_gather_detailed_mem_stats
875 enable_build_with_cxx
876 with_stabs
877 enable_multilib
878 enable___cxa_atexit
879 enable_decimal_float
880 enable_fixed_point
881 enable_threads
882 enable_tls
883 enable_objc_gc
884 with_dwarf2
885 enable_shared
886 with_native_system_header_dir
887 with_build_sysroot
888 with_sysroot
889 with_specs
890 with_pkgversion
891 with_bugurl
892 enable_languages
893 with_multilib_list
894 enable_rpath
895 with_libiconv_prefix
896 enable_initfini_array
897 enable_sjlj_exceptions
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_gnu_indirect_function
909 enable_comdat
910 enable_gnu_unique_object
911 enable_linker_build_id
912 with_long_double_128
913 with_gc
914 with_system_zlib
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
917 enable_plugin
918 enable_libquadmath_support
919 with_linker_hash_style
920 '
921       ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CC
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CXX
930 CXXFLAGS
931 CCC
932 CPP
933 CXXCPP
934 GMPLIBS
935 GMPINC
936 PPLLIBS
937 PPLINC
938 CLOOGLIBS
939 CLOOGINC'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *)    ac_optarg=yes ;;
1004   esac
1005
1006   # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008   case $ac_dashdash$ac_option in
1009   --)
1010     ac_dashdash=yes ;;
1011
1012   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013     ac_prev=bindir ;;
1014   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015     bindir=$ac_optarg ;;
1016
1017   -build | --build | --buil | --bui | --bu)
1018     ac_prev=build_alias ;;
1019   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020     build_alias=$ac_optarg ;;
1021
1022   -cache-file | --cache-file | --cache-fil | --cache-fi \
1023   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024     ac_prev=cache_file ;;
1025   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027     cache_file=$ac_optarg ;;
1028
1029   --config-cache | -C)
1030     cache_file=config.cache ;;
1031
1032   -datadir | --datadir | --datadi | --datad)
1033     ac_prev=datadir ;;
1034   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035     datadir=$ac_optarg ;;
1036
1037   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038   | --dataroo | --dataro | --datar)
1039     ac_prev=datarootdir ;;
1040   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042     datarootdir=$ac_optarg ;;
1043
1044   -disable-* | --disable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       as_fn_error "invalid feature name: $ac_useropt"
1049     ac_useropt_orig=$ac_useropt
1050     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051     case $ac_user_opts in
1052       *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval enable_$ac_useropt=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074       as_fn_error "invalid feature name: $ac_useropt"
1075     ac_useropt_orig=$ac_useropt
1076     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077     case $ac_user_opts in
1078       *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082          ac_unrecognized_sep=', ';;
1083     esac
1084     eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088   | --exec | --exe | --ex)
1089     ac_prev=exec_prefix ;;
1090   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092   | --exec=* | --exe=* | --ex=*)
1093     exec_prefix=$ac_optarg ;;
1094
1095   -gas | --gas | --ga | --g)
1096     # Obsolete; use --with-gas.
1097     with_gas=yes ;;
1098
1099   -help | --help | --hel | --he | -h)
1100     ac_init_help=long ;;
1101   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102     ac_init_help=recursive ;;
1103   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104     ac_init_help=short ;;
1105
1106   -host | --host | --hos | --ho)
1107     ac_prev=host_alias ;;
1108   -host=* | --host=* | --hos=* | --ho=*)
1109     host_alias=$ac_optarg ;;
1110
1111   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112     ac_prev=htmldir ;;
1113   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114   | --ht=*)
1115     htmldir=$ac_optarg ;;
1116
1117   -includedir | --includedir | --includedi | --included | --include \
1118   | --includ | --inclu | --incl | --inc)
1119     ac_prev=includedir ;;
1120   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121   | --includ=* | --inclu=* | --incl=* | --inc=*)
1122     includedir=$ac_optarg ;;
1123
1124   -infodir | --infodir | --infodi | --infod | --info | --inf)
1125     ac_prev=infodir ;;
1126   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127     infodir=$ac_optarg ;;
1128
1129   -libdir | --libdir | --libdi | --libd)
1130     ac_prev=libdir ;;
1131   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132     libdir=$ac_optarg ;;
1133
1134   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135   | --libexe | --libex | --libe)
1136     ac_prev=libexecdir ;;
1137   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138   | --libexe=* | --libex=* | --libe=*)
1139     libexecdir=$ac_optarg ;;
1140
1141   -localedir | --localedir | --localedi | --localed | --locale)
1142     ac_prev=localedir ;;
1143   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144     localedir=$ac_optarg ;;
1145
1146   -localstatedir | --localstatedir | --localstatedi | --localstated \
1147   | --localstate | --localstat | --localsta | --localst | --locals)
1148     ac_prev=localstatedir ;;
1149   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151     localstatedir=$ac_optarg ;;
1152
1153   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154     ac_prev=mandir ;;
1155   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156     mandir=$ac_optarg ;;
1157
1158   -nfp | --nfp | --nf)
1159     # Obsolete; use --without-fp.
1160     with_fp=no ;;
1161
1162   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163   | --no-cr | --no-c | -n)
1164     no_create=yes ;;
1165
1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168     no_recursion=yes ;;
1169
1170   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172   | --oldin | --oldi | --old | --ol | --o)
1173     ac_prev=oldincludedir ;;
1174   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177     oldincludedir=$ac_optarg ;;
1178
1179   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180     ac_prev=prefix ;;
1181   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182     prefix=$ac_optarg ;;
1183
1184   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185   | --program-pre | --program-pr | --program-p)
1186     ac_prev=program_prefix ;;
1187   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189     program_prefix=$ac_optarg ;;
1190
1191   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192   | --program-suf | --program-su | --program-s)
1193     ac_prev=program_suffix ;;
1194   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196     program_suffix=$ac_optarg ;;
1197
1198   -program-transform-name | --program-transform-name \
1199   | --program-transform-nam | --program-transform-na \
1200   | --program-transform-n | --program-transform- \
1201   | --program-transform | --program-transfor \
1202   | --program-transfo | --program-transf \
1203   | --program-trans | --program-tran \
1204   | --progr-tra | --program-tr | --program-t)
1205     ac_prev=program_transform_name ;;
1206   -program-transform-name=* | --program-transform-name=* \
1207   | --program-transform-nam=* | --program-transform-na=* \
1208   | --program-transform-n=* | --program-transform-=* \
1209   | --program-transform=* | --program-transfor=* \
1210   | --program-transfo=* | --program-transf=* \
1211   | --program-trans=* | --program-tran=* \
1212   | --progr-tra=* | --program-tr=* | --program-t=*)
1213     program_transform_name=$ac_optarg ;;
1214
1215   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216     ac_prev=pdfdir ;;
1217   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218     pdfdir=$ac_optarg ;;
1219
1220   -psdir | --psdir | --psdi | --psd | --ps)
1221     ac_prev=psdir ;;
1222   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223     psdir=$ac_optarg ;;
1224
1225   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226   | -silent | --silent | --silen | --sile | --sil)
1227     silent=yes ;;
1228
1229   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230     ac_prev=sbindir ;;
1231   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232   | --sbi=* | --sb=*)
1233     sbindir=$ac_optarg ;;
1234
1235   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237   | --sharedst | --shareds | --shared | --share | --shar \
1238   | --sha | --sh)
1239     ac_prev=sharedstatedir ;;
1240   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243   | --sha=* | --sh=*)
1244     sharedstatedir=$ac_optarg ;;
1245
1246   -site | --site | --sit)
1247     ac_prev=site ;;
1248   -site=* | --site=* | --sit=*)
1249     site=$ac_optarg ;;
1250
1251   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252     ac_prev=srcdir ;;
1253   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254     srcdir=$ac_optarg ;;
1255
1256   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257   | --syscon | --sysco | --sysc | --sys | --sy)
1258     ac_prev=sysconfdir ;;
1259   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261     sysconfdir=$ac_optarg ;;
1262
1263   -target | --target | --targe | --targ | --tar | --ta | --t)
1264     ac_prev=target_alias ;;
1265   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266     target_alias=$ac_optarg ;;
1267
1268   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269     verbose=yes ;;
1270
1271   -version | --version | --versio | --versi | --vers | -V)
1272     ac_init_version=: ;;
1273
1274   -with-* | --with-*)
1275     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278       as_fn_error "invalid package name: $ac_useropt"
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval with_$ac_useropt=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294       as_fn_error "invalid package name: $ac_useropt"
1295     ac_useropt_orig=$ac_useropt
1296     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297     case $ac_user_opts in
1298       *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302          ac_unrecognized_sep=', ';;
1303     esac
1304     eval with_$ac_useropt=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1326     ;;
1327
1328   *=*)
1329     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330     # Reject names that are not valid shell variable names.
1331     case $ac_envvar in #(
1332       '' | [0-9]* | *[!_$as_cr_alnum]* )
1333       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334     esac
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   as_fn_error "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355   case $enable_option_checking in
1356     no) ;;
1357     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359   esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364                 datadir sysconfdir sharedstatedir localstatedir includedir \
1365                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366                 libdir localedir mandir
1367 do
1368   eval ac_val=\$$ac_var
1369   # Remove trailing slashes.
1370   case $ac_val in
1371     */ )
1372       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373       eval $ac_var=\$ac_val;;
1374   esac
1375   # Be sure to have absolute directory names.
1376   case $ac_val in
1377     [\\/$]* | ?:[\\/]* )  continue;;
1378     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379   esac
1380   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392   if test "x$build_alias" = x; then
1393     cross_compiling=maybe
1394     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395     If a cross compiler is detected then cross compile mode will be used." >&2
1396   elif test "x$build_alias" != "x$host_alias"; then
1397     cross_compiling=yes
1398   fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410   as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412   as_fn_error "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417   ac_srcdir_defaulted=yes
1418   # Try the directory containing this script, then the parent directory.
1419   ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421          X"$as_myself" : 'X\(//\)[^/]' \| \
1422          X"$as_myself" : 'X\(//\)$' \| \
1423          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)[^/].*/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\/\)$/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\).*/{
1438             s//\1/
1439             q
1440           }
1441           s/.*/./; q'`
1442   srcdir=$ac_confdir
1443   if test ! -r "$srcdir/$ac_unique_file"; then
1444     srcdir=..
1445   fi
1446 else
1447   ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456         pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459   srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_env_${ac_var}_value=\$${ac_var}
1470   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478   # Omit some internal or obsolete options to make the list less imposing.
1479   # This message is too long to be a string in the A/UX 3.1 sh.
1480   cat <<_ACEOF
1481 \`configure' configures this package to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491   -h, --help              display this help and exit
1492       --help=short        display options specific to this package
1493       --help=recursive    display the short help of all the included packages
1494   -V, --version           display version information and exit
1495   -q, --quiet, --silent   do not print \`checking...' messages
1496       --cache-file=FILE   cache test results in FILE [disabled]
1497   -C, --config-cache      alias for \`--cache-file=config.cache'
1498   -n, --no-create         do not create output files
1499       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502   --prefix=PREFIX         install architecture-independent files in PREFIX
1503                           [$ac_default_prefix]
1504   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                           [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515   --bindir=DIR            user executables [EPREFIX/bin]
1516   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517   --libexecdir=DIR        program executables [EPREFIX/libexec]
1518   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521   --libdir=DIR            object code libraries [EPREFIX/lib]
1522   --includedir=DIR        C header files [PREFIX/include]
1523   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526   --infodir=DIR           info documentation [DATAROOTDIR/info]
1527   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528   --mandir=DIR            man documentation [DATAROOTDIR/man]
1529   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1530   --htmldir=DIR           html documentation [DOCDIR]
1531   --dvidir=DIR            dvi documentation [DOCDIR]
1532   --pdfdir=DIR            pdf documentation [DOCDIR]
1533   --psdir=DIR             ps documentation [DOCDIR]
1534 _ACEOF
1535
1536   cat <<\_ACEOF
1537
1538 Program names:
1539   --program-prefix=PREFIX            prepend PREFIX to installed program names
1540   --program-suffix=SUFFIX            append SUFFIX to installed program names
1541   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
1543 System types:
1544   --build=BUILD     configure for building on BUILD [guessed]
1545   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546   --target=TARGET   configure for building compilers for TARGET [HOST]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551
1552   cat <<\_ACEOF
1553
1554 Optional Features:
1555   --disable-option-checking  ignore unrecognized --enable/--with options
1556   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558   --enable-generated-files-in-srcdir
1559                           put copies of generated files in source dir intended
1560                           for creating source tarballs for users without
1561                           texinfo bison or flex
1562   --disable-largefile     omit support for large files
1563   --enable-werror-always  enable -Werror despite compiler version
1564   --enable-checking[=LIST]
1565                           enable expensive run-time checks. With LIST, enable
1566                           only specific categories of checks. Categories are:
1567                           yes,no,all,none,release. Flags are:
1568                           assert,df,fold,gc,gcac,gimple,misc,
1569                           rtlflag,rtl,runtime,tree,valgrind,types
1570   --enable-coverage[=LEVEL]
1571                           enable compiler's code coverage collection. Use to
1572                           measure compiler performance and locate unused parts
1573                           of the compiler. With LEVEL, specify optimization.
1574                           Values are opt, noopt, default is noopt
1575   --enable-gather-detailed-mem-stats
1576                           enable detailed memory allocation stats gathering
1577   --enable-build-with-cxx build with C++ compiler instead of C compiler
1578   --enable-multilib       enable library support for multiple ABIs
1579   --enable-__cxa_atexit   enable __cxa_atexit for C++
1580   --enable-decimal-float={no,yes,bid,dpd}
1581                         enable decimal float extension to C.  Selecting 'bid'
1582                         or 'dpd' choses which decimal floating point format
1583                         to use
1584   --enable-fixed-point    enable fixed-point arithmetic extension to C
1585   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1586                           package
1587   --enable-tls            enable or disable generation of tls code overriding
1588                           the assembler check for tls support
1589   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1590                           GNU Objective-C runtime
1591   --disable-shared        don't provide a shared libgcc
1592   --enable-languages=LIST specify which front-ends to build
1593   --disable-rpath         do not hardcode runtime library paths
1594   --enable-initfini-array       use .init_array/.fini_array sections
1595   --enable-sjlj-exceptions
1596                           arrange to use setjmp/longjmp exception handling
1597   --enable-secureplt      enable -msecure-plt by default for PowerPC
1598   --enable-leading-mingw64-underscores
1599                           enable leading underscores on 64 bit mingw targets
1600   --enable-cld            enable -mcld by default for 32bit x86
1601   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1602                           x86
1603   --disable-win32-registry
1604                           disable lookup of installation paths in the Registry
1605                           on Windows hosts
1606   --enable-win32-registry enable registry lookup (default)
1607   --enable-win32-registry=KEY
1608                           use KEY instead of GCC version as the last portion
1609                           of the registry key
1610   --enable-shared[=PKGS]  build shared libraries [default=yes]
1611   --enable-static[=PKGS]  build static libraries [default=yes]
1612   --enable-fast-install[=PKGS]
1613                           optimize for fast installation [default=yes]
1614   --disable-libtool-lock  avoid locking (might break parallel builds)
1615   --enable-gnu-indirect-function
1616                           enable the use of the @gnu_indirect_function to
1617                           glibc systems
1618   --enable-comdat         enable COMDAT group support
1619   --enable-gnu-unique-object
1620                           enable the use of the @gnu_unique_object ELF
1621                           extension on glibc systems
1622   --enable-linker-build-id
1623                           compiler will always pass --build-id to linker
1624   --enable-maintainer-mode
1625                           enable make rules and dependencies not useful (and
1626                           sometimes confusing) to the casual installer
1627   --enable-version-specific-runtime-libs
1628                           specify that runtime libraries should be installed
1629                           in a compiler-specific directory
1630   --enable-plugin         enable plugin support
1631   --disable-libquadmath-support
1632                           disable libquadmath support for Fortran
1633
1634 Optional Packages:
1635   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1636   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1637   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1638   --with-local-prefix=DIR specifies directory to put local include
1639   --with-gxx-include-dir=DIR
1640                           specifies directory to put g++ header files
1641   --with-cpp-install-dir=DIR
1642                           install the user visible C preprocessor in DIR
1643                           (relative to PREFIX) as well as PREFIX/bin
1644   --with-gnu-ld           arrange to work with GNU ld
1645   --with-ld               arrange to use the specified ld (full pathname)
1646   --with-demangler-in-ld  try to use demangler in GNU ld
1647   --with-gnu-as           arrange to work with GNU as
1648   --with-as               arrange to use the specified as (full pathname)
1649   --with-stabs            arrange to use stabs instead of host debug format
1650   --with-dwarf2           force the default debug format to be DWARF 2
1651   --with-native-system-header-dir=dir
1652                           use dir as the directory to look for standard
1653                           system header files in.  Defaults to /usr/include.
1654   --with-build-sysroot=sysroot
1655                           use sysroot as the system root during the build
1656   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1657   --with-specs=SPECS      add SPECS to driver command-line processing
1658   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1659   --with-bugurl=URL       Direct users to URL to report a bug
1660   --with-multilib-list    select multilibs (SH and x86-64 only)
1661   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1662   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1663   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1664   --with-pic              try to use only PIC/non-PIC objects [default=use
1665                           both]
1666   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1667   --with-plugin-ld=[ARG]  specify the plugin linker
1668   --with-long-double-128  use 128-bit long double by default
1669   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1670                           the compiler
1671   --with-system-zlib      use installed libz
1672   --with-linker-hash-style={sysv,gnu,both}
1673                           specify the linker hash style
1674
1675 Some influential environment variables:
1676   CC          C compiler command
1677   CFLAGS      C compiler flags
1678   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1679               nonstandard directory <lib dir>
1680   LIBS        libraries to pass to the linker, e.g. -l<library>
1681   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682               you have headers in a nonstandard directory <include dir>
1683   CXX         C++ compiler command
1684   CXXFLAGS    C++ compiler flags
1685   CPP         C preprocessor
1686   CXXCPP      C++ preprocessor
1687   GMPLIBS     How to link GMP
1688   GMPINC      How to find GMP include files
1689   PPLLIBS     How to link PPL
1690   PPLINC      How to find PPL include files
1691   CLOOGLIBS   How to link CLOOG
1692   CLOOGINC    How to find CLOOG include files
1693
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1696
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703   # If there are subdirs, report their specific --help.
1704   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705     test -d "$ac_dir" ||
1706       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707       continue
1708     ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714   # A ".." for each directory in $ac_dir_suffix.
1715   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716   case $ac_top_builddir_sub in
1717   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719   esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727   .)  # We are building in place.
1728     ac_srcdir=.
1729     ac_top_srcdir=$ac_top_builddir_sub
1730     ac_abs_top_srcdir=$ac_pwd ;;
1731   [\\/]* | ?:[\\/]* )  # Absolute name.
1732     ac_srcdir=$srcdir$ac_dir_suffix;
1733     ac_top_srcdir=$srcdir
1734     ac_abs_top_srcdir=$srcdir ;;
1735   *) # Relative name.
1736     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737     ac_top_srcdir=$ac_top_build_prefix$srcdir
1738     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742     cd "$ac_dir" || { ac_status=$?; continue; }
1743     # Check for guested configure.
1744     if test -f "$ac_srcdir/configure.gnu"; then
1745       echo &&
1746       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747     elif test -f "$ac_srcdir/configure"; then
1748       echo &&
1749       $SHELL "$ac_srcdir/configure" --help=recursive
1750     else
1751       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752     fi || ac_status=$?
1753     cd "$ac_pwd" || { ac_status=$?; break; }
1754   done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759   cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.64
1762
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767   exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780   rm -f conftest.$ac_objext
1781   if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784   *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788   (eval "$ac_compile") 2>conftest.err
1789   ac_status=$?
1790   if test -s conftest.err; then
1791     grep -v '^ *+' conftest.err >conftest.er1
1792     cat conftest.er1 >&5
1793     mv -f conftest.er1 conftest.err
1794   fi
1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796   test $ac_status = 0; } && {
1797          test -z "$ac_c_werror_flag" ||
1798          test ! -s conftest.err
1799        } && test -s conftest.$ac_objext; then :
1800   ac_retval=0
1801 else
1802   $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805         ac_retval=1
1806 fi
1807   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808   return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   rm -f conftest.$ac_objext
1819   if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822   *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826   (eval "$ac_compile") 2>conftest.err
1827   ac_status=$?
1828   if test -s conftest.err; then
1829     grep -v '^ *+' conftest.err >conftest.er1
1830     cat conftest.er1 >&5
1831     mv -f conftest.er1 conftest.err
1832   fi
1833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834   test $ac_status = 0; } && {
1835          test -z "$ac_cxx_werror_flag" ||
1836          test ! -s conftest.err
1837        } && test -s conftest.$ac_objext; then :
1838   ac_retval=0
1839 else
1840   $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843         ac_retval=1
1844 fi
1845   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846   return $ac_retval
1847
1848 } # ac_fn_cxx_try_compile
1849
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_cpp ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 case "(($ac_try" in
1858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859   *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864   ac_status=$?
1865   if test -s conftest.err; then
1866     grep -v '^ *+' conftest.err >conftest.er1
1867     cat conftest.er1 >&5
1868     mv -f conftest.er1 conftest.err
1869   fi
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; } >/dev/null && {
1872          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873          test ! -s conftest.err
1874        }; then :
1875   ac_retval=0
1876 else
1877   $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880     ac_retval=1
1881 fi
1882   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883   return $ac_retval
1884
1885 } # ac_fn_c_try_cpp
1886
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899   $as_echo_n "(cached) " >&6
1900 fi
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905   # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   ac_header_compiler=yes
1915 else
1916   ac_header_compiler=no
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1921
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930   ac_header_preproc=yes
1931 else
1932   ac_header_preproc=no
1933 fi
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1937
1938 # So?  What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940   yes:no: )
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945     ;;
1946   no:yes:* )
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957     ;;
1958 esac
1959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962   $as_echo_n "(cached) " >&6
1963 else
1964   eval "$3=\$ac_header_compiler"
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 fi
1970   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
1972 } # ac_fn_c_check_header_mongrel
1973
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1978 ac_fn_c_try_run ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984   *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988   (eval "$ac_link") 2>&5
1989   ac_status=$?
1990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992   { { case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_try") 2>&5
1999   ac_status=$?
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; }; }; then :
2002   ac_retval=0
2003 else
2004   $as_echo "$as_me: program exited with status $ac_status" >&5
2005        $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008        ac_retval=$ac_status
2009 fi
2010   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012   return $ac_retval
2013
2014 } # ac_fn_c_try_run
2015
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026   $as_echo_n "(cached) " >&6
2027 else
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 $4
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034   eval "$3=yes"
2035 else
2036   eval "$3=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045 } # ac_fn_c_check_header_compile
2046
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 # computed
2052 ac_fn_c_compute_int ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   if test "$cross_compiling" = yes; then
2056     # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2064 test_array [0] = 0
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   ac_lo=0 ac_mid=0
2072   while :; do
2073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h.  */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 test_array [0] = 0
2081
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087   ac_hi=$ac_mid; break
2088 else
2089   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2090                         if test $ac_lo -le $ac_mid; then
2091                           ac_lo= ac_hi=
2092                           break
2093                         fi
2094                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097   done
2098 else
2099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h.  */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) < 0)];
2106 test_array [0] = 0
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   ac_hi=-1 ac_mid=-1
2114   while :; do
2115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2122 test_array [0] = 0
2123
2124   ;
2125   return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129   ac_lo=$ac_mid; break
2130 else
2131   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132                         if test $ac_mid -le $ac_hi; then
2133                           ac_lo= ac_hi=
2134                           break
2135                         fi
2136                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139   done
2140 else
2141   ac_lo= ac_hi=
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 test_array [0] = 0
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163   ac_hi=$ac_mid
2164 else
2165   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169 case $ac_lo in #((
2170 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2171 '') ac_retval=1 ;;
2172 esac
2173   else
2174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2179 #include <stdio.h>
2180 #include <stdlib.h>
2181 int
2182 main ()
2183 {
2184
2185   FILE *f = fopen ("conftest.val", "w");
2186   if (! f)
2187     return 1;
2188   if (($2) < 0)
2189     {
2190       long int i = longval ();
2191       if (i != ($2))
2192         return 1;
2193       fprintf (f, "%ld", i);
2194     }
2195   else
2196     {
2197       unsigned long int i = ulongval ();
2198       if (i != ($2))
2199         return 1;
2200       fprintf (f, "%lu", i);
2201     }
2202   /* Do not output a trailing newline, as this causes \r\n confusion
2203      on some platforms.  */
2204   return ferror (f) || fclose (f) != 0;
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_run "$LINENO"; then :
2211   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2212 else
2213   ac_retval=1
2214 fi
2215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2216   conftest.$ac_objext conftest.beam conftest.$ac_ext
2217 rm -f conftest.val
2218
2219   fi
2220   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221   return $ac_retval
2222
2223 } # ac_fn_c_compute_int
2224
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235   $as_echo_n "(cached) " >&6
2236 else
2237   eval "$3=no"
2238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h.  */
2240 $4
2241 int
2242 main ()
2243 {
2244 if (sizeof ($2))
2245          return 0;
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 int
2255 main ()
2256 {
2257 if (sizeof (($2)))
2258             return 0;
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264
2265 else
2266   eval "$3=yes"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276
2277 } # ac_fn_c_check_type
2278
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 # accordingly.
2283 ac_fn_c_find_intX_t ()
2284 {
2285   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289   $as_echo_n "(cached) " >&6
2290 else
2291   eval "$3=no"
2292      for ac_type in int$2_t 'int' 'long int' \
2293          'long long int' 'short int' 'signed char'; do
2294        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h.  */
2296 $ac_includes_default
2297 int
2298 main ()
2299 {
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2301 test_array [0] = 0
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $ac_includes_default
2311 int
2312 main ()
2313 {
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2316 test_array [0] = 0
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323
2324 else
2325   case $ac_type in #(
2326   int$2_t) :
2327     eval "$3=yes" ;; #(
2328   *) :
2329     eval "$3=\$ac_type" ;;
2330 esac
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335        eval as_val=\$$3
2336    if test "x$as_val" = x""no; then :
2337
2338 else
2339   break
2340 fi
2341      done
2342 fi
2343 eval ac_res=\$$3
2344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347
2348 } # ac_fn_c_find_intX_t
2349
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 ac_fn_c_try_link ()
2354 {
2355   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356   rm -f conftest.$ac_objext conftest$ac_exeext
2357   if { { ac_try="$ac_link"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364   (eval "$ac_link") 2>conftest.err
2365   ac_status=$?
2366   if test -s conftest.err; then
2367     grep -v '^ *+' conftest.err >conftest.er1
2368     cat conftest.er1 >&5
2369     mv -f conftest.er1 conftest.err
2370   fi
2371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372   test $ac_status = 0; } && {
2373          test -z "$ac_c_werror_flag" ||
2374          test ! -s conftest.err
2375        } && test -s conftest$ac_exeext && {
2376          test "$cross_compiling" = yes ||
2377          $as_test_x conftest$ac_exeext
2378        }; then :
2379   ac_retval=0
2380 else
2381   $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384         ac_retval=1
2385 fi
2386   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388   # interfere with the next link command; also delete a directory that is
2389   # left behind by Apple's compiler.  We do this before executing the actions.
2390   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392   return $ac_retval
2393
2394 } # ac_fn_c_try_link
2395
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 # accordingly.
2400 ac_fn_c_find_uintX_t ()
2401 {
2402   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406   $as_echo_n "(cached) " >&6
2407 else
2408   eval "$3=no"
2409      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h.  */
2413 $ac_includes_default
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2418 test_array [0] = 0
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425   case $ac_type in #(
2426   uint$2_t) :
2427     eval "$3=yes" ;; #(
2428   *) :
2429     eval "$3=\$ac_type" ;;
2430 esac
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433        eval as_val=\$$3
2434    if test "x$as_val" = x""no; then :
2435
2436 else
2437   break
2438 fi
2439      done
2440 fi
2441 eval ac_res=\$$3
2442                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445
2446 } # ac_fn_c_find_uintX_t
2447
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2452 {
2453   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457   $as_echo_n "(cached) " >&6
2458 else
2459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h.  */
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2464   eval "$3=yes"
2465 else
2466   eval "$3=no"
2467 fi
2468 rm -f conftest.err conftest.$ac_ext
2469 fi
2470 eval ac_res=\$$3
2471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474
2475 } # ac_fn_c_check_header_preproc
2476
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2481 {
2482   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483   if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491   ac_status=$?
2492   if test -s conftest.err; then
2493     grep -v '^ *+' conftest.err >conftest.er1
2494     cat conftest.er1 >&5
2495     mv -f conftest.er1 conftest.err
2496   fi
2497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498   test $ac_status = 0; } >/dev/null && {
2499          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500          test ! -s conftest.err
2501        }; then :
2502   ac_retval=0
2503 else
2504   $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507     ac_retval=1
2508 fi
2509   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510   return $ac_retval
2511
2512 } # ac_fn_cxx_try_cpp
2513
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc ()
2518 {
2519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 #include <$2>
2528 _ACEOF
2529 if ac_fn_cxx_try_cpp "$LINENO"; then :
2530   eval "$3=yes"
2531 else
2532   eval "$3=no"
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535 fi
2536 eval ac_res=\$$3
2537                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_cxx_check_header_preproc
2542
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2547 {
2548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552   $as_echo_n "(cached) " >&6
2553 else
2554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h.  */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2558 #define $2 innocuous_$2
2559
2560 /* System header to define __stub macros and hopefully few prototypes,
2561     which can conflict with char $2 (); below.
2562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563     <limits.h> exists even on freestanding compilers.  */
2564
2565 #ifdef __STDC__
2566 # include <limits.h>
2567 #else
2568 # include <assert.h>
2569 #endif
2570
2571 #undef $2
2572
2573 /* Override any GCC internal prototype to avoid an error.
2574    Use char because int might match the return type of a GCC
2575    builtin and then its argument prototype would still apply.  */
2576 #ifdef __cplusplus
2577 extern "C"
2578 #endif
2579 char $2 ();
2580 /* The GNU C library defines this for functions which it implements
2581     to always fail with ENOSYS.  Some functions are actually named
2582     something starting with __ and the normal name is an alias.  */
2583 #if defined __stub_$2 || defined __stub___$2
2584 choke me
2585 #endif
2586
2587 int
2588 main ()
2589 {
2590 return $2 ();
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_link "$LINENO"; then :
2596   eval "$3=yes"
2597 else
2598   eval "$3=no"
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext \
2601     conftest$ac_exeext conftest.$ac_ext
2602 fi
2603 eval ac_res=\$$3
2604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607
2608 } # ac_fn_c_check_func
2609
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link ()
2614 {
2615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616   rm -f conftest.$ac_objext conftest$ac_exeext
2617   if { { ac_try="$ac_link"
2618 case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624   (eval "$ac_link") 2>conftest.err
2625   ac_status=$?
2626   if test -s conftest.err; then
2627     grep -v '^ *+' conftest.err >conftest.er1
2628     cat conftest.er1 >&5
2629     mv -f conftest.er1 conftest.err
2630   fi
2631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632   test $ac_status = 0; } && {
2633          test -z "$ac_cxx_werror_flag" ||
2634          test ! -s conftest.err
2635        } && test -s conftest$ac_exeext && {
2636          test "$cross_compiling" = yes ||
2637          $as_test_x conftest$ac_exeext
2638        }; then :
2639   ac_retval=0
2640 else
2641   $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644         ac_retval=1
2645 fi
2646   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648   # interfere with the next link command; also delete a directory that is
2649   # left behind by Apple's compiler.  We do this before executing the actions.
2650   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652   return $ac_retval
2653
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2658
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64.  Invocation command line was
2661
2662   $ $0 $@
2663
2664 _ACEOF
2665 exec 5>>config.log
2666 {
2667 cat <<_ASUNAME
2668 ## --------- ##
2669 ## Platform. ##
2670 ## --------- ##
2671
2672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2677
2678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2680
2681 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2682 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2685 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2686 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2687 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2688
2689 _ASUNAME
2690
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696     $as_echo "PATH: $as_dir"
2697   done
2698 IFS=$as_save_IFS
2699
2700 } >&5
2701
2702 cat >&5 <<_ACEOF
2703
2704
2705 ## ----------- ##
2706 ## Core tests. ##
2707 ## ----------- ##
2708
2709 _ACEOF
2710
2711
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2717 ac_configure_args=
2718 ac_configure_args0=
2719 ac_configure_args1=
2720 ac_must_keep_next=false
2721 for ac_pass in 1 2
2722 do
2723   for ac_arg
2724   do
2725     case $ac_arg in
2726     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728     | -silent | --silent | --silen | --sile | --sil)
2729       continue ;;
2730     *\'*)
2731       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732     esac
2733     case $ac_pass in
2734     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735     2)
2736       as_fn_append ac_configure_args1 " '$ac_arg'"
2737       if test $ac_must_keep_next = true; then
2738         ac_must_keep_next=false # Got value, back to normal.
2739       else
2740         case $ac_arg in
2741           *=* | --config-cache | -C | -disable-* | --disable-* \
2742           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744           | -with-* | --with-* | -without-* | --without-* | --x)
2745             case "$ac_configure_args0 " in
2746               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747             esac
2748             ;;
2749           -* ) ac_must_keep_next=true ;;
2750         esac
2751       fi
2752       as_fn_append ac_configure_args " '$ac_arg'"
2753       ;;
2754     esac
2755   done
2756 done
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2759
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log.  We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766   # Save into config.log some information that might help in debugging.
2767   {
2768     echo
2769
2770     cat <<\_ASBOX
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2774 _ASBOX
2775     echo
2776     # The following way of writing the cache mishandles newlines in values,
2777 (
2778   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779     eval ac_val=\$$ac_var
2780     case $ac_val in #(
2781     *${as_nl}*)
2782       case $ac_var in #(
2783       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785       esac
2786       case $ac_var in #(
2787       _ | IFS | as_nl) ;; #(
2788       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789       *) { eval $ac_var=; unset $ac_var;} ;;
2790       esac ;;
2791     esac
2792   done
2793   (set) 2>&1 |
2794     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795     *${as_nl}ac_space=\ *)
2796       sed -n \
2797         "s/'\''/'\''\\\\'\'''\''/g;
2798           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799       ;; #(
2800     *)
2801       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2802       ;;
2803     esac |
2804     sort
2805 )
2806     echo
2807
2808     cat <<\_ASBOX
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2812 _ASBOX
2813     echo
2814     for ac_var in $ac_subst_vars
2815     do
2816       eval ac_val=\$$ac_var
2817       case $ac_val in
2818       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819       esac
2820       $as_echo "$ac_var='\''$ac_val'\''"
2821     done | sort
2822     echo
2823
2824     if test -n "$ac_subst_files"; then
2825       cat <<\_ASBOX
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2829 _ASBOX
2830       echo
2831       for ac_var in $ac_subst_files
2832       do
2833         eval ac_val=\$$ac_var
2834         case $ac_val in
2835         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836         esac
2837         $as_echo "$ac_var='\''$ac_val'\''"
2838       done | sort
2839       echo
2840     fi
2841
2842     if test -s confdefs.h; then
2843       cat <<\_ASBOX
2844 ## ----------- ##
2845 ## confdefs.h. ##
2846 ## ----------- ##
2847 _ASBOX
2848       echo
2849       cat confdefs.h
2850       echo
2851     fi
2852     test "$ac_signal" != 0 &&
2853       $as_echo "$as_me: caught signal $ac_signal"
2854     $as_echo "$as_me: exit $exit_status"
2855   } >&5
2856   rm -f core *.core core.conftest.* &&
2857     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858     exit $exit_status
2859 ' 0
2860 for ac_signal in 1 2 13 15; do
2861   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2862 done
2863 ac_signal=0
2864
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2867
2868 $as_echo "/* confdefs.h */" > confdefs.h
2869
2870 # Predefined preprocessor variables.
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 _ACEOF
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 _ACEOF
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 _ACEOF
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2894 _ACEOF
2895
2896
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2899 ac_site_file1=NONE
2900 ac_site_file2=NONE
2901 if test -n "$CONFIG_SITE"; then
2902   ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904   ac_site_file1=$prefix/share/config.site
2905   ac_site_file2=$prefix/etc/config.site
2906 else
2907   ac_site_file1=$ac_default_prefix/share/config.site
2908   ac_site_file2=$ac_default_prefix/etc/config.site
2909 fi
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 do
2912   test "x$ac_site_file" = xNONE && continue
2913   if test -r "$ac_site_file"; then
2914     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916     sed 's/^/| /' "$ac_site_file" >&5
2917     . "$ac_site_file"
2918   fi
2919 done
2920
2921 if test -r "$cache_file"; then
2922   # Some versions of bash will fail to source /dev/null (special
2923   # files actually), so we avoid doing that.
2924   if test -f "$cache_file"; then
2925     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927     case $cache_file in
2928       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929       *)                      . "./$cache_file";;
2930     esac
2931   fi
2932 else
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2935   >$cache_file
2936 fi
2937
2938 # Check that the precious variables saved in the cache have kept the same
2939 # value.
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943   eval ac_new_set=\$ac_env_${ac_var}_set
2944   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945   eval ac_new_val=\$ac_env_${ac_var}_value
2946   case $ac_old_set,$ac_new_set in
2947     set,)
2948       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950       ac_cache_corrupted=: ;;
2951     ,set)
2952       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2954       ac_cache_corrupted=: ;;
2955     ,);;
2956     *)
2957       if test "x$ac_old_val" != "x$ac_new_val"; then
2958         # differences in whitespace do not lead to failure.
2959         ac_old_val_w=`echo x $ac_old_val`
2960         ac_new_val_w=`echo x $ac_new_val`
2961         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2964           ac_cache_corrupted=:
2965         else
2966           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968           eval $ac_var=\$ac_old_val
2969         fi
2970         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2971 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2972         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2974       fi;;
2975   esac
2976   # Pass precious variables to config.status.
2977   if test "$ac_new_set" = set; then
2978     case $ac_new_val in
2979     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2980     *) ac_arg=$ac_var=$ac_new_val ;;
2981     esac
2982     case " $ac_configure_args " in
2983       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2984       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2985     esac
2986   fi
2987 done
2988 if $ac_cache_corrupted; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2994 fi
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
2998
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004
3005
3006
3007
3008
3009
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011
3012
3013 gcc_version=`cat $srcdir/BASE-VER`
3014
3015 # Determine the host, build, and target systems
3016 ac_aux_dir=
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018   for ac_t in install-sh install.sh shtool; do
3019     if test -f "$ac_dir/$ac_t"; then
3020       ac_aux_dir=$ac_dir
3021       ac_install_sh="$ac_aux_dir/$ac_t -c"
3022       break 2
3023     fi
3024   done
3025 done
3026 if test -z "$ac_aux_dir"; then
3027   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 fi
3029
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3037
3038
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3060 *-*-*) ;;
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 esac
3063 build=$ac_cv_build
3064 ac_save_IFS=$IFS; IFS='-'
3065 set x $ac_cv_build
3066 shift
3067 build_cpu=$1
3068 build_vendor=$2
3069 shift; shift
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3072 build_os=$*
3073 IFS=$ac_save_IFS
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3075
3076
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test "x$host_alias" = x; then
3083   ac_cv_host=$ac_cv_build
3084 else
3085   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3087 fi
3088
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3092 case $ac_cv_host in
3093 *-*-*) ;;
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 esac
3096 host=$ac_cv_host
3097 ac_save_IFS=$IFS; IFS='-'
3098 set x $ac_cv_host
3099 shift
3100 host_cpu=$1
3101 host_vendor=$2
3102 shift; shift
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3105 host_os=$*
3106 IFS=$ac_save_IFS
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113   $as_echo_n "(cached) " >&6
3114 else
3115   if test "x$target_alias" = x; then
3116   ac_cv_target=$ac_cv_host
3117 else
3118   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3120 fi
3121
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3126 *-*-*) ;;
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 esac
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3131 set x $ac_cv_target
3132 shift
3133 target_cpu=$1
3134 target_vendor=$2
3135 shift; shift
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3138 target_os=$*
3139 IFS=$ac_save_IFS
3140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3141
3142
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146   test "$program_prefix$program_suffix$program_transform_name" = \
3147     NONENONEs,x,x, &&
3148   program_prefix=${target_alias}-
3149
3150 # Determine the noncanonical target name, for directory use.
3151  case ${build_alias} in
3152   "") build_noncanonical=${build} ;;
3153   *) build_noncanonical=${build_alias} ;;
3154 esac
3155
3156  case ${host_alias} in
3157   "") host_noncanonical=${build_noncanonical} ;;
3158   *) host_noncanonical=${host_alias} ;;
3159 esac
3160
3161  case ${target_alias} in
3162   "") target_noncanonical=${host_noncanonical} ;;
3163   *) target_noncanonical=${target_alias} ;;
3164 esac
3165
3166
3167
3168
3169 # Determine the target- and build-specific subdirectories
3170
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # finishes. So:
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3179
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3182
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185   withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 else
3187   build_libsubdir="$build_subdir"
3188 fi
3189
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192    || test -d $srcdir/../host-${host_noncanonical}; then
3193   host_subdir="host-${host_noncanonical}"
3194 else
3195   host_subdir=.
3196 fi
3197 # No prefix.
3198 target_subdir=${target_noncanonical}
3199
3200
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211
3212
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3217 # is true:
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225     library_path_setting="contains current directory"
3226     ;;
3227   *)
3228     library_path_setting="ok"
3229     ;;
3230 esac
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3234 as_fn_error "
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again." "$LINENO" 5
3238 fi
3239
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # is true:
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251     gcc_exec_prefix_setting="contains current directory"
3252     ;;
3253   *)
3254     gcc_exec_prefix_setting="ok"
3255     ;;
3256 esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok"; then
3260 as_fn_error "
3261 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3264 fi
3265
3266 # -----------
3267 # Directories
3268 # -----------
3269
3270 # Specify the local prefix
3271 local_prefix=
3272
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275   withval=$with_local_prefix; case "${withval}" in
3276 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 no)     ;;
3278 *)      local_prefix=$with_local_prefix ;;
3279 esac
3280 fi
3281
3282
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285         local_prefix=/usr/local
3286 fi
3287
3288 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir=
3292 # Specify the g++ header file directory
3293
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296   withval=$with_gxx_include_dir; case "${withval}" in
3297 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 no)     ;;
3299 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3300 esac
3301 fi
3302
3303
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x${gcc_gxx_include_dir} = x; then
3306   if test x${enable_version_specific_runtime_libs} = xyes; then
3307     gcc_gxx_include_dir='${libsubdir}/include/c++'
3308   else
3309     libstdcxx_incdir='include/c++/$(version)'
3310     if test x$host != x$target; then
3311        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3312     fi
3313     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3314   fi
3315 fi
3316
3317 gcc_gxx_include_dir_add_sysroot=0
3318 if test "${with_sysroot+set}" = set; then
3319   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3320   if test "${gcc_gxx_without_sysroot}"; then
3321     gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3322     gcc_gxx_include_dir_add_sysroot=1
3323   fi
3324 fi
3325
3326
3327 # Check whether --with-cpp_install_dir was given.
3328 if test "${with_cpp_install_dir+set}" = set; then :
3329   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3330   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3331 elif test x$withval != xno; then
3332   cpp_install_dir=$withval
3333 fi
3334 fi
3335
3336
3337 # We would like to our source tree to be readonly.  However when releases or
3338 # pre-releases are generated, the flex/bison generated files as well as the
3339 # various formats of manuals need to be included along with the rest of the
3340 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3341 # just that.
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3344 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3345     # Check whether --enable-generated-files-in-srcdir was given.
3346 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3347   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3348 else
3349   generated_files_in_srcdir=no
3350 fi
3351
3352
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3354 $as_echo "$generated_files_in_srcdir" >&6; }
3355
3356 if test "$generated_files_in_srcdir" = "yes"; then
3357   GENINSRC=''
3358 else
3359   GENINSRC='#'
3360 fi
3361
3362
3363 # -------------------
3364 # Find default linker
3365 # -------------------
3366
3367 # With GNU ld
3368
3369 # Check whether --with-gnu-ld was given.
3370 if test "${with_gnu_ld+set}" = set; then :
3371   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3372 else
3373   gnu_ld_flag=no
3374 fi
3375
3376
3377 # With pre-defined ld
3378
3379 # Check whether --with-ld was given.
3380 if test "${with_ld+set}" = set; then :
3381   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3382 fi
3383
3384 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3385   if test ! -x "$DEFAULT_LINKER"; then
3386     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3387   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3388     gnu_ld_flag=yes
3389   fi
3390
3391 cat >>confdefs.h <<_ACEOF
3392 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3393 _ACEOF
3394
3395 fi
3396
3397 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3398
3399 cat >>confdefs.h <<_ACEOF
3400 #define HAVE_GNU_LD $gnu_ld
3401 _ACEOF
3402
3403
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3405 $as_echo_n "checking whether a default linker was specified... " >&6; }
3406 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3407   if test x"$gnu_ld_flag" = x"no"; then
3408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3410   else
3411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3412 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3413   fi
3414 else
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419 # With demangler in GNU ld
3420
3421 # Check whether --with-demangler-in-ld was given.
3422 if test "${with_demangler_in_ld+set}" = set; then :
3423   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3424 else
3425   demangler_in_ld=yes
3426 fi
3427
3428
3429 # ----------------------
3430 # Find default assembler
3431 # ----------------------
3432
3433 # With GNU as
3434
3435 # Check whether --with-gnu-as was given.
3436 if test "${with_gnu_as+set}" = set; then :
3437   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3438 else
3439   gas_flag=no
3440 fi
3441
3442
3443
3444 # Check whether --with-as was given.
3445 if test "${with_as+set}" = set; then :
3446   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3447 fi
3448
3449 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3450   if test ! -x "$DEFAULT_ASSEMBLER"; then
3451     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3452   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3453     gas_flag=yes
3454   fi
3455
3456 cat >>confdefs.h <<_ACEOF
3457 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3458 _ACEOF
3459
3460 fi
3461
3462 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3463
3464 cat >>confdefs.h <<_ACEOF
3465 #define HAVE_GNU_AS $gnu_as
3466 _ACEOF
3467
3468
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3470 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3471 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3472   if test x"$gas_flag" = x"no"; then
3473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3474 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3475   else
3476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3477 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3478   fi
3479 else
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484 # ---------------
3485 # Find C compiler
3486 # ---------------
3487
3488 # If a non-executable a.out is present (e.g. created by GNU as above even if
3489 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3490 # file, even when creating an executable, so an execution test fails.
3491 # Remove possible default executable files to avoid this.
3492 #
3493 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3494 # Autoconf includes it.
3495 rm -f a.out a.exe b.out
3496
3497 # Find the native compiler
3498 ac_ext=c
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503 if test -n "$ac_tool_prefix"; then
3504   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3505 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 $as_echo_n "checking for $ac_word... " >&6; }
3508 if test "${ac_cv_prog_CC+set}" = set; then :
3509   $as_echo_n "(cached) " >&6
3510 else
3511   if test -n "$CC"; then
3512   ac_cv_prog_CC="$CC" # Let the user override the test.
3513 else
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517   IFS=$as_save_IFS
3518   test -z "$as_dir" && as_dir=.
3519     for ac_exec_ext in '' $ac_executable_extensions; do
3520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3521     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523     break 2
3524   fi
3525 done
3526   done
3527 IFS=$as_save_IFS
3528
3529 fi
3530 fi
3531 CC=$ac_cv_prog_CC
3532 if test -n "$CC"; then
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3534 $as_echo "$CC" >&6; }
3535 else
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538 fi
3539
3540
3541 fi
3542 if test -z "$ac_cv_prog_CC"; then
3543   ac_ct_CC=$CC
3544   # Extract the first word of "gcc", so it can be a program name with args.
3545 set dummy gcc; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551   if test -n "$ac_ct_CC"; then
3552   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   test -z "$as_dir" && as_dir=.
3559     for ac_exec_ext in '' $ac_executable_extensions; do
3560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561     ac_cv_prog_ac_ct_CC="gcc"
3562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563     break 2
3564   fi
3565 done
3566   done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3572 if test -n "$ac_ct_CC"; then
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3574 $as_echo "$ac_ct_CC" >&6; }
3575 else
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 fi
3579
3580   if test "x$ac_ct_CC" = x; then
3581     CC=""
3582   else
3583     case $cross_compiling:$ac_tool_warned in
3584 yes:)
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned=yes ;;
3588 esac
3589     CC=$ac_ct_CC
3590   fi
3591 else
3592   CC="$ac_cv_prog_CC"
3593 fi
3594
3595 if test -z "$CC"; then
3596           if test -n "$ac_tool_prefix"; then
3597     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3598 set dummy ${ac_tool_prefix}cc; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if test "${ac_cv_prog_CC+set}" = set; then :
3602   $as_echo_n "(cached) " >&6
3603 else
3604   if test -n "$CC"; then
3605   ac_cv_prog_CC="$CC" # Let the user override the test.
3606 else
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612     for ac_exec_ext in '' $ac_executable_extensions; do
3613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614     ac_cv_prog_CC="${ac_tool_prefix}cc"
3615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616     break 2
3617   fi
3618 done
3619   done
3620 IFS=$as_save_IFS
3621
3622 fi
3623 fi
3624 CC=$ac_cv_prog_CC
3625 if test -n "$CC"; then
3626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3627 $as_echo "$CC" >&6; }
3628 else
3629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 fi
3632
3633
3634   fi
3635 fi
3636 if test -z "$CC"; then
3637   # Extract the first word of "cc", so it can be a program name with args.
3638 set dummy cc; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if test "${ac_cv_prog_CC+set}" = set; then :
3642   $as_echo_n "(cached) " >&6
3643 else
3644   if test -n "$CC"; then
3645   ac_cv_prog_CC="$CC" # Let the user override the test.
3646 else
3647   ac_prog_rejected=no
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651   IFS=$as_save_IFS
3652   test -z "$as_dir" && as_dir=.
3653     for ac_exec_ext in '' $ac_executable_extensions; do
3654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3656        ac_prog_rejected=yes
3657        continue
3658      fi
3659     ac_cv_prog_CC="cc"
3660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661     break 2
3662   fi
3663 done
3664   done
3665 IFS=$as_save_IFS
3666
3667 if test $ac_prog_rejected = yes; then
3668   # We found a bogon in the path, so make sure we never use it.
3669   set dummy $ac_cv_prog_CC
3670   shift
3671   if test $# != 0; then
3672     # We chose a different compiler from the bogus one.
3673     # However, it has the same basename, so the bogon will be chosen
3674     # first if we set CC to just the basename; use the full file name.
3675     shift
3676     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3677   fi
3678 fi
3679 fi
3680 fi
3681 CC=$ac_cv_prog_CC
3682 if test -n "$CC"; then
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 $as_echo "$CC" >&6; }
3685 else
3686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3688 fi
3689
3690
3691 fi
3692 if test -z "$CC"; then
3693   if test -n "$ac_tool_prefix"; then
3694   for ac_prog in cl.exe
3695   do
3696     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if test "${ac_cv_prog_CC+set}" = set; then :
3701   $as_echo_n "(cached) " >&6
3702 else
3703   if test -n "$CC"; then
3704   ac_cv_prog_CC="$CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711     for ac_exec_ext in '' $ac_executable_extensions; do
3712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718   done
3719 IFS=$as_save_IFS
3720
3721 fi
3722 fi
3723 CC=$ac_cv_prog_CC
3724 if test -n "$CC"; then
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 $as_echo "$CC" >&6; }
3727 else
3728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3730 fi
3731
3732
3733     test -n "$CC" && break
3734   done
3735 fi
3736 if test -z "$CC"; then
3737   ac_ct_CC=$CC
3738   for ac_prog in cl.exe
3739 do
3740   # Extract the first word of "$ac_prog", so it can be a program name with args.
3741 set dummy $ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   if test -n "$ac_ct_CC"; then
3748   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755     for ac_exec_ext in '' $ac_executable_extensions; do
3756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757     ac_cv_prog_ac_ct_CC="$ac_prog"
3758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762   done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3768 if test -n "$ac_ct_CC"; then
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3770 $as_echo "$ac_ct_CC" >&6; }
3771 else
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777   test -n "$ac_ct_CC" && break
3778 done
3779
3780   if test "x$ac_ct_CC" = x; then
3781     CC=""
3782   else
3783     case $cross_compiling:$ac_tool_warned in
3784 yes:)
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3787 ac_tool_warned=yes ;;
3788 esac
3789     CC=$ac_ct_CC
3790   fi
3791 fi
3792
3793 fi
3794
3795
3796 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error "no acceptable C compiler found in \$PATH
3799 See \`config.log' for more details." "$LINENO" 5; }
3800
3801 # Provide some information about the compiler.
3802 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3803 set X $ac_compile
3804 ac_compiler=$2
3805 for ac_option in --version -v -V -qversion; do
3806   { { ac_try="$ac_compiler $ac_option >&5"
3807 case "(($ac_try" in
3808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809   *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 $as_echo "$ac_try_echo"; } >&5
3813   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3814   ac_status=$?
3815   if test -s conftest.err; then
3816     sed '10a\
3817 ... rest of stderr output deleted ...
3818          10q' conftest.err >conftest.er1
3819     cat conftest.er1 >&5
3820     rm -f conftest.er1 conftest.err
3821   fi
3822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823   test $ac_status = 0; }
3824 done
3825
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h.  */
3828
3829 int
3830 main ()
3831 {
3832
3833   ;
3834   return 0;
3835 }
3836 _ACEOF
3837 ac_clean_files_save=$ac_clean_files
3838 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3839 # Try to create an executable without -o first, disregard a.out.
3840 # It will help us diagnose broken compilers, and finding out an intuition
3841 # of exeext.
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3843 $as_echo_n "checking for C compiler default output file name... " >&6; }
3844 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3845
3846 # The possible output files:
3847 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3848
3849 ac_rmfiles=
3850 for ac_file in $ac_files
3851 do
3852   case $ac_file in
3853     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3855   esac
3856 done
3857 rm -f $ac_rmfiles
3858
3859 if { { ac_try="$ac_link_default"
3860 case "(($ac_try" in
3861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862   *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866   (eval "$ac_link_default") 2>&5
3867   ac_status=$?
3868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869   test $ac_status = 0; }; then :
3870   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3871 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3872 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3873 # so that the user can short-circuit this test for compilers unknown to
3874 # Autoconf.
3875 for ac_file in $ac_files ''
3876 do
3877   test -f "$ac_file" || continue
3878   case $ac_file in
3879     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3880         ;;
3881     [ab].out )
3882         # We found the default executable, but exeext='' is most
3883         # certainly right.
3884         break;;
3885     *.* )
3886         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3887         then :; else
3888            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889         fi
3890         # We set ac_cv_exeext here because the later test for it is not
3891         # safe: cross compilers may not add the suffix if given an `-o'
3892         # argument, so we may need to know it at that point already.
3893         # Even if this section looks crufty: it has the advantage of
3894         # actually working.
3895         break;;
3896     * )
3897         break;;
3898   esac
3899 done
3900 test "$ac_cv_exeext" = no && ac_cv_exeext=
3901
3902 else
3903   ac_file=''
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3906 $as_echo "$ac_file" >&6; }
3907 if test -z "$ac_file"; then :
3908   $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 { as_fn_set_status 77
3914 as_fn_error "C compiler cannot create executables
3915 See \`config.log' for more details." "$LINENO" 5; }; }
3916 fi
3917 ac_exeext=$ac_cv_exeext
3918
3919 # Check that the compiler produces executables we can run.  If not, either
3920 # the compiler is broken, or we cross compile.
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3922 $as_echo_n "checking whether the C compiler works... " >&6; }
3923 # If not cross compiling, check that we can run a simple program.
3924 if test "$cross_compiling" != yes; then
3925   if { ac_try='./$ac_file'
3926   { { case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932   (eval "$ac_try") 2>&5
3933   ac_status=$?
3934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935   test $ac_status = 0; }; }; then
3936     cross_compiling=no
3937   else
3938     if test "$cross_compiling" = maybe; then
3939         cross_compiling=yes
3940     else
3941         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error "cannot run C compiled programs.
3944 If you meant to cross compile, use \`--host'.
3945 See \`config.log' for more details." "$LINENO" 5; }
3946     fi
3947   fi
3948 fi
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3951
3952 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3953 ac_clean_files=$ac_clean_files_save
3954 # Check that the compiler produces executables we can run.  If not, either
3955 # the compiler is broken, or we cross compile.
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3957 $as_echo_n "checking whether we are cross compiling... " >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3959 $as_echo "$cross_compiling" >&6; }
3960
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3962 $as_echo_n "checking for suffix of executables... " >&6; }
3963 if { { ac_try="$ac_link"
3964 case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970   (eval "$ac_link") 2>&5
3971   ac_status=$?
3972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973   test $ac_status = 0; }; then :
3974   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3975 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3976 # work properly (i.e., refer to `conftest.exe'), while it won't with
3977 # `rm'.
3978 for ac_file in conftest.exe conftest conftest.*; do
3979   test -f "$ac_file" || continue
3980   case $ac_file in
3981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3982     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983           break;;
3984     * ) break;;
3985   esac
3986 done
3987 else
3988   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error "cannot compute suffix of executables: cannot compile and link
3991 See \`config.log' for more details." "$LINENO" 5; }
3992 fi
3993 rm -f conftest$ac_cv_exeext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3995 $as_echo "$ac_cv_exeext" >&6; }
3996
3997 rm -f conftest.$ac_ext
3998 EXEEXT=$ac_cv_exeext
3999 ac_exeext=$EXEEXT
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4001 $as_echo_n "checking for suffix of object files... " >&6; }
4002 if test "${ac_cv_objext+set}" = set; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007
4008 int
4009 main ()
4010 {
4011
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.o conftest.obj
4017 if { { ac_try="$ac_compile"
4018 case "(($ac_try" in
4019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020   *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024   (eval "$ac_compile") 2>&5
4025   ac_status=$?
4026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027   test $ac_status = 0; }; then :
4028   for ac_file in conftest.o conftest.obj conftest.*; do
4029   test -f "$ac_file" || continue;
4030   case $ac_file in
4031     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4032     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4033        break;;
4034   esac
4035 done
4036 else
4037   $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error "cannot compute suffix of object files: cannot compile
4043 See \`config.log' for more details." "$LINENO" 5; }
4044 fi
4045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4048 $as_echo "$ac_cv_objext" >&6; }
4049 OBJEXT=$ac_cv_objext
4050 ac_objext=$OBJEXT
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4052 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4053 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4054   $as_echo_n "(cached) " >&6
4055 else
4056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h.  */
4058
4059 int
4060 main ()
4061 {
4062 #ifndef __GNUC__
4063        choke me
4064 #endif
4065
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 if ac_fn_c_try_compile "$LINENO"; then :
4071   ac_compiler_gnu=yes
4072 else
4073   ac_compiler_gnu=no
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4077
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4080 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4081 if test $ac_compiler_gnu = yes; then
4082   GCC=yes
4083 else
4084   GCC=
4085 fi
4086 ac_test_CFLAGS=${CFLAGS+set}
4087 ac_save_CFLAGS=$CFLAGS
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4089 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4090 if test "${ac_cv_prog_cc_g+set}" = set; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   ac_save_c_werror_flag=$ac_c_werror_flag
4094    ac_c_werror_flag=yes
4095    ac_cv_prog_cc_g=no
4096    CFLAGS="-g"
4097    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4099
4100 int
4101 main ()
4102 {
4103
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109   ac_cv_prog_cc_g=yes
4110 else
4111   CFLAGS=""
4112       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h.  */
4114
4115 int
4116 main ()
4117 {
4118
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 if ac_fn_c_try_compile "$LINENO"; then :
4124
4125 else
4126   ac_c_werror_flag=$ac_save_c_werror_flag
4127          CFLAGS="-g"
4128          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h.  */
4130
4131 int
4132 main ()
4133 {
4134
4135   ;
4136   return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140   ac_cv_prog_cc_g=yes
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147    ac_c_werror_flag=$ac_save_c_werror_flag
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4150 $as_echo "$ac_cv_prog_cc_g" >&6; }
4151 if test "$ac_test_CFLAGS" = set; then
4152   CFLAGS=$ac_save_CFLAGS
4153 elif test $ac_cv_prog_cc_g = yes; then
4154   if test "$GCC" = yes; then
4155     CFLAGS="-g -O2"
4156   else
4157     CFLAGS="-g"
4158   fi
4159 else
4160   if test "$GCC" = yes; then
4161     CFLAGS="-O2"
4162   else
4163     CFLAGS=
4164   fi
4165 fi
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4167 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4168 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4169   $as_echo_n "(cached) " >&6
4170 else
4171   ac_cv_prog_cc_c89=no
4172 ac_save_CC=$CC
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h.  */
4175 #include <stdarg.h>
4176 #include <stdio.h>
4177 #include <sys/types.h>
4178 #include <sys/stat.h>
4179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4180 struct buf { int x; };
4181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4182 static char *e (p, i)
4183      char **p;
4184      int i;
4185 {
4186   return p[i];
4187 }
4188 static char *f (char * (*g) (char **, int), char **p, ...)
4189 {
4190   char *s;
4191   va_list v;
4192   va_start (v,p);
4193   s = g (p, va_arg (v,int));
4194   va_end (v);
4195   return s;
4196 }
4197
4198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4199    function prototypes and stuff, but not '\xHH' hex character constants.
4200    These don't provoke an error unfortunately, instead are silently treated
4201    as 'x'.  The following induces an error, until -std is added to get
4202    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4203    array size at least.  It's necessary to write '\x00'==0 to get something
4204    that's true only with -std.  */
4205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206
4207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4208    inside strings and character constants.  */
4209 #define FOO(x) 'x'
4210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211
4212 int test (int i, double x);
4213 struct s1 {int (*f) (int a);};
4214 struct s2 {int (*f) (double a);};
4215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4216 int argc;
4217 char **argv;
4218 int
4219 main ()
4220 {
4221 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4227         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 do
4229   CC="$ac_save_CC $ac_arg"
4230   if ac_fn_c_try_compile "$LINENO"; then :
4231   ac_cv_prog_cc_c89=$ac_arg
4232 fi
4233 rm -f core conftest.err conftest.$ac_objext
4234   test "x$ac_cv_prog_cc_c89" != "xno" && break
4235 done
4236 rm -f conftest.$ac_ext
4237 CC=$ac_save_CC
4238
4239 fi
4240 # AC_CACHE_VAL
4241 case "x$ac_cv_prog_cc_c89" in
4242   x)
4243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4244 $as_echo "none needed" >&6; } ;;
4245   xno)
4246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4247 $as_echo "unsupported" >&6; } ;;
4248   *)
4249     CC="$CC $ac_cv_prog_cc_c89"
4250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4251 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4252 esac
4253 if test "x$ac_cv_prog_cc_c89" != xno; then :
4254
4255 fi
4256
4257 ac_ext=c
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262
4263 if test "x$CC" != xcc; then
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4265 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4266 else
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4268 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4269 fi
4270 set dummy $CC; ac_cc=`$as_echo "$2" |
4271                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4272 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4273   $as_echo_n "(cached) " >&6
4274 else
4275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h.  */
4277
4278 int
4279 main ()
4280 {
4281
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 # Make sure it works both with $CC and with simple cc.
4287 # We do the test twice because some compilers refuse to overwrite an
4288 # existing .o file with -o, though they will create one.
4289 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4290 rm -f conftest2.*
4291 if { { 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    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307   (eval "$ac_try") 2>&5
4308   ac_status=$?
4309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310   test $ac_status = 0; };
4311 then
4312   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4313   if test "x$CC" != xcc; then
4314     # Test first that cc exists at all.
4315     if { ac_try='cc -c conftest.$ac_ext >&5'
4316   { { case "(($ac_try" in
4317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318   *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322   (eval "$ac_try") 2>&5
4323   ac_status=$?
4324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325   test $ac_status = 0; }; }; then
4326       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4327       rm -f conftest2.*
4328       if { { 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          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344   (eval "$ac_try") 2>&5
4345   ac_status=$?
4346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347   test $ac_status = 0; };
4348       then
4349         # cc works too.
4350         :
4351       else
4352         # cc exists but doesn't like -o.
4353         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4354       fi
4355     fi
4356   fi
4357 else
4358   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4359 fi
4360 rm -f core conftest*
4361
4362 fi
4363 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365 $as_echo "yes" >&6; }
4366 else
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369
4370 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4371
4372 fi
4373
4374 # expand $ac_aux_dir to an absolute path
4375 am_aux_dir=`cd $ac_aux_dir && pwd`
4376
4377 # FIXME: we rely on the cache variable name because
4378 # there is no other way.
4379 set dummy $CC
4380 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4381 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4382 if test "$am_t" != yes; then
4383    # Losing compiler, so override with the script.
4384    # FIXME: It is wrong to rewrite CC.
4385    # But if we don't then we get into trouble of one sort or another.
4386    # A longer-term fix would be to have automake use am__CC in this case,
4387    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4388    CC="$am_aux_dir/compile $CC"
4389 fi
4390
4391
4392 ac_ext=cpp
4393 ac_cpp='$CXXCPP $CPPFLAGS'
4394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4397 if test -z "$CXX"; then
4398   if test -n "$CCC"; then
4399     CXX=$CCC
4400   else
4401     if test -n "$ac_tool_prefix"; then
4402   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4403   do
4404     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if test "${ac_cv_prog_CXX+set}" = set; then :
4409   $as_echo_n "(cached) " >&6
4410 else
4411   if test -n "$CXX"; then
4412   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419     for ac_exec_ext in '' $ac_executable_extensions; do
4420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423     break 2
4424   fi
4425 done
4426   done
4427 IFS=$as_save_IFS
4428
4429 fi
4430 fi
4431 CXX=$ac_cv_prog_CXX
4432 if test -n "$CXX"; then
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4434 $as_echo "$CXX" >&6; }
4435 else
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4438 fi
4439
4440
4441     test -n "$CXX" && break
4442   done
4443 fi
4444 if test -z "$CXX"; then
4445   ac_ct_CXX=$CXX
4446   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4447 do
4448   # Extract the first word of "$ac_prog", so it can be a program name with args.
4449 set dummy $ac_prog; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test -n "$ac_ct_CXX"; then
4456   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463     for ac_exec_ext in '' $ac_executable_extensions; do
4464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465     ac_cv_prog_ac_ct_CXX="$ac_prog"
4466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467     break 2
4468   fi
4469 done
4470   done
4471 IFS=$as_save_IFS
4472
4473 fi
4474 fi
4475 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4476 if test -n "$ac_ct_CXX"; then
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4478 $as_echo "$ac_ct_CXX" >&6; }
4479 else
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484
4485   test -n "$ac_ct_CXX" && break
4486 done
4487
4488   if test "x$ac_ct_CXX" = x; then
4489     CXX="g++"
4490   else
4491     case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4496 esac
4497     CXX=$ac_ct_CXX
4498   fi
4499 fi
4500
4501   fi
4502 fi
4503 # Provide some information about the compiler.
4504 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4505 set X $ac_compile
4506 ac_compiler=$2
4507 for ac_option in --version -v -V -qversion; do
4508   { { ac_try="$ac_compiler $ac_option >&5"
4509 case "(($ac_try" in
4510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511   *) ac_try_echo=$ac_try;;
4512 esac
4513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514 $as_echo "$ac_try_echo"; } >&5
4515   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4516   ac_status=$?
4517   if test -s conftest.err; then
4518     sed '10a\
4519 ... rest of stderr output deleted ...
4520          10q' conftest.err >conftest.er1
4521     cat conftest.er1 >&5
4522     rm -f conftest.er1 conftest.err
4523   fi
4524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525   test $ac_status = 0; }
4526 done
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4529 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4530 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h.  */
4535
4536 int
4537 main ()
4538 {
4539 #ifndef __GNUC__
4540        choke me
4541 #endif
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 if ac_fn_cxx_try_compile "$LINENO"; then :
4548   ac_compiler_gnu=yes
4549 else
4550   ac_compiler_gnu=no
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4554
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4557 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4558 if test $ac_compiler_gnu = yes; then
4559   GXX=yes
4560 else
4561   GXX=
4562 fi
4563 ac_test_CXXFLAGS=${CXXFLAGS+set}
4564 ac_save_CXXFLAGS=$CXXFLAGS
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4566 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4567 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4571    ac_cxx_werror_flag=yes
4572    ac_cv_prog_cxx_g=no
4573    CXXFLAGS="-g"
4574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h.  */
4576
4577 int
4578 main ()
4579 {
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4586   ac_cv_prog_cxx_g=yes
4587 else
4588   CXXFLAGS=""
4589       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h.  */
4591
4592 int
4593 main ()
4594 {
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_cxx_try_compile "$LINENO"; then :
4601
4602 else
4603   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4604          CXXFLAGS="-g"
4605          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h.  */
4607
4608 int
4609 main ()
4610 {
4611
4612   ;
4613   return 0;
4614 }
4615 _ACEOF
4616 if ac_fn_cxx_try_compile "$LINENO"; then :
4617   ac_cv_prog_cxx_g=yes
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4627 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4628 if test "$ac_test_CXXFLAGS" = set; then
4629   CXXFLAGS=$ac_save_CXXFLAGS
4630 elif test $ac_cv_prog_cxx_g = yes; then
4631   if test "$GXX" = yes; then
4632     CXXFLAGS="-g -O2"
4633   else
4634     CXXFLAGS="-g"
4635   fi
4636 else
4637   if test "$GXX" = yes; then
4638     CXXFLAGS="-O2"
4639   else
4640     CXXFLAGS=
4641   fi
4642 fi
4643 ac_ext=c
4644 ac_cpp='$CPP $CPPFLAGS'
4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649
4650
4651
4652 if test -n "$ac_tool_prefix"; then
4653   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4654 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   if test -n "$GNATBIND"; then
4661   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675   done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 GNATBIND=$ac_cv_prog_GNATBIND
4681 if test -n "$GNATBIND"; then
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4683 $as_echo "$GNATBIND" >&6; }
4684 else
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689
4690 fi
4691 if test -z "$ac_cv_prog_GNATBIND"; then
4692   ac_ct_GNATBIND=$GNATBIND
4693   # Extract the first word of "gnatbind", so it can be a program name with args.
4694 set dummy gnatbind; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   if test -n "$ac_ct_GNATBIND"; then
4701   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708     for ac_exec_ext in '' $ac_executable_extensions; do
4709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715   done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4721 if test -n "$ac_ct_GNATBIND"; then
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4723 $as_echo "$ac_ct_GNATBIND" >&6; }
4724 else
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 fi
4728
4729   if test "x$ac_ct_GNATBIND" = x; then
4730     GNATBIND="no"
4731   else
4732     case $cross_compiling:$ac_tool_warned in
4733 yes:)
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4736 ac_tool_warned=yes ;;
4737 esac
4738     GNATBIND=$ac_ct_GNATBIND
4739   fi
4740 else
4741   GNATBIND="$ac_cv_prog_GNATBIND"
4742 fi
4743
4744 if test -n "$ac_tool_prefix"; then
4745   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4746 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   if test -n "$GNATMAKE"; then
4753   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760     for ac_exec_ext in '' $ac_executable_extensions; do
4761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764     break 2
4765   fi
4766 done
4767   done
4768 IFS=$as_save_IFS
4769
4770 fi
4771 fi
4772 GNATMAKE=$ac_cv_prog_GNATMAKE
4773 if test -n "$GNATMAKE"; then
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4775 $as_echo "$GNATMAKE" >&6; }
4776 else
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780
4781
4782 fi
4783 if test -z "$ac_cv_prog_GNATMAKE"; then
4784   ac_ct_GNATMAKE=$GNATMAKE
4785   # Extract the first word of "gnatmake", so it can be a program name with args.
4786 set dummy gnatmake; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792   if test -n "$ac_ct_GNATMAKE"; then
4793   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800     for ac_exec_ext in '' $ac_executable_extensions; do
4801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807   done
4808 IFS=$as_save_IFS
4809
4810 fi
4811 fi
4812 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4813 if test -n "$ac_ct_GNATMAKE"; then
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4815 $as_echo "$ac_ct_GNATMAKE" >&6; }
4816 else
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820
4821   if test "x$ac_ct_GNATMAKE" = x; then
4822     GNATMAKE="no"
4823   else
4824     case $cross_compiling:$ac_tool_warned in
4825 yes:)
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4828 ac_tool_warned=yes ;;
4829 esac
4830     GNATMAKE=$ac_ct_GNATMAKE
4831   fi
4832 else
4833   GNATMAKE="$ac_cv_prog_GNATMAKE"
4834 fi
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4837 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4838 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4839   $as_echo_n "(cached) " >&6
4840 else
4841   cat >conftest.adb <<EOF
4842 procedure conftest is begin null; end conftest;
4843 EOF
4844 acx_cv_cc_gcc_supports_ada=no
4845 # There is a bug in old released versions of GCC which causes the
4846 # driver to exit successfully when the appropriate language module
4847 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4848 # Therefore we must check for the error message as well as an
4849 # unsuccessful exit.
4850 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4851 # given a .adb file, but produce no object file.  So we must check
4852 # if an object file was really produced to guard against this.
4853 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4854 if test x"$errors" = x && test -f conftest.$ac_objext; then
4855   acx_cv_cc_gcc_supports_ada=yes
4856 fi
4857 rm -f conftest.*
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4860 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4861
4862 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4863   have_gnat=yes
4864 else
4865   have_gnat=no
4866 fi
4867
4868
4869 # autoconf is lame and doesn't give us any substitution variable for this.
4870 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4871   NO_MINUS_C_MINUS_O=yes
4872 else
4873   OUTPUT_OPTION='-o $@'
4874 fi
4875
4876
4877
4878 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4879 # optimizations to be activated explicitly by the toplevel.
4880 case "$CC" in
4881   */prev-gcc/xgcc*) ;;
4882   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4883 esac
4884
4885
4886 # Determine PICFLAG for target gnatlib.
4887
4888
4889
4890
4891 case "${target}" in
4892     # PIC is the default on some targets or must not be used.
4893     *-*-darwin*)
4894         # PIC is the default on this platform
4895         # Common symbols not allowed in MH_DYLIB files
4896         PICFLAG_FOR_TARGET=-fno-common
4897         ;;
4898     alpha*-dec-osf5*)
4899         # PIC is the default.
4900         ;;
4901     hppa*64*-*-hpux*)
4902         # PIC is the default for 64-bit PA HP-UX.
4903         ;;
4904     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4905         ;;
4906     i[34567]86-*-interix3*)
4907         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4908         # Instead, we relocate shared libraries at runtime.
4909         ;;
4910     i[34567]86-*-nto-qnx*)
4911         # QNX uses GNU C++, but need to define -shared option too, otherwise
4912         # it will coredump.
4913         PICFLAG_FOR_TARGET='-fPIC -shared'
4914         ;;
4915     i[34567]86-pc-msdosdjgpp*)
4916         # DJGPP does not support shared libraries at all.
4917         ;;
4918     ia64*-*-hpux*)
4919         # On IA64 HP-UX, PIC is the default but the pic flag
4920         # sets the default TLS model and affects inlining.
4921         PICFLAG_FOR_TARGET=-fPIC
4922         ;;
4923     mips-sgi-irix6*)
4924         # PIC is the default.
4925         ;;
4926     rs6000-ibm-aix* | powerpc-ibm-aix*)
4927         # All AIX code is PIC.
4928         ;;
4929
4930     # Some targets support both -fPIC and -fpic, but prefer the latter.
4931     # FIXME: Why?
4932     i[34567]86-*-* | x86_64-*-*)
4933         PICFLAG_FOR_TARGET=-fpic
4934         ;;
4935     m68k-*-*)
4936         PICFLAG_FOR_TARGET=-fpic
4937         ;;
4938     # FIXME: Override -fPIC default in libgcc only?
4939     sh-*-linux* | sh[2346lbe]*-*-linux*)
4940         PICFLAG_FOR_TARGET=-fpic
4941         ;;
4942     # FIXME: Simplify to sh*-*-netbsd*?
4943     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4944       sh64-*-netbsd* | sh64l*-*-netbsd*)
4945         PICFLAG_FOR_TARGET=-fpic
4946         ;;
4947     # Default to -fPIC unless specified otherwise.
4948     *)
4949         PICFLAG_FOR_TARGET=-fPIC
4950         ;;
4951 esac
4952
4953 # If the user explicitly uses -fpic/-fPIC, keep that.
4954 case "${CFLAGS_FOR_TARGET}" in
4955     *-fpic*)
4956         PICFLAG_FOR_TARGET=-fpic
4957         ;;
4958     *-fPIC*)
4959         PICFLAG_FOR_TARGET=-fPIC
4960         ;;
4961 esac
4962
4963
4964
4965 # -------------------------
4966 # Check C compiler features
4967 # -------------------------
4968
4969
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4977 # On Suns, sometimes $CPP names a directory.
4978 if test -n "$CPP" && test -d "$CPP"; then
4979   CPP=
4980 fi
4981 if test -z "$CPP"; then
4982   if test "${ac_cv_prog_CPP+set}" = set; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985       # Double quotes because CPP needs to be expanded
4986     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987     do
4988       ac_preproc_ok=false
4989 for ac_c_preproc_warn_flag in '' yes
4990 do
4991   # Use a header file that comes with gcc, so configuring glibc
4992   # with a fresh cross-compiler works.
4993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994   # <limits.h> exists even on freestanding compilers.
4995   # On the NeXT, cc -E runs the code through the compiler's parser,
4996   # not just through cpp. "Syntax error" is here to catch this case.
4997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h.  */
4999 #ifdef __STDC__
5000 # include <limits.h>
5001 #else
5002 # include <assert.h>
5003 #endif
5004                      Syntax error
5005 _ACEOF
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007
5008 else
5009   # Broken: fails on valid input.
5010 continue
5011 fi
5012 rm -f conftest.err conftest.$ac_ext
5013
5014   # OK, works on sane cases.  Now check whether nonexistent headers
5015   # can be detected and how.
5016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h.  */
5018 #include <ac_nonexistent.h>
5019 _ACEOF
5020 if ac_fn_c_try_cpp "$LINENO"; then :
5021   # Broken: success on invalid input.
5022 continue
5023 else
5024   # Passes both tests.
5025 ac_preproc_ok=:
5026 break
5027 fi
5028 rm -f conftest.err conftest.$ac_ext
5029
5030 done
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.$ac_ext
5033 if $ac_preproc_ok; then :
5034   break
5035 fi
5036
5037     done
5038     ac_cv_prog_CPP=$CPP
5039
5040 fi
5041   CPP=$ac_cv_prog_CPP
5042 else
5043   ac_cv_prog_CPP=$CPP
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5046 $as_echo "$CPP" >&6; }
5047 ac_preproc_ok=false
5048 for ac_c_preproc_warn_flag in '' yes
5049 do
5050   # Use a header file that comes with gcc, so configuring glibc
5051   # with a fresh cross-compiler works.
5052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053   # <limits.h> exists even on freestanding compilers.
5054   # On the NeXT, cc -E runs the code through the compiler's parser,
5055   # not just through cpp. "Syntax error" is here to catch this case.
5056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h.  */
5058 #ifdef __STDC__
5059 # include <limits.h>
5060 #else
5061 # include <assert.h>
5062 #endif
5063                      Syntax error
5064 _ACEOF
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5066
5067 else
5068   # Broken: fails on valid input.
5069 continue
5070 fi
5071 rm -f conftest.err conftest.$ac_ext
5072
5073   # OK, works on sane cases.  Now check whether nonexistent headers
5074   # can be detected and how.
5075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h.  */
5077 #include <ac_nonexistent.h>
5078 _ACEOF
5079 if ac_fn_c_try_cpp "$LINENO"; then :
5080   # Broken: success on invalid input.
5081 continue
5082 else
5083   # Passes both tests.
5084 ac_preproc_ok=:
5085 break
5086 fi
5087 rm -f conftest.err conftest.$ac_ext
5088
5089 done
5090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5091 rm -f conftest.err conftest.$ac_ext
5092 if $ac_preproc_ok; then :
5093
5094 else
5095   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5097 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5098 See \`config.log' for more details." "$LINENO" 5; }
5099 fi
5100
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5109 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5110 if test "${ac_cv_path_GREP+set}" = set; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test -z "$GREP"; then
5114   ac_path_GREP_found=false
5115   # Loop through the user's path and test for each of PROGNAME-LIST
5116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_prog in grep ggrep; do
5122     for ac_exec_ext in '' $ac_executable_extensions; do
5123       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5124       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5125 # Check for GNU ac_path_GREP and select it if it is found.
5126   # Check for GNU $ac_path_GREP
5127 case `"$ac_path_GREP" --version 2>&1` in
5128 *GNU*)
5129   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5130 *)
5131   ac_count=0
5132   $as_echo_n 0123456789 >"conftest.in"
5133   while :
5134   do
5135     cat "conftest.in" "conftest.in" >"conftest.tmp"
5136     mv "conftest.tmp" "conftest.in"
5137     cp "conftest.in" "conftest.nl"
5138     $as_echo 'GREP' >> "conftest.nl"
5139     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141     as_fn_arith $ac_count + 1 && ac_count=$as_val
5142     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5143       # Best one so far, save it but keep looking for a better one
5144       ac_cv_path_GREP="$ac_path_GREP"
5145       ac_path_GREP_max=$ac_count
5146     fi
5147     # 10*(2^10) chars as input seems more than enough
5148     test $ac_count -gt 10 && break
5149   done
5150   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5151 esac
5152
5153       $ac_path_GREP_found && break 3
5154     done
5155   done
5156   done
5157 IFS=$as_save_IFS
5158   if test -z "$ac_cv_path_GREP"; then
5159     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160   fi
5161 else
5162   ac_cv_path_GREP=$GREP
5163 fi
5164
5165 fi
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5167 $as_echo "$ac_cv_path_GREP" >&6; }
5168  GREP="$ac_cv_path_GREP"
5169
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5172 $as_echo_n "checking for egrep... " >&6; }
5173 if test "${ac_cv_path_EGREP+set}" = set; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5177    then ac_cv_path_EGREP="$GREP -E"
5178    else
5179      if test -z "$EGREP"; then
5180   ac_path_EGREP_found=false
5181   # Loop through the user's path and test for each of PROGNAME-LIST
5182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5184 do
5185   IFS=$as_save_IFS
5186   test -z "$as_dir" && as_dir=.
5187     for ac_prog in egrep; do
5188     for ac_exec_ext in '' $ac_executable_extensions; do
5189       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5190       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5191 # Check for GNU ac_path_EGREP and select it if it is found.
5192   # Check for GNU $ac_path_EGREP
5193 case `"$ac_path_EGREP" --version 2>&1` in
5194 *GNU*)
5195   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5196 *)
5197   ac_count=0
5198   $as_echo_n 0123456789 >"conftest.in"
5199   while :
5200   do
5201     cat "conftest.in" "conftest.in" >"conftest.tmp"
5202     mv "conftest.tmp" "conftest.in"
5203     cp "conftest.in" "conftest.nl"
5204     $as_echo 'EGREP' >> "conftest.nl"
5205     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207     as_fn_arith $ac_count + 1 && ac_count=$as_val
5208     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209       # Best one so far, save it but keep looking for a better one
5210       ac_cv_path_EGREP="$ac_path_EGREP"
5211       ac_path_EGREP_max=$ac_count
5212     fi
5213     # 10*(2^10) chars as input seems more than enough
5214     test $ac_count -gt 10 && break
5215   done
5216   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217 esac
5218
5219       $ac_path_EGREP_found && break 3
5220     done
5221   done
5222   done
5223 IFS=$as_save_IFS
5224   if test -z "$ac_cv_path_EGREP"; then
5225     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226   fi
5227 else
5228   ac_cv_path_EGREP=$EGREP
5229 fi
5230
5231    fi
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5234 $as_echo "$ac_cv_path_EGREP" >&6; }
5235  EGREP="$ac_cv_path_EGREP"
5236
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5239 $as_echo_n "checking for ANSI C header files... " >&6; }
5240 if test "${ac_cv_header_stdc+set}" = set; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h.  */
5245 #include <stdlib.h>
5246 #include <stdarg.h>
5247 #include <string.h>
5248 #include <float.h>
5249
5250 int
5251 main ()
5252 {
5253
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259   ac_cv_header_stdc=yes
5260 else
5261   ac_cv_header_stdc=no
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264
5265 if test $ac_cv_header_stdc = yes; then
5266   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h.  */
5269 #include <string.h>
5270
5271 _ACEOF
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273   $EGREP "memchr" >/dev/null 2>&1; then :
5274
5275 else
5276   ac_cv_header_stdc=no
5277 fi
5278 rm -f conftest*
5279
5280 fi
5281
5282 if test $ac_cv_header_stdc = yes; then
5283   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 #include <stdlib.h>
5287
5288 _ACEOF
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290   $EGREP "free" >/dev/null 2>&1; then :
5291
5292 else
5293   ac_cv_header_stdc=no
5294 fi
5295 rm -f conftest*
5296
5297 fi
5298
5299 if test $ac_cv_header_stdc = yes; then
5300   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301   if test "$cross_compiling" = yes; then :
5302   :
5303 else
5304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h.  */
5306 #include <ctype.h>
5307 #include <stdlib.h>
5308 #if ((' ' & 0x0FF) == 0x020)
5309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5311 #else
5312 # define ISLOWER(c) \
5313                    (('a' <= (c) && (c) <= 'i') \
5314                      || ('j' <= (c) && (c) <= 'r') \
5315                      || ('s' <= (c) && (c) <= 'z'))
5316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5317 #endif
5318
5319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5320 int
5321 main ()
5322 {
5323   int i;
5324   for (i = 0; i < 256; i++)
5325     if (XOR (islower (i), ISLOWER (i))
5326         || toupper (i) != TOUPPER (i))
5327       return 2;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_run "$LINENO"; then :
5332
5333 else
5334   ac_cv_header_stdc=no
5335 fi
5336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5337   conftest.$ac_objext conftest.beam conftest.$ac_ext
5338 fi
5339
5340 fi
5341 fi
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5343 $as_echo "$ac_cv_header_stdc" >&6; }
5344 if test $ac_cv_header_stdc = yes; then
5345
5346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5347
5348 fi
5349
5350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5352                   inttypes.h stdint.h unistd.h
5353 do :
5354   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5356 "
5357 eval as_val=\$$as_ac_Header
5358    if test "x$as_val" = x""yes; then :
5359   cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 _ACEOF
5362
5363 fi
5364
5365 done
5366
5367
5368
5369   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5370 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5371   MINIX=yes
5372 else
5373   MINIX=
5374 fi
5375
5376
5377   if test "$MINIX" = yes; then
5378
5379 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5380
5381
5382 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5383
5384
5385 $as_echo "#define _MINIX 1" >>confdefs.h
5386
5387   fi
5388
5389
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5391 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5392 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h.  */
5397
5398 #         define __EXTENSIONS__ 1
5399           $ac_includes_default
5400 int
5401 main ()
5402 {
5403
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409   ac_cv_safe_to_define___extensions__=yes
5410 else
5411   ac_cv_safe_to_define___extensions__=no
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5416 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5417   test $ac_cv_safe_to_define___extensions__ = yes &&
5418     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5419
5420   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5421
5422   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5423
5424   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5425
5426   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5427
5428
5429 ac_ext=c
5430 ac_cpp='$CPP $CPPFLAGS'
5431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5435 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5436 # On Suns, sometimes $CPP names a directory.
5437 if test -n "$CPP" && test -d "$CPP"; then
5438   CPP=
5439 fi
5440 if test -z "$CPP"; then
5441   if test "${ac_cv_prog_CPP+set}" = set; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444       # Double quotes because CPP needs to be expanded
5445     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5446     do
5447       ac_preproc_ok=false
5448 for ac_c_preproc_warn_flag in '' yes
5449 do
5450   # Use a header file that comes with gcc, so configuring glibc
5451   # with a fresh cross-compiler works.
5452   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453   # <limits.h> exists even on freestanding compilers.
5454   # On the NeXT, cc -E runs the code through the compiler's parser,
5455   # not just through cpp. "Syntax error" is here to catch this case.
5456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h.  */
5458 #ifdef __STDC__
5459 # include <limits.h>
5460 #else
5461 # include <assert.h>
5462 #endif
5463                      Syntax error
5464 _ACEOF
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5466
5467 else
5468   # Broken: fails on valid input.
5469 continue
5470 fi
5471 rm -f conftest.err conftest.$ac_ext
5472
5473   # OK, works on sane cases.  Now check whether nonexistent headers
5474   # can be detected and how.
5475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h.  */
5477 #include <ac_nonexistent.h>
5478 _ACEOF
5479 if ac_fn_c_try_cpp "$LINENO"; then :
5480   # Broken: success on invalid input.
5481 continue
5482 else
5483   # Passes both tests.
5484 ac_preproc_ok=:
5485 break
5486 fi
5487 rm -f conftest.err conftest.$ac_ext
5488
5489 done
5490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5491 rm -f conftest.err conftest.$ac_ext
5492 if $ac_preproc_ok; then :
5493   break
5494 fi
5495
5496     done
5497     ac_cv_prog_CPP=$CPP
5498
5499 fi
5500   CPP=$ac_cv_prog_CPP
5501 else
5502   ac_cv_prog_CPP=$CPP
5503 fi
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5505 $as_echo "$CPP" >&6; }
5506 ac_preproc_ok=false
5507 for ac_c_preproc_warn_flag in '' yes
5508 do
5509   # Use a header file that comes with gcc, so configuring glibc
5510   # with a fresh cross-compiler works.
5511   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512   # <limits.h> exists even on freestanding compilers.
5513   # On the NeXT, cc -E runs the code through the compiler's parser,
5514   # not just through cpp. "Syntax error" is here to catch this case.
5515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h.  */
5517 #ifdef __STDC__
5518 # include <limits.h>
5519 #else
5520 # include <assert.h>
5521 #endif
5522                      Syntax error
5523 _ACEOF
5524 if ac_fn_c_try_cpp "$LINENO"; then :
5525
5526 else
5527   # Broken: fails on valid input.
5528 continue
5529 fi
5530 rm -f conftest.err conftest.$ac_ext
5531
5532   # OK, works on sane cases.  Now check whether nonexistent headers
5533   # can be detected and how.
5534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h.  */
5536 #include <ac_nonexistent.h>
5537 _ACEOF
5538 if ac_fn_c_try_cpp "$LINENO"; then :
5539   # Broken: success on invalid input.
5540 continue
5541 else
5542   # Passes both tests.
5543 ac_preproc_ok=:
5544 break
5545 fi
5546 rm -f conftest.err conftest.$ac_ext
5547
5548 done
5549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5550 rm -f conftest.err conftest.$ac_ext
5551 if $ac_preproc_ok; then :
5552
5553 else
5554   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5556 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5557 See \`config.log' for more details." "$LINENO" 5; }
5558 fi
5559
5560 ac_ext=c
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5567 $as_echo_n "checking for inline... " >&6; }
5568 if test "${ac_cv_c_inline+set}" = set; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   ac_cv_c_inline=no
5572 for ac_kw in inline __inline__ __inline; do
5573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h.  */
5575 #ifndef __cplusplus
5576 typedef int foo_t;
5577 static $ac_kw foo_t static_foo () {return 0; }
5578 $ac_kw foo_t foo () {return 0; }
5579 #endif
5580
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583   ac_cv_c_inline=$ac_kw
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586   test "$ac_cv_c_inline" != no && break
5587 done
5588
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5591 $as_echo "$ac_cv_c_inline" >&6; }
5592
5593 case $ac_cv_c_inline in
5594   inline | yes) ;;
5595   *)
5596     case $ac_cv_c_inline in
5597       no) ac_val=;;
5598       *) ac_val=$ac_cv_c_inline;;
5599     esac
5600     cat >>confdefs.h <<_ACEOF
5601 #ifndef __cplusplus
5602 #define inline $ac_val
5603 #endif
5604 _ACEOF
5605     ;;
5606 esac
5607
5608
5609 # Check whether --enable-largefile was given.
5610 if test "${enable_largefile+set}" = set; then :
5611   enableval=$enable_largefile;
5612 fi
5613
5614 if test "$enable_largefile" != no; then
5615
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5617 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5618 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   ac_cv_sys_largefile_CC=no
5622      if test "$GCC" != yes; then
5623        ac_save_CC=$CC
5624        while :; do
5625          # IRIX 6.2 and later do not support large files by default,
5626          # so use the C compiler's -n32 option if that helps.
5627          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h.  */
5629 #include <sys/types.h>
5630  /* Check that off_t can represent 2**63 - 1 correctly.
5631     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5632     since some C++ compilers masquerading as C compilers
5633     incorrectly reject 9223372036854775807.  */
5634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5635   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5636                        && LARGE_OFF_T % 2147483647 == 1)
5637                       ? 1 : -1];
5638 int
5639 main ()
5640 {
5641
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646          if ac_fn_c_try_compile "$LINENO"; then :
5647   break
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext
5650          CC="$CC -n32"
5651          if ac_fn_c_try_compile "$LINENO"; then :
5652   ac_cv_sys_largefile_CC=' -n32'; break
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext
5655          break
5656        done
5657        CC=$ac_save_CC
5658        rm -f conftest.$ac_ext
5659     fi
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5662 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5663   if test "$ac_cv_sys_largefile_CC" != no; then
5664     CC=$CC$ac_cv_sys_largefile_CC
5665   fi
5666
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5668 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5669 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5670   $as_echo_n "(cached) " >&6
5671 else
5672   while :; do
5673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h.  */
5675 #include <sys/types.h>
5676  /* Check that off_t can represent 2**63 - 1 correctly.
5677     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5678     since some C++ compilers masquerading as C compilers
5679     incorrectly reject 9223372036854775807.  */
5680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5681   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5682                        && LARGE_OFF_T % 2147483647 == 1)
5683                       ? 1 : -1];
5684 int
5685 main ()
5686 {
5687
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 if ac_fn_c_try_compile "$LINENO"; then :
5693   ac_cv_sys_file_offset_bits=no; break
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h.  */
5698 #define _FILE_OFFSET_BITS 64
5699 #include <sys/types.h>
5700  /* Check that off_t can represent 2**63 - 1 correctly.
5701     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5702     since some C++ compilers masquerading as C compilers
5703     incorrectly reject 9223372036854775807.  */
5704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5705   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5706                        && LARGE_OFF_T % 2147483647 == 1)
5707                       ? 1 : -1];
5708 int
5709 main ()
5710 {
5711
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717   ac_cv_sys_file_offset_bits=64; break
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720   ac_cv_sys_file_offset_bits=unknown
5721   break
5722 done
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5725 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5726 case $ac_cv_sys_file_offset_bits in #(
5727   no | unknown) ;;
5728   *)
5729 cat >>confdefs.h <<_ACEOF
5730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5731 _ACEOF
5732 ;;
5733 esac
5734 rm -rf conftest*
5735   if test $ac_cv_sys_file_offset_bits = unknown; then
5736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5737 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5738 if test "${ac_cv_sys_large_files+set}" = set; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741   while :; do
5742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h.  */
5744 #include <sys/types.h>
5745  /* Check that off_t can represent 2**63 - 1 correctly.
5746     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5747     since some C++ compilers masquerading as C compilers
5748     incorrectly reject 9223372036854775807.  */
5749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5750   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5751                        && LARGE_OFF_T % 2147483647 == 1)
5752                       ? 1 : -1];
5753 int
5754 main ()
5755 {
5756
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_compile "$LINENO"; then :
5762   ac_cv_sys_large_files=no; break
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h.  */
5767 #define _LARGE_FILES 1
5768 #include <sys/types.h>
5769  /* Check that off_t can represent 2**63 - 1 correctly.
5770     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771     since some C++ compilers masquerading as C compilers
5772     incorrectly reject 9223372036854775807.  */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775                        && LARGE_OFF_T % 2147483647 == 1)
5776                       ? 1 : -1];
5777 int
5778 main ()
5779 {
5780
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 if ac_fn_c_try_compile "$LINENO"; then :
5786   ac_cv_sys_large_files=1; break
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789   ac_cv_sys_large_files=unknown
5790   break
5791 done
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5794 $as_echo "$ac_cv_sys_large_files" >&6; }
5795 case $ac_cv_sys_large_files in #(
5796   no | unknown) ;;
5797   *)
5798 cat >>confdefs.h <<_ACEOF
5799 #define _LARGE_FILES $ac_cv_sys_large_files
5800 _ACEOF
5801 ;;
5802 esac
5803 rm -rf conftest*
5804   fi
5805 fi
5806
5807
5808 # sizeof(char) is 1 by definition.
5809 # The cast to long int works around a bug in the HP C Compiler
5810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5812 # This bug is HP SR number 8606223364.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5814 $as_echo_n "checking size of void *... " >&6; }
5815 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5816   $as_echo_n "(cached) " >&6
5817 else
5818   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5819
5820 else
5821   if test "$ac_cv_type_void_p" = yes; then
5822      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5824 { as_fn_set_status 77
5825 as_fn_error "cannot compute sizeof (void *)
5826 See \`config.log' for more details." "$LINENO" 5; }; }
5827    else
5828      ac_cv_sizeof_void_p=0
5829    fi
5830 fi
5831
5832 fi
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5834 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5835
5836
5837
5838 cat >>confdefs.h <<_ACEOF
5839 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5840 _ACEOF
5841
5842
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5848 $as_echo_n "checking size of short... " >&6; }
5849 if test "${ac_cv_sizeof_short+set}" = set; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5853
5854 else
5855   if test "$ac_cv_type_short" = yes; then
5856      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 { as_fn_set_status 77
5859 as_fn_error "cannot compute sizeof (short)
5860 See \`config.log' for more details." "$LINENO" 5; }; }
5861    else
5862      ac_cv_sizeof_short=0
5863    fi
5864 fi
5865
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5868 $as_echo "$ac_cv_sizeof_short" >&6; }
5869
5870
5871
5872 cat >>confdefs.h <<_ACEOF
5873 #define SIZEOF_SHORT $ac_cv_sizeof_short
5874 _ACEOF
5875
5876
5877 # The cast to long int works around a bug in the HP C Compiler
5878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5880 # This bug is HP SR number 8606223364.
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5882 $as_echo_n "checking size of int... " >&6; }
5883 if test "${ac_cv_sizeof_int+set}" = set; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5887
5888 else
5889   if test "$ac_cv_type_int" = yes; then
5890      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5892 { as_fn_set_status 77
5893 as_fn_error "cannot compute sizeof (int)
5894 See \`config.log' for more details." "$LINENO" 5; }; }
5895    else
5896      ac_cv_sizeof_int=0
5897    fi
5898 fi
5899
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5902 $as_echo "$ac_cv_sizeof_int" >&6; }
5903
5904
5905
5906 cat >>confdefs.h <<_ACEOF
5907 #define SIZEOF_INT $ac_cv_sizeof_int
5908 _ACEOF
5909
5910
5911 # The cast to long int works around a bug in the HP C Compiler
5912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5914 # This bug is HP SR number 8606223364.
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5916 $as_echo_n "checking size of long... " >&6; }
5917 if test "${ac_cv_sizeof_long+set}" = set; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5921
5922 else
5923   if test "$ac_cv_type_long" = yes; then
5924      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5926 { as_fn_set_status 77
5927 as_fn_error "cannot compute sizeof (long)
5928 See \`config.log' for more details." "$LINENO" 5; }; }
5929    else
5930      ac_cv_sizeof_long=0
5931    fi
5932 fi
5933
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5936 $as_echo "$ac_cv_sizeof_long" >&6; }
5937
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define SIZEOF_LONG $ac_cv_sizeof_long
5942 _ACEOF
5943
5944
5945 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5946 if test "x$ac_cv_type_long_long" = x""yes; then :
5947
5948 cat >>confdefs.h <<_ACEOF
5949 #define HAVE_LONG_LONG 1
5950 _ACEOF
5951
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5957 $as_echo_n "checking size of long long... " >&6; }
5958 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5962
5963 else
5964   if test "$ac_cv_type_long_long" = yes; then
5965      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status 77
5968 as_fn_error "cannot compute sizeof (long long)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5970    else
5971      ac_cv_sizeof_long_long=0
5972    fi
5973 fi
5974
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5977 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5978
5979
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5983 _ACEOF
5984
5985
5986 fi
5987
5988 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5989 if test "x$ac_cv_type___int64" = x""yes; then :
5990
5991 cat >>confdefs.h <<_ACEOF
5992 #define HAVE___INT64 1
5993 _ACEOF
5994
5995 # The cast to long int works around a bug in the HP C Compiler
5996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5998 # This bug is HP SR number 8606223364.
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6000 $as_echo_n "checking size of __int64... " >&6; }
6001 if test "${ac_cv_sizeof___int64+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
6005
6006 else
6007   if test "$ac_cv_type___int64" = yes; then
6008      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010 { as_fn_set_status 77
6011 as_fn_error "cannot compute sizeof (__int64)
6012 See \`config.log' for more details." "$LINENO" 5; }; }
6013    else
6014      ac_cv_sizeof___int64=0
6015    fi
6016 fi
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6020 $as_echo "$ac_cv_sizeof___int64" >&6; }
6021
6022
6023
6024 cat >>confdefs.h <<_ACEOF
6025 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6026 _ACEOF
6027
6028
6029 fi
6030
6031 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6032 case $ac_cv_c_int8_t in #(
6033   no|yes) ;; #(
6034   *)
6035
6036 cat >>confdefs.h <<_ACEOF
6037 #define int8_t $ac_cv_c_int8_t
6038 _ACEOF
6039 ;;
6040 esac
6041
6042 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6043 case $ac_cv_c_int16_t in #(
6044   no|yes) ;; #(
6045   *)
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define int16_t $ac_cv_c_int16_t
6049 _ACEOF
6050 ;;
6051 esac
6052
6053 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6054 case $ac_cv_c_int32_t in #(
6055   no|yes) ;; #(
6056   *)
6057
6058 cat >>confdefs.h <<_ACEOF
6059 #define int32_t $ac_cv_c_int32_t
6060 _ACEOF
6061 ;;
6062 esac
6063
6064 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6065 case $ac_cv_c_int64_t in #(
6066   no|yes) ;; #(
6067   *)
6068
6069 cat >>confdefs.h <<_ACEOF
6070 #define int64_t $ac_cv_c_int64_t
6071 _ACEOF
6072 ;;
6073 esac
6074
6075
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6077 $as_echo_n "checking for long long int... " >&6; }
6078 if test "${ac_cv_type_long_long_int+set}" = set; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h.  */
6083
6084   /* For now, do not test the preprocessor; as of 2007 there are too many
6085          implementations with broken preprocessors.  Perhaps this can
6086          be revisited in 2012.  In the meantime, code should not expect
6087          #if to work with literals wider than 32 bits.  */
6088       /* Test literals.  */
6089       long long int ll = 9223372036854775807ll;
6090       long long int nll = -9223372036854775807LL;
6091       unsigned long long int ull = 18446744073709551615ULL;
6092       /* Test constant expressions.   */
6093       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6094                      ? 1 : -1)];
6095       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6096                      ? 1 : -1)];
6097       int i = 63;
6098 int
6099 main ()
6100 {
6101 /* Test availability of runtime routines for shift and division.  */
6102       long long int llmax = 9223372036854775807ll;
6103       unsigned long long int ullmax = 18446744073709551615ull;
6104       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6105               | (llmax / ll) | (llmax % ll)
6106               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6107               | (ullmax / ull) | (ullmax % ull));
6108   ;
6109   return 0;
6110 }
6111
6112 _ACEOF
6113 if ac_fn_c_try_link "$LINENO"; then :
6114                         if test "$cross_compiling" = yes; then :
6115   ac_cv_type_long_long_int=yes
6116 else
6117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h.  */
6119 #include <limits.h>
6120                #ifndef LLONG_MAX
6121                # define HALF \
6122                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6123                # define LLONG_MAX (HALF - 1 + HALF)
6124                #endif
6125 int
6126 main ()
6127 {
6128 long long int n = 1;
6129                int i;
6130                for (i = 0; ; i++)
6131                  {
6132                    long long int m = n << i;
6133                    if (m >> i != n)
6134                      return 1;
6135                    if (LLONG_MAX / 2 < m)
6136                      break;
6137                  }
6138                return 0;
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_run "$LINENO"; then :
6144   ac_cv_type_long_long_int=yes
6145 else
6146   ac_cv_type_long_long_int=no
6147 fi
6148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6149   conftest.$ac_objext conftest.beam conftest.$ac_ext
6150 fi
6151
6152 else
6153   ac_cv_type_long_long_int=no
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext \
6156     conftest$ac_exeext conftest.$ac_ext
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6159 $as_echo "$ac_cv_type_long_long_int" >&6; }
6160   if test $ac_cv_type_long_long_int = yes; then
6161
6162 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6163
6164   fi
6165
6166
6167
6168   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6170
6171 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6172
6173 else
6174   test $ac_cv_type_long_long_int = yes \
6175        && ac_type='long long int' \
6176        || ac_type='long int'
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define intmax_t $ac_type
6180 _ACEOF
6181
6182 fi
6183
6184
6185
6186   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6188
6189 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6190
6191 else
6192   for ac_type in 'int' 'long int' 'long long int'; do
6193        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h.  */
6195 $ac_includes_default
6196 int
6197 main ()
6198 {
6199 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6200 test_array [0] = 0
6201
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 if ac_fn_c_try_compile "$LINENO"; then :
6207
6208 cat >>confdefs.h <<_ACEOF
6209 #define intptr_t $ac_type
6210 _ACEOF
6211
6212           ac_type=
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215        test -z "$ac_type" && break
6216      done
6217 fi
6218
6219
6220 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6221 case $ac_cv_c_uint8_t in #(
6222   no|yes) ;; #(
6223   *)
6224
6225 $as_echo "#define _UINT8_T 1" >>confdefs.h
6226
6227
6228 cat >>confdefs.h <<_ACEOF
6229 #define uint8_t $ac_cv_c_uint8_t
6230 _ACEOF
6231 ;;
6232   esac
6233
6234 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6235 case $ac_cv_c_uint16_t in #(
6236   no|yes) ;; #(
6237   *)
6238
6239
6240 cat >>confdefs.h <<_ACEOF
6241 #define uint16_t $ac_cv_c_uint16_t
6242 _ACEOF
6243 ;;
6244   esac
6245
6246 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6247 case $ac_cv_c_uint32_t in #(
6248   no|yes) ;; #(
6249   *)
6250
6251 $as_echo "#define _UINT32_T 1" >>confdefs.h
6252
6253
6254 cat >>confdefs.h <<_ACEOF
6255 #define uint32_t $ac_cv_c_uint32_t
6256 _ACEOF
6257 ;;
6258   esac
6259
6260 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6261 case $ac_cv_c_uint64_t in #(
6262   no|yes) ;; #(
6263   *)
6264
6265 $as_echo "#define _UINT64_T 1" >>confdefs.h
6266
6267
6268 cat >>confdefs.h <<_ACEOF
6269 #define uint64_t $ac_cv_c_uint64_t
6270 _ACEOF
6271 ;;
6272   esac
6273
6274
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6276 $as_echo_n "checking for unsigned long long int... " >&6; }
6277 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h.  */
6282
6283   /* For now, do not test the preprocessor; as of 2007 there are too many
6284          implementations with broken preprocessors.  Perhaps this can
6285          be revisited in 2012.  In the meantime, code should not expect
6286          #if to work with literals wider than 32 bits.  */
6287       /* Test literals.  */
6288       long long int ll = 9223372036854775807ll;
6289       long long int nll = -9223372036854775807LL;
6290       unsigned long long int ull = 18446744073709551615ULL;
6291       /* Test constant expressions.   */
6292       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6293                      ? 1 : -1)];
6294       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6295                      ? 1 : -1)];
6296       int i = 63;
6297 int
6298 main ()
6299 {
6300 /* Test availability of runtime routines for shift and division.  */
6301       long long int llmax = 9223372036854775807ll;
6302       unsigned long long int ullmax = 18446744073709551615ull;
6303       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6304               | (llmax / ll) | (llmax % ll)
6305               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6306               | (ullmax / ull) | (ullmax % ull));
6307   ;
6308   return 0;
6309 }
6310
6311 _ACEOF
6312 if ac_fn_c_try_link "$LINENO"; then :
6313   ac_cv_type_unsigned_long_long_int=yes
6314 else
6315   ac_cv_type_unsigned_long_long_int=no
6316 fi
6317 rm -f core conftest.err conftest.$ac_objext \
6318     conftest$ac_exeext conftest.$ac_ext
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6321 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6322   if test $ac_cv_type_unsigned_long_long_int = yes; then
6323
6324 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6325
6326   fi
6327
6328
6329
6330   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6331 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6332
6333 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6334
6335 else
6336   test $ac_cv_type_unsigned_long_long_int = yes \
6337        && ac_type='unsigned long long int' \
6338        || ac_type='unsigned long int'
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define uintmax_t $ac_type
6342 _ACEOF
6343
6344 fi
6345
6346
6347
6348   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6349 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6350
6351 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6352
6353 else
6354   for ac_type in 'unsigned int' 'unsigned long int' \
6355         'unsigned long long int'; do
6356        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h.  */
6358 $ac_includes_default
6359 int
6360 main ()
6361 {
6362 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6363 test_array [0] = 0
6364
6365   ;
6366   return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_c_try_compile "$LINENO"; then :
6370
6371 cat >>confdefs.h <<_ACEOF
6372 #define uintptr_t $ac_type
6373 _ACEOF
6374
6375           ac_type=
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378        test -z "$ac_type" && break
6379      done
6380 fi
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 # ---------------------
6397 # Warnings and checking
6398 # ---------------------
6399
6400 # Check $CC warning features (if it's GCC).
6401 # We want to use -pedantic, but we don't want warnings about
6402 # * 'long long'
6403 # * variadic macros
6404 # * overlong strings
6405 # * C++11 narrowing conversions in { }
6406 # So, we only use -pedantic if we can disable those warnings.
6407
6408 loose_warn=
6409 save_CFLAGS="$CFLAGS"
6410 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6411   # Do the check with the no- prefix removed since gcc silently
6412   # accepts any -Wno-* option on purpose
6413   case $real_option in
6414     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6415     *) option=$real_option ;;
6416   esac
6417   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6418
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6420 $as_echo_n "checking whether $CC supports $option... " >&6; }
6421 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6422   $as_echo_n "(cached) " >&6
6423 else
6424   CFLAGS="$option"
6425     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h.  */
6427
6428 int
6429 main ()
6430 {
6431
6432   ;
6433   return 0;
6434 }
6435 _ACEOF
6436 if ac_fn_c_try_compile "$LINENO"; then :
6437   eval "$as_acx_Woption=yes"
6438 else
6439   eval "$as_acx_Woption=no"
6440 fi
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442
6443 fi
6444 eval ac_res=\$$as_acx_Woption
6445                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6446 $as_echo "$ac_res" >&6; }
6447   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6448   loose_warn="$loose_warn${loose_warn:+ }$real_option"
6449 fi
6450   done
6451 CFLAGS="$save_CFLAGS"
6452
6453 c_loose_warn=
6454 save_CFLAGS="$CFLAGS"
6455 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6456   # Do the check with the no- prefix removed since gcc silently
6457   # accepts any -Wno-* option on purpose
6458   case $real_option in
6459     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6460     *) option=$real_option ;;
6461   esac
6462   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6463
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6465 $as_echo_n "checking whether $CC supports $option... " >&6; }
6466 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6467   $as_echo_n "(cached) " >&6
6468 else
6469   CFLAGS="$option"
6470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h.  */
6472
6473 int
6474 main ()
6475 {
6476
6477   ;
6478   return 0;
6479 }
6480 _ACEOF
6481 if ac_fn_c_try_compile "$LINENO"; then :
6482   eval "$as_acx_Woption=yes"
6483 else
6484   eval "$as_acx_Woption=no"
6485 fi
6486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487
6488 fi
6489 eval ac_res=\$$as_acx_Woption
6490                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6491 $as_echo "$ac_res" >&6; }
6492   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6493   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6494 fi
6495   done
6496 CFLAGS="$save_CFLAGS"
6497
6498 strict_warn=
6499 save_CFLAGS="$CFLAGS"
6500 for real_option in -Wmissing-format-attribute; do
6501   # Do the check with the no- prefix removed since gcc silently
6502   # accepts any -Wno-* option on purpose
6503   case $real_option in
6504     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6505     *) option=$real_option ;;
6506   esac
6507   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6508
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6510 $as_echo_n "checking whether $CC supports $option... " >&6; }
6511 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6512   $as_echo_n "(cached) " >&6
6513 else
6514   CFLAGS="$option"
6515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h.  */
6517
6518 int
6519 main ()
6520 {
6521
6522   ;
6523   return 0;
6524 }
6525 _ACEOF
6526 if ac_fn_c_try_compile "$LINENO"; then :
6527   eval "$as_acx_Woption=yes"
6528 else
6529   eval "$as_acx_Woption=no"
6530 fi
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532
6533 fi
6534 eval ac_res=\$$as_acx_Woption
6535                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6536 $as_echo "$ac_res" >&6; }
6537   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6538   strict_warn="$strict_warn${strict_warn:+ }$real_option"
6539 fi
6540   done
6541 CFLAGS="$save_CFLAGS"
6542
6543 c_strict_warn=
6544 save_CFLAGS="$CFLAGS"
6545 for real_option in -Wold-style-definition -Wc++-compat; do
6546   # Do the check with the no- prefix removed since gcc silently
6547   # accepts any -Wno-* option on purpose
6548   case $real_option in
6549     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6550     *) option=$real_option ;;
6551   esac
6552   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6553
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6555 $as_echo_n "checking whether $CC supports $option... " >&6; }
6556 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559   CFLAGS="$option"
6560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h.  */
6562
6563 int
6564 main ()
6565 {
6566
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 if ac_fn_c_try_compile "$LINENO"; then :
6572   eval "$as_acx_Woption=yes"
6573 else
6574   eval "$as_acx_Woption=no"
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577
6578 fi
6579 eval ac_res=\$$as_acx_Woption
6580                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6581 $as_echo "$ac_res" >&6; }
6582   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6583   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6584 fi
6585   done
6586 CFLAGS="$save_CFLAGS"
6587
6588 # Do the check with the no- prefix removed from the warning options
6589 # since gcc silently accepts any -Wno-* option on purpose
6590 if test "$GCC" = yes; then :
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6592 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6593 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6594   $as_echo_n "(cached) " >&6
6595 else
6596   save_CFLAGS="$CFLAGS"
6597 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h.  */
6600
6601 int
6602 main ()
6603 {
6604
6605   ;
6606   return 0;
6607 }
6608 _ACEOF
6609 if ac_fn_c_try_compile "$LINENO"; then :
6610   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6611 else
6612   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 CFLAGS="$save_CFLAGS"
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6618 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6619 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6620   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6621 fi
6622
6623 fi
6624
6625 # Check whether --enable-werror-always was given.
6626 if test "${enable_werror_always+set}" = set; then :
6627   enableval=$enable_werror_always;
6628 else
6629   enable_werror_always=no
6630 fi
6631
6632 if test $enable_werror_always = yes; then :
6633   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6634 fi
6635
6636
6637
6638 # The above macros do nothing if the compiler is not GCC.  However, the
6639 # Makefile has more goo to add other flags, so these variables are used
6640 # to enable warnings only for GCC.
6641 warn_cflags=
6642 warn_cxxflags=
6643 if test "x$GCC" = "xyes"; then
6644   warn_cflags='$(GCC_WARN_CFLAGS)'
6645   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6646 fi
6647
6648
6649
6650 # Disable exceptions and RTTI if building with g++
6651 noexception_flags=
6652 save_CFLAGS="$CFLAGS"
6653 for real_option in -fno-exceptions -fno-rtti; do
6654   # Do the check with the no- prefix removed since gcc silently
6655   # accepts any -Wno-* option on purpose
6656   case $real_option in
6657     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6658     *) option=$real_option ;;
6659   esac
6660   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6661
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6663 $as_echo_n "checking whether $CC supports $option... " >&6; }
6664 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   CFLAGS="$option"
6668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h.  */
6670
6671 int
6672 main ()
6673 {
6674
6675   ;
6676   return 0;
6677 }
6678 _ACEOF
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680   eval "$as_acx_Woption=yes"
6681 else
6682   eval "$as_acx_Woption=no"
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685
6686 fi
6687 eval ac_res=\$$as_acx_Woption
6688                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6689 $as_echo "$ac_res" >&6; }
6690   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6691   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6692 fi
6693   done
6694 CFLAGS="$save_CFLAGS"
6695
6696
6697 # Enable expensive internal checks
6698 is_release=
6699 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6700   is_release=yes
6701 fi
6702
6703 # Check whether --enable-checking was given.
6704 if test "${enable_checking+set}" = set; then :
6705   enableval=$enable_checking; ac_checking_flags="${enableval}"
6706 else
6707
6708 # Determine the default checks.
6709 if test x$is_release = x ; then
6710   ac_checking_flags=yes
6711 else
6712   ac_checking_flags=release
6713 fi
6714 fi
6715
6716 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6717 for check in release $ac_checking_flags
6718 do
6719         case $check in
6720         # these set all the flags to specific states
6721         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6722                         ac_fold_checking= ; ac_gc_checking=1 ;
6723                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6724                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6725                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6726                         ac_types_checking=1 ;;
6727         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6728                         ac_fold_checking= ; ac_gc_checking= ;
6729                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6730                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6731                         ac_tree_checking= ; ac_valgrind_checking= ;
6732                         ac_types_checking= ;;
6733         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6734                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6735                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6736                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6737                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6738                         ac_types_checking=1 ;;
6739         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6740                         ac_fold_checking= ; ac_gc_checking= ;
6741                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6742                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6743                         ac_tree_checking= ; ac_valgrind_checking= ;
6744                         ac_types_checking= ;;
6745         # these enable particular checks
6746         assert)         ac_assert_checking=1 ;;
6747         df)             ac_df_checking=1 ;;
6748         fold)           ac_fold_checking=1 ;;
6749         gc)             ac_gc_checking=1 ;;
6750         gcac)           ac_gc_always_collect=1 ;;
6751         gimple)         ac_gimple_checking=1 ;;
6752         misc)           ac_checking=1 ;;
6753         rtl)            ac_rtl_checking=1 ;;
6754         rtlflag)        ac_rtlflag_checking=1 ;;
6755         runtime)        ac_runtime_checking=1 ;;
6756         tree)           ac_tree_checking=1 ;;
6757         types)          ac_types_checking=1 ;;
6758         valgrind)       ac_valgrind_checking=1 ;;
6759         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6760         esac
6761 done
6762 IFS="$ac_save_IFS"
6763
6764 nocommon_flag=""
6765 if test x$ac_checking != x ; then
6766
6767 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6768
6769   nocommon_flag=-fno-common
6770 fi
6771
6772 if test x$ac_df_checking != x ; then
6773
6774 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6775
6776 fi
6777 if test x$ac_assert_checking != x ; then
6778
6779 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6780
6781 fi
6782 if test x$ac_gimple_checking != x ; then
6783
6784 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6785
6786 fi
6787
6788 if test x$ac_runtime_checking != x ; then
6789
6790 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6791
6792 fi
6793 if test x$ac_tree_checking != x ; then
6794
6795 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6796
6797   TREEBROWSER=tree-browser.o
6798 fi
6799 if test x$ac_types_checking != x ; then
6800
6801 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6802
6803 fi
6804
6805 if test x$ac_rtl_checking != x ; then
6806
6807 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6808
6809 fi
6810 if test x$ac_rtlflag_checking != x ; then
6811
6812 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6813
6814 fi
6815 if test x$ac_gc_checking != x ; then
6816
6817 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6818
6819 fi
6820 if test x$ac_gc_always_collect != x ; then
6821
6822 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6823
6824 fi
6825 if test x$ac_fold_checking != x ; then
6826
6827 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6828
6829 fi
6830 valgrind_path_defines=
6831 valgrind_command=
6832
6833 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6835   have_valgrind_h=yes
6836 else
6837   have_valgrind_h=no
6838 fi
6839
6840
6841
6842 if test x$ac_valgrind_checking != x ; then
6843   # It is certainly possible that there's valgrind but no valgrind.h.
6844   # GCC relies on making annotations so we must have both.
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6846 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h.  */
6849 #include <valgrind/memcheck.h>
6850 #ifndef VALGRIND_DISCARD
6851 #error VALGRIND_DISCARD not defined
6852 #endif
6853 _ACEOF
6854 if ac_fn_c_try_cpp "$LINENO"; then :
6855   gcc_cv_header_valgrind_memcheck_h=yes
6856 else
6857   gcc_cv_header_valgrind_memcheck_h=no
6858 fi
6859 rm -f conftest.err conftest.$ac_ext
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6861 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6863 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h.  */
6866 #include <memcheck.h>
6867 #ifndef VALGRIND_DISCARD
6868 #error VALGRIND_DISCARD not defined
6869 #endif
6870 _ACEOF
6871 if ac_fn_c_try_cpp "$LINENO"; then :
6872   gcc_cv_header_memcheck_h=yes
6873 else
6874   gcc_cv_header_memcheck_h=no
6875 fi
6876 rm -f conftest.err conftest.$ac_ext
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6878 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6879
6880 # Prepare PATH_SEPARATOR.
6881 # The user is always right.
6882 if test "${PATH_SEPARATOR+set}" != set; then
6883   echo "#! /bin/sh" >conf$$.sh
6884   echo  "exit 0"   >>conf$$.sh
6885   chmod +x conf$$.sh
6886   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6887     PATH_SEPARATOR=';'
6888   else
6889     PATH_SEPARATOR=:
6890   fi
6891   rm -f conf$$.sh
6892 fi
6893
6894 # Find out how to test for executable files. Don't use a zero-byte file,
6895 # as systems may use methods other than mode bits to determine executability.
6896 cat >conf$$.file <<_ASEOF
6897 #! /bin/sh
6898 exit 0
6899 _ASEOF
6900 chmod +x conf$$.file
6901 if test -x conf$$.file >/dev/null 2>&1; then
6902   ac_executable_p="test -x"
6903 else
6904   ac_executable_p="test -f"
6905 fi
6906 rm -f conf$$.file
6907
6908 # Extract the first word of "valgrind", so it can be a program name with args.
6909 set dummy valgrind; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   case "$valgrind_path" in
6916   [\\/]* | ?:[\\/]*)
6917     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6918     ;;
6919   *)
6920     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6921     for ac_dir in $PATH; do
6922       IFS="$ac_save_IFS"
6923       test -z "$ac_dir" && ac_dir=.
6924       for ac_exec_ext in '' $ac_executable_extensions; do
6925         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6926           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6927             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6928             break 2
6929           fi
6930         fi
6931       done
6932     done
6933     IFS="$ac_save_IFS"
6934     ;;
6935 esac
6936 fi
6937 valgrind_path="$ac_cv_path_valgrind_path"
6938 if test -n "$valgrind_path"; then
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6940 $as_echo "$valgrind_path" >&6; }
6941 else
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946   if test "x$valgrind_path" = "x" \
6947     || (test $have_valgrind_h = no \
6948         && test $gcc_cv_header_memcheck_h = no \
6949         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6950         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6951   fi
6952   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6953   valgrind_command="$valgrind_path -q"
6954
6955 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6956
6957   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6958
6959 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6960
6961   fi
6962   if test $gcc_cv_header_memcheck_h = yes; then
6963
6964 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6965
6966   fi
6967 fi
6968
6969
6970
6971 # Enable code coverage collection
6972 # Check whether --enable-coverage was given.
6973 if test "${enable_coverage+set}" = set; then :
6974   enableval=$enable_coverage; case "${enableval}" in
6975   yes|noopt)
6976     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6977     ;;
6978   opt)
6979     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6980     ;;
6981   no)
6982     # a.k.a. --disable-coverage
6983     coverage_flags=""
6984     ;;
6985   *)
6986     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6987     ;;
6988 esac
6989 else
6990   coverage_flags=""
6991 fi
6992
6993
6994
6995 # Check whether --enable-gather-detailed-mem-stats was given.
6996 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6997   enableval=$enable_gather_detailed_mem_stats;
6998 else
6999   enable_gather_detailed_mem_stats=no
7000 fi
7001
7002 if test x$enable_gather_detailed_mem_stats = xyes ; then
7003
7004 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
7005
7006 fi
7007
7008 # -------------------------------
7009 # Miscenalleous configure options
7010 # -------------------------------
7011
7012 # See if we are building gcc with C++.
7013 # Check whether --enable-build-with-cxx was given.
7014 if test "${enable_build_with_cxx+set}" = set; then :
7015   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7016 else
7017   ENABLE_BUILD_WITH_CXX=no
7018 fi
7019
7020
7021 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7022
7023 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7024
7025 fi
7026
7027 # With stabs
7028
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031   withval=$with_stabs; stabs="$with_stabs"
7032 else
7033   stabs=no
7034 fi
7035
7036
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040   enableval=$enable_multilib;
7041 else
7042   enable_multilib=yes
7043 fi
7044
7045
7046
7047 # Enable __cxa_atexit for C++.
7048 # Check whether --enable-__cxa_atexit was given.
7049 if test "${enable___cxa_atexit+set}" = set; then :
7050   enableval=$enable___cxa_atexit;
7051 fi
7052
7053
7054 # Enable C extension for decimal float if target supports it.
7055
7056 # Check whether --enable-decimal-float was given.
7057 if test "${enable_decimal_float+set}" = set; then :
7058   enableval=$enable_decimal_float;
7059   case $enable_decimal_float in
7060     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7061     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7062 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7063   esac
7064
7065 else
7066
7067   case $target in
7068     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7069     i?86*-*-mingw* | x86_64*-*-mingw* | \
7070     i?86*-*-cygwin*)
7071       enable_decimal_float=yes
7072       ;;
7073     *)
7074       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7075 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7076       enable_decimal_float=no
7077       ;;
7078   esac
7079
7080 fi
7081
7082
7083 # x86's use BID format instead of DPD
7084 case x$enable_decimal_float in
7085   xyes)
7086     case $target in
7087       i?86*-*-* | x86_64*-*-*)
7088         enable_decimal_float=bid
7089         ;;
7090       *)
7091         enable_decimal_float=dpd
7092         ;;
7093     esac
7094     default_decimal_float=$enable_decimal_float
7095     ;;
7096   xno)
7097     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7098     # dependency on libdecnumber.
7099     default_decimal_float=dpd
7100     ;;
7101 esac
7102
7103
7104
7105
7106 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7107
7108 cat >>confdefs.h <<_ACEOF
7109 #define ENABLE_DECIMAL_FLOAT $dfp
7110 _ACEOF
7111
7112
7113 # Use default_decimal_float for dependency.
7114 enable_decimal_float=$default_decimal_float
7115
7116 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7117
7118 cat >>confdefs.h <<_ACEOF
7119 #define ENABLE_DECIMAL_BID_FORMAT $bid
7120 _ACEOF
7121
7122
7123 # Enable C extension for fixed-point arithmetic.
7124 # Check whether --enable-fixed-point was given.
7125 if test "${enable_fixed_point+set}" = set; then :
7126   enableval=$enable_fixed_point;
7127 else
7128
7129   case $target in
7130     arm*)
7131       enable_fixed_point=yes
7132       ;;
7133
7134     mips*-*-*)
7135       case $host in
7136         mips*-sgi-irix*)
7137           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7138 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7139           enable_fixed_point=no
7140           ;;
7141         *)
7142           enable_fixed_point=yes
7143           ;;
7144       esac
7145       ;;
7146     *)
7147       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7148 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7149       enable_fixed_point=no
7150       ;;
7151   esac
7152
7153 fi
7154
7155
7156
7157 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7158
7159 cat >>confdefs.h <<_ACEOF
7160 #define ENABLE_FIXED_POINT $fixedpoint
7161 _ACEOF
7162
7163
7164 # Enable threads
7165 # Pass with no value to take the default
7166 # Pass with a value to specify a thread package
7167 # Check whether --enable-threads was given.
7168 if test "${enable_threads+set}" = set; then :
7169   enableval=$enable_threads;
7170 else
7171   enable_threads=''
7172 fi
7173
7174
7175 # Check whether --enable-tls was given.
7176 if test "${enable_tls+set}" = set; then :
7177   enableval=$enable_tls;
7178   case $enable_tls in
7179     yes | no) ;;
7180     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7181 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7182   esac
7183
7184 else
7185   enable_tls=''
7186 fi
7187
7188
7189 # Check whether --enable-objc-gc was given.
7190 if test "${enable_objc_gc+set}" = set; then :
7191   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7192         objc_boehm_gc=''
7193 else
7194         objc_boehm_gc=1
7195 fi
7196 else
7197   objc_boehm_gc=''
7198 fi
7199
7200
7201
7202 # Check whether --with-dwarf2 was given.
7203 if test "${with_dwarf2+set}" = set; then :
7204   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7205 else
7206   dwarf2=no
7207 fi
7208
7209
7210 # Check whether --enable-shared was given.
7211 if test "${enable_shared+set}" = set; then :
7212   enableval=$enable_shared;
7213   case $enable_shared in
7214   yes | no) ;;
7215   *)
7216     enable_shared=no
7217     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7218     for pkg in $enableval; do
7219       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7220         enable_shared=yes
7221       fi
7222     done
7223     IFS="$ac_save_ifs"
7224     ;;
7225   esac
7226
7227 else
7228   enable_shared=yes
7229 fi
7230
7231
7232
7233
7234 # Check whether --with-native-system-header-dir was given.
7235 if test "${with_native_system_header_dir+set}" = set; then :
7236   withval=$with_native_system_header_dir;
7237  case ${with_native_system_header_dir} in
7238  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7239  /* | [A-Za-z]:[\\/]*) ;;
7240  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7241  esac
7242  configured_native_system_header_dir="${withval}"
7243
7244 else
7245   configured_native_system_header_dir=
7246 fi
7247
7248
7249
7250 # Check whether --with-build-sysroot was given.
7251 if test "${with_build_sysroot+set}" = set; then :
7252   withval=$with_build_sysroot; if test x"$withval" != x ; then
7253      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7254    fi
7255 else
7256   SYSROOT_CFLAGS_FOR_TARGET=
7257 fi
7258
7259
7260
7261
7262 # Check whether --with-sysroot was given.
7263 if test "${with_sysroot+set}" = set; then :
7264   withval=$with_sysroot;
7265  case ${with_sysroot} in
7266  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7267  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7268  esac
7269
7270  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7271  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7272
7273  if test "x$prefix" = xNONE; then
7274   test_prefix=/usr/local
7275  else
7276   test_prefix=$prefix
7277  fi
7278  if test "x$exec_prefix" = xNONE; then
7279   test_exec_prefix=$test_prefix
7280  else
7281   test_exec_prefix=$exec_prefix
7282  fi
7283  case ${TARGET_SYSTEM_ROOT} in
7284  "${test_prefix}"|"${test_prefix}/"*|\
7285  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7286  '${prefix}'|'${prefix}/'*|\
7287  '${exec_prefix}'|'${exec_prefix}/'*)
7288    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7289    TARGET_SYSTEM_ROOT_DEFINE="$t"
7290    ;;
7291  esac
7292
7293 else
7294
7295  TARGET_SYSTEM_ROOT=
7296  TARGET_SYSTEM_ROOT_DEFINE=
7297  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7298
7299 fi
7300
7301
7302
7303
7304
7305
7306 # Check whether --with-specs was given.
7307 if test "${with_specs+set}" = set; then :
7308   withval=$with_specs; CONFIGURE_SPECS=$withval
7309 else
7310   CONFIGURE_SPECS=
7311
7312 fi
7313
7314
7315
7316
7317
7318 # Check whether --with-pkgversion was given.
7319 if test "${with_pkgversion+set}" = set; then :
7320   withval=$with_pkgversion; case "$withval" in
7321       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7322       no)  PKGVERSION= ;;
7323       *)   PKGVERSION="($withval) " ;;
7324      esac
7325 else
7326   PKGVERSION="(GCC) "
7327
7328 fi
7329
7330
7331
7332
7333
7334 # Check whether --with-bugurl was given.
7335 if test "${with_bugurl+set}" = set; then :
7336   withval=$with_bugurl; case "$withval" in
7337       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7338       no)  BUGURL=
7339            ;;
7340       *)   BUGURL="$withval"
7341            ;;
7342      esac
7343 else
7344   BUGURL="http://gcc.gnu.org/bugs.html"
7345
7346 fi
7347
7348   case ${BUGURL} in
7349   "")
7350     REPORT_BUGS_TO=
7351     REPORT_BUGS_TEXI=
7352     ;;
7353   *)
7354     REPORT_BUGS_TO="<$BUGURL>"
7355     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7356     ;;
7357   esac;
7358
7359
7360
7361
7362 # Sanity check enable_languages in case someone does not run the toplevel
7363 # configure # script.
7364 # Check whether --enable-languages was given.
7365 if test "${enable_languages+set}" = set; then :
7366   enableval=$enable_languages; case ,${enable_languages}, in
7367        ,,|,yes,)
7368                 # go safe -- we cannot be much sure without the toplevel
7369                 # configure's
7370                 # analysis of which target libs are present and usable
7371                 enable_languages=c
7372                 ;;
7373          *,all,*)
7374                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7375                 ;;
7376         *,c,*)
7377                 ;;
7378         *)
7379                 enable_languages=c,${enable_languages}
7380                 ;;
7381 esac
7382 else
7383   enable_languages=c
7384 fi
7385
7386
7387
7388 # Check whether --with-multilib-list was given.
7389 if test "${with_multilib_list+set}" = set; then :
7390   withval=$with_multilib_list; :
7391 else
7392   with_multilib_list=default
7393 fi
7394
7395
7396 # -------------------------
7397 # Checks for other programs
7398 # -------------------------
7399
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7401 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7402 set x ${MAKE-make}
7403 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7404 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7405   $as_echo_n "(cached) " >&6
7406 else
7407   cat >conftest.make <<\_ACEOF
7408 SHELL = /bin/sh
7409 all:
7410         @echo '@@@%%%=$(MAKE)=@@@%%%'
7411 _ACEOF
7412 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7413 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7414   *@@@%%%=?*=@@@%%%*)
7415     eval ac_cv_prog_make_${ac_make}_set=yes;;
7416   *)
7417     eval ac_cv_prog_make_${ac_make}_set=no;;
7418 esac
7419 rm -f conftest.make
7420 fi
7421 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7423 $as_echo "yes" >&6; }
7424   SET_MAKE=
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428   SET_MAKE="MAKE=${MAKE-make}"
7429 fi
7430
7431
7432 # Find some useful tools
7433 for ac_prog in gawk mawk nawk awk
7434 do
7435   # Extract the first word of "$ac_prog", so it can be a program name with args.
7436 set dummy $ac_prog; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if test "${ac_cv_prog_AWK+set}" = set; then :
7440   $as_echo_n "(cached) " >&6
7441 else
7442   if test -n "$AWK"; then
7443   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450     for ac_exec_ext in '' $ac_executable_extensions; do
7451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7452     ac_cv_prog_AWK="$ac_prog"
7453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457   done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 AWK=$ac_cv_prog_AWK
7463 if test -n "$AWK"; then
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7465 $as_echo "$AWK" >&6; }
7466 else
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471
7472   test -n "$AWK" && break
7473 done
7474
7475 # We need awk to create options.c and options.h.
7476 # Bail out if it's missing.
7477 case ${AWK} in
7478   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7479 esac
7480
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7482 $as_echo_n "checking whether ln -s works... " >&6; }
7483 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   rm -f conftestdata_t
7487 echo >conftestdata_f
7488 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7489 then
7490   gcc_cv_prog_LN_S="ln -s"
7491 else
7492   if ln conftestdata_f conftestdata_t 2>/dev/null
7493   then
7494     gcc_cv_prog_LN_S=ln
7495   else
7496     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7497     then
7498       gcc_cv_prog_LN_S="cp -p"
7499     else
7500       gcc_cv_prog_LN_S=cp
7501     fi
7502   fi
7503 fi
7504 rm -f conftestdata_f conftestdata_t
7505
7506 fi
7507 LN_S="$gcc_cv_prog_LN_S"
7508 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7510 $as_echo "yes" >&6; }
7511 else
7512   if test "$gcc_cv_prog_LN_S" = "ln"; then
7513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7514 $as_echo "no, using ln" >&6; }
7515   else
7516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7517 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7518   fi
7519 fi
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7522 $as_echo_n "checking whether ln works... " >&6; }
7523 if test "${acx_cv_prog_LN+set}" = set; then :
7524   $as_echo_n "(cached) " >&6
7525 else
7526   rm -f conftestdata_t
7527 echo >conftestdata_f
7528 if ln conftestdata_f conftestdata_t 2>/dev/null
7529 then
7530   acx_cv_prog_LN=ln
7531 else
7532   acx_cv_prog_LN=no
7533 fi
7534 rm -f conftestdata_f conftestdata_t
7535
7536 fi
7537 if test $acx_cv_prog_LN = no; then
7538   LN="$LN_S"
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7540 $as_echo "no, using $LN" >&6; }
7541 else
7542   LN="$acx_cv_prog_LN"
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7544 $as_echo "yes" >&6; }
7545 fi
7546
7547 if test -n "$ac_tool_prefix"; then
7548   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   if test -n "$RANLIB"; then
7556   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563     for ac_exec_ext in '' $ac_executable_extensions; do
7564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570   done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 RANLIB=$ac_cv_prog_RANLIB
7576 if test -n "$RANLIB"; then
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7578 $as_echo "$RANLIB" >&6; }
7579 else
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 fi
7583
7584
7585 fi
7586 if test -z "$ac_cv_prog_RANLIB"; then
7587   ac_ct_RANLIB=$RANLIB
7588   # Extract the first word of "ranlib", so it can be a program name with args.
7589 set dummy ranlib; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595   if test -n "$ac_ct_RANLIB"; then
7596   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_prog_ac_ct_RANLIB="ranlib"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7616 if test -n "$ac_ct_RANLIB"; then
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7618 $as_echo "$ac_ct_RANLIB" >&6; }
7619 else
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624   if test "x$ac_ct_RANLIB" = x; then
7625     RANLIB=":"
7626   else
7627     case $cross_compiling:$ac_tool_warned in
7628 yes:)
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631 ac_tool_warned=yes ;;
7632 esac
7633     RANLIB=$ac_ct_RANLIB
7634   fi
7635 else
7636   RANLIB="$ac_cv_prog_RANLIB"
7637 fi
7638
7639 ranlib_flags=""
7640
7641
7642 # Find a good install program.  We prefer a C program (faster),
7643 # so one script is as good as another.  But avoid the broken or
7644 # incompatible versions:
7645 # SysV /etc/install, /usr/sbin/install
7646 # SunOS /usr/etc/install
7647 # IRIX /sbin/install
7648 # AIX /bin/install
7649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7651 # ./install, which can be erroneously created by make from ./install.sh.
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7653 $as_echo_n "checking for a BSD compatible install... " >&6; }
7654 if test -z "$INSTALL"; then
7655 if test "${ac_cv_path_install+set}" = set; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7659   for ac_dir in $PATH; do
7660     # Account for people who put trailing slashes in PATH elements.
7661     case "$ac_dir/" in
7662     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7663     *)
7664       # OSF1 and SCO ODT 3.0 have their own names for install.
7665       for ac_prog in ginstall scoinst install; do
7666         if test -f $ac_dir/$ac_prog; then
7667           if test $ac_prog = install &&
7668             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7669             # AIX install.  It has an incompatible calling convention.
7670             # OSF/1 installbsd also uses dspmsg, but is usable.
7671             :
7672           else
7673             ac_cv_path_install="$ac_dir/$ac_prog -c"
7674             break 2
7675           fi
7676         fi
7677       done
7678       ;;
7679     esac
7680   done
7681   IFS="$ac_save_IFS"
7682
7683 fi
7684   if test "${ac_cv_path_install+set}" = set; then
7685     INSTALL="$ac_cv_path_install"
7686   else
7687     # As a last resort, use the slow shell script.  We don't cache a
7688     # path for INSTALL within a source directory, because that will
7689     # break other packages using the cache if that directory is
7690     # removed, or if the path is relative.
7691     INSTALL="$ac_install_sh"
7692   fi
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7695 $as_echo "$INSTALL" >&6; }
7696
7697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7698 # It thinks the first close brace ends the variable substitution.
7699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7700
7701 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7702
7703
7704 # See if cmp has --ignore-initial.
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7706 $as_echo_n "checking for cmp's capabilities... " >&6; }
7707 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7708   $as_echo_n "(cached) " >&6
7709 else
7710    echo abfoo >t1
7711   echo cdfoo >t2
7712   gcc_cv_prog_cmp_skip=slowcompare
7713   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7714     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7715       :
7716     else
7717       gcc_cv_prog_cmp_skip=gnucompare
7718     fi
7719   fi
7720   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7721     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7722       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7723         :
7724       else
7725         gcc_cv_prog_cmp_skip=fastcompare
7726       fi
7727     fi
7728   fi
7729   rm t1 t2
7730
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7733 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7734 make_compare_target=$gcc_cv_prog_cmp_skip
7735
7736
7737
7738 # See if we have the mktemp command.
7739 # Extract the first word of "mktemp", so it can be a program name with args.
7740 set dummy mktemp; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   if test -n "$have_mktemp_command"; then
7747   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7748 else
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752   IFS=$as_save_IFS
7753   test -z "$as_dir" && as_dir=.
7754     for ac_exec_ext in '' $ac_executable_extensions; do
7755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7756     ac_cv_prog_have_mktemp_command="yes"
7757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758     break 2
7759   fi
7760 done
7761   done
7762 IFS=$as_save_IFS
7763
7764   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7765 fi
7766 fi
7767 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7768 if test -n "$have_mktemp_command"; then
7769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7770 $as_echo "$have_mktemp_command" >&6; }
7771 else
7772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 fi
7775
7776
7777
7778 # See if makeinfo has been installed and is modern enough
7779 # that we can use it.
7780
7781   # Extract the first word of "makeinfo", so it can be a program name with args.
7782 set dummy makeinfo; ac_word=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7786   $as_echo_n "(cached) " >&6
7787 else
7788   if test -n "$MAKEINFO"; then
7789   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7790 else
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7793 do
7794   IFS=$as_save_IFS
7795   test -z "$as_dir" && as_dir=.
7796     for ac_exec_ext in '' $ac_executable_extensions; do
7797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798     ac_cv_prog_MAKEINFO="makeinfo"
7799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800     break 2
7801   fi
7802 done
7803   done
7804 IFS=$as_save_IFS
7805
7806 fi
7807 fi
7808 MAKEINFO=$ac_cv_prog_MAKEINFO
7809 if test -n "$MAKEINFO"; then
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7811 $as_echo "$MAKEINFO" >&6; }
7812 else
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7815 fi
7816
7817
7818   if test -n "$MAKEINFO"; then
7819     # Found it, now check the version.
7820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7821 $as_echo_n "checking for modern makeinfo... " >&6; }
7822 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7826                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7827
7828                     case $ac_prog_version in
7829                       '')  gcc_cv_prog_makeinfo_modern=no;;
7830                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7831                       *)   gcc_cv_prog_makeinfo_modern=no;;
7832                     esac
7833
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7836 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7837   else
7838     gcc_cv_prog_makeinfo_modern=no
7839   fi
7840   if test $gcc_cv_prog_makeinfo_modern = no; then
7841     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7842   fi
7843
7844 if test $gcc_cv_prog_makeinfo_modern = no; then
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7846 *** Makeinfo is missing or too old.
7847 *** Info documentation will not be built." >&5
7848 $as_echo "$as_me: WARNING:
7849 *** Makeinfo is missing or too old.
7850 *** Info documentation will not be built." >&2;}
7851   BUILD_INFO=
7852 else
7853   BUILD_INFO=info
7854 fi
7855
7856
7857 # Is pod2man recent enough to regenerate manpages?
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7859 $as_echo_n "checking for recent Pod::Man... " >&6; }
7860 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7862 $as_echo "yes" >&6; }
7863   GENERATED_MANPAGES=generated-manpages
7864 else
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867   GENERATED_MANPAGES=
7868 fi
7869
7870
7871 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7872
7873 # How about lex?
7874 for ac_prog in flex
7875 do
7876   # Extract the first word of "$ac_prog", so it can be a program name with args.
7877 set dummy $ac_prog; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if test "${ac_cv_prog_FLEX+set}" = set; then :
7881   $as_echo_n "(cached) " >&6
7882 else
7883   if test -n "$FLEX"; then
7884   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889   IFS=$as_save_IFS
7890   test -z "$as_dir" && as_dir=.
7891     for ac_exec_ext in '' $ac_executable_extensions; do
7892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7893     ac_cv_prog_FLEX="$ac_prog"
7894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895     break 2
7896   fi
7897 done
7898   done
7899 IFS=$as_save_IFS
7900
7901 fi
7902 fi
7903 FLEX=$ac_cv_prog_FLEX
7904 if test -n "$FLEX"; then
7905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7906 $as_echo "$FLEX" >&6; }
7907 else
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7910 fi
7911
7912
7913   test -n "$FLEX" && break
7914 done
7915 test -n "$FLEX" || FLEX="$MISSING flex"
7916
7917
7918 # Bison?
7919 for ac_prog in bison
7920 do
7921   # Extract the first word of "$ac_prog", so it can be a program name with args.
7922 set dummy $ac_prog; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if test "${ac_cv_prog_BISON+set}" = set; then :
7926   $as_echo_n "(cached) " >&6
7927 else
7928   if test -n "$BISON"; then
7929   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934   IFS=$as_save_IFS
7935   test -z "$as_dir" && as_dir=.
7936     for ac_exec_ext in '' $ac_executable_extensions; do
7937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938     ac_cv_prog_BISON="$ac_prog"
7939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940     break 2
7941   fi
7942 done
7943   done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 BISON=$ac_cv_prog_BISON
7949 if test -n "$BISON"; then
7950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7951 $as_echo "$BISON" >&6; }
7952 else
7953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957
7958   test -n "$BISON" && break
7959 done
7960 test -n "$BISON" || BISON="$MISSING bison"
7961
7962
7963 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7964 # check for build == host before using them.
7965
7966 # NM
7967 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7968   && test -d ../binutils ; then
7969   NM='${objdir}/../binutils/nm-new'
7970 else
7971   # Extract the first word of "nm", so it can be a program name with args.
7972 set dummy nm; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if test "${ac_cv_prog_NM+set}" = set; then :
7976   $as_echo_n "(cached) " >&6
7977 else
7978   if test -n "$NM"; then
7979   ac_cv_prog_NM="$NM" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984   IFS=$as_save_IFS
7985   test -z "$as_dir" && as_dir=.
7986     for ac_exec_ext in '' $ac_executable_extensions; do
7987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988     ac_cv_prog_NM="nm"
7989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990     break 2
7991   fi
7992 done
7993   done
7994 IFS=$as_save_IFS
7995
7996   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7997 fi
7998 fi
7999 NM=$ac_cv_prog_NM
8000 if test -n "$NM"; then
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8002 $as_echo "$NM" >&6; }
8003 else
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007
8008
8009 fi
8010
8011 # AR
8012 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8013   && test -d ../binutils ; then
8014   AR='${objdir}/../binutils/ar'
8015 else
8016   # Extract the first word of "ar", so it can be a program name with args.
8017 set dummy ar; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_prog_AR+set}" = set; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   if test -n "$AR"; then
8024   ac_cv_prog_AR="$AR" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029   IFS=$as_save_IFS
8030   test -z "$as_dir" && as_dir=.
8031     for ac_exec_ext in '' $ac_executable_extensions; do
8032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033     ac_cv_prog_AR="ar"
8034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035     break 2
8036   fi
8037 done
8038   done
8039 IFS=$as_save_IFS
8040
8041   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8042 fi
8043 fi
8044 AR=$ac_cv_prog_AR
8045 if test -n "$AR"; then
8046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8047 $as_echo "$AR" >&6; }
8048 else
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 fi
8052
8053
8054 fi
8055
8056
8057 # --------------------
8058 # Checks for C headers
8059 # --------------------
8060
8061 # Need to reject headers which give warnings, so that the -Werror bootstrap
8062 # works later. *sigh*  This needs to come before all header checks.
8063
8064 ac_c_preproc_warn_flag=yes
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8067 $as_echo_n "checking for ANSI C header files... " >&6; }
8068 if test "${ac_cv_header_stdc+set}" = set; then :
8069   $as_echo_n "(cached) " >&6
8070 else
8071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h.  */
8073 #include <stdlib.h>
8074 #include <stdarg.h>
8075 #include <string.h>
8076 #include <float.h>
8077
8078 int
8079 main ()
8080 {
8081
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_compile "$LINENO"; then :
8087   ac_cv_header_stdc=yes
8088 else
8089   ac_cv_header_stdc=no
8090 fi
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092
8093 if test $ac_cv_header_stdc = yes; then
8094   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h.  */
8097 #include <string.h>
8098
8099 _ACEOF
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101   $EGREP "memchr" >/dev/null 2>&1; then :
8102
8103 else
8104   ac_cv_header_stdc=no
8105 fi
8106 rm -f conftest*
8107
8108 fi
8109
8110 if test $ac_cv_header_stdc = yes; then
8111   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h.  */
8114 #include <stdlib.h>
8115
8116 _ACEOF
8117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8118   $EGREP "free" >/dev/null 2>&1; then :
8119
8120 else
8121   ac_cv_header_stdc=no
8122 fi
8123 rm -f conftest*
8124
8125 fi
8126
8127 if test $ac_cv_header_stdc = yes; then
8128   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8129   if test "$cross_compiling" = yes; then :
8130   :
8131 else
8132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h.  */
8134 #include <ctype.h>
8135 #include <stdlib.h>
8136 #if ((' ' & 0x0FF) == 0x020)
8137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8139 #else
8140 # define ISLOWER(c) \
8141                    (('a' <= (c) && (c) <= 'i') \
8142                      || ('j' <= (c) && (c) <= 'r') \
8143                      || ('s' <= (c) && (c) <= 'z'))
8144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8145 #endif
8146
8147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8148 int
8149 main ()
8150 {
8151   int i;
8152   for (i = 0; i < 256; i++)
8153     if (XOR (islower (i), ISLOWER (i))
8154         || toupper (i) != TOUPPER (i))
8155       return 2;
8156   return 0;
8157 }
8158 _ACEOF
8159 if ac_fn_c_try_run "$LINENO"; then :
8160
8161 else
8162   ac_cv_header_stdc=no
8163 fi
8164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8165   conftest.$ac_objext conftest.beam conftest.$ac_ext
8166 fi
8167
8168 fi
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8171 $as_echo "$ac_cv_header_stdc" >&6; }
8172 if test $ac_cv_header_stdc = yes; then
8173
8174 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8175
8176 fi
8177
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8179 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8180 if test "${ac_cv_header_time+set}" = set; then :
8181   $as_echo_n "(cached) " >&6
8182 else
8183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h.  */
8185 #include <sys/types.h>
8186 #include <sys/time.h>
8187 #include <time.h>
8188
8189 int
8190 main ()
8191 {
8192 if ((struct tm *) 0)
8193 return 0;
8194   ;
8195   return 0;
8196 }
8197 _ACEOF
8198 if ac_fn_c_try_compile "$LINENO"; then :
8199   ac_cv_header_time=yes
8200 else
8201   ac_cv_header_time=no
8202 fi
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8206 $as_echo "$ac_cv_header_time" >&6; }
8207 if test $ac_cv_header_time = yes; then
8208
8209 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8210
8211 fi
8212
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8214 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8215 if test "${gcc_cv_header_string+set}" = set; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h.  */
8220 #include <string.h>
8221 #include <strings.h>
8222 int
8223 main ()
8224 {
8225
8226   ;
8227   return 0;
8228 }
8229 _ACEOF
8230 if ac_fn_c_try_compile "$LINENO"; then :
8231   gcc_cv_header_string=yes
8232 else
8233   gcc_cv_header_string=no
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236 fi
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8238 $as_echo "$gcc_cv_header_string" >&6; }
8239 if test $gcc_cv_header_string = yes; then
8240
8241 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8242
8243 fi
8244
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8246 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8247 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8248   $as_echo_n "(cached) " >&6
8249 else
8250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h.  */
8252 #include <sys/types.h>
8253 #include <sys/wait.h>
8254 #ifndef WEXITSTATUS
8255 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8256 #endif
8257 #ifndef WIFEXITED
8258 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8259 #endif
8260
8261 int
8262 main ()
8263 {
8264   int s;
8265   wait (&s);
8266   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 if ac_fn_c_try_compile "$LINENO"; then :
8272   ac_cv_header_sys_wait_h=yes
8273 else
8274   ac_cv_header_sys_wait_h=no
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 fi
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8279 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8280 if test $ac_cv_header_sys_wait_h = yes; then
8281
8282 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8283
8284 fi
8285
8286 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8287                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8288                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8289                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8290 do :
8291   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8292 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8293 eval as_val=\$$as_ac_Header
8294    if test "x$as_val" = x""yes; then :
8295   cat >>confdefs.h <<_ACEOF
8296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8297 _ACEOF
8298
8299 fi
8300 done
8301
8302
8303 # Check for thread headers.
8304 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8305 if test "x$ac_cv_header_thread_h" = x""yes; then :
8306   have_thread_h=yes
8307 else
8308   have_thread_h=
8309 fi
8310
8311 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8312 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8313   have_pthread_h=yes
8314 else
8315   have_pthread_h=
8316 fi
8317
8318
8319 # These tests can't be done till we know if we have limits.h.
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8321 $as_echo_n "checking for CHAR_BIT... " >&6; }
8322 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h.  */
8327 #ifdef HAVE_LIMITS_H
8328 #include <limits.h>
8329 #endif
8330 #ifdef CHAR_BIT
8331 found
8332 #endif
8333 _ACEOF
8334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8335   $EGREP "found" >/dev/null 2>&1; then :
8336   gcc_cv_decl_char_bit=yes
8337 else
8338   gcc_cv_decl_char_bit=no
8339 fi
8340 rm -f conftest*
8341
8342
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8345 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8346 if test $gcc_cv_decl_char_bit = no; then
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8348 $as_echo_n "checking number of bits in a byte... " >&6; }
8349 if test "${gcc_cv_c_nbby+set}" = set; then :
8350   $as_echo_n "(cached) " >&6
8351 else
8352   i=8
8353  gcc_cv_c_nbby=
8354  while test $i -lt 65; do
8355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h.  */
8357
8358 int
8359 main ()
8360 {
8361 switch(0) {
8362   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8363   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8364   ; }
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 if ac_fn_c_try_compile "$LINENO"; then :
8370   gcc_cv_c_nbby=$i; break
8371 fi
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373    i=`expr $i + 1`
8374  done
8375  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8376
8377 fi
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8379 $as_echo "$gcc_cv_c_nbby" >&6; }
8380 if test $gcc_cv_c_nbby = failed; then
8381   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8382 else
8383
8384 cat >>confdefs.h <<_ACEOF
8385 #define CHAR_BIT $gcc_cv_c_nbby
8386 _ACEOF
8387
8388 fi
8389 fi
8390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8391 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8392 if test "${ac_cv_c_bigendian+set}" = set; then :
8393   $as_echo_n "(cached) " >&6
8394 else
8395   ac_cv_c_bigendian=unknown
8396     # See if we're dealing with a universal compiler.
8397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h.  */
8399 #ifndef __APPLE_CC__
8400                not a universal capable compiler
8401              #endif
8402              typedef int dummy;
8403
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406
8407         # Check for potential -arch flags.  It is not universal unless
8408         # there are at least two -arch flags with different values.
8409         ac_arch=
8410         ac_prev=
8411         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8412          if test -n "$ac_prev"; then
8413            case $ac_word in
8414              i?86 | x86_64 | ppc | ppc64)
8415                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8416                  ac_arch=$ac_word
8417                else
8418                  ac_cv_c_bigendian=universal
8419                  break
8420                fi
8421                ;;
8422            esac
8423            ac_prev=
8424          elif test "x$ac_word" = "x-arch"; then
8425            ac_prev=arch
8426          fi
8427        done
8428 fi
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430     if test $ac_cv_c_bigendian = unknown; then
8431       # See if sys/param.h defines the BYTE_ORDER macro.
8432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h.  */
8434 #include <sys/types.h>
8435              #include <sys/param.h>
8436
8437 int
8438 main ()
8439 {
8440 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8441                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8442                      && LITTLE_ENDIAN)
8443               bogus endian macros
8444              #endif
8445
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451   # It does; now see whether it defined to BIG_ENDIAN or not.
8452          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h.  */
8454 #include <sys/types.h>
8455                 #include <sys/param.h>
8456
8457 int
8458 main ()
8459 {
8460 #if BYTE_ORDER != BIG_ENDIAN
8461                  not big endian
8462                 #endif
8463
8464   ;
8465   return 0;
8466 }
8467 _ACEOF
8468 if ac_fn_c_try_compile "$LINENO"; then :
8469   ac_cv_c_bigendian=yes
8470 else
8471   ac_cv_c_bigendian=no
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476     fi
8477     if test $ac_cv_c_bigendian = unknown; then
8478       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8479       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h.  */
8481 #include <limits.h>
8482
8483 int
8484 main ()
8485 {
8486 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8487               bogus endian macros
8488              #endif
8489
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"; then :
8495   # It does; now see whether it defined to _BIG_ENDIAN or not.
8496          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h.  */
8498 #include <limits.h>
8499
8500 int
8501 main ()
8502 {
8503 #ifndef _BIG_ENDIAN
8504                  not big endian
8505                 #endif
8506
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 if ac_fn_c_try_compile "$LINENO"; then :
8512   ac_cv_c_bigendian=yes
8513 else
8514   ac_cv_c_bigendian=no
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517 fi
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519     fi
8520     if test $ac_cv_c_bigendian = unknown; then
8521       # Compile a test program.
8522       if test "$cross_compiling" = yes; then :
8523   # Try to guess by grepping values from an object file.
8524          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h.  */
8526 short int ascii_mm[] =
8527                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8528                 short int ascii_ii[] =
8529                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8530                 int use_ascii (int i) {
8531                   return ascii_mm[i] + ascii_ii[i];
8532                 }
8533                 short int ebcdic_ii[] =
8534                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8535                 short int ebcdic_mm[] =
8536                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8537                 int use_ebcdic (int i) {
8538                   return ebcdic_mm[i] + ebcdic_ii[i];
8539                 }
8540                 extern int foo;
8541
8542 int
8543 main ()
8544 {
8545 return use_ascii (foo) == use_ebcdic (foo);
8546   ;
8547   return 0;
8548 }
8549 _ACEOF
8550 if ac_fn_c_try_compile "$LINENO"; then :
8551   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8552               ac_cv_c_bigendian=yes
8553             fi
8554             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8555               if test "$ac_cv_c_bigendian" = unknown; then
8556                 ac_cv_c_bigendian=no
8557               else
8558                 # finding both strings is unlikely to happen, but who knows?
8559                 ac_cv_c_bigendian=unknown
8560               fi
8561             fi
8562 fi
8563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 else
8565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h.  */
8567 $ac_includes_default
8568 int
8569 main ()
8570 {
8571
8572              /* Are we little or big endian?  From Harbison&Steele.  */
8573              union
8574              {
8575                long int l;
8576                char c[sizeof (long int)];
8577              } u;
8578              u.l = 1;
8579              return u.c[sizeof (long int) - 1] == 1;
8580
8581   ;
8582   return 0;
8583 }
8584 _ACEOF
8585 if ac_fn_c_try_run "$LINENO"; then :
8586   ac_cv_c_bigendian=no
8587 else
8588   ac_cv_c_bigendian=yes
8589 fi
8590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8591   conftest.$ac_objext conftest.beam conftest.$ac_ext
8592 fi
8593
8594     fi
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8597 $as_echo "$ac_cv_c_bigendian" >&6; }
8598  case $ac_cv_c_bigendian in #(
8599    yes)
8600      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8601 ;; #(
8602    no)
8603       ;; #(
8604    universal)
8605
8606 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8607
8608      ;; #(
8609    *)
8610      as_fn_error "unknown endianness
8611  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8612  esac
8613
8614
8615 # ----------------------
8616 # Checks for C++ headers
8617 # ----------------------
8618
8619 ac_ext=cpp
8620 ac_cpp='$CXXCPP $CPPFLAGS'
8621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8625 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8626 if test -z "$CXXCPP"; then
8627   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8628   $as_echo_n "(cached) " >&6
8629 else
8630       # Double quotes because CXXCPP needs to be expanded
8631     for CXXCPP in "$CXX -E" "/lib/cpp"
8632     do
8633       ac_preproc_ok=false
8634 for ac_cxx_preproc_warn_flag in '' yes
8635 do
8636   # Use a header file that comes with gcc, so configuring glibc
8637   # with a fresh cross-compiler works.
8638   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8639   # <limits.h> exists even on freestanding compilers.
8640   # On the NeXT, cc -E runs the code through the compiler's parser,
8641   # not just through cpp. "Syntax error" is here to catch this case.
8642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h.  */
8644 #ifdef __STDC__
8645 # include <limits.h>
8646 #else
8647 # include <assert.h>
8648 #endif
8649                      Syntax error
8650 _ACEOF
8651 if ac_fn_cxx_try_cpp "$LINENO"; then :
8652
8653 else
8654   # Broken: fails on valid input.
8655 continue
8656 fi
8657 rm -f conftest.err conftest.$ac_ext
8658
8659   # OK, works on sane cases.  Now check whether nonexistent headers
8660   # can be detected and how.
8661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h.  */
8663 #include <ac_nonexistent.h>
8664 _ACEOF
8665 if ac_fn_cxx_try_cpp "$LINENO"; then :
8666   # Broken: success on invalid input.
8667 continue
8668 else
8669   # Passes both tests.
8670 ac_preproc_ok=:
8671 break
8672 fi
8673 rm -f conftest.err conftest.$ac_ext
8674
8675 done
8676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8677 rm -f conftest.err conftest.$ac_ext
8678 if $ac_preproc_ok; then :
8679   break
8680 fi
8681
8682     done
8683     ac_cv_prog_CXXCPP=$CXXCPP
8684
8685 fi
8686   CXXCPP=$ac_cv_prog_CXXCPP
8687 else
8688   ac_cv_prog_CXXCPP=$CXXCPP
8689 fi
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8691 $as_echo "$CXXCPP" >&6; }
8692 ac_preproc_ok=false
8693 for ac_cxx_preproc_warn_flag in '' yes
8694 do
8695   # Use a header file that comes with gcc, so configuring glibc
8696   # with a fresh cross-compiler works.
8697   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8698   # <limits.h> exists even on freestanding compilers.
8699   # On the NeXT, cc -E runs the code through the compiler's parser,
8700   # not just through cpp. "Syntax error" is here to catch this case.
8701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h.  */
8703 #ifdef __STDC__
8704 # include <limits.h>
8705 #else
8706 # include <assert.h>
8707 #endif
8708                      Syntax error
8709 _ACEOF
8710 if ac_fn_cxx_try_cpp "$LINENO"; then :
8711
8712 else
8713   # Broken: fails on valid input.
8714 continue
8715 fi
8716 rm -f conftest.err conftest.$ac_ext
8717
8718   # OK, works on sane cases.  Now check whether nonexistent headers
8719   # can be detected and how.
8720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h.  */
8722 #include <ac_nonexistent.h>
8723 _ACEOF
8724 if ac_fn_cxx_try_cpp "$LINENO"; then :
8725   # Broken: success on invalid input.
8726 continue
8727 else
8728   # Passes both tests.
8729 ac_preproc_ok=:
8730 break
8731 fi
8732 rm -f conftest.err conftest.$ac_ext
8733
8734 done
8735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8736 rm -f conftest.err conftest.$ac_ext
8737 if $ac_preproc_ok; then :
8738
8739 else
8740   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8743 See \`config.log' for more details." >&5
8744 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8745 See \`config.log' for more details." >&2;}; }
8746 fi
8747
8748 ac_ext=c
8749 ac_cpp='$CPP $CPPFLAGS'
8750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8753
8754
8755 ac_ext=cpp
8756 ac_cpp='$CXXCPP $CPPFLAGS'
8757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8760
8761
8762
8763
8764 for ac_header in unordered_map
8765 do :
8766   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8767 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8768   cat >>confdefs.h <<_ACEOF
8769 #define HAVE_UNORDERED_MAP 1
8770 _ACEOF
8771
8772 fi
8773 done
8774
8775 for ac_header in tr1/unordered_map
8776 do :
8777   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8778 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8779   cat >>confdefs.h <<_ACEOF
8780 #define HAVE_TR1_UNORDERED_MAP 1
8781 _ACEOF
8782
8783 fi
8784 done
8785
8786 for ac_header in ext/hash_map
8787 do :
8788   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8789 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8790   cat >>confdefs.h <<_ACEOF
8791 #define HAVE_EXT_HASH_MAP 1
8792 _ACEOF
8793
8794 fi
8795 done
8796
8797
8798 ac_ext=c
8799 ac_cpp='$CPP $CPPFLAGS'
8800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8803
8804
8805 # --------
8806 # UNSORTED
8807 # --------
8808
8809
8810 # These libraries may be used by collect2.
8811 # We may need a special search path to get them linked.
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8813 $as_echo_n "checking for collect2 libraries... " >&6; }
8814 if test "${gcc_cv_collect2_libs+set}" = set; then :
8815   $as_echo_n "(cached) " >&6
8816 else
8817   save_LIBS="$LIBS"
8818 for libs in '' -lld -lmld \
8819                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8820                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8821 do
8822         LIBS="$libs"
8823         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h.  */
8825
8826 /* Override any GCC internal prototype to avoid an error.
8827    Use char because int might match the return type of a GCC
8828    builtin and then its argument prototype would still apply.  */
8829 #ifdef __cplusplus
8830 extern "C"
8831 #endif
8832 char ldopen ();
8833 int
8834 main ()
8835 {
8836 return ldopen ();
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_c_try_link "$LINENO"; then :
8842   gcc_cv_collect2_libs="$libs"; break
8843 fi
8844 rm -f core conftest.err conftest.$ac_objext \
8845     conftest$ac_exeext conftest.$ac_ext
8846 done
8847 LIBS="$save_LIBS"
8848 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8851 $as_echo "$gcc_cv_collect2_libs" >&6; }
8852 case $gcc_cv_collect2_libs in
8853         "none required")        ;;
8854         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8855 esac
8856
8857
8858 # When building Ada code on Alpha, we need exc_resume which is usually in
8859 # -lexc.  So test for it.
8860 save_LIBS="$LIBS"
8861 LIBS=
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8863 $as_echo_n "checking for library containing exc_resume... " >&6; }
8864 if test "${ac_cv_search_exc_resume+set}" = set; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   ac_func_search_save_LIBS=$LIBS
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h.  */
8870
8871 /* Override any GCC internal prototype to avoid an error.
8872    Use char because int might match the return type of a GCC
8873    builtin and then its argument prototype would still apply.  */
8874 #ifdef __cplusplus
8875 extern "C"
8876 #endif
8877 char exc_resume ();
8878 int
8879 main ()
8880 {
8881 return exc_resume ();
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 for ac_lib in '' exc; do
8887   if test -z "$ac_lib"; then
8888     ac_res="none required"
8889   else
8890     ac_res=-l$ac_lib
8891     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8892   fi
8893   if ac_fn_c_try_link "$LINENO"; then :
8894   ac_cv_search_exc_resume=$ac_res
8895 fi
8896 rm -f core conftest.err conftest.$ac_objext \
8897     conftest$ac_exeext
8898   if test "${ac_cv_search_exc_resume+set}" = set; then :
8899   break
8900 fi
8901 done
8902 if test "${ac_cv_search_exc_resume+set}" = set; then :
8903
8904 else
8905   ac_cv_search_exc_resume=no
8906 fi
8907 rm conftest.$ac_ext
8908 LIBS=$ac_func_search_save_LIBS
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8911 $as_echo "$ac_cv_search_exc_resume" >&6; }
8912 ac_res=$ac_cv_search_exc_resume
8913 if test "$ac_res" != no; then :
8914   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8915
8916 fi
8917
8918 GNAT_LIBEXC="$LIBS"
8919 LIBS="$save_LIBS"
8920
8921
8922 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8923 save_LIBS="$LIBS"
8924 LIBS=
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8926 $as_echo_n "checking for library containing kstat_open... " >&6; }
8927 if test "${ac_cv_search_kstat_open+set}" = set; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   ac_func_search_save_LIBS=$LIBS
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h.  */
8933
8934 /* Override any GCC internal prototype to avoid an error.
8935    Use char because int might match the return type of a GCC
8936    builtin and then its argument prototype would still apply.  */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 char kstat_open ();
8941 int
8942 main ()
8943 {
8944 return kstat_open ();
8945   ;
8946   return 0;
8947 }
8948 _ACEOF
8949 for ac_lib in '' kstat; do
8950   if test -z "$ac_lib"; then
8951     ac_res="none required"
8952   else
8953     ac_res=-l$ac_lib
8954     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8955   fi
8956   if ac_fn_c_try_link "$LINENO"; then :
8957   ac_cv_search_kstat_open=$ac_res
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext \
8960     conftest$ac_exeext
8961   if test "${ac_cv_search_kstat_open+set}" = set; then :
8962   break
8963 fi
8964 done
8965 if test "${ac_cv_search_kstat_open+set}" = set; then :
8966
8967 else
8968   ac_cv_search_kstat_open=no
8969 fi
8970 rm conftest.$ac_ext
8971 LIBS=$ac_func_search_save_LIBS
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8974 $as_echo "$ac_cv_search_kstat_open" >&6; }
8975 ac_res=$ac_cv_search_kstat_open
8976 if test "$ac_res" != no; then :
8977   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8978
8979 fi
8980
8981 EXTRA_GCC_LIBS="$LIBS"
8982 LIBS="$save_LIBS"
8983
8984
8985 # Some systems put ldexp and frexp in libm instead of libc; assume
8986 # they're both in the same place.  jcf-dump needs them.
8987 save_LIBS="$LIBS"
8988 LIBS=
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8990 $as_echo_n "checking for library containing ldexp... " >&6; }
8991 if test "${ac_cv_search_ldexp+set}" = set; then :
8992   $as_echo_n "(cached) " >&6
8993 else
8994   ac_func_search_save_LIBS=$LIBS
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h.  */
8997
8998 /* Override any GCC internal prototype to avoid an error.
8999    Use char because int might match the return type of a GCC
9000    builtin and then its argument prototype would still apply.  */
9001 #ifdef __cplusplus
9002 extern "C"
9003 #endif
9004 char ldexp ();
9005 int
9006 main ()
9007 {
9008 return ldexp ();
9009   ;
9010   return 0;
9011 }
9012 _ACEOF
9013 for ac_lib in '' m; do
9014   if test -z "$ac_lib"; then
9015     ac_res="none required"
9016   else
9017     ac_res=-l$ac_lib
9018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9019   fi
9020   if ac_fn_c_try_link "$LINENO"; then :
9021   ac_cv_search_ldexp=$ac_res
9022 fi
9023 rm -f core conftest.err conftest.$ac_objext \
9024     conftest$ac_exeext
9025   if test "${ac_cv_search_ldexp+set}" = set; then :
9026   break
9027 fi
9028 done
9029 if test "${ac_cv_search_ldexp+set}" = set; then :
9030
9031 else
9032   ac_cv_search_ldexp=no
9033 fi
9034 rm conftest.$ac_ext
9035 LIBS=$ac_func_search_save_LIBS
9036 fi
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9038 $as_echo "$ac_cv_search_ldexp" >&6; }
9039 ac_res=$ac_cv_search_ldexp
9040 if test "$ac_res" != no; then :
9041   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9042
9043 fi
9044
9045 LDEXP_LIB="$LIBS"
9046 LIBS="$save_LIBS"
9047
9048
9049 # Use <inttypes.h> only if it exists,
9050 # doesn't clash with <sys/types.h>, and declares intmax_t.
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9052 $as_echo_n "checking for inttypes.h... " >&6; }
9053 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9054   $as_echo_n "(cached) " >&6
9055 else
9056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h.  */
9058 #include <sys/types.h>
9059 #include <inttypes.h>
9060 int
9061 main ()
9062 {
9063 intmax_t i = -1;
9064   ;
9065   return 0;
9066 }
9067 _ACEOF
9068 if ac_fn_c_try_compile "$LINENO"; then :
9069   gcc_cv_header_inttypes_h=yes
9070 else
9071   gcc_cv_header_inttypes_h=no
9072 fi
9073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074 fi
9075
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9077 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9078 if test $gcc_cv_header_inttypes_h = yes; then
9079
9080 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9081
9082 fi
9083
9084
9085
9086 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9087         sysconf strsignal getrusage nl_langinfo \
9088         gettimeofday mbstowcs wcswidth mmap setlocale \
9089         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
9090 do :
9091   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9093 eval as_val=\$$as_ac_var
9094    if test "x$as_val" = x""yes; then :
9095   cat >>confdefs.h <<_ACEOF
9096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9097 _ACEOF
9098
9099 fi
9100 done
9101
9102
9103 if test x$ac_cv_func_mbstowcs = xyes; then
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9105 $as_echo_n "checking whether mbstowcs works... " >&6; }
9106 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9107   $as_echo_n "(cached) " >&6
9108 else
9109       if test "$cross_compiling" = yes; then :
9110   gcc_cv_func_mbstowcs_works=yes
9111 else
9112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h.  */
9114 #include <stdlib.h>
9115 int main()
9116 {
9117   mbstowcs(0, "", 0);
9118   return 0;
9119 }
9120 _ACEOF
9121 if ac_fn_c_try_run "$LINENO"; then :
9122   gcc_cv_func_mbstowcs_works=yes
9123 else
9124   gcc_cv_func_mbstowcs_works=no
9125 fi
9126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9127   conftest.$ac_objext conftest.beam conftest.$ac_ext
9128 fi
9129
9130 fi
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9132 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9133   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9134
9135 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9136
9137   fi
9138 fi
9139
9140 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9141 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9142
9143 else
9144
9145 cat >>confdefs.h <<_ACEOF
9146 #define ssize_t int
9147 _ACEOF
9148
9149 fi
9150
9151 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9152 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9153
9154 else
9155
9156 cat >>confdefs.h <<_ACEOF
9157 #define caddr_t char *
9158 _ACEOF
9159
9160 fi
9161
9162
9163
9164 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9165 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9166   gcc_header_sys_mman_h=yes
9167 else
9168   gcc_header_sys_mman_h=no
9169 fi
9170
9171 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9172 if test "x$ac_cv_func_mmap" = x""yes; then :
9173   gcc_func_mmap=yes
9174 else
9175   gcc_func_mmap=no
9176 fi
9177
9178 if test "$gcc_header_sys_mman_h" != yes \
9179  || test "$gcc_func_mmap" != yes; then
9180    gcc_cv_func_mmap_file=no
9181    gcc_cv_func_mmap_dev_zero=no
9182    gcc_cv_func_mmap_anon=no
9183 else
9184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9185 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9186 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9187   $as_echo_n "(cached) " >&6
9188 else
9189   # Add a system to this blacklist if
9190    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9191    # memory area containing the same data that you'd get if you applied
9192    # read() to the same fd.  The only system known to have a problem here
9193    # is VMS, where text files have record structure.
9194    case "$host_os" in
9195      vms* | ultrix*)
9196         gcc_cv_func_mmap_file=no ;;
9197      *)
9198         gcc_cv_func_mmap_file=yes;;
9199    esac
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9202 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9204 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9205 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9206   $as_echo_n "(cached) " >&6
9207 else
9208   # Add a system to this blacklist if it has mmap() but /dev/zero
9209    # does not exist, or if mmapping /dev/zero does not give anonymous
9210    # zeroed pages with both the following properties:
9211    # 1. If you map N consecutive pages in with one call, and then
9212    #    unmap any subset of those pages, the pages that were not
9213    #    explicitly unmapped remain accessible.
9214    # 2. If you map two adjacent blocks of memory and then unmap them
9215    #    both at once, they must both go away.
9216    # Systems known to be in this category are Windows (all variants),
9217    # VMS, and Darwin.
9218    case "$host_os" in
9219      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9220         gcc_cv_func_mmap_dev_zero=no ;;
9221      *)
9222         gcc_cv_func_mmap_dev_zero=yes;;
9223    esac
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9226 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9227
9228    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9230 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9231 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9232   $as_echo_n "(cached) " >&6
9233 else
9234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h.  */
9236 #include <sys/types.h>
9237 #include <sys/mman.h>
9238 #include <unistd.h>
9239
9240 #ifndef MAP_ANONYMOUS
9241 #define MAP_ANONYMOUS MAP_ANON
9242 #endif
9243
9244 int
9245 main ()
9246 {
9247 int n = MAP_ANONYMOUS;
9248   ;
9249   return 0;
9250 }
9251 _ACEOF
9252 if ac_fn_c_try_compile "$LINENO"; then :
9253   gcc_cv_decl_map_anon=yes
9254 else
9255   gcc_cv_decl_map_anon=no
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 fi
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9260 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9261
9262    if test $gcc_cv_decl_map_anon = no; then
9263      gcc_cv_func_mmap_anon=no
9264    else
9265      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9266 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9267 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9268   $as_echo_n "(cached) " >&6
9269 else
9270   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9271    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9272    # doesn't give anonymous zeroed pages with the same properties listed
9273    # above for use of /dev/zero.
9274    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9275    case "$host_os" in
9276      vms* | cygwin* | pe | mingw* | sco* | udk* )
9277         gcc_cv_func_mmap_anon=no ;;
9278      *)
9279         gcc_cv_func_mmap_anon=yes;;
9280    esac
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9283 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9284    fi
9285 fi
9286
9287 if test $gcc_cv_func_mmap_file = yes; then
9288
9289 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9290
9291 fi
9292 if test $gcc_cv_func_mmap_dev_zero = yes; then
9293
9294 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9295
9296 fi
9297 if test $gcc_cv_func_mmap_anon = yes; then
9298
9299 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9300
9301 fi
9302
9303
9304 case "${host}" in
9305 *-*-*vms*)
9306   # Under VMS, vfork works very differently than on Unix. The standard test
9307   # won't work, and it isn't easily adaptable. It makes more sense to
9308   # just force it.
9309   ac_cv_func_vfork_works=yes
9310   ;;
9311 esac
9312 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9313 if test "x$ac_cv_type_pid_t" = x""yes; then :
9314
9315 else
9316
9317 cat >>confdefs.h <<_ACEOF
9318 #define pid_t int
9319 _ACEOF
9320
9321 fi
9322
9323 for ac_header in vfork.h
9324 do :
9325   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9326 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9327   cat >>confdefs.h <<_ACEOF
9328 #define HAVE_VFORK_H 1
9329 _ACEOF
9330
9331 fi
9332 done
9333
9334 for ac_func in fork vfork
9335 do :
9336   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9338 eval as_val=\$$as_ac_var
9339    if test "x$as_val" = x""yes; then :
9340   cat >>confdefs.h <<_ACEOF
9341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9342 _ACEOF
9343
9344 fi
9345 done
9346
9347 if test "x$ac_cv_func_fork" = xyes; then
9348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9349 $as_echo_n "checking for working fork... " >&6; }
9350 if test "${ac_cv_func_fork_works+set}" = set; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   if test "$cross_compiling" = yes; then :
9354   ac_cv_func_fork_works=cross
9355 else
9356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h.  */
9358 $ac_includes_default
9359 int
9360 main ()
9361 {
9362
9363           /* By Ruediger Kuhlmann. */
9364           return fork () < 0;
9365
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_run "$LINENO"; then :
9371   ac_cv_func_fork_works=yes
9372 else
9373   ac_cv_func_fork_works=no
9374 fi
9375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9376   conftest.$ac_objext conftest.beam conftest.$ac_ext
9377 fi
9378
9379 fi
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9381 $as_echo "$ac_cv_func_fork_works" >&6; }
9382
9383 else
9384   ac_cv_func_fork_works=$ac_cv_func_fork
9385 fi
9386 if test "x$ac_cv_func_fork_works" = xcross; then
9387   case $host in
9388     *-*-amigaos* | *-*-msdosdjgpp*)
9389       # Override, as these systems have only a dummy fork() stub
9390       ac_cv_func_fork_works=no
9391       ;;
9392     *)
9393       ac_cv_func_fork_works=yes
9394       ;;
9395   esac
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9397 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9398 fi
9399 ac_cv_func_vfork_works=$ac_cv_func_vfork
9400 if test "x$ac_cv_func_vfork" = xyes; then
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9402 $as_echo_n "checking for working vfork... " >&6; }
9403 if test "${ac_cv_func_vfork_works+set}" = set; then :
9404   $as_echo_n "(cached) " >&6
9405 else
9406   if test "$cross_compiling" = yes; then :
9407   ac_cv_func_vfork_works=cross
9408 else
9409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h.  */
9411 /* Thanks to Paul Eggert for this test.  */
9412 $ac_includes_default
9413 #include <sys/wait.h>
9414 #ifdef HAVE_VFORK_H
9415 # include <vfork.h>
9416 #endif
9417 /* On some sparc systems, changes by the child to local and incoming
9418    argument registers are propagated back to the parent.  The compiler
9419    is told about this with #include <vfork.h>, but some compilers
9420    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9421    static variable whose address is put into a register that is
9422    clobbered by the vfork.  */
9423 static void
9424 #ifdef __cplusplus
9425 sparc_address_test (int arg)
9426 # else
9427 sparc_address_test (arg) int arg;
9428 #endif
9429 {
9430   static pid_t child;
9431   if (!child) {
9432     child = vfork ();
9433     if (child < 0) {
9434       perror ("vfork");
9435       _exit(2);
9436     }
9437     if (!child) {
9438       arg = getpid();
9439       write(-1, "", 0);
9440       _exit (arg);
9441     }
9442   }
9443 }
9444
9445 int
9446 main ()
9447 {
9448   pid_t parent = getpid ();
9449   pid_t child;
9450
9451   sparc_address_test (0);
9452
9453   child = vfork ();
9454
9455   if (child == 0) {
9456     /* Here is another test for sparc vfork register problems.  This
9457        test uses lots of local variables, at least as many local
9458        variables as main has allocated so far including compiler
9459        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9460        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9461        reuse the register of parent for one of the local variables,
9462        since it will think that parent can't possibly be used any more
9463        in this routine.  Assigning to the local variable will thus
9464        munge parent in the parent process.  */
9465     pid_t
9466       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9467       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9468     /* Convince the compiler that p..p7 are live; otherwise, it might
9469        use the same hardware register for all 8 local variables.  */
9470     if (p != p1 || p != p2 || p != p3 || p != p4
9471         || p != p5 || p != p6 || p != p7)
9472       _exit(1);
9473
9474     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9475        from child file descriptors.  If the child closes a descriptor
9476        before it execs or exits, this munges the parent's descriptor
9477        as well.  Test for this by closing stdout in the child.  */
9478     _exit(close(fileno(stdout)) != 0);
9479   } else {
9480     int status;
9481     struct stat st;
9482
9483     while (wait(&status) != child)
9484       ;
9485     return (
9486          /* Was there some problem with vforking?  */
9487          child < 0
9488
9489          /* Did the child fail?  (This shouldn't happen.)  */
9490          || status
9491
9492          /* Did the vfork/compiler bug occur?  */
9493          || parent != getpid()
9494
9495          /* Did the file descriptor bug occur?  */
9496          || fstat(fileno(stdout), &st) != 0
9497          );
9498   }
9499 }
9500 _ACEOF
9501 if ac_fn_c_try_run "$LINENO"; then :
9502   ac_cv_func_vfork_works=yes
9503 else
9504   ac_cv_func_vfork_works=no
9505 fi
9506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9507   conftest.$ac_objext conftest.beam conftest.$ac_ext
9508 fi
9509
9510 fi
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9512 $as_echo "$ac_cv_func_vfork_works" >&6; }
9513
9514 fi;
9515 if test "x$ac_cv_func_fork_works" = xcross; then
9516   ac_cv_func_vfork_works=$ac_cv_func_vfork
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9518 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9519 fi
9520
9521 if test "x$ac_cv_func_vfork_works" = xyes; then
9522
9523 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9524
9525 else
9526
9527 $as_echo "#define vfork fork" >>confdefs.h
9528
9529 fi
9530 if test "x$ac_cv_func_fork_works" = xyes; then
9531
9532 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9533
9534 fi
9535
9536
9537 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9538 # iconv() prototype.
9539
9540       if test "X$prefix" = "XNONE"; then
9541     acl_final_prefix="$ac_default_prefix"
9542   else
9543     acl_final_prefix="$prefix"
9544   fi
9545   if test "X$exec_prefix" = "XNONE"; then
9546     acl_final_exec_prefix='${prefix}'
9547   else
9548     acl_final_exec_prefix="$exec_prefix"
9549   fi
9550   acl_save_prefix="$prefix"
9551   prefix="$acl_final_prefix"
9552   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9553   prefix="$acl_save_prefix"
9554
9555
9556 # Check whether --with-gnu-ld was given.
9557 if test "${with_gnu_ld+set}" = set; then :
9558   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9559 else
9560   with_gnu_ld=no
9561 fi
9562
9563 # Prepare PATH_SEPARATOR.
9564 # The user is always right.
9565 if test "${PATH_SEPARATOR+set}" != set; then
9566   echo "#! /bin/sh" >conf$$.sh
9567   echo  "exit 0"   >>conf$$.sh
9568   chmod +x conf$$.sh
9569   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9570     PATH_SEPARATOR=';'
9571   else
9572     PATH_SEPARATOR=:
9573   fi
9574   rm -f conf$$.sh
9575 fi
9576 ac_prog=ld
9577 if test "$GCC" = yes; then
9578   # Check if gcc -print-prog-name=ld gives a path.
9579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9580 $as_echo_n "checking for ld used by GCC... " >&6; }
9581   case $host in
9582   *-*-mingw*)
9583     # gcc leaves a trailing carriage return which upsets mingw
9584     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9585   *)
9586     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9587   esac
9588   case $ac_prog in
9589     # Accept absolute paths.
9590     [\\/]* | [A-Za-z]:[\\/]*)
9591       re_direlt='/[^/][^/]*/\.\./'
9592       # Canonicalize the path of ld
9593       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9594       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9595         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9596       done
9597       test -z "$LD" && LD="$ac_prog"
9598       ;;
9599   "")
9600     # If it fails, then pretend we aren't using GCC.
9601     ac_prog=ld
9602     ;;
9603   *)
9604     # If it is relative, then search for the first ld in PATH.
9605     with_gnu_ld=unknown
9606     ;;
9607   esac
9608 elif test "$with_gnu_ld" = yes; then
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9610 $as_echo_n "checking for GNU ld... " >&6; }
9611 else
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9613 $as_echo_n "checking for non-GNU ld... " >&6; }
9614 fi
9615 if test "${acl_cv_path_LD+set}" = set; then :
9616   $as_echo_n "(cached) " >&6
9617 else
9618   if test -z "$LD"; then
9619   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9620   for ac_dir in $PATH; do
9621     test -z "$ac_dir" && ac_dir=.
9622     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9623       acl_cv_path_LD="$ac_dir/$ac_prog"
9624       # Check to see if the program is GNU ld.  I'd rather use --version,
9625       # but apparently some GNU ld's only accept -v.
9626       # Break only if it was the GNU/non-GNU ld that we prefer.
9627       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9628         test "$with_gnu_ld" != no && break
9629       else
9630         test "$with_gnu_ld" != yes && break
9631       fi
9632     fi
9633   done
9634   IFS="$ac_save_ifs"
9635 else
9636   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9637 fi
9638 fi
9639
9640 LD="$acl_cv_path_LD"
9641 if test -n "$LD"; then
9642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9643 $as_echo "$LD" >&6; }
9644 else
9645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9647 fi
9648 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9650 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9651 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9652   $as_echo_n "(cached) " >&6
9653 else
9654   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9655 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9656   acl_cv_prog_gnu_ld=yes
9657 else
9658   acl_cv_prog_gnu_ld=no
9659 fi
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9662 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9663 with_gnu_ld=$acl_cv_prog_gnu_ld
9664
9665
9666
9667                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9668 $as_echo_n "checking for shared library run path origin... " >&6; }
9669 if test "${acl_cv_rpath+set}" = set; then :
9670   $as_echo_n "(cached) " >&6
9671 else
9672
9673     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9674     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9675     . ./conftest.sh
9676     rm -f ./conftest.sh
9677     acl_cv_rpath=done
9678
9679 fi
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9681 $as_echo "$acl_cv_rpath" >&6; }
9682   wl="$acl_cv_wl"
9683   libext="$acl_cv_libext"
9684   shlibext="$acl_cv_shlibext"
9685   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9686   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9687   hardcode_direct="$acl_cv_hardcode_direct"
9688   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9689     # Check whether --enable-rpath was given.
9690 if test "${enable_rpath+set}" = set; then :
9691   enableval=$enable_rpath; :
9692 else
9693   enable_rpath=yes
9694 fi
9695
9696
9697
9698
9699
9700
9701
9702
9703     use_additional=yes
9704
9705   acl_save_prefix="$prefix"
9706   prefix="$acl_final_prefix"
9707   acl_save_exec_prefix="$exec_prefix"
9708   exec_prefix="$acl_final_exec_prefix"
9709
9710     eval additional_includedir=\"$includedir\"
9711     eval additional_libdir=\"$libdir\"
9712
9713   exec_prefix="$acl_save_exec_prefix"
9714   prefix="$acl_save_prefix"
9715
9716
9717 # Check whether --with-libiconv-prefix was given.
9718 if test "${with_libiconv_prefix+set}" = set; then :
9719   withval=$with_libiconv_prefix;
9720     if test "X$withval" = "Xno"; then
9721       use_additional=no
9722     else
9723       if test "X$withval" = "X"; then
9724
9725   acl_save_prefix="$prefix"
9726   prefix="$acl_final_prefix"
9727   acl_save_exec_prefix="$exec_prefix"
9728   exec_prefix="$acl_final_exec_prefix"
9729
9730           eval additional_includedir=\"$includedir\"
9731           eval additional_libdir=\"$libdir\"
9732
9733   exec_prefix="$acl_save_exec_prefix"
9734   prefix="$acl_save_prefix"
9735
9736       else
9737         additional_includedir="$withval/include"
9738         additional_libdir="$withval/lib"
9739       fi
9740     fi
9741
9742 fi
9743
9744       LIBICONV=
9745   LTLIBICONV=
9746   INCICONV=
9747   rpathdirs=
9748   ltrpathdirs=
9749   names_already_handled=
9750   names_next_round='iconv '
9751   while test -n "$names_next_round"; do
9752     names_this_round="$names_next_round"
9753     names_next_round=
9754     for name in $names_this_round; do
9755       already_handled=
9756       for n in $names_already_handled; do
9757         if test "$n" = "$name"; then
9758           already_handled=yes
9759           break
9760         fi
9761       done
9762       if test -z "$already_handled"; then
9763         names_already_handled="$names_already_handled $name"
9764                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9765         eval value=\"\$HAVE_LIB$uppername\"
9766         if test -n "$value"; then
9767           if test "$value" = yes; then
9768             eval value=\"\$LIB$uppername\"
9769             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9770             eval value=\"\$LTLIB$uppername\"
9771             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9772           else
9773                                     :
9774           fi
9775         else
9776                               found_dir=
9777           found_la=
9778           found_so=
9779           found_a=
9780           if test $use_additional = yes; then
9781             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9782               found_dir="$additional_libdir"
9783               found_so="$additional_libdir/lib$name.$shlibext"
9784               if test -f "$additional_libdir/lib$name.la"; then
9785                 found_la="$additional_libdir/lib$name.la"
9786               fi
9787             else
9788               if test -f "$additional_libdir/lib$name.$libext"; then
9789                 found_dir="$additional_libdir"
9790                 found_a="$additional_libdir/lib$name.$libext"
9791                 if test -f "$additional_libdir/lib$name.la"; then
9792                   found_la="$additional_libdir/lib$name.la"
9793                 fi
9794               fi
9795             fi
9796           fi
9797           if test "X$found_dir" = "X"; then
9798             for x in $LDFLAGS $LTLIBICONV; do
9799
9800   acl_save_prefix="$prefix"
9801   prefix="$acl_final_prefix"
9802   acl_save_exec_prefix="$exec_prefix"
9803   exec_prefix="$acl_final_exec_prefix"
9804   eval x=\"$x\"
9805   exec_prefix="$acl_save_exec_prefix"
9806   prefix="$acl_save_prefix"
9807
9808               case "$x" in
9809                 -L*)
9810                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9811                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9812                     found_dir="$dir"
9813                     found_so="$dir/lib$name.$shlibext"
9814                     if test -f "$dir/lib$name.la"; then
9815                       found_la="$dir/lib$name.la"
9816                     fi
9817                   else
9818                     if test -f "$dir/lib$name.$libext"; then
9819                       found_dir="$dir"
9820                       found_a="$dir/lib$name.$libext"
9821                       if test -f "$dir/lib$name.la"; then
9822                         found_la="$dir/lib$name.la"
9823                       fi
9824                     fi
9825                   fi
9826                   ;;
9827               esac
9828               if test "X$found_dir" != "X"; then
9829                 break
9830               fi
9831             done
9832           fi
9833           if test "X$found_dir" != "X"; then
9834                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9835             if test "X$found_so" != "X"; then
9836                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9837                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9838               else
9839                                                                                 haveit=
9840                 for x in $ltrpathdirs; do
9841                   if test "X$x" = "X$found_dir"; then
9842                     haveit=yes
9843                     break
9844                   fi
9845                 done
9846                 if test -z "$haveit"; then
9847                   ltrpathdirs="$ltrpathdirs $found_dir"
9848                 fi
9849                                 if test "$hardcode_direct" = yes; then
9850                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9851                 else
9852                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9853                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9854                                                             haveit=
9855                     for x in $rpathdirs; do
9856                       if test "X$x" = "X$found_dir"; then
9857                         haveit=yes
9858                         break
9859                       fi
9860                     done
9861                     if test -z "$haveit"; then
9862                       rpathdirs="$rpathdirs $found_dir"
9863                     fi
9864                   else
9865                                                                                 haveit=
9866                     for x in $LDFLAGS $LIBICONV; do
9867
9868   acl_save_prefix="$prefix"
9869   prefix="$acl_final_prefix"
9870   acl_save_exec_prefix="$exec_prefix"
9871   exec_prefix="$acl_final_exec_prefix"
9872   eval x=\"$x\"
9873   exec_prefix="$acl_save_exec_prefix"
9874   prefix="$acl_save_prefix"
9875
9876                       if test "X$x" = "X-L$found_dir"; then
9877                         haveit=yes
9878                         break
9879                       fi
9880                     done
9881                     if test -z "$haveit"; then
9882                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9883                     fi
9884                     if test "$hardcode_minus_L" != no; then
9885                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9886                     else
9887                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9888                     fi
9889                   fi
9890                 fi
9891               fi
9892             else
9893               if test "X$found_a" != "X"; then
9894                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9895               else
9896                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9897               fi
9898             fi
9899                         additional_includedir=
9900             case "$found_dir" in
9901               */lib | */lib/)
9902                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9903                 additional_includedir="$basedir/include"
9904                 ;;
9905             esac
9906             if test "X$additional_includedir" != "X"; then
9907                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9908                 haveit=
9909                 if test "X$additional_includedir" = "X/usr/local/include"; then
9910                   if test -n "$GCC"; then
9911                     case $host_os in
9912                       linux*) haveit=yes;;
9913                     esac
9914                   fi
9915                 fi
9916                 if test -z "$haveit"; then
9917                   for x in $CPPFLAGS $INCICONV; do
9918
9919   acl_save_prefix="$prefix"
9920   prefix="$acl_final_prefix"
9921   acl_save_exec_prefix="$exec_prefix"
9922   exec_prefix="$acl_final_exec_prefix"
9923   eval x=\"$x\"
9924   exec_prefix="$acl_save_exec_prefix"
9925   prefix="$acl_save_prefix"
9926
9927                     if test "X$x" = "X-I$additional_includedir"; then
9928                       haveit=yes
9929                       break
9930                     fi
9931                   done
9932                   if test -z "$haveit"; then
9933                     if test -d "$additional_includedir"; then
9934                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9935                     fi
9936                   fi
9937                 fi
9938               fi
9939             fi
9940                         if test -n "$found_la"; then
9941                                                         save_libdir="$libdir"
9942               case "$found_la" in
9943                 */* | *\\*) . "$found_la" ;;
9944                 *) . "./$found_la" ;;
9945               esac
9946               libdir="$save_libdir"
9947                             for dep in $dependency_libs; do
9948                 case "$dep" in
9949                   -L*)
9950                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9951                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9952                       haveit=
9953                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9954                         if test -n "$GCC"; then
9955                           case $host_os in
9956                             linux*) haveit=yes;;
9957                           esac
9958                         fi
9959                       fi
9960                       if test -z "$haveit"; then
9961                         haveit=
9962                         for x in $LDFLAGS $LIBICONV; do
9963
9964   acl_save_prefix="$prefix"
9965   prefix="$acl_final_prefix"
9966   acl_save_exec_prefix="$exec_prefix"
9967   exec_prefix="$acl_final_exec_prefix"
9968   eval x=\"$x\"
9969   exec_prefix="$acl_save_exec_prefix"
9970   prefix="$acl_save_prefix"
9971
9972                           if test "X$x" = "X-L$additional_libdir"; then
9973                             haveit=yes
9974                             break
9975                           fi
9976                         done
9977                         if test -z "$haveit"; then
9978                           if test -d "$additional_libdir"; then
9979                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9980                           fi
9981                         fi
9982                         haveit=
9983                         for x in $LDFLAGS $LTLIBICONV; do
9984
9985   acl_save_prefix="$prefix"
9986   prefix="$acl_final_prefix"
9987   acl_save_exec_prefix="$exec_prefix"
9988   exec_prefix="$acl_final_exec_prefix"
9989   eval x=\"$x\"
9990   exec_prefix="$acl_save_exec_prefix"
9991   prefix="$acl_save_prefix"
9992
9993                           if test "X$x" = "X-L$additional_libdir"; then
9994                             haveit=yes
9995                             break
9996                           fi
9997                         done
9998                         if test -z "$haveit"; then
9999                           if test -d "$additional_libdir"; then
10000                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10001                           fi
10002                         fi
10003                       fi
10004                     fi
10005                     ;;
10006                   -R*)
10007                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10008                     if test "$enable_rpath" != no; then
10009                                                                   haveit=
10010                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
10018                       fi
10019                                                                   haveit=
10020                       for x in $ltrpathdirs; do
10021                         if test "X$x" = "X$dir"; then
10022                           haveit=yes
10023                           break
10024                         fi
10025                       done
10026                       if test -z "$haveit"; then
10027                         ltrpathdirs="$ltrpathdirs $dir"
10028                       fi
10029                     fi
10030                     ;;
10031                   -l*)
10032                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10033                     ;;
10034                   *.la)
10035                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10036                     ;;
10037                   *)
10038                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10039                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10040                     ;;
10041                 esac
10042               done
10043             fi
10044           else
10045                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10046             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10047           fi
10048         fi
10049       fi
10050     done
10051   done
10052   if test "X$rpathdirs" != "X"; then
10053     if test -n "$hardcode_libdir_separator"; then
10054                         alldirs=
10055       for found_dir in $rpathdirs; do
10056         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10057       done
10058             acl_save_libdir="$libdir"
10059       libdir="$alldirs"
10060       eval flag=\"$hardcode_libdir_flag_spec\"
10061       libdir="$acl_save_libdir"
10062       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10063     else
10064             for found_dir in $rpathdirs; do
10065         acl_save_libdir="$libdir"
10066         libdir="$found_dir"
10067         eval flag=\"$hardcode_libdir_flag_spec\"
10068         libdir="$acl_save_libdir"
10069         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10070       done
10071     fi
10072   fi
10073   if test "X$ltrpathdirs" != "X"; then
10074             for found_dir in $ltrpathdirs; do
10075       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10076     done
10077   fi
10078
10079
10080 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10081   ac_ext=cpp
10082 ac_cpp='$CXXCPP $CPPFLAGS'
10083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10086
10087
10088
10089
10090
10091
10092           am_save_CPPFLAGS="$CPPFLAGS"
10093
10094   for element in $INCICONV; do
10095     haveit=
10096     for x in $CPPFLAGS; do
10097
10098   acl_save_prefix="$prefix"
10099   prefix="$acl_final_prefix"
10100   acl_save_exec_prefix="$exec_prefix"
10101   exec_prefix="$acl_final_exec_prefix"
10102   eval x=\"$x\"
10103   exec_prefix="$acl_save_exec_prefix"
10104   prefix="$acl_save_prefix"
10105
10106       if test "X$x" = "X$element"; then
10107         haveit=yes
10108         break
10109       fi
10110     done
10111     if test -z "$haveit"; then
10112       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10113     fi
10114   done
10115
10116
10117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10118 $as_echo_n "checking for iconv... " >&6; }
10119 if test "${am_cv_func_iconv+set}" = set; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122
10123     am_cv_func_iconv="no, consider installing GNU libiconv"
10124     am_cv_lib_iconv=no
10125     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h.  */
10127 #include <stdlib.h>
10128 #include <iconv.h>
10129 int
10130 main ()
10131 {
10132 iconv_t cd = iconv_open("","");
10133        iconv(cd,NULL,NULL,NULL,NULL);
10134        iconv_close(cd);
10135   ;
10136   return 0;
10137 }
10138 _ACEOF
10139 if ac_fn_cxx_try_link "$LINENO"; then :
10140   am_cv_func_iconv=yes
10141 fi
10142 rm -f core conftest.err conftest.$ac_objext \
10143     conftest$ac_exeext conftest.$ac_ext
10144     if test "$am_cv_func_iconv" != yes; then
10145       am_save_LIBS="$LIBS"
10146       LIBS="$LIBS $LIBICONV"
10147       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h.  */
10149 #include <stdlib.h>
10150 #include <iconv.h>
10151 int
10152 main ()
10153 {
10154 iconv_t cd = iconv_open("","");
10155          iconv(cd,NULL,NULL,NULL,NULL);
10156          iconv_close(cd);
10157   ;
10158   return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_cxx_try_link "$LINENO"; then :
10162   am_cv_lib_iconv=yes
10163         am_cv_func_iconv=yes
10164 fi
10165 rm -f core conftest.err conftest.$ac_objext \
10166     conftest$ac_exeext conftest.$ac_ext
10167       LIBS="$am_save_LIBS"
10168     fi
10169
10170 fi
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10172 $as_echo "$am_cv_func_iconv" >&6; }
10173   if test "$am_cv_func_iconv" = yes; then
10174
10175 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10176
10177   fi
10178   if test "$am_cv_lib_iconv" = yes; then
10179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10180 $as_echo_n "checking how to link with libiconv... " >&6; }
10181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10182 $as_echo "$LIBICONV" >&6; }
10183   else
10184             CPPFLAGS="$am_save_CPPFLAGS"
10185     LIBICONV=
10186     LTLIBICONV=
10187   fi
10188
10189
10190
10191   if test "$am_cv_func_iconv" = yes; then
10192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10193 $as_echo_n "checking for iconv declaration... " >&6; }
10194     if test "${am_cv_proto_iconv+set}" = set; then :
10195   $as_echo_n "(cached) " >&6
10196 else
10197
10198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h.  */
10200
10201 #include <stdlib.h>
10202 #include <iconv.h>
10203 extern
10204 #ifdef __cplusplus
10205 "C"
10206 #endif
10207 #if defined(__STDC__) || defined(__cplusplus)
10208 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10209 #else
10210 size_t iconv();
10211 #endif
10212
10213 int
10214 main ()
10215 {
10216
10217   ;
10218   return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_cxx_try_compile "$LINENO"; then :
10222   am_cv_proto_iconv_arg1=""
10223 else
10224   am_cv_proto_iconv_arg1="const"
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227       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);"
10228 fi
10229
10230     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10232          }$am_cv_proto_iconv" >&5
10233 $as_echo "${ac_t:-
10234          }$am_cv_proto_iconv" >&6; }
10235
10236 cat >>confdefs.h <<_ACEOF
10237 #define ICONV_CONST $am_cv_proto_iconv_arg1
10238 _ACEOF
10239
10240   fi
10241
10242    ac_ext=c
10243 ac_cpp='$CPP $CPPFLAGS'
10244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10247
10248 else
10249
10250
10251
10252
10253
10254           am_save_CPPFLAGS="$CPPFLAGS"
10255
10256   for element in $INCICONV; do
10257     haveit=
10258     for x in $CPPFLAGS; do
10259
10260   acl_save_prefix="$prefix"
10261   prefix="$acl_final_prefix"
10262   acl_save_exec_prefix="$exec_prefix"
10263   exec_prefix="$acl_final_exec_prefix"
10264   eval x=\"$x\"
10265   exec_prefix="$acl_save_exec_prefix"
10266   prefix="$acl_save_prefix"
10267
10268       if test "X$x" = "X$element"; then
10269         haveit=yes
10270         break
10271       fi
10272     done
10273     if test -z "$haveit"; then
10274       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10275     fi
10276   done
10277
10278
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10280 $as_echo_n "checking for iconv... " >&6; }
10281 if test "${am_cv_func_iconv+set}" = set; then :
10282   $as_echo_n "(cached) " >&6
10283 else
10284
10285     am_cv_func_iconv="no, consider installing GNU libiconv"
10286     am_cv_lib_iconv=no
10287     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h.  */
10289 #include <stdlib.h>
10290 #include <iconv.h>
10291 int
10292 main ()
10293 {
10294 iconv_t cd = iconv_open("","");
10295        iconv(cd,NULL,NULL,NULL,NULL);
10296        iconv_close(cd);
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302   am_cv_func_iconv=yes
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext \
10305     conftest$ac_exeext conftest.$ac_ext
10306     if test "$am_cv_func_iconv" != yes; then
10307       am_save_LIBS="$LIBS"
10308       LIBS="$LIBS $LIBICONV"
10309       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h.  */
10311 #include <stdlib.h>
10312 #include <iconv.h>
10313 int
10314 main ()
10315 {
10316 iconv_t cd = iconv_open("","");
10317          iconv(cd,NULL,NULL,NULL,NULL);
10318          iconv_close(cd);
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 if ac_fn_c_try_link "$LINENO"; then :
10324   am_cv_lib_iconv=yes
10325         am_cv_func_iconv=yes
10326 fi
10327 rm -f core conftest.err conftest.$ac_objext \
10328     conftest$ac_exeext conftest.$ac_ext
10329       LIBS="$am_save_LIBS"
10330     fi
10331
10332 fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10334 $as_echo "$am_cv_func_iconv" >&6; }
10335   if test "$am_cv_func_iconv" = yes; then
10336
10337 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10338
10339   fi
10340   if test "$am_cv_lib_iconv" = yes; then
10341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10342 $as_echo_n "checking how to link with libiconv... " >&6; }
10343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10344 $as_echo "$LIBICONV" >&6; }
10345   else
10346             CPPFLAGS="$am_save_CPPFLAGS"
10347     LIBICONV=
10348     LTLIBICONV=
10349   fi
10350
10351
10352
10353   if test "$am_cv_func_iconv" = yes; then
10354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10355 $as_echo_n "checking for iconv declaration... " >&6; }
10356     if test "${am_cv_proto_iconv+set}" = set; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359
10360       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h.  */
10362
10363 #include <stdlib.h>
10364 #include <iconv.h>
10365 extern
10366 #ifdef __cplusplus
10367 "C"
10368 #endif
10369 #if defined(__STDC__) || defined(__cplusplus)
10370 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10371 #else
10372 size_t iconv();
10373 #endif
10374
10375 int
10376 main ()
10377 {
10378
10379   ;
10380   return 0;
10381 }
10382 _ACEOF
10383 if ac_fn_c_try_compile "$LINENO"; then :
10384   am_cv_proto_iconv_arg1=""
10385 else
10386   am_cv_proto_iconv_arg1="const"
10387 fi
10388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10389       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);"
10390 fi
10391
10392     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10394          }$am_cv_proto_iconv" >&5
10395 $as_echo "${ac_t:-
10396          }$am_cv_proto_iconv" >&6; }
10397
10398 cat >>confdefs.h <<_ACEOF
10399 #define ICONV_CONST $am_cv_proto_iconv_arg1
10400 _ACEOF
10401
10402   fi
10403
10404 fi
10405
10406 # Until we have in-tree GNU iconv:
10407 LIBICONV_DEP=
10408
10409
10410
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10412 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10413 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10414   $as_echo_n "(cached) " >&6
10415 else
10416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h.  */
10418 #include <locale.h>
10419 int
10420 main ()
10421 {
10422 return LC_MESSAGES
10423   ;
10424   return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428   am_cv_val_LC_MESSAGES=yes
10429 else
10430   am_cv_val_LC_MESSAGES=no
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext \
10433     conftest$ac_exeext conftest.$ac_ext
10434 fi
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10436 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10437   if test $am_cv_val_LC_MESSAGES = yes; then
10438
10439 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10440
10441   fi
10442
10443
10444
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10446 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10447 if test "${am_cv_langinfo_codeset+set}" = set; then :
10448   $as_echo_n "(cached) " >&6
10449 else
10450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h.  */
10452 #include <langinfo.h>
10453 int
10454 main ()
10455 {
10456 char* cs = nl_langinfo(CODESET);
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_link "$LINENO"; then :
10462   am_cv_langinfo_codeset=yes
10463 else
10464   am_cv_langinfo_codeset=no
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext \
10467     conftest$ac_exeext conftest.$ac_ext
10468
10469 fi
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10471 $as_echo "$am_cv_langinfo_codeset" >&6; }
10472   if test $am_cv_langinfo_codeset = yes; then
10473
10474 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10475
10476   fi
10477
10478
10479 # We will need to find libiberty.h and ansidecl.h
10480 saved_CFLAGS="$CFLAGS"
10481 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10482 saved_CXXFLAGS="$CXXFLAGS"
10483 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10484 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10485         strsignal strstr stpcpy strverscmp \
10486         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10487         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
10488 do
10489   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10491 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10492 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10493   $as_echo_n "(cached) " >&6
10494 else
10495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h.  */
10497 #undef $ac_tr_decl
10498 #define $ac_tr_decl 1
10499
10500 #include "ansidecl.h"
10501 #include "system.h"
10502
10503 int
10504 main ()
10505 {
10506 #ifndef $ac_func
10507 char *(*pfn) = (char *(*)) $ac_func ;
10508 #endif
10509   ;
10510   return 0;
10511 }
10512 _ACEOF
10513 if ac_fn_c_try_compile "$LINENO"; then :
10514   eval "gcc_cv_have_decl_$ac_func=yes"
10515 else
10516   eval "gcc_cv_have_decl_$ac_func=no"
10517 fi
10518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10519 fi
10520
10521 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10523 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10524 #define $ac_tr_decl 1
10525 _ACEOF
10526
10527 else
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10530 #define $ac_tr_decl 0
10531 _ACEOF
10532
10533 fi
10534
10535 done
10536
10537
10538 for ac_func in getrlimit setrlimit getrusage
10539 do
10540   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10542 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10543 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10544   $as_echo_n "(cached) " >&6
10545 else
10546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h.  */
10548 #undef $ac_tr_decl
10549 #define $ac_tr_decl 1
10550
10551 #include "ansidecl.h"
10552 #include "system.h"
10553 #ifdef HAVE_SYS_RESOURCE_H
10554 #include <sys/resource.h>
10555 #endif
10556
10557
10558 int
10559 main ()
10560 {
10561 #ifndef $ac_func
10562 char *(*pfn) = (char *(*)) $ac_func ;
10563 #endif
10564   ;
10565   return 0;
10566 }
10567 _ACEOF
10568 if ac_fn_c_try_compile "$LINENO"; then :
10569   eval "gcc_cv_have_decl_$ac_func=yes"
10570 else
10571   eval "gcc_cv_have_decl_$ac_func=no"
10572 fi
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 fi
10575
10576 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10578 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10579 #define $ac_tr_decl 1
10580 _ACEOF
10581
10582 else
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10585 #define $ac_tr_decl 0
10586 _ACEOF
10587
10588 fi
10589
10590 done
10591
10592
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h.  */
10595
10596 #include "ansidecl.h"
10597 #include "system.h"
10598 #ifdef HAVE_SYS_RESOURCE_H
10599 #include <sys/resource.h>
10600 #endif
10601
10602 int
10603 main ()
10604 {
10605 rlim_t l = 0;
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 if ac_fn_c_try_compile "$LINENO"; then :
10611
10612 else
10613
10614 $as_echo "#define rlim_t long" >>confdefs.h
10615
10616 fi
10617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10618
10619 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10620 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10621 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10622 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10623 for ac_func in ldgetname
10624 do
10625   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10627 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10628 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10629   $as_echo_n "(cached) " >&6
10630 else
10631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h.  */
10633 #undef $ac_tr_decl
10634 #define $ac_tr_decl 1
10635
10636 #include "ansidecl.h"
10637 #include "system.h"
10638 #ifdef HAVE_LDFCN_H
10639 #undef FREAD
10640 #undef FWRITE
10641 #include <ldfcn.h>
10642 #endif
10643
10644
10645 int
10646 main ()
10647 {
10648 #ifndef $ac_func
10649 char *(*pfn) = (char *(*)) $ac_func ;
10650 #endif
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 if ac_fn_c_try_compile "$LINENO"; then :
10656   eval "gcc_cv_have_decl_$ac_func=yes"
10657 else
10658   eval "gcc_cv_have_decl_$ac_func=no"
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 fi
10662
10663 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10666 #define $ac_tr_decl 1
10667 _ACEOF
10668
10669 else
10670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10672 #define $ac_tr_decl 0
10673 _ACEOF
10674
10675 fi
10676
10677 done
10678
10679
10680 for ac_func in times
10681 do
10682   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10684 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10685 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10686   $as_echo_n "(cached) " >&6
10687 else
10688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h.  */
10690 #undef $ac_tr_decl
10691 #define $ac_tr_decl 1
10692
10693 #include "ansidecl.h"
10694 #include "system.h"
10695 #ifdef HAVE_SYS_TIMES_H
10696 #include <sys/times.h>
10697 #endif
10698
10699
10700 int
10701 main ()
10702 {
10703 #ifndef $ac_func
10704 char *(*pfn) = (char *(*)) $ac_func ;
10705 #endif
10706   ;
10707   return 0;
10708 }
10709 _ACEOF
10710 if ac_fn_c_try_compile "$LINENO"; then :
10711   eval "gcc_cv_have_decl_$ac_func=yes"
10712 else
10713   eval "gcc_cv_have_decl_$ac_func=no"
10714 fi
10715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10716 fi
10717
10718 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10721 #define $ac_tr_decl 1
10722 _ACEOF
10723
10724 else
10725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10727 #define $ac_tr_decl 0
10728 _ACEOF
10729
10730 fi
10731
10732 done
10733
10734
10735 for ac_func in sigaltstack
10736 do
10737   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10739 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10740 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10741   $as_echo_n "(cached) " >&6
10742 else
10743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h.  */
10745 #undef $ac_tr_decl
10746 #define $ac_tr_decl 1
10747
10748 #include "ansidecl.h"
10749 #include "system.h"
10750 #include <signal.h>
10751
10752
10753 int
10754 main ()
10755 {
10756 #ifndef $ac_func
10757 char *(*pfn) = (char *(*)) $ac_func ;
10758 #endif
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 if ac_fn_c_try_compile "$LINENO"; then :
10764   eval "gcc_cv_have_decl_$ac_func=yes"
10765 else
10766   eval "gcc_cv_have_decl_$ac_func=no"
10767 fi
10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 fi
10770
10771 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10773 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10774 #define $ac_tr_decl 1
10775 _ACEOF
10776
10777 else
10778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10780 #define $ac_tr_decl 0
10781 _ACEOF
10782
10783 fi
10784
10785 done
10786
10787
10788 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10789 # prototype.
10790 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10791   ac_ext=cpp
10792 ac_cpp='$CXXCPP $CPPFLAGS'
10793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10796
10797    for ac_func in madvise
10798 do
10799   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10801 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10802 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10803   $as_echo_n "(cached) " >&6
10804 else
10805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h.  */
10807 #undef $ac_tr_decl
10808 #define $ac_tr_decl 1
10809
10810      #include "ansidecl.h"
10811      #include "system.h"
10812
10813
10814 int
10815 main ()
10816 {
10817 #ifndef $ac_func
10818 char *(*pfn) = (char *(*)) $ac_func ;
10819 #endif
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 if ac_fn_cxx_try_compile "$LINENO"; then :
10825   eval "gcc_cv_have_decl_$ac_func=yes"
10826 else
10827   eval "gcc_cv_have_decl_$ac_func=no"
10828 fi
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 fi
10831
10832 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10834 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10835 #define $ac_tr_decl 1
10836 _ACEOF
10837
10838 else
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10841 #define $ac_tr_decl 0
10842 _ACEOF
10843
10844 fi
10845
10846 done
10847
10848    ac_ext=c
10849 ac_cpp='$CPP $CPPFLAGS'
10850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10853
10854 else
10855   for ac_func in madvise
10856 do
10857   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10859 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10860 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10861   $as_echo_n "(cached) " >&6
10862 else
10863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h.  */
10865 #undef $ac_tr_decl
10866 #define $ac_tr_decl 1
10867
10868      #include "ansidecl.h"
10869      #include "system.h"
10870
10871
10872 int
10873 main ()
10874 {
10875 #ifndef $ac_func
10876 char *(*pfn) = (char *(*)) $ac_func ;
10877 #endif
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 if ac_fn_c_try_compile "$LINENO"; then :
10883   eval "gcc_cv_have_decl_$ac_func=yes"
10884 else
10885   eval "gcc_cv_have_decl_$ac_func=no"
10886 fi
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888 fi
10889
10890 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10892 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10893 #define $ac_tr_decl 1
10894 _ACEOF
10895
10896 else
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10899 #define $ac_tr_decl 0
10900 _ACEOF
10901
10902 fi
10903
10904 done
10905
10906
10907 fi
10908
10909 # More time-related stuff.
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10911 $as_echo_n "checking for struct tms... " >&6; }
10912 if test "${ac_cv_struct_tms+set}" = set; then :
10913   $as_echo_n "(cached) " >&6
10914 else
10915
10916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917 /* end confdefs.h.  */
10918
10919 #include "ansidecl.h"
10920 #include "system.h"
10921 #ifdef HAVE_SYS_TIMES_H
10922 #include <sys/times.h>
10923 #endif
10924
10925 int
10926 main ()
10927 {
10928 struct tms tms;
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 if ac_fn_c_try_compile "$LINENO"; then :
10934   ac_cv_struct_tms=yes
10935 else
10936   ac_cv_struct_tms=no
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10939 fi
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10941 $as_echo "$ac_cv_struct_tms" >&6; }
10942 if test $ac_cv_struct_tms = yes; then
10943
10944 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10945
10946 fi
10947
10948 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10949 # revisit after autoconf 2.50.
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10951 $as_echo_n "checking for clock_t... " >&6; }
10952 if test "${gcc_cv_type_clock_t+set}" = set; then :
10953   $as_echo_n "(cached) " >&6
10954 else
10955
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h.  */
10958
10959 #include "ansidecl.h"
10960 #include "system.h"
10961
10962 int
10963 main ()
10964 {
10965 clock_t x;
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 if ac_fn_c_try_compile "$LINENO"; then :
10971   gcc_cv_type_clock_t=yes
10972 else
10973   gcc_cv_type_clock_t=no
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10978 $as_echo "$gcc_cv_type_clock_t" >&6; }
10979 if test $gcc_cv_type_clock_t = yes; then
10980
10981 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10982
10983 fi
10984
10985 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10986 CFLAGS="$saved_CFLAGS"
10987 CXXFLAGS="$saved_CXXFLAGS"
10988
10989 # Check whether --enable-initfini-array was given.
10990 if test "${enable_initfini_array+set}" = set; then :
10991   enableval=$enable_initfini_array;
10992 else
10993
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10995 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10996 if test "${gcc_cv_initfini_array+set}" = set; then :
10997   $as_echo_n "(cached) " >&6
10998 else
10999     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
11000     if test "$cross_compiling" = yes; then :
11001   gcc_cv_initfini_array=no
11002 else
11003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h.  */
11005
11006 #ifndef __ELF__
11007 #error Not an ELF OS
11008 #endif
11009 #ifdef __ia64__
11010 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
11011    if it can be used.  */
11012 static int x = -1;
11013 int main (void) { return x; }
11014 int foo (void) { x = 0; }
11015 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11016 #else
11017 extern void abort ();
11018 static int count;
11019
11020 static void
11021 init1005 ()
11022 {
11023   if (count != 0)
11024     abort ();
11025   count = 1005;
11026 }
11027 void (*const init_array1005) ()
11028   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
11029   = { init1005 };
11030 static void
11031 fini1005 ()
11032 {
11033   if (count != 1005)
11034     abort ();
11035 }
11036 void (*const fini_array1005) ()
11037   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
11038   = { fini1005 };
11039
11040 static void
11041 ctor1007 ()
11042 {
11043   if (count != 1005)
11044     abort ();
11045   count = 1007;
11046 }
11047 void (*const ctors1007) ()
11048   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
11049   = { ctor1007 };
11050 static void
11051 dtor1007 ()
11052 {
11053   if (count != 1007)
11054     abort ();
11055   count = 1005;
11056 }
11057 void (*const dtors1007) ()
11058   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
11059   = { dtor1007 };
11060
11061 static void
11062 init65530 ()
11063 {
11064   if (count != 1007)
11065     abort ();
11066   count = 65530;
11067 }
11068 void (*const init_array65530) ()
11069   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11070   = { init65530 };
11071 static void
11072 fini65530 ()
11073 {
11074   if (count != 65530)
11075     abort ();
11076   count = 1007;
11077 }
11078 void (*const fini_array65530) ()
11079   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11080   = { fini65530 };
11081
11082 static void
11083 ctor65535 ()
11084 {
11085   if (count != 65530)
11086     abort ();
11087   count = 65535;
11088 }
11089 void (*const ctors65535) ()
11090   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11091   = { ctor65535 };
11092 static void
11093 dtor65535 ()
11094 {
11095   if (count != 65535)
11096     abort ();
11097   count = 65530;
11098 }
11099 void (*const dtors65535) ()
11100   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11101   = { dtor65535 };
11102
11103 int
11104 main ()
11105 {
11106   if (count != 65535)
11107     abort ();
11108   return 0;
11109 }
11110 #endif
11111
11112 _ACEOF
11113 if ac_fn_c_try_run "$LINENO"; then :
11114   gcc_cv_initfini_array=yes
11115 else
11116   gcc_cv_initfini_array=no
11117 fi
11118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11119   conftest.$ac_objext conftest.beam conftest.$ac_ext
11120 fi
11121
11122    else
11123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11124 $as_echo_n "checking cross compile... guessing... " >&6; }
11125      gcc_cv_initfini_array=no
11126    fi
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11129 $as_echo "$gcc_cv_initfini_array" >&6; }
11130   enable_initfini_array=$gcc_cv_initfini_array
11131
11132 fi
11133
11134 if test $enable_initfini_array = yes; then
11135
11136 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11137
11138 fi
11139
11140 # mkdir takes a single argument on some systems.
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11142 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11143 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11144   $as_echo_n "(cached) " >&6
11145 else
11146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h.  */
11148
11149 #include <sys/types.h>
11150 #ifdef HAVE_SYS_STAT_H
11151 # include <sys/stat.h>
11152 #endif
11153 #ifdef HAVE_UNISTD_H
11154 # include <unistd.h>
11155 #endif
11156 #ifdef HAVE_DIRECT_H
11157 # include <direct.h>
11158 #endif
11159 int
11160 main ()
11161 {
11162 mkdir ("foo", 0);
11163   ;
11164   return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_compile "$LINENO"; then :
11168   gcc_cv_mkdir_takes_one_arg=no
11169 else
11170   gcc_cv_mkdir_takes_one_arg=yes
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11175 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11176 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11177
11178 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11179
11180 fi
11181
11182
11183 # File extensions
11184 manext='.1'
11185 objext='.o'
11186
11187
11188
11189 # With Setjmp/Longjmp based exception handling.
11190 # Check whether --enable-sjlj-exceptions was given.
11191 if test "${enable_sjlj_exceptions+set}" = set; then :
11192   enableval=$enable_sjlj_exceptions; case $target in
11193   *-*-hpux10*)
11194     if test $enableval != yes; then
11195       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11196 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11197       enableval=yes
11198     fi
11199     ;;
11200 esac
11201 force_sjlj_exceptions=yes
11202 else
11203   case $target in
11204   *-*-hpux10*)
11205     force_sjlj_exceptions=yes
11206     enableval=yes
11207     ;;
11208   *)
11209     force_sjlj_exceptions=no
11210     ;;
11211 esac
11212 fi
11213
11214 if test $force_sjlj_exceptions = yes; then
11215   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11216
11217 cat >>confdefs.h <<_ACEOF
11218 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11219 _ACEOF
11220
11221 fi
11222
11223 # --------------------------------------------------------
11224 # Build, host, and target specific configuration fragments
11225 # --------------------------------------------------------
11226
11227 # Collect build-machine-specific information.
11228 . ${srcdir}/config.build
11229
11230 # Collect host-machine-specific information.
11231 . ${srcdir}/config.host
11232
11233 target_gtfiles=
11234
11235 # Collect target-machine-specific information.
11236 . ${srcdir}/config.gcc
11237
11238 extra_objs="${host_extra_objs} ${extra_objs}"
11239 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11240
11241 # Default the target-machine variables that were not explicitly set.
11242 if test x"$tm_file" = x
11243 then tm_file=$cpu_type/$cpu_type.h; fi
11244
11245 if test x"$extra_headers" = x
11246 then extra_headers=; fi
11247
11248 if test x$md_file = x
11249 then md_file=$cpu_type/$cpu_type.md; fi
11250
11251 if test x$out_file = x
11252 then out_file=$cpu_type/$cpu_type.c; fi
11253
11254 if test x"$tmake_file" = x
11255 then tmake_file=$cpu_type/t-$cpu_type
11256 fi
11257
11258 if test x"$dwarf2" = xyes
11259 then tm_file="$tm_file tm-dwarf2.h"
11260 fi
11261
11262 # Say what files are being used for the output code and MD file.
11263 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11264 echo "Using \`$srcdir/config/$md_file' as machine description file."
11265
11266 # If any of the xm_file variables contain nonexistent files, warn
11267 # about them and drop them.
11268
11269 bx=
11270 for x in $build_xm_file; do
11271   if    test -f $srcdir/config/$x
11272   then      bx="$bx $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 build_xm_file="$bx"
11278
11279 hx=
11280 for x in $host_xm_file; do
11281   if    test -f $srcdir/config/$x
11282   then      hx="$hx $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 host_xm_file="$hx"
11288
11289 tx=
11290 for x in $xm_file; do
11291   if    test -f $srcdir/config/$x
11292   then      tx="$tx $x"
11293   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11294 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11295   fi
11296 done
11297 xm_file="$tx"
11298
11299 count=a
11300 for f in $tm_file; do
11301         count=${count}x
11302 done
11303 if test $count = ax; then
11304         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11305 else
11306         echo "Using the following target machine macro files:"
11307         for f in $tm_file; do
11308                 echo "  $srcdir/config/$f"
11309         done
11310 fi
11311
11312 if test x$need_64bit_hwint = xyes; then
11313
11314 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11315
11316 fi
11317
11318 if test x$use_long_long_for_widest_fast_int = xyes; then
11319
11320 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11321
11322 fi
11323
11324 count=a
11325 for f in $host_xm_file; do
11326         count=${count}x
11327 done
11328 if test $count = a; then
11329         :
11330 elif test $count = ax; then
11331         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11332 else
11333         echo "Using the following host machine macro files:"
11334         for f in $host_xm_file; do
11335                 echo "  $srcdir/config/$f"
11336         done
11337 fi
11338 echo "Using ${out_host_hook_obj} for host machine hooks."
11339
11340 if test "$host_xm_file" != "$build_xm_file"; then
11341         count=a
11342         for f in $build_xm_file; do
11343                 count=${count}x
11344         done
11345         if test $count = a; then
11346                 :
11347         elif test $count = ax; then
11348                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11349         else
11350                 echo "Using the following build machine macro files:"
11351                 for f in $build_xm_file; do
11352                         echo "  $srcdir/config/$f"
11353                 done
11354         fi
11355 fi
11356
11357 if test -n "$configured_native_system_header_dir"; then
11358   native_system_header_dir=$configured_native_system_header_dir
11359 fi
11360 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11361
11362
11363 case ${host} in
11364   powerpc*-*-darwin*)
11365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11366 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11367 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11368   $as_echo_n "(cached) " >&6
11369 else
11370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h.  */
11372
11373 #include <sys/cdefs.h>
11374 #include <sys/signal.h>
11375 #include <ucontext.h>
11376 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11377
11378 _ACEOF
11379 if ac_fn_c_try_compile "$LINENO"; then :
11380   gcc_cv_mcontext_underscores=no
11381 else
11382   gcc_cv_mcontext_underscores=yes
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 fi
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11387 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11388       if test $gcc_cv_mcontext_underscores = yes; then
11389
11390 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11391
11392       fi
11393     ;;
11394 esac
11395
11396 # ---------
11397 # Threading
11398 # ---------
11399
11400 # Check if a valid thread package
11401 case ${enable_threads} in
11402   "" | no)
11403     # No threads
11404     target_thread_file='single'
11405     ;;
11406   yes)
11407     # default
11408     target_thread_file='single'
11409     ;;
11410   aix | dce | lynx | mipssde | posix | rtems | \
11411   single | tpf | vxworks | win32)
11412     target_thread_file=${enable_threads}
11413     ;;
11414   *)
11415     echo "${enable_threads} is an unknown thread package" 1>&2
11416     exit 1
11417     ;;
11418 esac
11419
11420 if test x${thread_file} = x; then
11421   # No thread file set by target-specific clauses in config.gcc,
11422   # so use file chosen by default logic above
11423   thread_file=${target_thread_file}
11424 fi
11425
11426 # --------
11427 # UNSORTED
11428 # --------
11429
11430 use_cxa_atexit=no
11431 if test x$enable___cxa_atexit = xyes || \
11432    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11433   if test x$host = x$target; then
11434     case $host in
11435       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11436       # keyed to flag_use_cxa_atexit
11437       *-*-mingw32*)
11438         use_cxa_atexit=yes
11439         ;;
11440       *)
11441         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11442 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11443   use_cxa_atexit=yes
11444 else
11445   echo "__cxa_atexit can't be enabled on this target"
11446 fi
11447
11448         ;;
11449     esac
11450   else
11451     # We can't check for __cxa_atexit when building a cross, so assume
11452     # it is available
11453     use_cxa_atexit=yes
11454   fi
11455   if test x$use_cxa_atexit = xyes; then
11456
11457 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11458
11459   fi
11460 fi
11461
11462 # Look for a file containing extra machine modes.
11463 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11464   extra_modes_file='$(srcdir)'/config/${extra_modes}
11465
11466
11467 cat >>confdefs.h <<_ACEOF
11468 #define EXTRA_MODES_FILE "config/$extra_modes"
11469 _ACEOF
11470
11471 fi
11472
11473 # Convert extra_options into a form suitable for Makefile use.
11474 extra_opt_files=
11475 all_opt_files=
11476 for f in $extra_options; do
11477   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11478   all_opt_files="$all_opt_files $srcdir/config/$f"
11479 done
11480
11481
11482 # auto-host.h is the file containing items generated by autoconf and is
11483 # the first file included by config.h.
11484 # If host=build, it is correct to have bconfig include auto-host.h
11485 # as well.  If host!=build, we are in error and need to do more
11486 # work to find out the build config parameters.
11487 if test x$host = x$build
11488 then
11489         build_auto=auto-host.h
11490 else
11491         # We create a subdir, then run autoconf in the subdir.
11492         # To prevent recursion we set host and build for the new
11493         # invocation of configure to the build for this invocation
11494         # of configure.
11495         tempdir=build.$$
11496         rm -rf $tempdir
11497         mkdir $tempdir
11498         cd $tempdir
11499         case ${srcdir} in
11500         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11501         *) realsrcdir=../${srcdir};;
11502         esac
11503         saved_CFLAGS="${CFLAGS}"
11504         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11505         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11506         ${realsrcdir}/configure \
11507                 --enable-languages=${enable_languages-all} \
11508                 --target=$target_alias --host=$build_alias --build=$build_alias
11509         CFLAGS="${saved_CFLAGS}"
11510
11511         # We just finished tests for the build machine, so rename
11512         # the file auto-build.h in the gcc directory.
11513         mv auto-host.h ../auto-build.h
11514         cd ..
11515         rm -rf $tempdir
11516         build_auto=auto-build.h
11517 fi
11518
11519
11520 tm_file="${tm_file} defaults.h"
11521 tm_p_file="${tm_p_file} tm-preds.h"
11522 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11523 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11524 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11525 # put this back in temporarily.
11526 xm_file="auto-host.h ansidecl.h ${xm_file}"
11527
11528 # --------
11529 # UNSORTED
11530 # --------
11531
11532 # Compile in configure arguments.
11533 if test -f configargs.h ; then
11534         # Being re-configured.
11535         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11536         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11537 else
11538         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11539 fi
11540
11541 # Double all backslashes and backslash all quotes to turn
11542 # gcc_config_arguments into a C string.
11543 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11544 $gcc_config_arguments
11545 EOF
11546 gcc_config_arguments_str=`cat conftest.out`
11547 rm -f conftest.out
11548
11549 cat > configargs.h <<EOF
11550 /* Generated automatically. */
11551 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11552 static const char thread_model[] = "$thread_file";
11553
11554 static const struct {
11555   const char *name, *value;
11556 } configure_default_options[] = $configure_default_options;
11557 EOF
11558
11559 gcc_BASEVER=`cat $srcdir/BASE-VER`
11560 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11561 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11562 if test -f $srcdir/REVISION ; then
11563         gcc_REVISION=`cat $srcdir/REVISION`
11564 else
11565         gcc_REVISION=""
11566 fi
11567 cat > plugin-version.h <<EOF
11568 #include "configargs.h"
11569
11570 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11571 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11572 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11573 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11574
11575 static char basever[] = "$gcc_BASEVER";
11576 static char datestamp[] = "$gcc_DATESTAMP";
11577 static char devphase[] = "$gcc_DEVPHASE";
11578 static char revision[] = "$gcc_REVISION";
11579
11580 /* FIXME plugins: We should make the version information more precise.
11581    One way to do is to add a checksum. */
11582
11583 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11584                                                 devphase, revision,
11585                                                 configuration_arguments};
11586 EOF
11587
11588 # Internationalization
11589 # If we haven't got the data from the intl directory,
11590 # assume NLS is disabled.
11591 USE_NLS=no
11592 LIBINTL=
11593 LIBINTL_DEP=
11594 INCINTL=
11595 XGETTEXT=
11596 GMSGFMT=
11597 POSUB=
11598
11599 if test -f  ../intl/config.intl; then
11600   .  ../intl/config.intl
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11603 $as_echo_n "checking whether NLS is requested... " >&6; }
11604 if test x"$USE_NLS" != xyes; then
11605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607 else
11608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; }
11610
11611 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11612
11613
11614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11615 $as_echo_n "checking for catalogs to be installed... " >&6; }
11616   # Look for .po and .gmo files in the source directory.
11617   CATALOGS=
11618   XLINGUAS=
11619   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11620     # If there aren't any .gmo files the shell will give us the
11621     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11622     # weeded out.
11623     case "$cat" in *\**)
11624       continue;;
11625     esac
11626     # The quadruple backslash is collapsed to a double backslash
11627     # by the backticks, then collapsed again by the double quotes,
11628     # leaving us with one backslash in the sed expression (right
11629     # before the dot that mustn't act as a wildcard).
11630     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11631     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11632     # The user is allowed to set LINGUAS to a list of languages to
11633     # install catalogs for.  If it's empty that means "all of them."
11634     if test "x$LINGUAS" = x; then
11635       CATALOGS="$CATALOGS $cat"
11636       XLINGUAS="$XLINGUAS $lang"
11637     else
11638       case "$LINGUAS" in *$lang*)
11639         CATALOGS="$CATALOGS $cat"
11640         XLINGUAS="$XLINGUAS $lang"
11641         ;;
11642       esac
11643     fi
11644   done
11645   LINGUAS="$XLINGUAS"
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11647 $as_echo "$LINGUAS" >&6; }
11648
11649
11650     DATADIRNAME=share
11651
11652   INSTOBJEXT=.mo
11653
11654   GENCAT=gencat
11655
11656   CATOBJEXT=.gmo
11657
11658 fi
11659
11660 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11661 # -liconv on the link line twice.
11662 case "$LIBINTL" in *$LIBICONV*)
11663         LIBICONV= ;;
11664 esac
11665
11666 # Check whether --enable-secureplt was given.
11667 if test "${enable_secureplt+set}" = set; then :
11668   enableval=$enable_secureplt;
11669 fi
11670
11671
11672 # Check whether --enable-leading-mingw64-underscores was given.
11673 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11674   enableval=$enable_leading_mingw64_underscores;
11675 fi
11676
11677 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11678
11679 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11680
11681 fi
11682
11683 # Check whether --enable-cld was given.
11684 if test "${enable_cld+set}" = set; then :
11685   enableval=$enable_cld;
11686 else
11687   enable_cld=no
11688 fi
11689
11690
11691 # Check whether --enable-frame-pointer was given.
11692 if test "${enable_frame_pointer+set}" = set; then :
11693   enableval=$enable_frame_pointer;
11694 else
11695
11696 case $target_os in
11697 linux* | darwin[8912]*)
11698   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11699   # DWARF2.
11700   enable_frame_pointer=no
11701   ;;
11702 *)
11703   enable_frame_pointer=yes
11704   ;;
11705 esac
11706
11707 fi
11708
11709
11710 # Windows32 Registry support for specifying GCC installation paths.
11711 # Check whether --enable-win32-registry was given.
11712 if test "${enable_win32_registry+set}" = set; then :
11713   enableval=$enable_win32_registry;
11714 fi
11715
11716
11717 case $host_os in
11718   win32 | pe | cygwin* | mingw32* | uwin*)
11719     if test "x$enable_win32_registry" != xno; then
11720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11721 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11722 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725   ac_func_search_save_LIBS=$LIBS
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h.  */
11728
11729 /* Override any GCC internal prototype to avoid an error.
11730    Use char because int might match the return type of a GCC
11731    builtin and then its argument prototype would still apply.  */
11732 #ifdef __cplusplus
11733 extern "C"
11734 #endif
11735 char RegOpenKeyExA ();
11736 int
11737 main ()
11738 {
11739 return RegOpenKeyExA ();
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 for ac_lib in '' advapi32; do
11745   if test -z "$ac_lib"; then
11746     ac_res="none required"
11747   else
11748     ac_res=-l$ac_lib
11749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11750   fi
11751   if ac_fn_c_try_link "$LINENO"; then :
11752   ac_cv_search_RegOpenKeyExA=$ac_res
11753 fi
11754 rm -f core conftest.err conftest.$ac_objext \
11755     conftest$ac_exeext
11756   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11757   break
11758 fi
11759 done
11760 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11761
11762 else
11763   ac_cv_search_RegOpenKeyExA=no
11764 fi
11765 rm conftest.$ac_ext
11766 LIBS=$ac_func_search_save_LIBS
11767 fi
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11769 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11770 ac_res=$ac_cv_search_RegOpenKeyExA
11771 if test "$ac_res" != no; then :
11772   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11773
11774 else
11775   enable_win32_registry=no
11776 fi
11777
11778     fi
11779
11780     if test "x$enable_win32_registry" != xno; then
11781
11782 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11783
11784
11785       if test "x$enable_win32_registry" != xyes \
11786          && test "x$enable_win32_registry" != x; then
11787
11788 cat >>confdefs.h <<_ACEOF
11789 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11790 _ACEOF
11791
11792       fi
11793     fi
11794   ;;
11795 esac
11796
11797 # Get an absolute path to the GCC top-level source directory
11798 holddir=`${PWDCMD-pwd}`
11799 cd $srcdir
11800 topdir=`${PWDCMD-pwd}`
11801 cd $holddir
11802
11803 # Conditionalize the makefile for this host machine.
11804 xmake_file=
11805 for f in ${host_xmake_file}
11806 do
11807         if test -f ${srcdir}/config/$f
11808         then
11809                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11810         fi
11811 done
11812
11813 # Conditionalize the makefile for this target machine.
11814 tmake_file_=
11815 for f in ${tmake_file}
11816 do
11817         if test -f ${srcdir}/config/$f
11818         then
11819                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11820         fi
11821 done
11822 tmake_file="${tmake_file_}"
11823
11824 out_object_file=`basename $out_file .c`.o
11825 common_out_object_file=`basename $common_out_file .c`.o
11826
11827 tm_file_list="options.h"
11828 tm_include_list="options.h insn-constants.h"
11829 for f in $tm_file; do
11830   case $f in
11831     ./* )
11832        f=`echo $f | sed 's/^..//'`
11833        tm_file_list="${tm_file_list} $f"
11834        tm_include_list="${tm_include_list} $f"
11835        ;;
11836     defaults.h )
11837        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11838        tm_include_list="${tm_include_list} $f"
11839        ;;
11840     * )
11841        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11842        tm_include_list="${tm_include_list} config/$f"
11843        ;;
11844   esac
11845 done
11846
11847 tm_p_file_list=
11848 tm_p_include_list=
11849 for f in $tm_p_file; do
11850   case $f in
11851     tm-preds.h )
11852        tm_p_file_list="${tm_p_file_list} $f"
11853        tm_p_include_list="${tm_p_include_list} $f"
11854        ;;
11855     * )
11856        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11857        tm_p_include_list="${tm_p_include_list} config/$f"
11858   esac
11859 done
11860
11861 xm_file_list=
11862 xm_include_list=
11863 for f in $xm_file; do
11864   case $f in
11865     ansidecl.h )
11866        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11867        xm_include_list="${xm_include_list} $f"
11868        ;;
11869     auto-host.h )
11870        xm_file_list="${xm_file_list} $f"
11871        xm_include_list="${xm_include_list} $f"
11872        ;;
11873     * )
11874        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11875        xm_include_list="${xm_include_list} config/$f"
11876        ;;
11877   esac
11878 done
11879
11880 host_xm_file_list=
11881 host_xm_include_list=
11882 for f in $host_xm_file; do
11883   case $f in
11884     ansidecl.h )
11885        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11886        host_xm_include_list="${host_xm_include_list} $f"
11887        ;;
11888     auto-host.h )
11889        host_xm_file_list="${host_xm_file_list} $f"
11890        host_xm_include_list="${host_xm_include_list} $f"
11891        ;;
11892     * )
11893        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11894        host_xm_include_list="${host_xm_include_list} config/$f"
11895        ;;
11896   esac
11897 done
11898
11899 build_xm_file_list=
11900 for f in $build_xm_file; do
11901   case $f in
11902     ansidecl.h )
11903        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11904        build_xm_include_list="${build_xm_include_list} $f"
11905        ;;
11906     auto-build.h | auto-host.h )
11907        build_xm_file_list="${build_xm_file_list} $f"
11908        build_xm_include_list="${build_xm_include_list} $f"
11909        ;;
11910     * )
11911        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11912        build_xm_include_list="${build_xm_include_list} config/$f"
11913        ;;
11914   esac
11915 done
11916
11917 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11918 # cross-compiler which does not use the native headers and libraries.
11919 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11920 CROSS=
11921 ALL=all.internal
11922 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11923
11924 if test "x$with_build_sysroot" != x; then
11925   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11926 else
11927   # This value is used, even on a native system, because
11928   # CROSS_SYSTEM_HEADER_DIR is just
11929   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11930   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11931 fi
11932
11933 if test x$host != x$target
11934 then
11935         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11936         ALL=all.cross
11937         SYSTEM_HEADER_DIR=$build_system_header_dir
11938         case "$host","$target" in
11939         # Darwin crosses can use the host system's libraries and headers,
11940         # because of the fat library support.  Of course, it must be the
11941         # same version of Darwin on both sides.  Allow the user to
11942         # just say --target=foo-darwin without a version number to mean
11943         # "the version on this system".
11944             *-*-darwin*,*-*-darwin*)
11945                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11946                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11947                 if test $hostos = $targetos -o $targetos = darwin ; then
11948                     CROSS=
11949                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11950                     with_headers=yes
11951                 fi
11952                 ;;
11953
11954             i?86-*-*,x86_64-*-* \
11955             | powerpc*-*-*,powerpc64*-*-*)
11956                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11957         esac
11958
11959         case $target in
11960                 *-*-mingw*)
11961                         if test "x$with_headers" = x; then
11962                                 with_headers=yes
11963                         fi
11964                         ;;
11965                 *)
11966                         ;;
11967         esac
11968 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11969         SYSTEM_HEADER_DIR=$build_system_header_dir
11970 fi
11971
11972 # If this is a cross-compiler that does not
11973 # have its own set of headers then define
11974 # inhibit_libc
11975
11976 # If this is using newlib, without having the headers available now,
11977 # then define inhibit_libc in LIBGCC2_CFLAGS.
11978 # This prevents libgcc2 from containing any code which requires libc
11979 # support.
11980 : ${inhibit_libc=false}
11981 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11982        test x$with_newlib = xyes ; } &&
11983      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11984        inhibit_libc=true
11985 fi
11986
11987
11988 # When building gcc with a cross-compiler, we need to adjust things so
11989 # that the generator programs are still built with the native compiler.
11990 # Also, we cannot run fixincludes.
11991
11992 # These are the normal (build=host) settings:
11993 CC_FOR_BUILD='$(CC)'
11994 BUILD_CFLAGS='$(ALL_CFLAGS)'
11995 BUILD_LDFLAGS='$(LDFLAGS)'
11996 STMP_FIXINC=stmp-fixinc
11997
11998 # And these apply if build != host, or we are generating coverage data
11999 if test x$build != x$host || test "x$coverage_flags" != x
12000 then
12001     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12002     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12003 fi
12004
12005 # Expand extra_headers to include complete path.
12006 # This substitutes for lots of t-* files.
12007 extra_headers_list=
12008 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12009 for file in ${extra_headers} ; do
12010   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12011 done
12012
12013 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12014 if test x"$use_gcc_tgmath" = xyes
12015 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12016 fi
12017
12018 # Define collect2 in Makefile.
12019 case $host_can_use_collect2 in
12020   no) collect2= ;;
12021   *) collect2='collect2$(exeext)' ;;
12022 esac
12023
12024
12025 # Add a definition of USE_COLLECT2 if system wants one.
12026 case $use_collect2 in
12027   no) use_collect2= ;;
12028   "") ;;
12029   *)
12030     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12031     xm_defines="${xm_defines} USE_COLLECT2"
12032     case $host_can_use_collect2 in
12033       no)
12034         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12035         ;;
12036     esac
12037     ;;
12038 esac
12039
12040
12041 cat >>confdefs.h <<_ACEOF
12042 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12043 _ACEOF
12044
12045
12046 # ---------------------------
12047 # Assembler & linker features
12048 # ---------------------------
12049
12050 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12051 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12052 # However when ld-new is first executed from the build tree, libtool will
12053 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12054 # to the build tree.  While doing this we need to use the previous-stage
12055 # linker, or we have an infinite loop.  The presence of a shell script as
12056 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12057 # the gcc/collect-ld script.  So we need to know how libtool works, or
12058 # exec-tool will fail.
12059
12060
12061 case `pwd` in
12062   *\ * | *\     *)
12063     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12064 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12065 esac
12066
12067
12068
12069 macro_version='2.2.7a'
12070 macro_revision='1.3134'
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084 ltmain="$ac_aux_dir/ltmain.sh"
12085
12086 # Backslashify metacharacters that are still active within
12087 # double-quoted strings.
12088 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12089
12090 # Same as above, but do not quote variable references.
12091 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12092
12093 # Sed substitution to delay expansion of an escaped shell variable in a
12094 # double_quote_subst'ed string.
12095 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12096
12097 # Sed substitution to delay expansion of an escaped single quote.
12098 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12099
12100 # Sed substitution to avoid accidental globbing in evaled expressions
12101 no_glob_subst='s/\*/\\\*/g'
12102
12103 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12105 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12106
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12108 $as_echo_n "checking how to print strings... " >&6; }
12109 # Test print first, because it will be a builtin if present.
12110 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12111    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12112   ECHO='print -r --'
12113 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12114   ECHO='printf %s\n'
12115 else
12116   # Use this function as a fallback that always works.
12117   func_fallback_echo ()
12118   {
12119     eval 'cat <<_LTECHO_EOF
12120 $1
12121 _LTECHO_EOF'
12122   }
12123   ECHO='func_fallback_echo'
12124 fi
12125
12126 # func_echo_all arg...
12127 # Invoke $ECHO with all args, space-separated.
12128 func_echo_all ()
12129 {
12130     $ECHO ""
12131 }
12132
12133 case "$ECHO" in
12134   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12135 $as_echo "printf" >&6; } ;;
12136   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12137 $as_echo "print -r" >&6; } ;;
12138   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12139 $as_echo "cat" >&6; } ;;
12140 esac
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12156 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12157 if test "${ac_cv_path_SED+set}" = set; then :
12158   $as_echo_n "(cached) " >&6
12159 else
12160             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12161      for ac_i in 1 2 3 4 5 6 7; do
12162        ac_script="$ac_script$as_nl$ac_script"
12163      done
12164      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12165      { ac_script=; unset ac_script;}
12166      if test -z "$SED"; then
12167   ac_path_SED_found=false
12168   # Loop through the user's path and test for each of PROGNAME-LIST
12169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12171 do
12172   IFS=$as_save_IFS
12173   test -z "$as_dir" && as_dir=.
12174     for ac_prog in sed gsed; do
12175     for ac_exec_ext in '' $ac_executable_extensions; do
12176       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12177       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12178 # Check for GNU ac_path_SED and select it if it is found.
12179   # Check for GNU $ac_path_SED
12180 case `"$ac_path_SED" --version 2>&1` in
12181 *GNU*)
12182   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12183 *)
12184   ac_count=0
12185   $as_echo_n 0123456789 >"conftest.in"
12186   while :
12187   do
12188     cat "conftest.in" "conftest.in" >"conftest.tmp"
12189     mv "conftest.tmp" "conftest.in"
12190     cp "conftest.in" "conftest.nl"
12191     $as_echo '' >> "conftest.nl"
12192     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12193     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12194     as_fn_arith $ac_count + 1 && ac_count=$as_val
12195     if test $ac_count -gt ${ac_path_SED_max-0}; then
12196       # Best one so far, save it but keep looking for a better one
12197       ac_cv_path_SED="$ac_path_SED"
12198       ac_path_SED_max=$ac_count
12199     fi
12200     # 10*(2^10) chars as input seems more than enough
12201     test $ac_count -gt 10 && break
12202   done
12203   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12204 esac
12205
12206       $ac_path_SED_found && break 3
12207     done
12208   done
12209   done
12210 IFS=$as_save_IFS
12211   if test -z "$ac_cv_path_SED"; then
12212     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12213   fi
12214 else
12215   ac_cv_path_SED=$SED
12216 fi
12217
12218 fi
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12220 $as_echo "$ac_cv_path_SED" >&6; }
12221  SED="$ac_cv_path_SED"
12222   rm -f conftest.sed
12223
12224 test -z "$SED" && SED=sed
12225 Xsed="$SED -e 1s/^X//"
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12238 $as_echo_n "checking for fgrep... " >&6; }
12239 if test "${ac_cv_path_FGREP+set}" = set; then :
12240   $as_echo_n "(cached) " >&6
12241 else
12242   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12243    then ac_cv_path_FGREP="$GREP -F"
12244    else
12245      if test -z "$FGREP"; then
12246   ac_path_FGREP_found=false
12247   # Loop through the user's path and test for each of PROGNAME-LIST
12248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12250 do
12251   IFS=$as_save_IFS
12252   test -z "$as_dir" && as_dir=.
12253     for ac_prog in fgrep; do
12254     for ac_exec_ext in '' $ac_executable_extensions; do
12255       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12256       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12257 # Check for GNU ac_path_FGREP and select it if it is found.
12258   # Check for GNU $ac_path_FGREP
12259 case `"$ac_path_FGREP" --version 2>&1` in
12260 *GNU*)
12261   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12262 *)
12263   ac_count=0
12264   $as_echo_n 0123456789 >"conftest.in"
12265   while :
12266   do
12267     cat "conftest.in" "conftest.in" >"conftest.tmp"
12268     mv "conftest.tmp" "conftest.in"
12269     cp "conftest.in" "conftest.nl"
12270     $as_echo 'FGREP' >> "conftest.nl"
12271     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12272     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12273     as_fn_arith $ac_count + 1 && ac_count=$as_val
12274     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12275       # Best one so far, save it but keep looking for a better one
12276       ac_cv_path_FGREP="$ac_path_FGREP"
12277       ac_path_FGREP_max=$ac_count
12278     fi
12279     # 10*(2^10) chars as input seems more than enough
12280     test $ac_count -gt 10 && break
12281   done
12282   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12283 esac
12284
12285       $ac_path_FGREP_found && break 3
12286     done
12287   done
12288   done
12289 IFS=$as_save_IFS
12290   if test -z "$ac_cv_path_FGREP"; then
12291     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12292   fi
12293 else
12294   ac_cv_path_FGREP=$FGREP
12295 fi
12296
12297    fi
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12300 $as_echo "$ac_cv_path_FGREP" >&6; }
12301  FGREP="$ac_cv_path_FGREP"
12302
12303
12304 test -z "$GREP" && GREP=grep
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324 # Check whether --with-gnu-ld was given.
12325 if test "${with_gnu_ld+set}" = set; then :
12326   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12327 else
12328   with_gnu_ld=no
12329 fi
12330
12331 ac_prog=ld
12332 if test "$GCC" = yes; then
12333   # Check if gcc -print-prog-name=ld gives a path.
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12335 $as_echo_n "checking for ld used by $CC... " >&6; }
12336   case $host in
12337   *-*-mingw*)
12338     # gcc leaves a trailing carriage return which upsets mingw
12339     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12340   *)
12341     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12342   esac
12343   case $ac_prog in
12344     # Accept absolute paths.
12345     [\\/]* | ?:[\\/]*)
12346       re_direlt='/[^/][^/]*/\.\./'
12347       # Canonicalize the pathname of ld
12348       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12349       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12350         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12351       done
12352       test -z "$LD" && LD="$ac_prog"
12353       ;;
12354   "")
12355     # If it fails, then pretend we aren't using GCC.
12356     ac_prog=ld
12357     ;;
12358   *)
12359     # If it is relative, then search for the first ld in PATH.
12360     with_gnu_ld=unknown
12361     ;;
12362   esac
12363 elif test "$with_gnu_ld" = yes; then
12364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12365 $as_echo_n "checking for GNU ld... " >&6; }
12366 else
12367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12368 $as_echo_n "checking for non-GNU ld... " >&6; }
12369 fi
12370 if test "${lt_cv_path_LD+set}" = set; then :
12371   $as_echo_n "(cached) " >&6
12372 else
12373   if test -z "$LD"; then
12374   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12375   for ac_dir in $PATH; do
12376     IFS="$lt_save_ifs"
12377     test -z "$ac_dir" && ac_dir=.
12378     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12379       lt_cv_path_LD="$ac_dir/$ac_prog"
12380       # Check to see if the program is GNU ld.  I'd rather use --version,
12381       # but apparently some variants of GNU ld only accept -v.
12382       # Break only if it was the GNU/non-GNU ld that we prefer.
12383       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12384       *GNU* | *'with BFD'*)
12385         test "$with_gnu_ld" != no && break
12386         ;;
12387       *)
12388         test "$with_gnu_ld" != yes && break
12389         ;;
12390       esac
12391     fi
12392   done
12393   IFS="$lt_save_ifs"
12394 else
12395   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12396 fi
12397 fi
12398
12399 LD="$lt_cv_path_LD"
12400 if test -n "$LD"; then
12401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12402 $as_echo "$LD" >&6; }
12403 else
12404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12406 fi
12407 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12409 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12410 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12414 case `$LD -v 2>&1 </dev/null` in
12415 *GNU* | *'with BFD'*)
12416   lt_cv_prog_gnu_ld=yes
12417   ;;
12418 *)
12419   lt_cv_prog_gnu_ld=no
12420   ;;
12421 esac
12422 fi
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12424 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12425 with_gnu_ld=$lt_cv_prog_gnu_ld
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12436 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12437 if test "${lt_cv_path_NM+set}" = set; then :
12438   $as_echo_n "(cached) " >&6
12439 else
12440   if test -n "$NM"; then
12441   # Let the user override the test.
12442   lt_cv_path_NM="$NM"
12443 else
12444   lt_nm_to_check="${ac_tool_prefix}nm"
12445   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12446     lt_nm_to_check="$lt_nm_to_check nm"
12447   fi
12448   for lt_tmp_nm in $lt_nm_to_check; do
12449     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12450     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12451       IFS="$lt_save_ifs"
12452       test -z "$ac_dir" && ac_dir=.
12453       tmp_nm="$ac_dir/$lt_tmp_nm"
12454       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12455         # Check to see if the nm accepts a BSD-compat flag.
12456         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12457         #   nm: unknown option "B" ignored
12458         # Tru64's nm complains that /dev/null is an invalid object file
12459         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12460         */dev/null* | *'Invalid file or object type'*)
12461           lt_cv_path_NM="$tmp_nm -B"
12462           break
12463           ;;
12464         *)
12465           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12466           */dev/null*)
12467             lt_cv_path_NM="$tmp_nm -p"
12468             break
12469             ;;
12470           *)
12471             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12472             continue # so that we can try to find one that supports BSD flags
12473             ;;
12474           esac
12475           ;;
12476         esac
12477       fi
12478     done
12479     IFS="$lt_save_ifs"
12480   done
12481   : ${lt_cv_path_NM=no}
12482 fi
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12485 $as_echo "$lt_cv_path_NM" >&6; }
12486 if test "$lt_cv_path_NM" != "no"; then
12487   NM="$lt_cv_path_NM"
12488 else
12489   # Didn't find any BSD compatible name lister, look for dumpbin.
12490   if test -n "$DUMPBIN"; then :
12491     # Let the user override the test.
12492   else
12493     if test -n "$ac_tool_prefix"; then
12494   for ac_prog in dumpbin "link -dump"
12495   do
12496     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499 $as_echo_n "checking for $ac_word... " >&6; }
12500 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12501   $as_echo_n "(cached) " >&6
12502 else
12503   if test -n "$DUMPBIN"; then
12504   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12505 else
12506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507 for as_dir in $PATH
12508 do
12509   IFS=$as_save_IFS
12510   test -z "$as_dir" && as_dir=.
12511     for ac_exec_ext in '' $ac_executable_extensions; do
12512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12513     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515     break 2
12516   fi
12517 done
12518   done
12519 IFS=$as_save_IFS
12520
12521 fi
12522 fi
12523 DUMPBIN=$ac_cv_prog_DUMPBIN
12524 if test -n "$DUMPBIN"; then
12525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12526 $as_echo "$DUMPBIN" >&6; }
12527 else
12528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12530 fi
12531
12532
12533     test -n "$DUMPBIN" && break
12534   done
12535 fi
12536 if test -z "$DUMPBIN"; then
12537   ac_ct_DUMPBIN=$DUMPBIN
12538   for ac_prog in dumpbin "link -dump"
12539 do
12540   # Extract the first word of "$ac_prog", so it can be a program name with args.
12541 set dummy $ac_prog; ac_word=$2
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543 $as_echo_n "checking for $ac_word... " >&6; }
12544 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   if test -n "$ac_ct_DUMPBIN"; then
12548   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12549 else
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12552 do
12553   IFS=$as_save_IFS
12554   test -z "$as_dir" && as_dir=.
12555     for ac_exec_ext in '' $ac_executable_extensions; do
12556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12557     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559     break 2
12560   fi
12561 done
12562   done
12563 IFS=$as_save_IFS
12564
12565 fi
12566 fi
12567 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12568 if test -n "$ac_ct_DUMPBIN"; then
12569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12570 $as_echo "$ac_ct_DUMPBIN" >&6; }
12571 else
12572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12574 fi
12575
12576
12577   test -n "$ac_ct_DUMPBIN" && break
12578 done
12579
12580   if test "x$ac_ct_DUMPBIN" = x; then
12581     DUMPBIN=":"
12582   else
12583     case $cross_compiling:$ac_tool_warned in
12584 yes:)
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12587 ac_tool_warned=yes ;;
12588 esac
12589     DUMPBIN=$ac_ct_DUMPBIN
12590   fi
12591 fi
12592
12593     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12594     *COFF*)
12595       DUMPBIN="$DUMPBIN -symbols"
12596       ;;
12597     *)
12598       DUMPBIN=:
12599       ;;
12600     esac
12601   fi
12602
12603   if test "$DUMPBIN" != ":"; then
12604     NM="$DUMPBIN"
12605   fi
12606 fi
12607 test -z "$NM" && NM=nm
12608
12609
12610
12611
12612
12613
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12615 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12616 if test "${lt_cv_nm_interface+set}" = set; then :
12617   $as_echo_n "(cached) " >&6
12618 else
12619   lt_cv_nm_interface="BSD nm"
12620   echo "int some_variable = 0;" > conftest.$ac_ext
12621   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12622   (eval "$ac_compile" 2>conftest.err)
12623   cat conftest.err >&5
12624   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12625   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12626   cat conftest.err >&5
12627   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12628   cat conftest.out >&5
12629   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12630     lt_cv_nm_interface="MS dumpbin"
12631   fi
12632   rm -f conftest*
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12635 $as_echo "$lt_cv_nm_interface" >&6; }
12636
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12638 $as_echo_n "checking whether ln -s works... " >&6; }
12639 LN_S=$as_ln_s
12640 if test "$LN_S" = "ln -s"; then
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642 $as_echo "yes" >&6; }
12643 else
12644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12645 $as_echo "no, using $LN_S" >&6; }
12646 fi
12647
12648 # find the maximum length of command line arguments
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12650 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12651 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654     i=0
12655   teststring="ABCD"
12656
12657   case $build_os in
12658   msdosdjgpp*)
12659     # On DJGPP, this test can blow up pretty badly due to problems in libc
12660     # (any single argument exceeding 2000 bytes causes a buffer overrun
12661     # during glob expansion).  Even if it were fixed, the result of this
12662     # check would be larger than it should be.
12663     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12664     ;;
12665
12666   gnu*)
12667     # Under GNU Hurd, this test is not required because there is
12668     # no limit to the length of command line arguments.
12669     # Libtool will interpret -1 as no limit whatsoever
12670     lt_cv_sys_max_cmd_len=-1;
12671     ;;
12672
12673   cygwin* | mingw* | cegcc*)
12674     # On Win9x/ME, this test blows up -- it succeeds, but takes
12675     # about 5 minutes as the teststring grows exponentially.
12676     # Worse, since 9x/ME are not pre-emptively multitasking,
12677     # you end up with a "frozen" computer, even though with patience
12678     # the test eventually succeeds (with a max line length of 256k).
12679     # Instead, let's just punt: use the minimum linelength reported by
12680     # all of the supported platforms: 8192 (on NT/2K/XP).
12681     lt_cv_sys_max_cmd_len=8192;
12682     ;;
12683
12684   mint*)
12685     # On MiNT this can take a long time and run out of memory.
12686     lt_cv_sys_max_cmd_len=8192;
12687     ;;
12688
12689   amigaos*)
12690     # On AmigaOS with pdksh, this test takes hours, literally.
12691     # So we just punt and use a minimum line length of 8192.
12692     lt_cv_sys_max_cmd_len=8192;
12693     ;;
12694
12695   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12696     # This has been around since 386BSD, at least.  Likely further.
12697     if test -x /sbin/sysctl; then
12698       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12699     elif test -x /usr/sbin/sysctl; then
12700       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12701     else
12702       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12703     fi
12704     # And add a safety zone
12705     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12706     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12707     ;;
12708
12709   interix*)
12710     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12711     lt_cv_sys_max_cmd_len=196608
12712     ;;
12713
12714   osf*)
12715     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12716     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12717     # nice to cause kernel panics so lets avoid the loop below.
12718     # First set a reasonable default.
12719     lt_cv_sys_max_cmd_len=16384
12720     #
12721     if test -x /sbin/sysconfig; then
12722       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12723         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12724       esac
12725     fi
12726     ;;
12727   sco3.2v5*)
12728     lt_cv_sys_max_cmd_len=102400
12729     ;;
12730   sysv5* | sco5v6* | sysv4.2uw2*)
12731     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12732     if test -n "$kargmax"; then
12733       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12734     else
12735       lt_cv_sys_max_cmd_len=32768
12736     fi
12737     ;;
12738   *)
12739     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12740     if test -n "$lt_cv_sys_max_cmd_len"; then
12741       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12742       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12743     else
12744       # Make teststring a little bigger before we do anything with it.
12745       # a 1K string should be a reasonable start.
12746       for i in 1 2 3 4 5 6 7 8 ; do
12747         teststring=$teststring$teststring
12748       done
12749       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12750       # If test is not a shell built-in, we'll probably end up computing a
12751       # maximum length that is only half of the actual maximum length, but
12752       # we can't tell.
12753       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12754                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12755               test $i != 17 # 1/2 MB should be enough
12756       do
12757         i=`expr $i + 1`
12758         teststring=$teststring$teststring
12759       done
12760       # Only check the string length outside the loop.
12761       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12762       teststring=
12763       # Add a significant safety factor because C++ compilers can tack on
12764       # massive amounts of additional arguments before passing them to the
12765       # linker.  It appears as though 1/2 is a usable value.
12766       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12767     fi
12768     ;;
12769   esac
12770
12771 fi
12772
12773 if test -n $lt_cv_sys_max_cmd_len ; then
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12775 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12776 else
12777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12778 $as_echo "none" >&6; }
12779 fi
12780 max_cmd_len=$lt_cv_sys_max_cmd_len
12781
12782
12783
12784
12785
12786
12787 : ${CP="cp -f"}
12788 : ${MV="mv -f"}
12789 : ${RM="rm -f"}
12790
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12792 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12793 # Try some XSI features
12794 xsi_shell=no
12795 ( _lt_dummy="a/b/c"
12796   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12797       = c,a/b,, \
12798     && eval 'test $(( 1 + 1 )) -eq 2 \
12799     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12800   && xsi_shell=yes
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12802 $as_echo "$xsi_shell" >&6; }
12803
12804
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12806 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12807 lt_shell_append=no
12808 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12809     >/dev/null 2>&1 \
12810   && lt_shell_append=yes
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12812 $as_echo "$lt_shell_append" >&6; }
12813
12814
12815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12816   lt_unset=unset
12817 else
12818   lt_unset=false
12819 fi
12820
12821
12822
12823
12824
12825 # test EBCDIC or ASCII
12826 case `echo X|tr X '\101'` in
12827  A) # ASCII based system
12828     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12829   lt_SP2NL='tr \040 \012'
12830   lt_NL2SP='tr \015\012 \040\040'
12831   ;;
12832  *) # EBCDIC based system
12833   lt_SP2NL='tr \100 \n'
12834   lt_NL2SP='tr \r\n \100\100'
12835   ;;
12836 esac
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12847 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12848 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851   lt_cv_ld_reload_flag='-r'
12852 fi
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12854 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12855 reload_flag=$lt_cv_ld_reload_flag
12856 case $reload_flag in
12857 "" | " "*) ;;
12858 *) reload_flag=" $reload_flag" ;;
12859 esac
12860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12861 case $host_os in
12862   darwin*)
12863     if test "$GCC" = yes; then
12864       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12865     else
12866       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12867     fi
12868     ;;
12869 esac
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879 if test -n "$ac_tool_prefix"; then
12880   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12881 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883 $as_echo_n "checking for $ac_word... " >&6; }
12884 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12885   $as_echo_n "(cached) " >&6
12886 else
12887   if test -n "$OBJDUMP"; then
12888   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12889 else
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $PATH
12892 do
12893   IFS=$as_save_IFS
12894   test -z "$as_dir" && as_dir=.
12895     for ac_exec_ext in '' $ac_executable_extensions; do
12896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12897     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12899     break 2
12900   fi
12901 done
12902   done
12903 IFS=$as_save_IFS
12904
12905 fi
12906 fi
12907 OBJDUMP=$ac_cv_prog_OBJDUMP
12908 if test -n "$OBJDUMP"; then
12909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12910 $as_echo "$OBJDUMP" >&6; }
12911 else
12912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913 $as_echo "no" >&6; }
12914 fi
12915
12916
12917 fi
12918 if test -z "$ac_cv_prog_OBJDUMP"; then
12919   ac_ct_OBJDUMP=$OBJDUMP
12920   # Extract the first word of "objdump", so it can be a program name with args.
12921 set dummy objdump; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12925   $as_echo_n "(cached) " >&6
12926 else
12927   if test -n "$ac_ct_OBJDUMP"; then
12928   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12929 else
12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12932 do
12933   IFS=$as_save_IFS
12934   test -z "$as_dir" && as_dir=.
12935     for ac_exec_ext in '' $ac_executable_extensions; do
12936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12937     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939     break 2
12940   fi
12941 done
12942   done
12943 IFS=$as_save_IFS
12944
12945 fi
12946 fi
12947 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12948 if test -n "$ac_ct_OBJDUMP"; then
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12950 $as_echo "$ac_ct_OBJDUMP" >&6; }
12951 else
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12954 fi
12955
12956   if test "x$ac_ct_OBJDUMP" = x; then
12957     OBJDUMP="false"
12958   else
12959     case $cross_compiling:$ac_tool_warned in
12960 yes:)
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12963 ac_tool_warned=yes ;;
12964 esac
12965     OBJDUMP=$ac_ct_OBJDUMP
12966   fi
12967 else
12968   OBJDUMP="$ac_cv_prog_OBJDUMP"
12969 fi
12970
12971 test -z "$OBJDUMP" && OBJDUMP=objdump
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12982 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12983 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12984   $as_echo_n "(cached) " >&6
12985 else
12986   lt_cv_file_magic_cmd='$MAGIC_CMD'
12987 lt_cv_file_magic_test_file=
12988 lt_cv_deplibs_check_method='unknown'
12989 # Need to set the preceding variable on all platforms that support
12990 # interlibrary dependencies.
12991 # 'none' -- dependencies not supported.
12992 # `unknown' -- same as none, but documents that we really don't know.
12993 # 'pass_all' -- all dependencies passed with no checks.
12994 # 'test_compile' -- check by making test program.
12995 # 'file_magic [[regex]]' -- check by looking for files in library path
12996 # which responds to the $file_magic_cmd with a given extended regex.
12997 # If you have `file' or equivalent on your system and you're not sure
12998 # whether `pass_all' will *always* work, you probably want this one.
12999
13000 case $host_os in
13001 aix[4-9]*)
13002   lt_cv_deplibs_check_method=pass_all
13003   ;;
13004
13005 beos*)
13006   lt_cv_deplibs_check_method=pass_all
13007   ;;
13008
13009 bsdi[45]*)
13010   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13011   lt_cv_file_magic_cmd='/usr/bin/file -L'
13012   lt_cv_file_magic_test_file=/shlib/libc.so
13013   ;;
13014
13015 cygwin*)
13016   # func_win32_libid is a shell function defined in ltmain.sh
13017   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13018   lt_cv_file_magic_cmd='func_win32_libid'
13019   ;;
13020
13021 mingw* | pw32*)
13022   # Base MSYS/MinGW do not provide the 'file' command needed by
13023   # func_win32_libid shell function, so use a weaker test based on 'objdump',
13024   # unless we find 'file', for example because we are cross-compiling.
13025   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13026   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13027     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13028     lt_cv_file_magic_cmd='func_win32_libid'
13029   else
13030     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13031     lt_cv_file_magic_cmd='$OBJDUMP -f'
13032   fi
13033   ;;
13034
13035 cegcc*)
13036   # use the weaker test based on 'objdump'. See mingw*.
13037   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13038   lt_cv_file_magic_cmd='$OBJDUMP -f'
13039   ;;
13040
13041 darwin* | rhapsody*)
13042   lt_cv_deplibs_check_method=pass_all
13043   ;;
13044
13045 freebsd* | dragonfly*)
13046   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13047     case $host_cpu in
13048     i*86 )
13049       # Not sure whether the presence of OpenBSD here was a mistake.
13050       # Let's accept both of them until this is cleared up.
13051       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13052       lt_cv_file_magic_cmd=/usr/bin/file
13053       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13054       ;;
13055     esac
13056   else
13057     lt_cv_deplibs_check_method=pass_all
13058   fi
13059   ;;
13060
13061 gnu*)
13062   lt_cv_deplibs_check_method=pass_all
13063   ;;
13064
13065 haiku*)
13066   lt_cv_deplibs_check_method=pass_all
13067   ;;
13068
13069 hpux10.20* | hpux11*)
13070   lt_cv_file_magic_cmd=/usr/bin/file
13071   case $host_cpu in
13072   ia64*)
13073     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13074     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13075     ;;
13076   hppa*64*)
13077     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]'
13078     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13079     ;;
13080   *)
13081     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13082     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13083     ;;
13084   esac
13085   ;;
13086
13087 interix[3-9]*)
13088   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13089   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13090   ;;
13091
13092 irix5* | irix6* | nonstopux*)
13093   case $LD in
13094   *-32|*"-32 ") libmagic=32-bit;;
13095   *-n32|*"-n32 ") libmagic=N32;;
13096   *-64|*"-64 ") libmagic=64-bit;;
13097   *) libmagic=never-match;;
13098   esac
13099   lt_cv_deplibs_check_method=pass_all
13100   ;;
13101
13102 # This must be Linux ELF.
13103 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13104   lt_cv_deplibs_check_method=pass_all
13105   ;;
13106
13107 netbsd*)
13108   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13109     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13110   else
13111     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13112   fi
13113   ;;
13114
13115 newos6*)
13116   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13117   lt_cv_file_magic_cmd=/usr/bin/file
13118   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13119   ;;
13120
13121 *nto* | *qnx*)
13122   lt_cv_deplibs_check_method=pass_all
13123   ;;
13124
13125 openbsd*)
13126   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13127     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13128   else
13129     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13130   fi
13131   ;;
13132
13133 osf3* | osf4* | osf5*)
13134   lt_cv_deplibs_check_method=pass_all
13135   ;;
13136
13137 rdos*)
13138   lt_cv_deplibs_check_method=pass_all
13139   ;;
13140
13141 solaris*)
13142   lt_cv_deplibs_check_method=pass_all
13143   ;;
13144
13145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13146   lt_cv_deplibs_check_method=pass_all
13147   ;;
13148
13149 sysv4 | sysv4.3*)
13150   case $host_vendor in
13151   motorola)
13152     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]'
13153     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13154     ;;
13155   ncr)
13156     lt_cv_deplibs_check_method=pass_all
13157     ;;
13158   sequent)
13159     lt_cv_file_magic_cmd='/bin/file'
13160     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13161     ;;
13162   sni)
13163     lt_cv_file_magic_cmd='/bin/file'
13164     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13165     lt_cv_file_magic_test_file=/lib/libc.so
13166     ;;
13167   siemens)
13168     lt_cv_deplibs_check_method=pass_all
13169     ;;
13170   pc)
13171     lt_cv_deplibs_check_method=pass_all
13172     ;;
13173   esac
13174   ;;
13175
13176 tpf*)
13177   lt_cv_deplibs_check_method=pass_all
13178   ;;
13179 esac
13180
13181 fi
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13183 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13184 file_magic_cmd=$lt_cv_file_magic_cmd
13185 deplibs_check_method=$lt_cv_deplibs_check_method
13186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199 if test -n "$ac_tool_prefix"; then
13200   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13201 set dummy ${ac_tool_prefix}ar; ac_word=$2
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203 $as_echo_n "checking for $ac_word... " >&6; }
13204 if test "${ac_cv_prog_AR+set}" = set; then :
13205   $as_echo_n "(cached) " >&6
13206 else
13207   if test -n "$AR"; then
13208   ac_cv_prog_AR="$AR" # Let the user override the test.
13209 else
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13212 do
13213   IFS=$as_save_IFS
13214   test -z "$as_dir" && as_dir=.
13215     for ac_exec_ext in '' $ac_executable_extensions; do
13216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13217     ac_cv_prog_AR="${ac_tool_prefix}ar"
13218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219     break 2
13220   fi
13221 done
13222   done
13223 IFS=$as_save_IFS
13224
13225 fi
13226 fi
13227 AR=$ac_cv_prog_AR
13228 if test -n "$AR"; then
13229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13230 $as_echo "$AR" >&6; }
13231 else
13232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13234 fi
13235
13236
13237 fi
13238 if test -z "$ac_cv_prog_AR"; then
13239   ac_ct_AR=$AR
13240   # Extract the first word of "ar", so it can be a program name with args.
13241 set dummy ar; ac_word=$2
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243 $as_echo_n "checking for $ac_word... " >&6; }
13244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13245   $as_echo_n "(cached) " >&6
13246 else
13247   if test -n "$ac_ct_AR"; then
13248   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13249 else
13250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251 for as_dir in $PATH
13252 do
13253   IFS=$as_save_IFS
13254   test -z "$as_dir" && as_dir=.
13255     for ac_exec_ext in '' $ac_executable_extensions; do
13256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13257     ac_cv_prog_ac_ct_AR="ar"
13258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259     break 2
13260   fi
13261 done
13262   done
13263 IFS=$as_save_IFS
13264
13265 fi
13266 fi
13267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13268 if test -n "$ac_ct_AR"; then
13269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13270 $as_echo "$ac_ct_AR" >&6; }
13271 else
13272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273 $as_echo "no" >&6; }
13274 fi
13275
13276   if test "x$ac_ct_AR" = x; then
13277     AR="false"
13278   else
13279     case $cross_compiling:$ac_tool_warned in
13280 yes:)
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13283 ac_tool_warned=yes ;;
13284 esac
13285     AR=$ac_ct_AR
13286   fi
13287 else
13288   AR="$ac_cv_prog_AR"
13289 fi
13290
13291 test -z "$AR" && AR=ar
13292 test -z "$AR_FLAGS" && AR_FLAGS=cru
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304 if test -n "$ac_tool_prefix"; then
13305   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13306 set dummy ${ac_tool_prefix}strip; ac_word=$2
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if test "${ac_cv_prog_STRIP+set}" = set; then :
13310   $as_echo_n "(cached) " >&6
13311 else
13312   if test -n "$STRIP"; then
13313   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13314 else
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13317 do
13318   IFS=$as_save_IFS
13319   test -z "$as_dir" && as_dir=.
13320     for ac_exec_ext in '' $ac_executable_extensions; do
13321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13322     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324     break 2
13325   fi
13326 done
13327   done
13328 IFS=$as_save_IFS
13329
13330 fi
13331 fi
13332 STRIP=$ac_cv_prog_STRIP
13333 if test -n "$STRIP"; then
13334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13335 $as_echo "$STRIP" >&6; }
13336 else
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13339 fi
13340
13341
13342 fi
13343 if test -z "$ac_cv_prog_STRIP"; then
13344   ac_ct_STRIP=$STRIP
13345   # Extract the first word of "strip", so it can be a program name with args.
13346 set dummy strip; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352   if test -n "$ac_ct_STRIP"; then
13353   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13354 else
13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356 for as_dir in $PATH
13357 do
13358   IFS=$as_save_IFS
13359   test -z "$as_dir" && as_dir=.
13360     for ac_exec_ext in '' $ac_executable_extensions; do
13361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13362     ac_cv_prog_ac_ct_STRIP="strip"
13363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364     break 2
13365   fi
13366 done
13367   done
13368 IFS=$as_save_IFS
13369
13370 fi
13371 fi
13372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13373 if test -n "$ac_ct_STRIP"; then
13374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13375 $as_echo "$ac_ct_STRIP" >&6; }
13376 else
13377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 $as_echo "no" >&6; }
13379 fi
13380
13381   if test "x$ac_ct_STRIP" = x; then
13382     STRIP=":"
13383   else
13384     case $cross_compiling:$ac_tool_warned in
13385 yes:)
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13388 ac_tool_warned=yes ;;
13389 esac
13390     STRIP=$ac_ct_STRIP
13391   fi
13392 else
13393   STRIP="$ac_cv_prog_STRIP"
13394 fi
13395
13396 test -z "$STRIP" && STRIP=:
13397
13398
13399
13400
13401
13402
13403 if test -n "$ac_tool_prefix"; then
13404   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407 $as_echo_n "checking for $ac_word... " >&6; }
13408 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13409   $as_echo_n "(cached) " >&6
13410 else
13411   if test -n "$RANLIB"; then
13412   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13413 else
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13416 do
13417   IFS=$as_save_IFS
13418   test -z "$as_dir" && as_dir=.
13419     for ac_exec_ext in '' $ac_executable_extensions; do
13420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423     break 2
13424   fi
13425 done
13426   done
13427 IFS=$as_save_IFS
13428
13429 fi
13430 fi
13431 RANLIB=$ac_cv_prog_RANLIB
13432 if test -n "$RANLIB"; then
13433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13434 $as_echo "$RANLIB" >&6; }
13435 else
13436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437 $as_echo "no" >&6; }
13438 fi
13439
13440
13441 fi
13442 if test -z "$ac_cv_prog_RANLIB"; then
13443   ac_ct_RANLIB=$RANLIB
13444   # Extract the first word of "ranlib", so it can be a program name with args.
13445 set dummy ranlib; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13449   $as_echo_n "(cached) " >&6
13450 else
13451   if test -n "$ac_ct_RANLIB"; then
13452   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13453 else
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13456 do
13457   IFS=$as_save_IFS
13458   test -z "$as_dir" && as_dir=.
13459     for ac_exec_ext in '' $ac_executable_extensions; do
13460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13461     ac_cv_prog_ac_ct_RANLIB="ranlib"
13462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463     break 2
13464   fi
13465 done
13466   done
13467 IFS=$as_save_IFS
13468
13469 fi
13470 fi
13471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13472 if test -n "$ac_ct_RANLIB"; then
13473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13474 $as_echo "$ac_ct_RANLIB" >&6; }
13475 else
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478 fi
13479
13480   if test "x$ac_ct_RANLIB" = x; then
13481     RANLIB=":"
13482   else
13483     case $cross_compiling:$ac_tool_warned in
13484 yes:)
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13487 ac_tool_warned=yes ;;
13488 esac
13489     RANLIB=$ac_ct_RANLIB
13490   fi
13491 else
13492   RANLIB="$ac_cv_prog_RANLIB"
13493 fi
13494
13495 test -z "$RANLIB" && RANLIB=:
13496
13497
13498
13499
13500
13501
13502 # Determine commands to create old-style static archives.
13503 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13504 old_postinstall_cmds='chmod 644 $oldlib'
13505 old_postuninstall_cmds=
13506
13507 if test -n "$RANLIB"; then
13508   case $host_os in
13509   openbsd*)
13510     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13511     ;;
13512   *)
13513     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13514     ;;
13515   esac
13516   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13517 fi
13518
13519 case $host_os in
13520   darwin*)
13521     lock_old_archive_extraction=yes ;;
13522   *)
13523     lock_old_archive_extraction=no ;;
13524 esac
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
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564 # If no C compiler was specified, use CC.
13565 LTCC=${LTCC-"$CC"}
13566
13567 # If no C compiler flags were specified, use CFLAGS.
13568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13569
13570 # Allow CC to be a program name with arguments.
13571 compiler=$CC
13572
13573
13574 # Check for command to grab the raw symbol name followed by C symbol from nm.
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13576 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13577 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13578   $as_echo_n "(cached) " >&6
13579 else
13580
13581 # These are sane defaults that work on at least a few old systems.
13582 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13583
13584 # Character class describing NM global symbol codes.
13585 symcode='[BCDEGRST]'
13586
13587 # Regexp to match symbols that can be accessed directly from C.
13588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13589
13590 # Define system-specific variables.
13591 case $host_os in
13592 aix*)
13593   symcode='[BCDT]'
13594   ;;
13595 cygwin* | mingw* | pw32* | cegcc*)
13596   symcode='[ABCDGISTW]'
13597   ;;
13598 hpux*)
13599   if test "$host_cpu" = ia64; then
13600     symcode='[ABCDEGRST]'
13601   fi
13602   ;;
13603 irix* | nonstopux*)
13604   symcode='[BCDEGRST]'
13605   ;;
13606 osf*)
13607   symcode='[BCDEGQRST]'
13608   ;;
13609 solaris*)
13610   symcode='[BDRT]'
13611   ;;
13612 sco3.2v5*)
13613   symcode='[DT]'
13614   ;;
13615 sysv4.2uw2*)
13616   symcode='[DT]'
13617   ;;
13618 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13619   symcode='[ABDT]'
13620   ;;
13621 sysv4)
13622   symcode='[DFNSTU]'
13623   ;;
13624 esac
13625
13626 # If we're using GNU nm, then use its standard symbol codes.
13627 case `$NM -V 2>&1` in
13628 *GNU* | *'with BFD'*)
13629   symcode='[ABCDGIRSTW]' ;;
13630 esac
13631
13632 # Transform an extracted symbol line into a proper C declaration.
13633 # Some systems (esp. on ia64) link data and code symbols differently,
13634 # so use this general approach.
13635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13636
13637 # Transform an extracted symbol line into symbol name and symbol address
13638 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13639 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'"
13640
13641 # Handle CRLF in mingw tool chain
13642 opt_cr=
13643 case $build_os in
13644 mingw*)
13645   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13646   ;;
13647 esac
13648
13649 # Try without a prefix underscore, then with it.
13650 for ac_symprfx in "" "_"; do
13651
13652   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13653   symxfrm="\\1 $ac_symprfx\\2 \\2"
13654
13655   # Write the raw and C identifiers.
13656   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13657     # Fake it for dumpbin and say T for any non-static function
13658     # and D for any global variable.
13659     # Also find C++ and __fastcall symbols from MSVC++,
13660     # which start with @ or ?.
13661     lt_cv_sys_global_symbol_pipe="$AWK '"\
13662 "     {last_section=section; section=\$ 3};"\
13663 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13664 "     \$ 0!~/External *\|/{next};"\
13665 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13666 "     {if(hide[section]) next};"\
13667 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13668 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13669 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13670 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13671 "     ' prfx=^$ac_symprfx"
13672   else
13673     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13674   fi
13675
13676   # Check to see that the pipe works correctly.
13677   pipe_works=no
13678
13679   rm -f conftest*
13680   cat > conftest.$ac_ext <<_LT_EOF
13681 #ifdef __cplusplus
13682 extern "C" {
13683 #endif
13684 char nm_test_var;
13685 void nm_test_func(void);
13686 void nm_test_func(void){}
13687 #ifdef __cplusplus
13688 }
13689 #endif
13690 int main(){nm_test_var='a';nm_test_func();return(0);}
13691 _LT_EOF
13692
13693   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13694   (eval $ac_compile) 2>&5
13695   ac_status=$?
13696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697   test $ac_status = 0; }; then
13698     # Now try to grab the symbols.
13699     nlist=conftest.nm
13700     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13701   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13702   ac_status=$?
13703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13704   test $ac_status = 0; } && test -s "$nlist"; then
13705       # Try sorting and uniquifying the output.
13706       if sort "$nlist" | uniq > "$nlist"T; then
13707         mv -f "$nlist"T "$nlist"
13708       else
13709         rm -f "$nlist"T
13710       fi
13711
13712       # Make sure that we snagged all the symbols we need.
13713       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13714         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13715           cat <<_LT_EOF > conftest.$ac_ext
13716 #ifdef __cplusplus
13717 extern "C" {
13718 #endif
13719
13720 _LT_EOF
13721           # Now generate the symbol file.
13722           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13723
13724           cat <<_LT_EOF >> conftest.$ac_ext
13725
13726 /* The mapping between symbol names and symbols.  */
13727 const struct {
13728   const char *name;
13729   void       *address;
13730 }
13731 lt__PROGRAM__LTX_preloaded_symbols[] =
13732 {
13733   { "@PROGRAM@", (void *) 0 },
13734 _LT_EOF
13735           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13736           cat <<\_LT_EOF >> conftest.$ac_ext
13737   {0, (void *) 0}
13738 };
13739
13740 /* This works around a problem in FreeBSD linker */
13741 #ifdef FREEBSD_WORKAROUND
13742 static const void *lt_preloaded_setup() {
13743   return lt__PROGRAM__LTX_preloaded_symbols;
13744 }
13745 #endif
13746
13747 #ifdef __cplusplus
13748 }
13749 #endif
13750 _LT_EOF
13751           # Now try linking the two files.
13752           mv conftest.$ac_objext conftstm.$ac_objext
13753           lt_save_LIBS="$LIBS"
13754           lt_save_CFLAGS="$CFLAGS"
13755           LIBS="conftstm.$ac_objext"
13756           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13757           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13758   (eval $ac_link) 2>&5
13759   ac_status=$?
13760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13761   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13762             pipe_works=yes
13763           fi
13764           LIBS="$lt_save_LIBS"
13765           CFLAGS="$lt_save_CFLAGS"
13766         else
13767           echo "cannot find nm_test_func in $nlist" >&5
13768         fi
13769       else
13770         echo "cannot find nm_test_var in $nlist" >&5
13771       fi
13772     else
13773       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13774     fi
13775   else
13776     echo "$progname: failed program was:" >&5
13777     cat conftest.$ac_ext >&5
13778   fi
13779   rm -rf conftest* conftst*
13780
13781   # Do not use the global_symbol_pipe unless it works.
13782   if test "$pipe_works" = yes; then
13783     break
13784   else
13785     lt_cv_sys_global_symbol_pipe=
13786   fi
13787 done
13788
13789 fi
13790
13791 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13792   lt_cv_sys_global_symbol_to_cdecl=
13793 fi
13794 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13796 $as_echo "failed" >&6; }
13797 else
13798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13799 $as_echo "ok" >&6; }
13800 fi
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823 # Check whether --enable-libtool-lock was given.
13824 if test "${enable_libtool_lock+set}" = set; then :
13825   enableval=$enable_libtool_lock;
13826 fi
13827
13828 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13829
13830 # Some flags need to be propagated to the compiler or linker for good
13831 # libtool support.
13832 case $host in
13833 ia64-*-hpux*)
13834   # Find out which ABI we are using.
13835   echo 'int i;' > conftest.$ac_ext
13836   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13837   (eval $ac_compile) 2>&5
13838   ac_status=$?
13839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13840   test $ac_status = 0; }; then
13841     case `/usr/bin/file conftest.$ac_objext` in
13842       *ELF-32*)
13843         HPUX_IA64_MODE="32"
13844         ;;
13845       *ELF-64*)
13846         HPUX_IA64_MODE="64"
13847         ;;
13848     esac
13849   fi
13850   rm -rf conftest*
13851   ;;
13852 *-*-irix6*)
13853   # Find out which ABI we are using.
13854   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13855   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13856   (eval $ac_compile) 2>&5
13857   ac_status=$?
13858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13859   test $ac_status = 0; }; then
13860     if test "$lt_cv_prog_gnu_ld" = yes; then
13861       case `/usr/bin/file conftest.$ac_objext` in
13862         *32-bit*)
13863           LD="${LD-ld} -melf32bsmip"
13864           ;;
13865         *N32*)
13866           LD="${LD-ld} -melf32bmipn32"
13867           ;;
13868         *64-bit*)
13869           LD="${LD-ld} -melf64bmip"
13870         ;;
13871       esac
13872     else
13873       case `/usr/bin/file conftest.$ac_objext` in
13874         *32-bit*)
13875           LD="${LD-ld} -32"
13876           ;;
13877         *N32*)
13878           LD="${LD-ld} -n32"
13879           ;;
13880         *64-bit*)
13881           LD="${LD-ld} -64"
13882           ;;
13883       esac
13884     fi
13885   fi
13886   rm -rf conftest*
13887   ;;
13888
13889 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13890 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13891   # Find out which ABI we are using.
13892   echo 'int i;' > conftest.$ac_ext
13893   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13894   (eval $ac_compile) 2>&5
13895   ac_status=$?
13896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13897   test $ac_status = 0; }; then
13898     case `/usr/bin/file conftest.o` in
13899       *32-bit*)
13900         case $host in
13901           x86_64-*kfreebsd*-gnu)
13902             LD="${LD-ld} -m elf_i386_fbsd"
13903             ;;
13904           x86_64-*linux*)
13905             LD="${LD-ld} -m elf_i386"
13906             ;;
13907           ppc64-*linux*|powerpc64-*linux*)
13908             LD="${LD-ld} -m elf32ppclinux"
13909             ;;
13910           s390x-*linux*)
13911             LD="${LD-ld} -m elf_s390"
13912             ;;
13913           sparc64-*linux*)
13914             LD="${LD-ld} -m elf32_sparc"
13915             ;;
13916         esac
13917         ;;
13918       *64-bit*)
13919         case $host in
13920           x86_64-*kfreebsd*-gnu)
13921             LD="${LD-ld} -m elf_x86_64_fbsd"
13922             ;;
13923           x86_64-*linux*)
13924             LD="${LD-ld} -m elf_x86_64"
13925             ;;
13926           ppc*-*linux*|powerpc*-*linux*)
13927             LD="${LD-ld} -m elf64ppc"
13928             ;;
13929           s390*-*linux*|s390*-*tpf*)
13930             LD="${LD-ld} -m elf64_s390"
13931             ;;
13932           sparc*-*linux*)
13933             LD="${LD-ld} -m elf64_sparc"
13934             ;;
13935         esac
13936         ;;
13937     esac
13938   fi
13939   rm -rf conftest*
13940   ;;
13941
13942 *-*-sco3.2v5*)
13943   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13944   SAVE_CFLAGS="$CFLAGS"
13945   CFLAGS="$CFLAGS -belf"
13946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13947 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13948 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13949   $as_echo_n "(cached) " >&6
13950 else
13951   ac_ext=c
13952 ac_cpp='$CPP $CPPFLAGS'
13953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13956
13957      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h.  */
13959
13960 int
13961 main ()
13962 {
13963
13964   ;
13965   return 0;
13966 }
13967 _ACEOF
13968 if ac_fn_c_try_link "$LINENO"; then :
13969   lt_cv_cc_needs_belf=yes
13970 else
13971   lt_cv_cc_needs_belf=no
13972 fi
13973 rm -f core conftest.err conftest.$ac_objext \
13974     conftest$ac_exeext conftest.$ac_ext
13975      ac_ext=c
13976 ac_cpp='$CPP $CPPFLAGS'
13977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13980
13981 fi
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13983 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13984   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13985     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13986     CFLAGS="$SAVE_CFLAGS"
13987   fi
13988   ;;
13989 sparc*-*solaris*)
13990   # Find out which ABI we are using.
13991   echo 'int i;' > conftest.$ac_ext
13992   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13993   (eval $ac_compile) 2>&5
13994   ac_status=$?
13995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13996   test $ac_status = 0; }; then
13997     case `/usr/bin/file conftest.o` in
13998     *64-bit*)
13999       case $lt_cv_prog_gnu_ld in
14000       yes*) LD="${LD-ld} -m elf64_sparc" ;;
14001       *)
14002         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14003           LD="${LD-ld} -64"
14004         fi
14005         ;;
14006       esac
14007       ;;
14008     esac
14009   fi
14010   rm -rf conftest*
14011   ;;
14012 esac
14013
14014 need_locks="$enable_libtool_lock"
14015
14016
14017   case $host_os in
14018     rhapsody* | darwin*)
14019     if test -n "$ac_tool_prefix"; then
14020   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14021 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14023 $as_echo_n "checking for $ac_word... " >&6; }
14024 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14025   $as_echo_n "(cached) " >&6
14026 else
14027   if test -n "$DSYMUTIL"; then
14028   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14029 else
14030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031 for as_dir in $PATH
14032 do
14033   IFS=$as_save_IFS
14034   test -z "$as_dir" && as_dir=.
14035     for ac_exec_ext in '' $ac_executable_extensions; do
14036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14037     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14039     break 2
14040   fi
14041 done
14042   done
14043 IFS=$as_save_IFS
14044
14045 fi
14046 fi
14047 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14048 if test -n "$DSYMUTIL"; then
14049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14050 $as_echo "$DSYMUTIL" >&6; }
14051 else
14052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14054 fi
14055
14056
14057 fi
14058 if test -z "$ac_cv_prog_DSYMUTIL"; then
14059   ac_ct_DSYMUTIL=$DSYMUTIL
14060   # Extract the first word of "dsymutil", so it can be a program name with args.
14061 set dummy dsymutil; ac_word=$2
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14063 $as_echo_n "checking for $ac_word... " >&6; }
14064 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14065   $as_echo_n "(cached) " >&6
14066 else
14067   if test -n "$ac_ct_DSYMUTIL"; then
14068   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14069 else
14070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071 for as_dir in $PATH
14072 do
14073   IFS=$as_save_IFS
14074   test -z "$as_dir" && as_dir=.
14075     for ac_exec_ext in '' $ac_executable_extensions; do
14076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14077     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14079     break 2
14080   fi
14081 done
14082   done
14083 IFS=$as_save_IFS
14084
14085 fi
14086 fi
14087 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14088 if test -n "$ac_ct_DSYMUTIL"; then
14089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14090 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14091 else
14092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14094 fi
14095
14096   if test "x$ac_ct_DSYMUTIL" = x; then
14097     DSYMUTIL=":"
14098   else
14099     case $cross_compiling:$ac_tool_warned in
14100 yes:)
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14103 ac_tool_warned=yes ;;
14104 esac
14105     DSYMUTIL=$ac_ct_DSYMUTIL
14106   fi
14107 else
14108   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14109 fi
14110
14111     if test -n "$ac_tool_prefix"; then
14112   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14113 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14115 $as_echo_n "checking for $ac_word... " >&6; }
14116 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14117   $as_echo_n "(cached) " >&6
14118 else
14119   if test -n "$NMEDIT"; then
14120   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14121 else
14122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14123 for as_dir in $PATH
14124 do
14125   IFS=$as_save_IFS
14126   test -z "$as_dir" && as_dir=.
14127     for ac_exec_ext in '' $ac_executable_extensions; do
14128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14129     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14131     break 2
14132   fi
14133 done
14134   done
14135 IFS=$as_save_IFS
14136
14137 fi
14138 fi
14139 NMEDIT=$ac_cv_prog_NMEDIT
14140 if test -n "$NMEDIT"; then
14141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14142 $as_echo "$NMEDIT" >&6; }
14143 else
14144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14145 $as_echo "no" >&6; }
14146 fi
14147
14148
14149 fi
14150 if test -z "$ac_cv_prog_NMEDIT"; then
14151   ac_ct_NMEDIT=$NMEDIT
14152   # Extract the first word of "nmedit", so it can be a program name with args.
14153 set dummy nmedit; ac_word=$2
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14155 $as_echo_n "checking for $ac_word... " >&6; }
14156 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14157   $as_echo_n "(cached) " >&6
14158 else
14159   if test -n "$ac_ct_NMEDIT"; then
14160   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14161 else
14162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163 for as_dir in $PATH
14164 do
14165   IFS=$as_save_IFS
14166   test -z "$as_dir" && as_dir=.
14167     for ac_exec_ext in '' $ac_executable_extensions; do
14168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14169     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14171     break 2
14172   fi
14173 done
14174   done
14175 IFS=$as_save_IFS
14176
14177 fi
14178 fi
14179 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14180 if test -n "$ac_ct_NMEDIT"; then
14181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14182 $as_echo "$ac_ct_NMEDIT" >&6; }
14183 else
14184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185 $as_echo "no" >&6; }
14186 fi
14187
14188   if test "x$ac_ct_NMEDIT" = x; then
14189     NMEDIT=":"
14190   else
14191     case $cross_compiling:$ac_tool_warned in
14192 yes:)
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14195 ac_tool_warned=yes ;;
14196 esac
14197     NMEDIT=$ac_ct_NMEDIT
14198   fi
14199 else
14200   NMEDIT="$ac_cv_prog_NMEDIT"
14201 fi
14202
14203     if test -n "$ac_tool_prefix"; then
14204   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14205 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14207 $as_echo_n "checking for $ac_word... " >&6; }
14208 if test "${ac_cv_prog_LIPO+set}" = set; then :
14209   $as_echo_n "(cached) " >&6
14210 else
14211   if test -n "$LIPO"; then
14212   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14213 else
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14216 do
14217   IFS=$as_save_IFS
14218   test -z "$as_dir" && as_dir=.
14219     for ac_exec_ext in '' $ac_executable_extensions; do
14220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14221     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14223     break 2
14224   fi
14225 done
14226   done
14227 IFS=$as_save_IFS
14228
14229 fi
14230 fi
14231 LIPO=$ac_cv_prog_LIPO
14232 if test -n "$LIPO"; then
14233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14234 $as_echo "$LIPO" >&6; }
14235 else
14236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238 fi
14239
14240
14241 fi
14242 if test -z "$ac_cv_prog_LIPO"; then
14243   ac_ct_LIPO=$LIPO
14244   # Extract the first word of "lipo", so it can be a program name with args.
14245 set dummy lipo; ac_word=$2
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14247 $as_echo_n "checking for $ac_word... " >&6; }
14248 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14249   $as_echo_n "(cached) " >&6
14250 else
14251   if test -n "$ac_ct_LIPO"; then
14252   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14253 else
14254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14255 for as_dir in $PATH
14256 do
14257   IFS=$as_save_IFS
14258   test -z "$as_dir" && as_dir=.
14259     for ac_exec_ext in '' $ac_executable_extensions; do
14260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14261     ac_cv_prog_ac_ct_LIPO="lipo"
14262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14263     break 2
14264   fi
14265 done
14266   done
14267 IFS=$as_save_IFS
14268
14269 fi
14270 fi
14271 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14272 if test -n "$ac_ct_LIPO"; then
14273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14274 $as_echo "$ac_ct_LIPO" >&6; }
14275 else
14276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 $as_echo "no" >&6; }
14278 fi
14279
14280   if test "x$ac_ct_LIPO" = x; then
14281     LIPO=":"
14282   else
14283     case $cross_compiling:$ac_tool_warned in
14284 yes:)
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14287 ac_tool_warned=yes ;;
14288 esac
14289     LIPO=$ac_ct_LIPO
14290   fi
14291 else
14292   LIPO="$ac_cv_prog_LIPO"
14293 fi
14294
14295     if test -n "$ac_tool_prefix"; then
14296   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14297 set dummy ${ac_tool_prefix}otool; ac_word=$2
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14299 $as_echo_n "checking for $ac_word... " >&6; }
14300 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14301   $as_echo_n "(cached) " >&6
14302 else
14303   if test -n "$OTOOL"; then
14304   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14305 else
14306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14307 for as_dir in $PATH
14308 do
14309   IFS=$as_save_IFS
14310   test -z "$as_dir" && as_dir=.
14311     for ac_exec_ext in '' $ac_executable_extensions; do
14312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14313     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14315     break 2
14316   fi
14317 done
14318   done
14319 IFS=$as_save_IFS
14320
14321 fi
14322 fi
14323 OTOOL=$ac_cv_prog_OTOOL
14324 if test -n "$OTOOL"; then
14325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14326 $as_echo "$OTOOL" >&6; }
14327 else
14328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 $as_echo "no" >&6; }
14330 fi
14331
14332
14333 fi
14334 if test -z "$ac_cv_prog_OTOOL"; then
14335   ac_ct_OTOOL=$OTOOL
14336   # Extract the first word of "otool", so it can be a program name with args.
14337 set dummy otool; ac_word=$2
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14339 $as_echo_n "checking for $ac_word... " >&6; }
14340 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14341   $as_echo_n "(cached) " >&6
14342 else
14343   if test -n "$ac_ct_OTOOL"; then
14344   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14345 else
14346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14347 for as_dir in $PATH
14348 do
14349   IFS=$as_save_IFS
14350   test -z "$as_dir" && as_dir=.
14351     for ac_exec_ext in '' $ac_executable_extensions; do
14352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14353     ac_cv_prog_ac_ct_OTOOL="otool"
14354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14355     break 2
14356   fi
14357 done
14358   done
14359 IFS=$as_save_IFS
14360
14361 fi
14362 fi
14363 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14364 if test -n "$ac_ct_OTOOL"; then
14365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14366 $as_echo "$ac_ct_OTOOL" >&6; }
14367 else
14368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14369 $as_echo "no" >&6; }
14370 fi
14371
14372   if test "x$ac_ct_OTOOL" = x; then
14373     OTOOL=":"
14374   else
14375     case $cross_compiling:$ac_tool_warned in
14376 yes:)
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14379 ac_tool_warned=yes ;;
14380 esac
14381     OTOOL=$ac_ct_OTOOL
14382   fi
14383 else
14384   OTOOL="$ac_cv_prog_OTOOL"
14385 fi
14386
14387     if test -n "$ac_tool_prefix"; then
14388   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14389 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14391 $as_echo_n "checking for $ac_word... " >&6; }
14392 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14393   $as_echo_n "(cached) " >&6
14394 else
14395   if test -n "$OTOOL64"; then
14396   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14397 else
14398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14399 for as_dir in $PATH
14400 do
14401   IFS=$as_save_IFS
14402   test -z "$as_dir" && as_dir=.
14403     for ac_exec_ext in '' $ac_executable_extensions; do
14404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14405     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14407     break 2
14408   fi
14409 done
14410   done
14411 IFS=$as_save_IFS
14412
14413 fi
14414 fi
14415 OTOOL64=$ac_cv_prog_OTOOL64
14416 if test -n "$OTOOL64"; then
14417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14418 $as_echo "$OTOOL64" >&6; }
14419 else
14420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421 $as_echo "no" >&6; }
14422 fi
14423
14424
14425 fi
14426 if test -z "$ac_cv_prog_OTOOL64"; then
14427   ac_ct_OTOOL64=$OTOOL64
14428   # Extract the first word of "otool64", so it can be a program name with args.
14429 set dummy otool64; ac_word=$2
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14431 $as_echo_n "checking for $ac_word... " >&6; }
14432 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14433   $as_echo_n "(cached) " >&6
14434 else
14435   if test -n "$ac_ct_OTOOL64"; then
14436   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14437 else
14438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14439 for as_dir in $PATH
14440 do
14441   IFS=$as_save_IFS
14442   test -z "$as_dir" && as_dir=.
14443     for ac_exec_ext in '' $ac_executable_extensions; do
14444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14445     ac_cv_prog_ac_ct_OTOOL64="otool64"
14446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14447     break 2
14448   fi
14449 done
14450   done
14451 IFS=$as_save_IFS
14452
14453 fi
14454 fi
14455 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14456 if test -n "$ac_ct_OTOOL64"; then
14457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14458 $as_echo "$ac_ct_OTOOL64" >&6; }
14459 else
14460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 $as_echo "no" >&6; }
14462 fi
14463
14464   if test "x$ac_ct_OTOOL64" = x; then
14465     OTOOL64=":"
14466   else
14467     case $cross_compiling:$ac_tool_warned in
14468 yes:)
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14471 ac_tool_warned=yes ;;
14472 esac
14473     OTOOL64=$ac_ct_OTOOL64
14474   fi
14475 else
14476   OTOOL64="$ac_cv_prog_OTOOL64"
14477 fi
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14506 $as_echo_n "checking for -single_module linker flag... " >&6; }
14507 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14508   $as_echo_n "(cached) " >&6
14509 else
14510   lt_cv_apple_cc_single_mod=no
14511       if test -z "${LT_MULTI_MODULE}"; then
14512         # By default we will add the -single_module flag. You can override
14513         # by either setting the environment variable LT_MULTI_MODULE
14514         # non-empty at configure time, or by adding -multi_module to the
14515         # link flags.
14516         rm -rf libconftest.dylib*
14517         echo "int foo(void){return 1;}" > conftest.c
14518         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14519 -dynamiclib -Wl,-single_module conftest.c" >&5
14520         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14521           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14522         _lt_result=$?
14523         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14524           lt_cv_apple_cc_single_mod=yes
14525         else
14526           cat conftest.err >&5
14527         fi
14528         rm -rf libconftest.dylib*
14529         rm -f conftest.*
14530       fi
14531 fi
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14533 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14535 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14536 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14537   $as_echo_n "(cached) " >&6
14538 else
14539   lt_cv_ld_exported_symbols_list=no
14540       save_LDFLAGS=$LDFLAGS
14541       echo "_main" > conftest.sym
14542       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h.  */
14545
14546 int
14547 main ()
14548 {
14549
14550   ;
14551   return 0;
14552 }
14553 _ACEOF
14554 if ac_fn_c_try_link "$LINENO"; then :
14555   lt_cv_ld_exported_symbols_list=yes
14556 else
14557   lt_cv_ld_exported_symbols_list=no
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext \
14560     conftest$ac_exeext conftest.$ac_ext
14561         LDFLAGS="$save_LDFLAGS"
14562
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14565 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14567 $as_echo_n "checking for -force_load linker flag... " >&6; }
14568 if test "${lt_cv_ld_force_load+set}" = set; then :
14569   $as_echo_n "(cached) " >&6
14570 else
14571   lt_cv_ld_force_load=no
14572       cat > conftest.c << _LT_EOF
14573 int forced_loaded() { return 2;}
14574 _LT_EOF
14575       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14576       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14577       echo "$AR cru libconftest.a conftest.o" >&5
14578       $AR cru libconftest.a conftest.o 2>&5
14579       cat > conftest.c << _LT_EOF
14580 int main() { return 0;}
14581 _LT_EOF
14582       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14583       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14584       _lt_result=$?
14585       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14586         lt_cv_ld_force_load=yes
14587       else
14588         cat conftest.err >&5
14589       fi
14590         rm -f conftest.err libconftest.a conftest conftest.c
14591         rm -rf conftest.dSYM
14592
14593 fi
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14595 $as_echo "$lt_cv_ld_force_load" >&6; }
14596     case $host_os in
14597     rhapsody* | darwin1.[012])
14598       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14599     darwin1.*)
14600       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14601     darwin*) # darwin 5.x on
14602       # if running on 10.5 or later, the deployment target defaults
14603       # to the OS version, if on x86, and 10.4, the deployment
14604       # target defaults to 10.4. Don't you love it?
14605       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14606         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14607           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14608         10.[012]*)
14609           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14610         10.*)
14611           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14612       esac
14613     ;;
14614   esac
14615     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14616       _lt_dar_single_mod='$single_module'
14617     fi
14618     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14619       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14620     else
14621       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14622     fi
14623     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14624       _lt_dsymutil='~$DSYMUTIL $lib || :'
14625     else
14626       _lt_dsymutil=
14627     fi
14628     ;;
14629   esac
14630
14631 for ac_header in dlfcn.h
14632 do :
14633   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14634 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14635   cat >>confdefs.h <<_ACEOF
14636 #define HAVE_DLFCN_H 1
14637 _ACEOF
14638
14639 fi
14640 done
14641
14642
14643
14644
14645
14646 # Set options
14647
14648
14649
14650         enable_dlopen=no
14651
14652
14653   enable_win32_dll=no
14654
14655
14656             # Check whether --enable-shared was given.
14657 if test "${enable_shared+set}" = set; then :
14658   enableval=$enable_shared; p=${PACKAGE-default}
14659     case $enableval in
14660     yes) enable_shared=yes ;;
14661     no) enable_shared=no ;;
14662     *)
14663       enable_shared=no
14664       # Look at the argument we got.  We use all the common list separators.
14665       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14666       for pkg in $enableval; do
14667         IFS="$lt_save_ifs"
14668         if test "X$pkg" = "X$p"; then
14669           enable_shared=yes
14670         fi
14671       done
14672       IFS="$lt_save_ifs"
14673       ;;
14674     esac
14675 else
14676   enable_shared=yes
14677 fi
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687   # Check whether --enable-static was given.
14688 if test "${enable_static+set}" = set; then :
14689   enableval=$enable_static; p=${PACKAGE-default}
14690     case $enableval in
14691     yes) enable_static=yes ;;
14692     no) enable_static=no ;;
14693     *)
14694      enable_static=no
14695       # Look at the argument we got.  We use all the common list separators.
14696       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14697       for pkg in $enableval; do
14698         IFS="$lt_save_ifs"
14699         if test "X$pkg" = "X$p"; then
14700           enable_static=yes
14701         fi
14702       done
14703       IFS="$lt_save_ifs"
14704       ;;
14705     esac
14706 else
14707   enable_static=yes
14708 fi
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719 # Check whether --with-pic was given.
14720 if test "${with_pic+set}" = set; then :
14721   withval=$with_pic; pic_mode="$withval"
14722 else
14723   pic_mode=default
14724 fi
14725
14726
14727 test -z "$pic_mode" && pic_mode=default
14728
14729
14730
14731
14732
14733
14734
14735   # Check whether --enable-fast-install was given.
14736 if test "${enable_fast_install+set}" = set; then :
14737   enableval=$enable_fast_install; p=${PACKAGE-default}
14738     case $enableval in
14739     yes) enable_fast_install=yes ;;
14740     no) enable_fast_install=no ;;
14741     *)
14742       enable_fast_install=no
14743       # Look at the argument we got.  We use all the common list separators.
14744       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14745       for pkg in $enableval; do
14746         IFS="$lt_save_ifs"
14747         if test "X$pkg" = "X$p"; then
14748           enable_fast_install=yes
14749         fi
14750       done
14751       IFS="$lt_save_ifs"
14752       ;;
14753     esac
14754 else
14755   enable_fast_install=yes
14756 fi
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768 # This can be used to rebuild libtool when needed
14769 LIBTOOL_DEPS="$ltmain"
14770
14771 # Always use our own libtool.
14772 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799 test -z "$LN_S" && LN_S="ln -s"
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814 if test -n "${ZSH_VERSION+set}" ; then
14815    setopt NO_GLOB_SUBST
14816 fi
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14819 $as_echo_n "checking for objdir... " >&6; }
14820 if test "${lt_cv_objdir+set}" = set; then :
14821   $as_echo_n "(cached) " >&6
14822 else
14823   rm -f .libs 2>/dev/null
14824 mkdir .libs 2>/dev/null
14825 if test -d .libs; then
14826   lt_cv_objdir=.libs
14827 else
14828   # MS-DOS does not allow filenames that begin with a dot.
14829   lt_cv_objdir=_libs
14830 fi
14831 rmdir .libs 2>/dev/null
14832 fi
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14834 $as_echo "$lt_cv_objdir" >&6; }
14835 objdir=$lt_cv_objdir
14836
14837
14838
14839
14840
14841 cat >>confdefs.h <<_ACEOF
14842 #define LT_OBJDIR "$lt_cv_objdir/"
14843 _ACEOF
14844
14845
14846
14847
14848 case $host_os in
14849 aix3*)
14850   # AIX sometimes has problems with the GCC collect2 program.  For some
14851   # reason, if we set the COLLECT_NAMES environment variable, the problems
14852   # vanish in a puff of smoke.
14853   if test "X${COLLECT_NAMES+set}" != Xset; then
14854     COLLECT_NAMES=
14855     export COLLECT_NAMES
14856   fi
14857   ;;
14858 esac
14859
14860 # Global variables:
14861 ofile=libtool
14862 can_build_shared=yes
14863
14864 # All known linkers require a `.a' archive for static linking (except MSVC,
14865 # which needs '.lib').
14866 libext=a
14867
14868 with_gnu_ld="$lt_cv_prog_gnu_ld"
14869
14870 old_CC="$CC"
14871 old_CFLAGS="$CFLAGS"
14872
14873 # Set sane defaults for various variables
14874 test -z "$CC" && CC=cc
14875 test -z "$LTCC" && LTCC=$CC
14876 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14877 test -z "$LD" && LD=ld
14878 test -z "$ac_objext" && ac_objext=o
14879
14880 for cc_temp in $compiler""; do
14881   case $cc_temp in
14882     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14883     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14884     \-*) ;;
14885     *) break;;
14886   esac
14887 done
14888 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14889
14890
14891 # Only perform the check for file, if the check method requires it
14892 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14893 case $deplibs_check_method in
14894 file_magic*)
14895   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14897 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14898 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14899   $as_echo_n "(cached) " >&6
14900 else
14901   case $MAGIC_CMD in
14902 [\\/*] |  ?:[\\/]*)
14903   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14904   ;;
14905 *)
14906   lt_save_MAGIC_CMD="$MAGIC_CMD"
14907   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14908   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14909   for ac_dir in $ac_dummy; do
14910     IFS="$lt_save_ifs"
14911     test -z "$ac_dir" && ac_dir=.
14912     if test -f $ac_dir/${ac_tool_prefix}file; then
14913       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14914       if test -n "$file_magic_test_file"; then
14915         case $deplibs_check_method in
14916         "file_magic "*)
14917           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14918           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14919           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14920             $EGREP "$file_magic_regex" > /dev/null; then
14921             :
14922           else
14923             cat <<_LT_EOF 1>&2
14924
14925 *** Warning: the command libtool uses to detect shared libraries,
14926 *** $file_magic_cmd, produces output that libtool cannot recognize.
14927 *** The result is that libtool may fail to recognize shared libraries
14928 *** as such.  This will affect the creation of libtool libraries that
14929 *** depend on shared libraries, but programs linked with such libtool
14930 *** libraries will work regardless of this problem.  Nevertheless, you
14931 *** may want to report the problem to your system manager and/or to
14932 *** bug-libtool@gnu.org
14933
14934 _LT_EOF
14935           fi ;;
14936         esac
14937       fi
14938       break
14939     fi
14940   done
14941   IFS="$lt_save_ifs"
14942   MAGIC_CMD="$lt_save_MAGIC_CMD"
14943   ;;
14944 esac
14945 fi
14946
14947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14948 if test -n "$MAGIC_CMD"; then
14949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14950 $as_echo "$MAGIC_CMD" >&6; }
14951 else
14952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14953 $as_echo "no" >&6; }
14954 fi
14955
14956
14957
14958
14959
14960 if test -z "$lt_cv_path_MAGIC_CMD"; then
14961   if test -n "$ac_tool_prefix"; then
14962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14963 $as_echo_n "checking for file... " >&6; }
14964 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14965   $as_echo_n "(cached) " >&6
14966 else
14967   case $MAGIC_CMD in
14968 [\\/*] |  ?:[\\/]*)
14969   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14970   ;;
14971 *)
14972   lt_save_MAGIC_CMD="$MAGIC_CMD"
14973   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14974   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14975   for ac_dir in $ac_dummy; do
14976     IFS="$lt_save_ifs"
14977     test -z "$ac_dir" && ac_dir=.
14978     if test -f $ac_dir/file; then
14979       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14980       if test -n "$file_magic_test_file"; then
14981         case $deplibs_check_method in
14982         "file_magic "*)
14983           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14984           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14985           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14986             $EGREP "$file_magic_regex" > /dev/null; then
14987             :
14988           else
14989             cat <<_LT_EOF 1>&2
14990
14991 *** Warning: the command libtool uses to detect shared libraries,
14992 *** $file_magic_cmd, produces output that libtool cannot recognize.
14993 *** The result is that libtool may fail to recognize shared libraries
14994 *** as such.  This will affect the creation of libtool libraries that
14995 *** depend on shared libraries, but programs linked with such libtool
14996 *** libraries will work regardless of this problem.  Nevertheless, you
14997 *** may want to report the problem to your system manager and/or to
14998 *** bug-libtool@gnu.org
14999
15000 _LT_EOF
15001           fi ;;
15002         esac
15003       fi
15004       break
15005     fi
15006   done
15007   IFS="$lt_save_ifs"
15008   MAGIC_CMD="$lt_save_MAGIC_CMD"
15009   ;;
15010 esac
15011 fi
15012
15013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15014 if test -n "$MAGIC_CMD"; then
15015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15016 $as_echo "$MAGIC_CMD" >&6; }
15017 else
15018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15019 $as_echo "no" >&6; }
15020 fi
15021
15022
15023   else
15024     MAGIC_CMD=:
15025   fi
15026 fi
15027
15028   fi
15029   ;;
15030 esac
15031
15032 # Use C for the default configuration in the libtool script
15033
15034 lt_save_CC="$CC"
15035 ac_ext=c
15036 ac_cpp='$CPP $CPPFLAGS'
15037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15040
15041
15042 # Source file extension for C test sources.
15043 ac_ext=c
15044
15045 # Object file extension for compiled C test sources.
15046 objext=o
15047 objext=$objext
15048
15049 # Code to be used in simple compile tests
15050 lt_simple_compile_test_code="int some_variable = 0;"
15051
15052 # Code to be used in simple link tests
15053 lt_simple_link_test_code='int main(){return(0);}'
15054
15055
15056
15057
15058
15059
15060
15061 # If no C compiler was specified, use CC.
15062 LTCC=${LTCC-"$CC"}
15063
15064 # If no C compiler flags were specified, use CFLAGS.
15065 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15066
15067 # Allow CC to be a program name with arguments.
15068 compiler=$CC
15069
15070 # Save the default compiler, since it gets overwritten when the other
15071 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15072 compiler_DEFAULT=$CC
15073
15074 # save warnings/boilerplate of simple test code
15075 ac_outfile=conftest.$ac_objext
15076 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15077 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15078 _lt_compiler_boilerplate=`cat conftest.err`
15079 $RM conftest*
15080
15081 ac_outfile=conftest.$ac_objext
15082 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15083 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15084 _lt_linker_boilerplate=`cat conftest.err`
15085 $RM -r conftest*
15086
15087
15088 ## CAVEAT EMPTOR:
15089 ## There is no encapsulation within the following macros, do not change
15090 ## the running order or otherwise move them around unless you know exactly
15091 ## what you are doing...
15092 if test -n "$compiler"; then
15093
15094 lt_prog_compiler_no_builtin_flag=
15095
15096 if test "$GCC" = yes; then
15097   case $cc_basename in
15098   nvcc*)
15099     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15100   *)
15101     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15102   esac
15103
15104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15105 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15106 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15107   $as_echo_n "(cached) " >&6
15108 else
15109   lt_cv_prog_compiler_rtti_exceptions=no
15110    ac_outfile=conftest.$ac_objext
15111    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15112    lt_compiler_flag="-fno-rtti -fno-exceptions"
15113    # Insert the option either (1) after the last *FLAGS variable, or
15114    # (2) before a word containing "conftest.", or (3) at the end.
15115    # Note that $ac_compile itself does not contain backslashes and begins
15116    # with a dollar sign (not a hyphen), so the echo should work correctly.
15117    # The option is referenced via a variable to avoid confusing sed.
15118    lt_compile=`echo "$ac_compile" | $SED \
15119    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15121    -e 's:$: $lt_compiler_flag:'`
15122    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15123    (eval "$lt_compile" 2>conftest.err)
15124    ac_status=$?
15125    cat conftest.err >&5
15126    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127    if (exit $ac_status) && test -s "$ac_outfile"; then
15128      # The compiler can only warn and ignore the option if not recognized
15129      # So say no if there are warnings other than the usual output.
15130      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15131      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15132      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15133        lt_cv_prog_compiler_rtti_exceptions=yes
15134      fi
15135    fi
15136    $RM conftest*
15137
15138 fi
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15140 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15141
15142 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15143     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15144 else
15145     :
15146 fi
15147
15148 fi
15149
15150
15151
15152
15153
15154
15155   lt_prog_compiler_wl=
15156 lt_prog_compiler_pic=
15157 lt_prog_compiler_static=
15158
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15160 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15161
15162   if test "$GCC" = yes; then
15163     lt_prog_compiler_wl='-Wl,'
15164     lt_prog_compiler_static='-static'
15165
15166     case $host_os in
15167       aix*)
15168       # All AIX code is PIC.
15169       if test "$host_cpu" = ia64; then
15170         # AIX 5 now supports IA64 processor
15171         lt_prog_compiler_static='-Bstatic'
15172       fi
15173       ;;
15174
15175     amigaos*)
15176       case $host_cpu in
15177       powerpc)
15178             # see comment about AmigaOS4 .so support
15179             lt_prog_compiler_pic='-fPIC'
15180         ;;
15181       m68k)
15182             # FIXME: we need at least 68020 code to build shared libraries, but
15183             # adding the `-m68020' flag to GCC prevents building anything better,
15184             # like `-m68040'.
15185             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15186         ;;
15187       esac
15188       ;;
15189
15190     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15191       # PIC is the default for these OSes.
15192       ;;
15193
15194     mingw* | cygwin* | pw32* | os2* | cegcc*)
15195       # This hack is so that the source file can tell whether it is being
15196       # built for inclusion in a dll (and should export symbols for example).
15197       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15198       # (--disable-auto-import) libraries
15199       lt_prog_compiler_pic='-DDLL_EXPORT'
15200       ;;
15201
15202     darwin* | rhapsody*)
15203       # PIC is the default on this platform
15204       # Common symbols not allowed in MH_DYLIB files
15205       lt_prog_compiler_pic='-fno-common'
15206       ;;
15207
15208     haiku*)
15209       # PIC is the default for Haiku.
15210       # The "-static" flag exists, but is broken.
15211       lt_prog_compiler_static=
15212       ;;
15213
15214     hpux*)
15215       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15216       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15217       # sets the default TLS model and affects inlining.
15218       case $host_cpu in
15219       hppa*64*)
15220         # +Z the default
15221         ;;
15222       *)
15223         lt_prog_compiler_pic='-fPIC'
15224         ;;
15225       esac
15226       ;;
15227
15228     interix[3-9]*)
15229       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15230       # Instead, we relocate shared libraries at runtime.
15231       ;;
15232
15233     msdosdjgpp*)
15234       # Just because we use GCC doesn't mean we suddenly get shared libraries
15235       # on systems that don't support them.
15236       lt_prog_compiler_can_build_shared=no
15237       enable_shared=no
15238       ;;
15239
15240     *nto* | *qnx*)
15241       # QNX uses GNU C++, but need to define -shared option too, otherwise
15242       # it will coredump.
15243       lt_prog_compiler_pic='-fPIC -shared'
15244       ;;
15245
15246     sysv4*MP*)
15247       if test -d /usr/nec; then
15248         lt_prog_compiler_pic=-Kconform_pic
15249       fi
15250       ;;
15251
15252     *)
15253       lt_prog_compiler_pic='-fPIC'
15254       ;;
15255     esac
15256
15257     case $cc_basename in
15258     nvcc*) # Cuda Compiler Driver 2.2
15259       lt_prog_compiler_wl='-Xlinker '
15260       lt_prog_compiler_pic='-Xcompiler -fPIC'
15261       ;;
15262     esac
15263   else
15264     # PORTME Check for flag to pass linker flags through the system compiler.
15265     case $host_os in
15266     aix*)
15267       lt_prog_compiler_wl='-Wl,'
15268       if test "$host_cpu" = ia64; then
15269         # AIX 5 now supports IA64 processor
15270         lt_prog_compiler_static='-Bstatic'
15271       else
15272         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15273       fi
15274       ;;
15275
15276     mingw* | cygwin* | pw32* | os2* | cegcc*)
15277       # This hack is so that the source file can tell whether it is being
15278       # built for inclusion in a dll (and should export symbols for example).
15279       lt_prog_compiler_pic='-DDLL_EXPORT'
15280       ;;
15281
15282     hpux9* | hpux10* | hpux11*)
15283       lt_prog_compiler_wl='-Wl,'
15284       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15285       # not for PA HP-UX.
15286       case $host_cpu in
15287       hppa*64*|ia64*)
15288         # +Z the default
15289         ;;
15290       *)
15291         lt_prog_compiler_pic='+Z'
15292         ;;
15293       esac
15294       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15295       lt_prog_compiler_static='${wl}-a ${wl}archive'
15296       ;;
15297
15298     irix5* | irix6* | nonstopux*)
15299       lt_prog_compiler_wl='-Wl,'
15300       # PIC (with -KPIC) is the default.
15301       lt_prog_compiler_static='-non_shared'
15302       ;;
15303
15304     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15305       case $cc_basename in
15306       # old Intel for x86_64 which still supported -KPIC.
15307       ecc*)
15308         lt_prog_compiler_wl='-Wl,'
15309         lt_prog_compiler_pic='-KPIC'
15310         lt_prog_compiler_static='-static'
15311         ;;
15312       # icc used to be incompatible with GCC.
15313       # ICC 10 doesn't accept -KPIC any more.
15314       icc* | ifort*)
15315         lt_prog_compiler_wl='-Wl,'
15316         lt_prog_compiler_pic='-fPIC'
15317         lt_prog_compiler_static='-static'
15318         ;;
15319       # Lahey Fortran 8.1.
15320       lf95*)
15321         lt_prog_compiler_wl='-Wl,'
15322         lt_prog_compiler_pic='--shared'
15323         lt_prog_compiler_static='--static'
15324         ;;
15325       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15326         # Portland Group compilers (*not* the Pentium gcc compiler,
15327         # which looks to be a dead project)
15328         lt_prog_compiler_wl='-Wl,'
15329         lt_prog_compiler_pic='-fpic'
15330         lt_prog_compiler_static='-Bstatic'
15331         ;;
15332       ccc*)
15333         lt_prog_compiler_wl='-Wl,'
15334         # All Alpha code is PIC.
15335         lt_prog_compiler_static='-non_shared'
15336         ;;
15337       xl* | bgxl* | bgf* | mpixl*)
15338         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15339         lt_prog_compiler_wl='-Wl,'
15340         lt_prog_compiler_pic='-qpic'
15341         lt_prog_compiler_static='-qstaticlink'
15342         ;;
15343       *)
15344         case `$CC -V 2>&1 | sed 5q` in
15345         *Sun\ F* | *Sun*Fortran*)
15346           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15347           lt_prog_compiler_pic='-KPIC'
15348           lt_prog_compiler_static='-Bstatic'
15349           lt_prog_compiler_wl=''
15350           ;;
15351         *Sun\ C*)
15352           # Sun C 5.9
15353           lt_prog_compiler_pic='-KPIC'
15354           lt_prog_compiler_static='-Bstatic'
15355           lt_prog_compiler_wl='-Wl,'
15356           ;;
15357         esac
15358         ;;
15359       esac
15360       ;;
15361
15362     newsos6)
15363       lt_prog_compiler_pic='-KPIC'
15364       lt_prog_compiler_static='-Bstatic'
15365       ;;
15366
15367     *nto* | *qnx*)
15368       # QNX uses GNU C++, but need to define -shared option too, otherwise
15369       # it will coredump.
15370       lt_prog_compiler_pic='-fPIC -shared'
15371       ;;
15372
15373     osf3* | osf4* | osf5*)
15374       lt_prog_compiler_wl='-Wl,'
15375       # All OSF/1 code is PIC.
15376       lt_prog_compiler_static='-non_shared'
15377       ;;
15378
15379     rdos*)
15380       lt_prog_compiler_static='-non_shared'
15381       ;;
15382
15383     solaris*)
15384       lt_prog_compiler_pic='-KPIC'
15385       lt_prog_compiler_static='-Bstatic'
15386       case $cc_basename in
15387       f77* | f90* | f95*)
15388         lt_prog_compiler_wl='-Qoption ld ';;
15389       *)
15390         lt_prog_compiler_wl='-Wl,';;
15391       esac
15392       ;;
15393
15394     sunos4*)
15395       lt_prog_compiler_wl='-Qoption ld '
15396       lt_prog_compiler_pic='-PIC'
15397       lt_prog_compiler_static='-Bstatic'
15398       ;;
15399
15400     sysv4 | sysv4.2uw2* | sysv4.3*)
15401       lt_prog_compiler_wl='-Wl,'
15402       lt_prog_compiler_pic='-KPIC'
15403       lt_prog_compiler_static='-Bstatic'
15404       ;;
15405
15406     sysv4*MP*)
15407       if test -d /usr/nec ;then
15408         lt_prog_compiler_pic='-Kconform_pic'
15409         lt_prog_compiler_static='-Bstatic'
15410       fi
15411       ;;
15412
15413     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15414       lt_prog_compiler_wl='-Wl,'
15415       lt_prog_compiler_pic='-KPIC'
15416       lt_prog_compiler_static='-Bstatic'
15417       ;;
15418
15419     unicos*)
15420       lt_prog_compiler_wl='-Wl,'
15421       lt_prog_compiler_can_build_shared=no
15422       ;;
15423
15424     uts4*)
15425       lt_prog_compiler_pic='-pic'
15426       lt_prog_compiler_static='-Bstatic'
15427       ;;
15428
15429     *)
15430       lt_prog_compiler_can_build_shared=no
15431       ;;
15432     esac
15433   fi
15434
15435 case $host_os in
15436   # For platforms which do not support PIC, -DPIC is meaningless:
15437   *djgpp*)
15438     lt_prog_compiler_pic=
15439     ;;
15440   *)
15441     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15442     ;;
15443 esac
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15445 $as_echo "$lt_prog_compiler_pic" >&6; }
15446
15447
15448
15449
15450
15451
15452 #
15453 # Check to make sure the PIC flag actually works.
15454 #
15455 if test -n "$lt_prog_compiler_pic"; then
15456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15457 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15458 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15459   $as_echo_n "(cached) " >&6
15460 else
15461   lt_cv_prog_compiler_pic_works=no
15462    ac_outfile=conftest.$ac_objext
15463    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15464    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15465    # Insert the option either (1) after the last *FLAGS variable, or
15466    # (2) before a word containing "conftest.", or (3) at the end.
15467    # Note that $ac_compile itself does not contain backslashes and begins
15468    # with a dollar sign (not a hyphen), so the echo should work correctly.
15469    # The option is referenced via a variable to avoid confusing sed.
15470    lt_compile=`echo "$ac_compile" | $SED \
15471    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15472    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15473    -e 's:$: $lt_compiler_flag:'`
15474    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15475    (eval "$lt_compile" 2>conftest.err)
15476    ac_status=$?
15477    cat conftest.err >&5
15478    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479    if (exit $ac_status) && test -s "$ac_outfile"; then
15480      # The compiler can only warn and ignore the option if not recognized
15481      # So say no if there are warnings other than the usual output.
15482      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15483      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15484      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15485        lt_cv_prog_compiler_pic_works=yes
15486      fi
15487    fi
15488    $RM conftest*
15489
15490 fi
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15492 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15493
15494 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15495     case $lt_prog_compiler_pic in
15496      "" | " "*) ;;
15497      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15498      esac
15499 else
15500     lt_prog_compiler_pic=
15501      lt_prog_compiler_can_build_shared=no
15502 fi
15503
15504 fi
15505
15506
15507
15508
15509
15510
15511 #
15512 # Check to make sure the static flag actually works.
15513 #
15514 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15516 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15517 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15518   $as_echo_n "(cached) " >&6
15519 else
15520   lt_cv_prog_compiler_static_works=no
15521    save_LDFLAGS="$LDFLAGS"
15522    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15523    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15524    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15525      # The linker can only warn and ignore the option if not recognized
15526      # So say no if there are warnings
15527      if test -s conftest.err; then
15528        # Append any errors to the config.log.
15529        cat conftest.err 1>&5
15530        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15531        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15532        if diff conftest.exp conftest.er2 >/dev/null; then
15533          lt_cv_prog_compiler_static_works=yes
15534        fi
15535      else
15536        lt_cv_prog_compiler_static_works=yes
15537      fi
15538    fi
15539    $RM -r conftest*
15540    LDFLAGS="$save_LDFLAGS"
15541
15542 fi
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15544 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15545
15546 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15547     :
15548 else
15549     lt_prog_compiler_static=
15550 fi
15551
15552
15553
15554
15555
15556
15557
15558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15560 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15561   $as_echo_n "(cached) " >&6
15562 else
15563   lt_cv_prog_compiler_c_o=no
15564    $RM -r conftest 2>/dev/null
15565    mkdir conftest
15566    cd conftest
15567    mkdir out
15568    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15569
15570    lt_compiler_flag="-o out/conftest2.$ac_objext"
15571    # Insert the option either (1) after the last *FLAGS variable, or
15572    # (2) before a word containing "conftest.", or (3) at the end.
15573    # Note that $ac_compile itself does not contain backslashes and begins
15574    # with a dollar sign (not a hyphen), so the echo should work correctly.
15575    lt_compile=`echo "$ac_compile" | $SED \
15576    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15577    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15578    -e 's:$: $lt_compiler_flag:'`
15579    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15580    (eval "$lt_compile" 2>out/conftest.err)
15581    ac_status=$?
15582    cat out/conftest.err >&5
15583    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15585    then
15586      # The compiler can only warn and ignore the option if not recognized
15587      # So say no if there are warnings
15588      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15589      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15590      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15591        lt_cv_prog_compiler_c_o=yes
15592      fi
15593    fi
15594    chmod u+w . 2>&5
15595    $RM conftest*
15596    # SGI C++ compiler will create directory out/ii_files/ for
15597    # template instantiation
15598    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15599    $RM out/* && rmdir out
15600    cd ..
15601    $RM -r conftest
15602    $RM conftest*
15603
15604 fi
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15606 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15607
15608
15609
15610
15611
15612
15613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15614 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15615 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15616   $as_echo_n "(cached) " >&6
15617 else
15618   lt_cv_prog_compiler_c_o=no
15619    $RM -r conftest 2>/dev/null
15620    mkdir conftest
15621    cd conftest
15622    mkdir out
15623    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15624
15625    lt_compiler_flag="-o out/conftest2.$ac_objext"
15626    # Insert the option either (1) after the last *FLAGS variable, or
15627    # (2) before a word containing "conftest.", or (3) at the end.
15628    # Note that $ac_compile itself does not contain backslashes and begins
15629    # with a dollar sign (not a hyphen), so the echo should work correctly.
15630    lt_compile=`echo "$ac_compile" | $SED \
15631    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15632    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15633    -e 's:$: $lt_compiler_flag:'`
15634    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15635    (eval "$lt_compile" 2>out/conftest.err)
15636    ac_status=$?
15637    cat out/conftest.err >&5
15638    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15640    then
15641      # The compiler can only warn and ignore the option if not recognized
15642      # So say no if there are warnings
15643      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15644      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15645      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15646        lt_cv_prog_compiler_c_o=yes
15647      fi
15648    fi
15649    chmod u+w . 2>&5
15650    $RM conftest*
15651    # SGI C++ compiler will create directory out/ii_files/ for
15652    # template instantiation
15653    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15654    $RM out/* && rmdir out
15655    cd ..
15656    $RM -r conftest
15657    $RM conftest*
15658
15659 fi
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15661 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15662
15663
15664
15665
15666 hard_links="nottested"
15667 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15668   # do not overwrite the value of need_locks provided by the user
15669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15670 $as_echo_n "checking if we can lock with hard links... " >&6; }
15671   hard_links=yes
15672   $RM conftest*
15673   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15674   touch conftest.a
15675   ln conftest.a conftest.b 2>&5 || hard_links=no
15676   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15678 $as_echo "$hard_links" >&6; }
15679   if test "$hard_links" = no; then
15680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15681 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15682     need_locks=warn
15683   fi
15684 else
15685   need_locks=no
15686 fi
15687
15688
15689
15690
15691
15692
15693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15694 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15695
15696   runpath_var=
15697   allow_undefined_flag=
15698   always_export_symbols=no
15699   archive_cmds=
15700   archive_expsym_cmds=
15701   compiler_needs_object=no
15702   enable_shared_with_static_runtimes=no
15703   export_dynamic_flag_spec=
15704   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15705   hardcode_automatic=no
15706   hardcode_direct=no
15707   hardcode_direct_absolute=no
15708   hardcode_libdir_flag_spec=
15709   hardcode_libdir_flag_spec_ld=
15710   hardcode_libdir_separator=
15711   hardcode_minus_L=no
15712   hardcode_shlibpath_var=unsupported
15713   inherit_rpath=no
15714   link_all_deplibs=unknown
15715   module_cmds=
15716   module_expsym_cmds=
15717   old_archive_from_new_cmds=
15718   old_archive_from_expsyms_cmds=
15719   thread_safe_flag_spec=
15720   whole_archive_flag_spec=
15721   # include_expsyms should be a list of space-separated symbols to be *always*
15722   # included in the symbol list
15723   include_expsyms=
15724   # exclude_expsyms can be an extended regexp of symbols to exclude
15725   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15726   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15727   # as well as any symbol that contains `d'.
15728   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15729   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15730   # platforms (ab)use it in PIC code, but their linkers get confused if
15731   # the symbol is explicitly referenced.  Since portable code cannot
15732   # rely on this symbol name, it's probably fine to never include it in
15733   # preloaded symbol tables.
15734   # Exclude shared library initialization/finalization symbols.
15735   extract_expsyms_cmds=
15736
15737   case $host_os in
15738   cygwin* | mingw* | pw32* | cegcc*)
15739     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15740     # When not using gcc, we currently assume that we are using
15741     # Microsoft Visual C++.
15742     if test "$GCC" != yes; then
15743       with_gnu_ld=no
15744     fi
15745     ;;
15746   interix*)
15747     # we just hope/assume this is gcc and not c89 (= MSVC++)
15748     with_gnu_ld=yes
15749     ;;
15750   openbsd*)
15751     with_gnu_ld=no
15752     ;;
15753   esac
15754
15755   ld_shlibs=yes
15756
15757   # On some targets, GNU ld is compatible enough with the native linker
15758   # that we're better off using the native interface for both.
15759   lt_use_gnu_ld_interface=no
15760   if test "$with_gnu_ld" = yes; then
15761     case $host_os in
15762       aix*)
15763         # The AIX port of GNU ld has always aspired to compatibility
15764         # with the native linker.  However, as the warning in the GNU ld
15765         # block says, versions before 2.19.5* couldn't really create working
15766         # shared libraries, regardless of the interface used.
15767         case `$LD -v 2>&1` in
15768           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15769           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15770           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15771           *)
15772             lt_use_gnu_ld_interface=yes
15773             ;;
15774         esac
15775         ;;
15776       *)
15777         lt_use_gnu_ld_interface=yes
15778         ;;
15779     esac
15780   fi
15781
15782   if test "$lt_use_gnu_ld_interface" = yes; then
15783     # If archive_cmds runs LD, not CC, wlarc should be empty
15784     wlarc='${wl}'
15785
15786     # Set some defaults for GNU ld with shared library support. These
15787     # are reset later if shared libraries are not supported. Putting them
15788     # here allows them to be overridden if necessary.
15789     runpath_var=LD_RUN_PATH
15790     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15791     export_dynamic_flag_spec='${wl}--export-dynamic'
15792     # ancient GNU ld didn't support --whole-archive et. al.
15793     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15794       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15795     else
15796       whole_archive_flag_spec=
15797     fi
15798     supports_anon_versioning=no
15799     case `$LD -v 2>&1` in
15800       *GNU\ gold*) supports_anon_versioning=yes ;;
15801       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15802       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15803       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15804       *\ 2.11.*) ;; # other 2.11 versions
15805       *) supports_anon_versioning=yes ;;
15806     esac
15807
15808     # See if GNU ld supports shared libraries.
15809     case $host_os in
15810     aix[3-9]*)
15811       # On AIX/PPC, the GNU linker is very broken
15812       if test "$host_cpu" != ia64; then
15813         ld_shlibs=no
15814         cat <<_LT_EOF 1>&2
15815
15816 *** Warning: the GNU linker, at least up to release 2.19, is reported
15817 *** to be unable to reliably create shared libraries on AIX.
15818 *** Therefore, libtool is disabling shared libraries support.  If you
15819 *** really care for shared libraries, you may want to install binutils
15820 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15821 *** You will then need to restart the configuration process.
15822
15823 _LT_EOF
15824       fi
15825       ;;
15826
15827     amigaos*)
15828       case $host_cpu in
15829       powerpc)
15830             # see comment about AmigaOS4 .so support
15831             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15832             archive_expsym_cmds=''
15833         ;;
15834       m68k)
15835             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)'
15836             hardcode_libdir_flag_spec='-L$libdir'
15837             hardcode_minus_L=yes
15838         ;;
15839       esac
15840       ;;
15841
15842     beos*)
15843       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15844         allow_undefined_flag=unsupported
15845         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15846         # support --undefined.  This deserves some investigation.  FIXME
15847         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15848       else
15849         ld_shlibs=no
15850       fi
15851       ;;
15852
15853     cygwin* | mingw* | pw32* | cegcc*)
15854       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15855       # as there is no search path for DLLs.
15856       hardcode_libdir_flag_spec='-L$libdir'
15857       export_dynamic_flag_spec='${wl}--export-all-symbols'
15858       allow_undefined_flag=unsupported
15859       always_export_symbols=no
15860       enable_shared_with_static_runtimes=yes
15861       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15862
15863       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15864         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15865         # If the export-symbols file already is a .def file (1st line
15866         # is EXPORTS), use it as is; otherwise, prepend...
15867         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15868           cp $export_symbols $output_objdir/$soname.def;
15869         else
15870           echo EXPORTS > $output_objdir/$soname.def;
15871           cat $export_symbols >> $output_objdir/$soname.def;
15872         fi~
15873         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15874       else
15875         ld_shlibs=no
15876       fi
15877       ;;
15878
15879     haiku*)
15880       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15881       link_all_deplibs=yes
15882       ;;
15883
15884     interix[3-9]*)
15885       hardcode_direct=no
15886       hardcode_shlibpath_var=no
15887       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15888       export_dynamic_flag_spec='${wl}-E'
15889       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15890       # Instead, shared libraries are loaded at an image base (0x10000000 by
15891       # default) and relocated if they conflict, which is a slow very memory
15892       # consuming and fragmenting process.  To avoid this, we pick a random,
15893       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15894       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15895       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15896       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'
15897       ;;
15898
15899     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15900       tmp_diet=no
15901       if test "$host_os" = linux-dietlibc; then
15902         case $cc_basename in
15903           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15904         esac
15905       fi
15906       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15907          && test "$tmp_diet" = no
15908       then
15909         tmp_addflag=
15910         tmp_sharedflag='-shared'
15911         case $cc_basename,$host_cpu in
15912         pgcc*)                          # Portland Group C compiler
15913           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'
15914           tmp_addflag=' $pic_flag'
15915           ;;
15916         pgf77* | pgf90* | pgf95* | pgfortran*)
15917                                         # Portland Group f77 and f90 compilers
15918           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'
15919           tmp_addflag=' $pic_flag -Mnomain' ;;
15920         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15921           tmp_addflag=' -i_dynamic' ;;
15922         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15923           tmp_addflag=' -i_dynamic -nofor_main' ;;
15924         ifc* | ifort*)                  # Intel Fortran compiler
15925           tmp_addflag=' -nofor_main' ;;
15926         lf95*)                          # Lahey Fortran 8.1
15927           whole_archive_flag_spec=
15928           tmp_sharedflag='--shared' ;;
15929         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15930           tmp_sharedflag='-qmkshrobj'
15931           tmp_addflag= ;;
15932         nvcc*)  # Cuda Compiler Driver 2.2
15933           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'
15934           compiler_needs_object=yes
15935           ;;
15936         esac
15937         case `$CC -V 2>&1 | sed 5q` in
15938         *Sun\ C*)                       # Sun C 5.9
15939           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'
15940           compiler_needs_object=yes
15941           tmp_sharedflag='-G' ;;
15942         *Sun\ F*)                       # Sun Fortran 8.3
15943           tmp_sharedflag='-G' ;;
15944         esac
15945         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15946
15947         if test "x$supports_anon_versioning" = xyes; then
15948           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15949             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15950             echo "local: *; };" >> $output_objdir/$libname.ver~
15951             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15952         fi
15953
15954         case $cc_basename in
15955         xlf* | bgf* | bgxlf* | mpixlf*)
15956           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15957           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15958           hardcode_libdir_flag_spec=
15959           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15960           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15961           if test "x$supports_anon_versioning" = xyes; then
15962             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15963               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15964               echo "local: *; };" >> $output_objdir/$libname.ver~
15965               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15966           fi
15967           ;;
15968         esac
15969       else
15970         ld_shlibs=no
15971       fi
15972       ;;
15973
15974     netbsd*)
15975       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15976         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15977         wlarc=
15978       else
15979         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15980         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15981       fi
15982       ;;
15983
15984     solaris*)
15985       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15986         ld_shlibs=no
15987         cat <<_LT_EOF 1>&2
15988
15989 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15990 *** create shared libraries on Solaris systems.  Therefore, libtool
15991 *** is disabling shared libraries support.  We urge you to upgrade GNU
15992 *** binutils to release 2.9.1 or newer.  Another option is to modify
15993 *** your PATH or compiler configuration so that the native linker is
15994 *** used, and then restart.
15995
15996 _LT_EOF
15997       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15998         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15999         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16000       else
16001         ld_shlibs=no
16002       fi
16003       ;;
16004
16005     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16006       case `$LD -v 2>&1` in
16007         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16008         ld_shlibs=no
16009         cat <<_LT_EOF 1>&2
16010
16011 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16012 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16013 *** is disabling shared libraries support.  We urge you to upgrade GNU
16014 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16015 *** your PATH or compiler configuration so that the native linker is
16016 *** used, and then restart.
16017
16018 _LT_EOF
16019         ;;
16020         *)
16021           # For security reasons, it is highly recommended that you always
16022           # use absolute paths for naming shared libraries, and exclude the
16023           # DT_RUNPATH tag from executables and libraries.  But doing so
16024           # requires that you compile everything twice, which is a pain.
16025           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16026             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16028             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16029           else
16030             ld_shlibs=no
16031           fi
16032         ;;
16033       esac
16034       ;;
16035
16036     sunos4*)
16037       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16038       wlarc=
16039       hardcode_direct=yes
16040       hardcode_shlibpath_var=no
16041       ;;
16042
16043     *)
16044       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16045         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16046         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16047       else
16048         ld_shlibs=no
16049       fi
16050       ;;
16051     esac
16052
16053     if test "$ld_shlibs" = no; then
16054       runpath_var=
16055       hardcode_libdir_flag_spec=
16056       export_dynamic_flag_spec=
16057       whole_archive_flag_spec=
16058     fi
16059   else
16060     # PORTME fill in a description of your system's linker (not GNU ld)
16061     case $host_os in
16062     aix3*)
16063       allow_undefined_flag=unsupported
16064       always_export_symbols=yes
16065       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'
16066       # Note: this linker hardcodes the directories in LIBPATH if there
16067       # are no directories specified by -L.
16068       hardcode_minus_L=yes
16069       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16070         # Neither direct hardcoding nor static linking is supported with a
16071         # broken collect2.
16072         hardcode_direct=unsupported
16073       fi
16074       ;;
16075
16076     aix[4-9]*)
16077       if test "$host_cpu" = ia64; then
16078         # On IA64, the linker does run time linking by default, so we don't
16079         # have to do anything special.
16080         aix_use_runtimelinking=no
16081         exp_sym_flag='-Bexport'
16082         no_entry_flag=""
16083       else
16084         # If we're using GNU nm, then we don't want the "-C" option.
16085         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16086         # Also, AIX nm treats weak defined symbols like other global
16087         # defined symbols, whereas GNU nm marks them as "W".
16088         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16089           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'
16090         else
16091           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'
16092         fi
16093         aix_use_runtimelinking=no
16094
16095         # Test if we are trying to use run time linking or normal
16096         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16097         # need to do runtime linking.
16098         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16099           for ld_flag in $LDFLAGS; do
16100           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16101             aix_use_runtimelinking=yes
16102             break
16103           fi
16104           done
16105           ;;
16106         esac
16107
16108         exp_sym_flag='-bexport'
16109         no_entry_flag='-bnoentry'
16110       fi
16111
16112       # When large executables or shared objects are built, AIX ld can
16113       # have problems creating the table of contents.  If linking a library
16114       # or program results in "error TOC overflow" add -mminimal-toc to
16115       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16116       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16117
16118       archive_cmds=''
16119       hardcode_direct=yes
16120       hardcode_direct_absolute=yes
16121       hardcode_libdir_separator=':'
16122       link_all_deplibs=yes
16123       file_list_spec='${wl}-f,'
16124
16125       if test "$GCC" = yes; then
16126         case $host_os in aix4.[012]|aix4.[012].*)
16127         # We only want to do this on AIX 4.2 and lower, the check
16128         # below for broken collect2 doesn't work under 4.3+
16129           collect2name=`${CC} -print-prog-name=collect2`
16130           if test -f "$collect2name" &&
16131            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16132           then
16133           # We have reworked collect2
16134           :
16135           else
16136           # We have old collect2
16137           hardcode_direct=unsupported
16138           # It fails to find uninstalled libraries when the uninstalled
16139           # path is not listed in the libpath.  Setting hardcode_minus_L
16140           # to unsupported forces relinking
16141           hardcode_minus_L=yes
16142           hardcode_libdir_flag_spec='-L$libdir'
16143           hardcode_libdir_separator=
16144           fi
16145           ;;
16146         esac
16147         shared_flag='-shared'
16148         if test "$aix_use_runtimelinking" = yes; then
16149           shared_flag="$shared_flag "'${wl}-G'
16150         fi
16151       else
16152         # not using gcc
16153         if test "$host_cpu" = ia64; then
16154         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16155         # chokes on -Wl,-G. The following line is correct:
16156           shared_flag='-G'
16157         else
16158           if test "$aix_use_runtimelinking" = yes; then
16159             shared_flag='${wl}-G'
16160           else
16161             shared_flag='${wl}-bM:SRE'
16162           fi
16163         fi
16164       fi
16165
16166       export_dynamic_flag_spec='${wl}-bexpall'
16167       # It seems that -bexpall does not export symbols beginning with
16168       # underscore (_), so it is better to generate a list of symbols to export.
16169       always_export_symbols=yes
16170       if test "$aix_use_runtimelinking" = yes; then
16171         # Warning - without using the other runtime loading flags (-brtl),
16172         # -berok will link without error, but may produce a broken library.
16173         allow_undefined_flag='-berok'
16174         # Determine the default libpath from the value encoded in an
16175         # empty executable.
16176         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h.  */
16178
16179 int
16180 main ()
16181 {
16182
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 if ac_fn_c_try_link "$LINENO"; then :
16188
16189 lt_aix_libpath_sed='
16190     /Import File Strings/,/^$/ {
16191         /^0/ {
16192             s/^0  *\(.*\)$/\1/
16193             p
16194         }
16195     }'
16196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16197 # Check for a 64-bit object if we didn't find anything.
16198 if test -z "$aix_libpath"; then
16199   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16200 fi
16201 fi
16202 rm -f core conftest.err conftest.$ac_objext \
16203     conftest$ac_exeext conftest.$ac_ext
16204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16205
16206         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16207         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"
16208       else
16209         if test "$host_cpu" = ia64; then
16210           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16211           allow_undefined_flag="-z nodefs"
16212           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"
16213         else
16214          # Determine the default libpath from the value encoded in an
16215          # empty executable.
16216          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h.  */
16218
16219 int
16220 main ()
16221 {
16222
16223   ;
16224   return 0;
16225 }
16226 _ACEOF
16227 if ac_fn_c_try_link "$LINENO"; then :
16228
16229 lt_aix_libpath_sed='
16230     /Import File Strings/,/^$/ {
16231         /^0/ {
16232             s/^0  *\(.*\)$/\1/
16233             p
16234         }
16235     }'
16236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16237 # Check for a 64-bit object if we didn't find anything.
16238 if test -z "$aix_libpath"; then
16239   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16240 fi
16241 fi
16242 rm -f core conftest.err conftest.$ac_objext \
16243     conftest$ac_exeext conftest.$ac_ext
16244 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16245
16246          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16247           # Warning - without using the other run time loading flags,
16248           # -berok will link without error, but may produce a broken library.
16249           no_undefined_flag=' ${wl}-bernotok'
16250           allow_undefined_flag=' ${wl}-berok'
16251           if test "$with_gnu_ld" = yes; then
16252             # We only use this code for GNU lds that support --whole-archive.
16253             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16254           else
16255             # Exported symbols can be pulled into shared objects from archives
16256             whole_archive_flag_spec='$convenience'
16257           fi
16258           archive_cmds_need_lc=yes
16259           # This is similar to how AIX traditionally builds its shared libraries.
16260           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'
16261         fi
16262       fi
16263       ;;
16264
16265     amigaos*)
16266       case $host_cpu in
16267       powerpc)
16268             # see comment about AmigaOS4 .so support
16269             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16270             archive_expsym_cmds=''
16271         ;;
16272       m68k)
16273             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)'
16274             hardcode_libdir_flag_spec='-L$libdir'
16275             hardcode_minus_L=yes
16276         ;;
16277       esac
16278       ;;
16279
16280     bsdi[45]*)
16281       export_dynamic_flag_spec=-rdynamic
16282       ;;
16283
16284     cygwin* | mingw* | pw32* | cegcc*)
16285       # When not using gcc, we currently assume that we are using
16286       # Microsoft Visual C++.
16287       # hardcode_libdir_flag_spec is actually meaningless, as there is
16288       # no search path for DLLs.
16289       hardcode_libdir_flag_spec=' '
16290       allow_undefined_flag=unsupported
16291       # Tell ltmain to make .lib files, not .a files.
16292       libext=lib
16293       # Tell ltmain to make .dll files, not .so files.
16294       shrext_cmds=".dll"
16295       # FIXME: Setting linknames here is a bad hack.
16296       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16297       # The linker will automatically build a .lib file if we build a DLL.
16298       old_archive_from_new_cmds='true'
16299       # FIXME: Should let the user specify the lib program.
16300       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16301       fix_srcfile_path='`cygpath -w "$srcfile"`'
16302       enable_shared_with_static_runtimes=yes
16303       ;;
16304
16305     darwin* | rhapsody*)
16306
16307
16308   archive_cmds_need_lc=no
16309   hardcode_direct=no
16310   hardcode_automatic=yes
16311   hardcode_shlibpath_var=unsupported
16312   if test "$lt_cv_ld_force_load" = "yes"; then
16313     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\"`'
16314   else
16315     whole_archive_flag_spec=''
16316   fi
16317   link_all_deplibs=yes
16318   allow_undefined_flag="$_lt_dar_allow_undefined"
16319   case $cc_basename in
16320      ifort*) _lt_dar_can_shared=yes ;;
16321      *) _lt_dar_can_shared=$GCC ;;
16322   esac
16323   if test "$_lt_dar_can_shared" = "yes"; then
16324     output_verbose_link_cmd=func_echo_all
16325     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16326     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16327     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}"
16328     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}"
16329
16330   else
16331   ld_shlibs=no
16332   fi
16333
16334       ;;
16335
16336     dgux*)
16337       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16338       hardcode_libdir_flag_spec='-L$libdir'
16339       hardcode_shlibpath_var=no
16340       ;;
16341
16342     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16343     # support.  Future versions do this automatically, but an explicit c++rt0.o
16344     # does not break anything, and helps significantly (at the cost of a little
16345     # extra space).
16346     freebsd2.2*)
16347       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16348       hardcode_libdir_flag_spec='-R$libdir'
16349       hardcode_direct=yes
16350       hardcode_shlibpath_var=no
16351       ;;
16352
16353     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16354     freebsd2.*)
16355       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16356       hardcode_direct=yes
16357       hardcode_minus_L=yes
16358       hardcode_shlibpath_var=no
16359       ;;
16360
16361     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16362     freebsd* | dragonfly*)
16363       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16364       hardcode_libdir_flag_spec='-R$libdir'
16365       hardcode_direct=yes
16366       hardcode_shlibpath_var=no
16367       ;;
16368
16369     hpux9*)
16370       if test "$GCC" = yes; then
16371         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'
16372       else
16373         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'
16374       fi
16375       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16376       hardcode_libdir_separator=:
16377       hardcode_direct=yes
16378
16379       # hardcode_minus_L: Not really in the search PATH,
16380       # but as the default location of the library.
16381       hardcode_minus_L=yes
16382       export_dynamic_flag_spec='${wl}-E'
16383       ;;
16384
16385     hpux10*)
16386       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16387         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16388       else
16389         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16390       fi
16391       if test "$with_gnu_ld" = no; then
16392         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16393         hardcode_libdir_flag_spec_ld='+b $libdir'
16394         hardcode_libdir_separator=:
16395         hardcode_direct=yes
16396         hardcode_direct_absolute=yes
16397         export_dynamic_flag_spec='${wl}-E'
16398         # hardcode_minus_L: Not really in the search PATH,
16399         # but as the default location of the library.
16400         hardcode_minus_L=yes
16401       fi
16402       ;;
16403
16404     hpux11*)
16405       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16406         case $host_cpu in
16407         hppa*64*)
16408           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16409           ;;
16410         ia64*)
16411           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16412           ;;
16413         *)
16414           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16415           ;;
16416         esac
16417       else
16418         case $host_cpu in
16419         hppa*64*)
16420           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16421           ;;
16422         ia64*)
16423           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16424           ;;
16425         *)
16426
16427           # Older versions of the 11.00 compiler do not understand -b yet
16428           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16429           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16430 $as_echo_n "checking if $CC understands -b... " >&6; }
16431 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16432   $as_echo_n "(cached) " >&6
16433 else
16434   lt_cv_prog_compiler__b=no
16435    save_LDFLAGS="$LDFLAGS"
16436    LDFLAGS="$LDFLAGS -b"
16437    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16438    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16439      # The linker can only warn and ignore the option if not recognized
16440      # So say no if there are warnings
16441      if test -s conftest.err; then
16442        # Append any errors to the config.log.
16443        cat conftest.err 1>&5
16444        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16445        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16446        if diff conftest.exp conftest.er2 >/dev/null; then
16447          lt_cv_prog_compiler__b=yes
16448        fi
16449      else
16450        lt_cv_prog_compiler__b=yes
16451      fi
16452    fi
16453    $RM -r conftest*
16454    LDFLAGS="$save_LDFLAGS"
16455
16456 fi
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16458 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16459
16460 if test x"$lt_cv_prog_compiler__b" = xyes; then
16461     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16462 else
16463     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16464 fi
16465
16466           ;;
16467         esac
16468       fi
16469       if test "$with_gnu_ld" = no; then
16470         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16471         hardcode_libdir_separator=:
16472
16473         case $host_cpu in
16474         hppa*64*|ia64*)
16475           hardcode_direct=no
16476           hardcode_shlibpath_var=no
16477           ;;
16478         *)
16479           hardcode_direct=yes
16480           hardcode_direct_absolute=yes
16481           export_dynamic_flag_spec='${wl}-E'
16482
16483           # hardcode_minus_L: Not really in the search PATH,
16484           # but as the default location of the library.
16485           hardcode_minus_L=yes
16486           ;;
16487         esac
16488       fi
16489       ;;
16490
16491     irix5* | irix6* | nonstopux*)
16492       if test "$GCC" = yes; then
16493         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'
16494         # Try to use the -exported_symbol ld option, if it does not
16495         # work, assume that -exports_file does not work either and
16496         # implicitly export all symbols.
16497         save_LDFLAGS="$LDFLAGS"
16498         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16499         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h.  */
16501 int foo(void) {}
16502 _ACEOF
16503 if ac_fn_c_try_link "$LINENO"; then :
16504   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'
16505
16506 fi
16507 rm -f core conftest.err conftest.$ac_objext \
16508     conftest$ac_exeext conftest.$ac_ext
16509         LDFLAGS="$save_LDFLAGS"
16510       else
16511         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'
16512         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'
16513       fi
16514       archive_cmds_need_lc='no'
16515       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16516       hardcode_libdir_separator=:
16517       inherit_rpath=yes
16518       link_all_deplibs=yes
16519       ;;
16520
16521     netbsd*)
16522       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16523         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16524       else
16525         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16526       fi
16527       hardcode_libdir_flag_spec='-R$libdir'
16528       hardcode_direct=yes
16529       hardcode_shlibpath_var=no
16530       ;;
16531
16532     newsos6)
16533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534       hardcode_direct=yes
16535       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16536       hardcode_libdir_separator=:
16537       hardcode_shlibpath_var=no
16538       ;;
16539
16540     *nto* | *qnx*)
16541       ;;
16542
16543     openbsd*)
16544       if test -f /usr/libexec/ld.so; then
16545         hardcode_direct=yes
16546         hardcode_shlibpath_var=no
16547         hardcode_direct_absolute=yes
16548         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16549           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16550           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16551           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16552           export_dynamic_flag_spec='${wl}-E'
16553         else
16554           case $host_os in
16555            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16556              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16557              hardcode_libdir_flag_spec='-R$libdir'
16558              ;;
16559            *)
16560              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16561              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16562              ;;
16563           esac
16564         fi
16565       else
16566         ld_shlibs=no
16567       fi
16568       ;;
16569
16570     os2*)
16571       hardcode_libdir_flag_spec='-L$libdir'
16572       hardcode_minus_L=yes
16573       allow_undefined_flag=unsupported
16574       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'
16575       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16576       ;;
16577
16578     osf3*)
16579       if test "$GCC" = yes; then
16580         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16581         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'
16582       else
16583         allow_undefined_flag=' -expect_unresolved \*'
16584         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'
16585       fi
16586       archive_cmds_need_lc='no'
16587       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16588       hardcode_libdir_separator=:
16589       ;;
16590
16591     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16592       if test "$GCC" = yes; then
16593         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16594         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'
16595         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16596       else
16597         allow_undefined_flag=' -expect_unresolved \*'
16598         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'
16599         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~
16600         $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'
16601
16602         # Both c and cxx compiler support -rpath directly
16603         hardcode_libdir_flag_spec='-rpath $libdir'
16604       fi
16605       archive_cmds_need_lc='no'
16606       hardcode_libdir_separator=:
16607       ;;
16608
16609     solaris*)
16610       no_undefined_flag=' -z defs'
16611       if test "$GCC" = yes; then
16612         wlarc='${wl}'
16613         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16614         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16615           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16616       else
16617         case `$CC -V 2>&1` in
16618         *"Compilers 5.0"*)
16619           wlarc=''
16620           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16622           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16623           ;;
16624         *)
16625           wlarc='${wl}'
16626           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16627           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16628           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16629           ;;
16630         esac
16631       fi
16632       hardcode_libdir_flag_spec='-R$libdir'
16633       hardcode_shlibpath_var=no
16634       case $host_os in
16635       solaris2.[0-5] | solaris2.[0-5].*) ;;
16636       *)
16637         # The compiler driver will combine and reorder linker options,
16638         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16639         # but is careful enough not to reorder.
16640         # Supported since Solaris 2.6 (maybe 2.5.1?)
16641         if test "$GCC" = yes; then
16642           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16643         else
16644           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16645         fi
16646         ;;
16647       esac
16648       link_all_deplibs=yes
16649       ;;
16650
16651     sunos4*)
16652       if test "x$host_vendor" = xsequent; then
16653         # Use $CC to link under sequent, because it throws in some extra .o
16654         # files that make .init and .fini sections work.
16655         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16656       else
16657         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16658       fi
16659       hardcode_libdir_flag_spec='-L$libdir'
16660       hardcode_direct=yes
16661       hardcode_minus_L=yes
16662       hardcode_shlibpath_var=no
16663       ;;
16664
16665     sysv4)
16666       case $host_vendor in
16667         sni)
16668           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16669           hardcode_direct=yes # is this really true???
16670         ;;
16671         siemens)
16672           ## LD is ld it makes a PLAMLIB
16673           ## CC just makes a GrossModule.
16674           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16675           reload_cmds='$CC -r -o $output$reload_objs'
16676           hardcode_direct=no
16677         ;;
16678         motorola)
16679           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16681         ;;
16682       esac
16683       runpath_var='LD_RUN_PATH'
16684       hardcode_shlibpath_var=no
16685       ;;
16686
16687     sysv4.3*)
16688       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689       hardcode_shlibpath_var=no
16690       export_dynamic_flag_spec='-Bexport'
16691       ;;
16692
16693     sysv4*MP*)
16694       if test -d /usr/nec; then
16695         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696         hardcode_shlibpath_var=no
16697         runpath_var=LD_RUN_PATH
16698         hardcode_runpath_var=yes
16699         ld_shlibs=yes
16700       fi
16701       ;;
16702
16703     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16704       no_undefined_flag='${wl}-z,text'
16705       archive_cmds_need_lc=no
16706       hardcode_shlibpath_var=no
16707       runpath_var='LD_RUN_PATH'
16708
16709       if test "$GCC" = yes; then
16710         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16711         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16712       else
16713         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16714         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16715       fi
16716       ;;
16717
16718     sysv5* | sco3.2v5* | sco5v6*)
16719       # Note: We can NOT use -z defs as we might desire, because we do not
16720       # link with -lc, and that would cause any symbols used from libc to
16721       # always be unresolved, which means just about no library would
16722       # ever link correctly.  If we're not using GNU ld we use -z text
16723       # though, which does catch some bad symbols but isn't as heavy-handed
16724       # as -z defs.
16725       no_undefined_flag='${wl}-z,text'
16726       allow_undefined_flag='${wl}-z,nodefs'
16727       archive_cmds_need_lc=no
16728       hardcode_shlibpath_var=no
16729       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16730       hardcode_libdir_separator=':'
16731       link_all_deplibs=yes
16732       export_dynamic_flag_spec='${wl}-Bexport'
16733       runpath_var='LD_RUN_PATH'
16734
16735       if test "$GCC" = yes; then
16736         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16737         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16738       else
16739         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16740         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16741       fi
16742       ;;
16743
16744     uts4*)
16745       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16746       hardcode_libdir_flag_spec='-L$libdir'
16747       hardcode_shlibpath_var=no
16748       ;;
16749
16750     *)
16751       ld_shlibs=no
16752       ;;
16753     esac
16754
16755     if test x$host_vendor = xsni; then
16756       case $host in
16757       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16758         export_dynamic_flag_spec='${wl}-Blargedynsym'
16759         ;;
16760       esac
16761     fi
16762   fi
16763
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16765 $as_echo "$ld_shlibs" >&6; }
16766 test "$ld_shlibs" = no && can_build_shared=no
16767
16768 with_gnu_ld=$with_gnu_ld
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784 #
16785 # Do we need to explicitly link libc?
16786 #
16787 case "x$archive_cmds_need_lc" in
16788 x|xyes)
16789   # Assume -lc should be added
16790   archive_cmds_need_lc=yes
16791
16792   if test "$enable_shared" = yes && test "$GCC" = yes; then
16793     case $archive_cmds in
16794     *'~'*)
16795       # FIXME: we may have to deal with multi-command sequences.
16796       ;;
16797     '$CC '*)
16798       # Test whether the compiler implicitly links with -lc since on some
16799       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16800       # to ld, don't add -lc before -lgcc.
16801       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16802 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16803 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16804   $as_echo_n "(cached) " >&6
16805 else
16806   $RM conftest*
16807         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16808
16809         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16810   (eval $ac_compile) 2>&5
16811   ac_status=$?
16812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16813   test $ac_status = 0; } 2>conftest.err; then
16814           soname=conftest
16815           lib=conftest
16816           libobjs=conftest.$ac_objext
16817           deplibs=
16818           wl=$lt_prog_compiler_wl
16819           pic_flag=$lt_prog_compiler_pic
16820           compiler_flags=-v
16821           linker_flags=-v
16822           verstring=
16823           output_objdir=.
16824           libname=conftest
16825           lt_save_allow_undefined_flag=$allow_undefined_flag
16826           allow_undefined_flag=
16827           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16828   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16829   ac_status=$?
16830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831   test $ac_status = 0; }
16832           then
16833             lt_cv_archive_cmds_need_lc=no
16834           else
16835             lt_cv_archive_cmds_need_lc=yes
16836           fi
16837           allow_undefined_flag=$lt_save_allow_undefined_flag
16838         else
16839           cat conftest.err 1>&5
16840         fi
16841         $RM conftest*
16842
16843 fi
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16845 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16846       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16847       ;;
16848     esac
16849   fi
16850   ;;
16851 esac
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
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17010 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17011
17012 if test "$GCC" = yes; then
17013   case $host_os in
17014     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17015     *) lt_awk_arg="/^libraries:/" ;;
17016   esac
17017   case $host_os in
17018     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17019     *) lt_sed_strip_eq="s,=/,/,g" ;;
17020   esac
17021   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17022   case $lt_search_path_spec in
17023   *\;*)
17024     # if the path contains ";" then we assume it to be the separator
17025     # otherwise default to the standard path separator (i.e. ":") - it is
17026     # assumed that no part of a normal pathname contains ";" but that should
17027     # okay in the real world where ";" in dirpaths is itself problematic.
17028     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17029     ;;
17030   *)
17031     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17032     ;;
17033   esac
17034   # Ok, now we have the path, separated by spaces, we can step through it
17035   # and add multilib dir if necessary.
17036   lt_tmp_lt_search_path_spec=
17037   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17038   for lt_sys_path in $lt_search_path_spec; do
17039     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17040       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17041     else
17042       test -d "$lt_sys_path" && \
17043         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17044     fi
17045   done
17046   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17047 BEGIN {RS=" "; FS="/|\n";} {
17048   lt_foo="";
17049   lt_count=0;
17050   for (lt_i = NF; lt_i > 0; lt_i--) {
17051     if ($lt_i != "" && $lt_i != ".") {
17052       if ($lt_i == "..") {
17053         lt_count++;
17054       } else {
17055         if (lt_count == 0) {
17056           lt_foo="/" $lt_i lt_foo;
17057         } else {
17058           lt_count--;
17059         }
17060       }
17061     }
17062   }
17063   if (lt_foo != "") { lt_freq[lt_foo]++; }
17064   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17065 }'`
17066   # AWK program above erroneously prepends '/' to C:/dos/paths
17067   # for these hosts.
17068   case $host_os in
17069     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17070       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17071   esac
17072   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17073 else
17074   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17075 fi
17076 library_names_spec=
17077 libname_spec='lib$name'
17078 soname_spec=
17079 shrext_cmds=".so"
17080 postinstall_cmds=
17081 postuninstall_cmds=
17082 finish_cmds=
17083 finish_eval=
17084 shlibpath_var=
17085 shlibpath_overrides_runpath=unknown
17086 version_type=none
17087 dynamic_linker="$host_os ld.so"
17088 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17089 need_lib_prefix=unknown
17090 hardcode_into_libs=no
17091
17092 # when you set need_version to no, make sure it does not cause -set_version
17093 # flags to be left without arguments
17094 need_version=unknown
17095
17096 case $host_os in
17097 aix3*)
17098   version_type=linux
17099   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17100   shlibpath_var=LIBPATH
17101
17102   # AIX 3 has no versioning support, so we append a major version to the name.
17103   soname_spec='${libname}${release}${shared_ext}$major'
17104   ;;
17105
17106 aix[4-9]*)
17107   version_type=linux
17108   need_lib_prefix=no
17109   need_version=no
17110   hardcode_into_libs=yes
17111   if test "$host_cpu" = ia64; then
17112     # AIX 5 supports IA64
17113     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17114     shlibpath_var=LD_LIBRARY_PATH
17115   else
17116     # With GCC up to 2.95.x, collect2 would create an import file
17117     # for dependence libraries.  The import file would start with
17118     # the line `#! .'.  This would cause the generated library to
17119     # depend on `.', always an invalid library.  This was fixed in
17120     # development snapshots of GCC prior to 3.0.
17121     case $host_os in
17122       aix4 | aix4.[01] | aix4.[01].*)
17123       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17124            echo ' yes '
17125            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17126         :
17127       else
17128         can_build_shared=no
17129       fi
17130       ;;
17131     esac
17132     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17133     # soname into executable. Probably we can add versioning support to
17134     # collect2, so additional links can be useful in future.
17135     if test "$aix_use_runtimelinking" = yes; then
17136       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17137       # instead of lib<name>.a to let people know that these are not
17138       # typical AIX shared libraries.
17139       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140     else
17141       # We preserve .a as extension for shared libraries through AIX4.2
17142       # and later when we are not doing run time linking.
17143       library_names_spec='${libname}${release}.a $libname.a'
17144       soname_spec='${libname}${release}${shared_ext}$major'
17145     fi
17146     shlibpath_var=LIBPATH
17147   fi
17148   ;;
17149
17150 amigaos*)
17151   case $host_cpu in
17152   powerpc)
17153     # Since July 2007 AmigaOS4 officially supports .so libraries.
17154     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156     ;;
17157   m68k)
17158     library_names_spec='$libname.ixlibrary $libname.a'
17159     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17160     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'
17161     ;;
17162   esac
17163   ;;
17164
17165 beos*)
17166   library_names_spec='${libname}${shared_ext}'
17167   dynamic_linker="$host_os ld.so"
17168   shlibpath_var=LIBRARY_PATH
17169   ;;
17170
17171 bsdi[45]*)
17172   version_type=linux
17173   need_version=no
17174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175   soname_spec='${libname}${release}${shared_ext}$major'
17176   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17177   shlibpath_var=LD_LIBRARY_PATH
17178   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17179   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17180   # the default ld.so.conf also contains /usr/contrib/lib and
17181   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17182   # libtool to hard-code these into programs
17183   ;;
17184
17185 cygwin* | mingw* | pw32* | cegcc*)
17186   version_type=windows
17187   shrext_cmds=".dll"
17188   need_version=no
17189   need_lib_prefix=no
17190
17191   case $GCC,$host_os in
17192   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17193     library_names_spec='$libname.dll.a'
17194     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17195     postinstall_cmds='base_file=`basename \${file}`~
17196       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17197       dldir=$destdir/`dirname \$dlpath`~
17198       test -d \$dldir || mkdir -p \$dldir~
17199       $install_prog $dir/$dlname \$dldir/$dlname~
17200       chmod a+x \$dldir/$dlname~
17201       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17202         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17203       fi'
17204     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17205       dlpath=$dir/\$dldll~
17206        $RM \$dlpath'
17207     shlibpath_overrides_runpath=yes
17208
17209     case $host_os in
17210     cygwin*)
17211       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17212       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17213
17214       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17215       ;;
17216     mingw* | cegcc*)
17217       # MinGW DLLs use traditional 'lib' prefix
17218       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17219       ;;
17220     pw32*)
17221       # pw32 DLLs use 'pw' prefix rather than 'lib'
17222       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17223       ;;
17224     esac
17225     ;;
17226
17227   *)
17228     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17229     ;;
17230   esac
17231   dynamic_linker='Win32 ld.exe'
17232   # FIXME: first we should search . and the directory the executable is in
17233   shlibpath_var=PATH
17234   ;;
17235
17236 darwin* | rhapsody*)
17237   dynamic_linker="$host_os dyld"
17238   version_type=darwin
17239   need_lib_prefix=no
17240   need_version=no
17241   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17242   soname_spec='${libname}${release}${major}$shared_ext'
17243   shlibpath_overrides_runpath=yes
17244   shlibpath_var=DYLD_LIBRARY_PATH
17245   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17246
17247   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17248   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17249   ;;
17250
17251 dgux*)
17252   version_type=linux
17253   need_lib_prefix=no
17254   need_version=no
17255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17256   soname_spec='${libname}${release}${shared_ext}$major'
17257   shlibpath_var=LD_LIBRARY_PATH
17258   ;;
17259
17260 freebsd* | dragonfly*)
17261   # DragonFly does not have aout.  When/if they implement a new
17262   # versioning mechanism, adjust this.
17263   if test -x /usr/bin/objformat; then
17264     objformat=`/usr/bin/objformat`
17265   else
17266     case $host_os in
17267     freebsd[23].*) objformat=aout ;;
17268     *) objformat=elf ;;
17269     esac
17270   fi
17271   version_type=freebsd-$objformat
17272   case $version_type in
17273     freebsd-elf*)
17274       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17275       need_version=no
17276       need_lib_prefix=no
17277       ;;
17278     freebsd-*)
17279       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17280       need_version=yes
17281       ;;
17282   esac
17283   shlibpath_var=LD_LIBRARY_PATH
17284   case $host_os in
17285   freebsd2.*)
17286     shlibpath_overrides_runpath=yes
17287     ;;
17288   freebsd3.[01]* | freebsdelf3.[01]*)
17289     shlibpath_overrides_runpath=yes
17290     hardcode_into_libs=yes
17291     ;;
17292   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17293   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17294     shlibpath_overrides_runpath=no
17295     hardcode_into_libs=yes
17296     ;;
17297   *) # from 4.6 on, and DragonFly
17298     shlibpath_overrides_runpath=yes
17299     hardcode_into_libs=yes
17300     ;;
17301   esac
17302   ;;
17303
17304 gnu*)
17305   version_type=linux
17306   need_lib_prefix=no
17307   need_version=no
17308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17309   soname_spec='${libname}${release}${shared_ext}$major'
17310   shlibpath_var=LD_LIBRARY_PATH
17311   hardcode_into_libs=yes
17312   ;;
17313
17314 haiku*)
17315   version_type=linux
17316   need_lib_prefix=no
17317   need_version=no
17318   dynamic_linker="$host_os runtime_loader"
17319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17320   soname_spec='${libname}${release}${shared_ext}$major'
17321   shlibpath_var=LIBRARY_PATH
17322   shlibpath_overrides_runpath=yes
17323   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17324   hardcode_into_libs=yes
17325   ;;
17326
17327 hpux9* | hpux10* | hpux11*)
17328   # Give a soname corresponding to the major version so that dld.sl refuses to
17329   # link against other versions.
17330   version_type=sunos
17331   need_lib_prefix=no
17332   need_version=no
17333   case $host_cpu in
17334   ia64*)
17335     shrext_cmds='.so'
17336     hardcode_into_libs=yes
17337     dynamic_linker="$host_os dld.so"
17338     shlibpath_var=LD_LIBRARY_PATH
17339     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341     soname_spec='${libname}${release}${shared_ext}$major'
17342     if test "X$HPUX_IA64_MODE" = X32; then
17343       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17344     else
17345       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17346     fi
17347     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17348     ;;
17349   hppa*64*)
17350     shrext_cmds='.sl'
17351     hardcode_into_libs=yes
17352     dynamic_linker="$host_os dld.sl"
17353     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17354     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17358     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17359     ;;
17360   *)
17361     shrext_cmds='.sl'
17362     dynamic_linker="$host_os dld.sl"
17363     shlibpath_var=SHLIB_PATH
17364     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366     soname_spec='${libname}${release}${shared_ext}$major'
17367     ;;
17368   esac
17369   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17370   postinstall_cmds='chmod 555 $lib'
17371   # or fails outright, so override atomically:
17372   install_override_mode=555
17373   ;;
17374
17375 interix[3-9]*)
17376   version_type=linux
17377   need_lib_prefix=no
17378   need_version=no
17379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17380   soname_spec='${libname}${release}${shared_ext}$major'
17381   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17382   shlibpath_var=LD_LIBRARY_PATH
17383   shlibpath_overrides_runpath=no
17384   hardcode_into_libs=yes
17385   ;;
17386
17387 irix5* | irix6* | nonstopux*)
17388   case $host_os in
17389     nonstopux*) version_type=nonstopux ;;
17390     *)
17391         if test "$lt_cv_prog_gnu_ld" = yes; then
17392                 version_type=linux
17393         else
17394                 version_type=irix
17395         fi ;;
17396   esac
17397   need_lib_prefix=no
17398   need_version=no
17399   soname_spec='${libname}${release}${shared_ext}$major'
17400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17401   case $host_os in
17402   irix5* | nonstopux*)
17403     libsuff= shlibsuff=
17404     ;;
17405   *)
17406     case $LD in # libtool.m4 will add one of these switches to LD
17407     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17408       libsuff= shlibsuff= libmagic=32-bit;;
17409     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17410       libsuff=32 shlibsuff=N32 libmagic=N32;;
17411     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17412       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17413     *) libsuff= shlibsuff= libmagic=never-match;;
17414     esac
17415     ;;
17416   esac
17417   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17418   shlibpath_overrides_runpath=no
17419   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17420   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17421   hardcode_into_libs=yes
17422   ;;
17423
17424 # No shared lib support for Linux oldld, aout, or coff.
17425 linux*oldld* | linux*aout* | linux*coff*)
17426   dynamic_linker=no
17427   ;;
17428
17429 # This must be Linux ELF.
17430 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17431   version_type=linux
17432   need_lib_prefix=no
17433   need_version=no
17434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17435   soname_spec='${libname}${release}${shared_ext}$major'
17436   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17437   shlibpath_var=LD_LIBRARY_PATH
17438   shlibpath_overrides_runpath=no
17439
17440   # Some binutils ld are patched to set DT_RUNPATH
17441   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17442   $as_echo_n "(cached) " >&6
17443 else
17444   lt_cv_shlibpath_overrides_runpath=no
17445     save_LDFLAGS=$LDFLAGS
17446     save_libdir=$libdir
17447     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17448          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17449     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h.  */
17451
17452 int
17453 main ()
17454 {
17455
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 if ac_fn_c_try_link "$LINENO"; then :
17461   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17462   lt_cv_shlibpath_overrides_runpath=yes
17463 fi
17464 fi
17465 rm -f core conftest.err conftest.$ac_objext \
17466     conftest$ac_exeext conftest.$ac_ext
17467     LDFLAGS=$save_LDFLAGS
17468     libdir=$save_libdir
17469
17470 fi
17471
17472   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17473
17474   # This implies no fast_install, which is unacceptable.
17475   # Some rework will be needed to allow for fast_install
17476   # before this can be enabled.
17477   hardcode_into_libs=yes
17478
17479   # Append ld.so.conf contents to the search path
17480   if test -f /etc/ld.so.conf; then
17481     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' ' '`
17482     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17483   fi
17484
17485   # We used to test for /lib/ld.so.1 and disable shared libraries on
17486   # powerpc, because MkLinux only supported shared libraries with the
17487   # GNU dynamic linker.  Since this was broken with cross compilers,
17488   # most powerpc-linux boxes support dynamic linking these days and
17489   # people can always --disable-shared, the test was removed, and we
17490   # assume the GNU/Linux dynamic linker is in use.
17491   dynamic_linker='GNU/Linux ld.so'
17492   ;;
17493
17494 netbsd*)
17495   version_type=sunos
17496   need_lib_prefix=no
17497   need_version=no
17498   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17500     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17501     dynamic_linker='NetBSD (a.out) ld.so'
17502   else
17503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17504     soname_spec='${libname}${release}${shared_ext}$major'
17505     dynamic_linker='NetBSD ld.elf_so'
17506   fi
17507   shlibpath_var=LD_LIBRARY_PATH
17508   shlibpath_overrides_runpath=yes
17509   hardcode_into_libs=yes
17510   ;;
17511
17512 newsos6)
17513   version_type=linux
17514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515   shlibpath_var=LD_LIBRARY_PATH
17516   shlibpath_overrides_runpath=yes
17517   ;;
17518
17519 *nto* | *qnx*)
17520   version_type=qnx
17521   need_lib_prefix=no
17522   need_version=no
17523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17524   soname_spec='${libname}${release}${shared_ext}$major'
17525   shlibpath_var=LD_LIBRARY_PATH
17526   shlibpath_overrides_runpath=no
17527   hardcode_into_libs=yes
17528   dynamic_linker='ldqnx.so'
17529   ;;
17530
17531 openbsd*)
17532   version_type=sunos
17533   sys_lib_dlsearch_path_spec="/usr/lib"
17534   need_lib_prefix=no
17535   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17536   case $host_os in
17537     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17538     *)                          need_version=no  ;;
17539   esac
17540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17542   shlibpath_var=LD_LIBRARY_PATH
17543   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17544     case $host_os in
17545       openbsd2.[89] | openbsd2.[89].*)
17546         shlibpath_overrides_runpath=no
17547         ;;
17548       *)
17549         shlibpath_overrides_runpath=yes
17550         ;;
17551       esac
17552   else
17553     shlibpath_overrides_runpath=yes
17554   fi
17555   ;;
17556
17557 os2*)
17558   libname_spec='$name'
17559   shrext_cmds=".dll"
17560   need_lib_prefix=no
17561   library_names_spec='$libname${shared_ext} $libname.a'
17562   dynamic_linker='OS/2 ld.exe'
17563   shlibpath_var=LIBPATH
17564   ;;
17565
17566 osf3* | osf4* | osf5*)
17567   version_type=osf
17568   need_lib_prefix=no
17569   need_version=no
17570   soname_spec='${libname}${release}${shared_ext}$major'
17571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17572   shlibpath_var=LD_LIBRARY_PATH
17573   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17574   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17575   ;;
17576
17577 rdos*)
17578   dynamic_linker=no
17579   ;;
17580
17581 solaris*)
17582   version_type=linux
17583   need_lib_prefix=no
17584   need_version=no
17585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586   soname_spec='${libname}${release}${shared_ext}$major'
17587   shlibpath_var=LD_LIBRARY_PATH
17588   shlibpath_overrides_runpath=yes
17589   hardcode_into_libs=yes
17590   # ldd complains unless libraries are executable
17591   postinstall_cmds='chmod +x $lib'
17592   ;;
17593
17594 sunos4*)
17595   version_type=sunos
17596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17597   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17598   shlibpath_var=LD_LIBRARY_PATH
17599   shlibpath_overrides_runpath=yes
17600   if test "$with_gnu_ld" = yes; then
17601     need_lib_prefix=no
17602   fi
17603   need_version=yes
17604   ;;
17605
17606 sysv4 | sysv4.3*)
17607   version_type=linux
17608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609   soname_spec='${libname}${release}${shared_ext}$major'
17610   shlibpath_var=LD_LIBRARY_PATH
17611   case $host_vendor in
17612     sni)
17613       shlibpath_overrides_runpath=no
17614       need_lib_prefix=no
17615       runpath_var=LD_RUN_PATH
17616       ;;
17617     siemens)
17618       need_lib_prefix=no
17619       ;;
17620     motorola)
17621       need_lib_prefix=no
17622       need_version=no
17623       shlibpath_overrides_runpath=no
17624       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17625       ;;
17626   esac
17627   ;;
17628
17629 sysv4*MP*)
17630   if test -d /usr/nec ;then
17631     version_type=linux
17632     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17633     soname_spec='$libname${shared_ext}.$major'
17634     shlibpath_var=LD_LIBRARY_PATH
17635   fi
17636   ;;
17637
17638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17639   version_type=freebsd-elf
17640   need_lib_prefix=no
17641   need_version=no
17642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17643   soname_spec='${libname}${release}${shared_ext}$major'
17644   shlibpath_var=LD_LIBRARY_PATH
17645   shlibpath_overrides_runpath=yes
17646   hardcode_into_libs=yes
17647   if test "$with_gnu_ld" = yes; then
17648     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17649   else
17650     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17651     case $host_os in
17652       sco3.2v5*)
17653         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17654         ;;
17655     esac
17656   fi
17657   sys_lib_dlsearch_path_spec='/usr/lib'
17658   ;;
17659
17660 tpf*)
17661   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17662   version_type=linux
17663   need_lib_prefix=no
17664   need_version=no
17665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17666   shlibpath_var=LD_LIBRARY_PATH
17667   shlibpath_overrides_runpath=no
17668   hardcode_into_libs=yes
17669   ;;
17670
17671 uts4*)
17672   version_type=linux
17673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674   soname_spec='${libname}${release}${shared_ext}$major'
17675   shlibpath_var=LD_LIBRARY_PATH
17676   ;;
17677
17678 *)
17679   dynamic_linker=no
17680   ;;
17681 esac
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17683 $as_echo "$dynamic_linker" >&6; }
17684 test "$dynamic_linker" = no && can_build_shared=no
17685
17686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17687 if test "$GCC" = yes; then
17688   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17689 fi
17690
17691 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17692   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17693 fi
17694 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17695   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17696 fi
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
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17790 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17791 hardcode_action=
17792 if test -n "$hardcode_libdir_flag_spec" ||
17793    test -n "$runpath_var" ||
17794    test "X$hardcode_automatic" = "Xyes" ; then
17795
17796   # We can hardcode non-existent directories.
17797   if test "$hardcode_direct" != no &&
17798      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17799      # have to relink, otherwise we might link with an installed library
17800      # when we should be linking with a yet-to-be-installed one
17801      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17802      test "$hardcode_minus_L" != no; then
17803     # Linking always hardcodes the temporary library directory.
17804     hardcode_action=relink
17805   else
17806     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17807     hardcode_action=immediate
17808   fi
17809 else
17810   # We cannot hardcode anything, or else we can only hardcode existing
17811   # directories.
17812   hardcode_action=unsupported
17813 fi
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17815 $as_echo "$hardcode_action" >&6; }
17816
17817 if test "$hardcode_action" = relink ||
17818    test "$inherit_rpath" = yes; then
17819   # Fast installation is not supported
17820   enable_fast_install=no
17821 elif test "$shlibpath_overrides_runpath" = yes ||
17822      test "$enable_shared" = no; then
17823   # Fast installation is not necessary
17824   enable_fast_install=needless
17825 fi
17826
17827
17828
17829
17830
17831
17832   if test "x$enable_dlopen" != xyes; then
17833   enable_dlopen=unknown
17834   enable_dlopen_self=unknown
17835   enable_dlopen_self_static=unknown
17836 else
17837   lt_cv_dlopen=no
17838   lt_cv_dlopen_libs=
17839
17840   case $host_os in
17841   beos*)
17842     lt_cv_dlopen="load_add_on"
17843     lt_cv_dlopen_libs=
17844     lt_cv_dlopen_self=yes
17845     ;;
17846
17847   mingw* | pw32* | cegcc*)
17848     lt_cv_dlopen="LoadLibrary"
17849     lt_cv_dlopen_libs=
17850     ;;
17851
17852   cygwin*)
17853     lt_cv_dlopen="dlopen"
17854     lt_cv_dlopen_libs=
17855     ;;
17856
17857   darwin*)
17858   # if libdl is installed we need to link against it
17859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17860 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17862   $as_echo_n "(cached) " >&6
17863 else
17864   ac_check_lib_save_LIBS=$LIBS
17865 LIBS="-ldl  $LIBS"
17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h.  */
17868
17869 /* Override any GCC internal prototype to avoid an error.
17870    Use char because int might match the return type of a GCC
17871    builtin and then its argument prototype would still apply.  */
17872 #ifdef __cplusplus
17873 extern "C"
17874 #endif
17875 char dlopen ();
17876 int
17877 main ()
17878 {
17879 return dlopen ();
17880   ;
17881   return 0;
17882 }
17883 _ACEOF
17884 if ac_fn_c_try_link "$LINENO"; then :
17885   ac_cv_lib_dl_dlopen=yes
17886 else
17887   ac_cv_lib_dl_dlopen=no
17888 fi
17889 rm -f core conftest.err conftest.$ac_objext \
17890     conftest$ac_exeext conftest.$ac_ext
17891 LIBS=$ac_check_lib_save_LIBS
17892 fi
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17894 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17895 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17897 else
17898
17899     lt_cv_dlopen="dyld"
17900     lt_cv_dlopen_libs=
17901     lt_cv_dlopen_self=yes
17902
17903 fi
17904
17905     ;;
17906
17907   *)
17908     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17909 if test "x$ac_cv_func_shl_load" = x""yes; then :
17910   lt_cv_dlopen="shl_load"
17911 else
17912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17913 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17914 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17915   $as_echo_n "(cached) " >&6
17916 else
17917   ac_check_lib_save_LIBS=$LIBS
17918 LIBS="-ldld  $LIBS"
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h.  */
17921
17922 /* Override any GCC internal prototype to avoid an error.
17923    Use char because int might match the return type of a GCC
17924    builtin and then its argument prototype would still apply.  */
17925 #ifdef __cplusplus
17926 extern "C"
17927 #endif
17928 char shl_load ();
17929 int
17930 main ()
17931 {
17932 return shl_load ();
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_link "$LINENO"; then :
17938   ac_cv_lib_dld_shl_load=yes
17939 else
17940   ac_cv_lib_dld_shl_load=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext \
17943     conftest$ac_exeext conftest.$ac_ext
17944 LIBS=$ac_check_lib_save_LIBS
17945 fi
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17947 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17948 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17949   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17950 else
17951   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17952 if test "x$ac_cv_func_dlopen" = x""yes; then :
17953   lt_cv_dlopen="dlopen"
17954 else
17955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17956 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17957 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17958   $as_echo_n "(cached) " >&6
17959 else
17960   ac_check_lib_save_LIBS=$LIBS
17961 LIBS="-ldl  $LIBS"
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h.  */
17964
17965 /* Override any GCC internal prototype to avoid an error.
17966    Use char because int might match the return type of a GCC
17967    builtin and then its argument prototype would still apply.  */
17968 #ifdef __cplusplus
17969 extern "C"
17970 #endif
17971 char dlopen ();
17972 int
17973 main ()
17974 {
17975 return dlopen ();
17976   ;
17977   return 0;
17978 }
17979 _ACEOF
17980 if ac_fn_c_try_link "$LINENO"; then :
17981   ac_cv_lib_dl_dlopen=yes
17982 else
17983   ac_cv_lib_dl_dlopen=no
17984 fi
17985 rm -f core conftest.err conftest.$ac_objext \
17986     conftest$ac_exeext conftest.$ac_ext
17987 LIBS=$ac_check_lib_save_LIBS
17988 fi
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17990 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17991 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17992   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17993 else
17994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17995 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17996 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17997   $as_echo_n "(cached) " >&6
17998 else
17999   ac_check_lib_save_LIBS=$LIBS
18000 LIBS="-lsvld  $LIBS"
18001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h.  */
18003
18004 /* Override any GCC internal prototype to avoid an error.
18005    Use char because int might match the return type of a GCC
18006    builtin and then its argument prototype would still apply.  */
18007 #ifdef __cplusplus
18008 extern "C"
18009 #endif
18010 char dlopen ();
18011 int
18012 main ()
18013 {
18014 return dlopen ();
18015   ;
18016   return 0;
18017 }
18018 _ACEOF
18019 if ac_fn_c_try_link "$LINENO"; then :
18020   ac_cv_lib_svld_dlopen=yes
18021 else
18022   ac_cv_lib_svld_dlopen=no
18023 fi
18024 rm -f core conftest.err conftest.$ac_objext \
18025     conftest$ac_exeext conftest.$ac_ext
18026 LIBS=$ac_check_lib_save_LIBS
18027 fi
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18029 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18030 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18031   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18032 else
18033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18034 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18035 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18036   $as_echo_n "(cached) " >&6
18037 else
18038   ac_check_lib_save_LIBS=$LIBS
18039 LIBS="-ldld  $LIBS"
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h.  */
18042
18043 /* Override any GCC internal prototype to avoid an error.
18044    Use char because int might match the return type of a GCC
18045    builtin and then its argument prototype would still apply.  */
18046 #ifdef __cplusplus
18047 extern "C"
18048 #endif
18049 char dld_link ();
18050 int
18051 main ()
18052 {
18053 return dld_link ();
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 if ac_fn_c_try_link "$LINENO"; then :
18059   ac_cv_lib_dld_dld_link=yes
18060 else
18061   ac_cv_lib_dld_dld_link=no
18062 fi
18063 rm -f core conftest.err conftest.$ac_objext \
18064     conftest$ac_exeext conftest.$ac_ext
18065 LIBS=$ac_check_lib_save_LIBS
18066 fi
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18068 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18069 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18070   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18071 fi
18072
18073
18074 fi
18075
18076
18077 fi
18078
18079
18080 fi
18081
18082
18083 fi
18084
18085
18086 fi
18087
18088     ;;
18089   esac
18090
18091   if test "x$lt_cv_dlopen" != xno; then
18092     enable_dlopen=yes
18093   else
18094     enable_dlopen=no
18095   fi
18096
18097   case $lt_cv_dlopen in
18098   dlopen)
18099     save_CPPFLAGS="$CPPFLAGS"
18100     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18101
18102     save_LDFLAGS="$LDFLAGS"
18103     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18104
18105     save_LIBS="$LIBS"
18106     LIBS="$lt_cv_dlopen_libs $LIBS"
18107
18108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18109 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18110 if test "${lt_cv_dlopen_self+set}" = set; then :
18111   $as_echo_n "(cached) " >&6
18112 else
18113           if test "$cross_compiling" = yes; then :
18114   lt_cv_dlopen_self=cross
18115 else
18116   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18117   lt_status=$lt_dlunknown
18118   cat > conftest.$ac_ext <<_LT_EOF
18119 #line 18119 "configure"
18120 #include "confdefs.h"
18121
18122 #if HAVE_DLFCN_H
18123 #include <dlfcn.h>
18124 #endif
18125
18126 #include <stdio.h>
18127
18128 #ifdef RTLD_GLOBAL
18129 #  define LT_DLGLOBAL           RTLD_GLOBAL
18130 #else
18131 #  ifdef DL_GLOBAL
18132 #    define LT_DLGLOBAL         DL_GLOBAL
18133 #  else
18134 #    define LT_DLGLOBAL         0
18135 #  endif
18136 #endif
18137
18138 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18139    find out it does not work in some platform. */
18140 #ifndef LT_DLLAZY_OR_NOW
18141 #  ifdef RTLD_LAZY
18142 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18143 #  else
18144 #    ifdef DL_LAZY
18145 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18146 #    else
18147 #      ifdef RTLD_NOW
18148 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18149 #      else
18150 #        ifdef DL_NOW
18151 #          define LT_DLLAZY_OR_NOW      DL_NOW
18152 #        else
18153 #          define LT_DLLAZY_OR_NOW      0
18154 #        endif
18155 #      endif
18156 #    endif
18157 #  endif
18158 #endif
18159
18160 /* When -fvisbility=hidden is used, assume the code has been annotated
18161    correspondingly for the symbols needed.  */
18162 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18163 void fnord () __attribute__((visibility("default")));
18164 #endif
18165
18166 void fnord () { int i=42; }
18167 int main ()
18168 {
18169   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18170   int status = $lt_dlunknown;
18171
18172   if (self)
18173     {
18174       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18175       else
18176         {
18177           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18178           else puts (dlerror ());
18179         }
18180       /* dlclose (self); */
18181     }
18182   else
18183     puts (dlerror ());
18184
18185   return status;
18186 }
18187 _LT_EOF
18188   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18189   (eval $ac_link) 2>&5
18190   ac_status=$?
18191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18192   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18193     (./conftest; exit; ) >&5 2>/dev/null
18194     lt_status=$?
18195     case x$lt_status in
18196       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18197       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18198       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18199     esac
18200   else :
18201     # compilation failed
18202     lt_cv_dlopen_self=no
18203   fi
18204 fi
18205 rm -fr conftest*
18206
18207
18208 fi
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18210 $as_echo "$lt_cv_dlopen_self" >&6; }
18211
18212     if test "x$lt_cv_dlopen_self" = xyes; then
18213       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18214       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18215 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18216 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18217   $as_echo_n "(cached) " >&6
18218 else
18219           if test "$cross_compiling" = yes; then :
18220   lt_cv_dlopen_self_static=cross
18221 else
18222   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18223   lt_status=$lt_dlunknown
18224   cat > conftest.$ac_ext <<_LT_EOF
18225 #line 18225 "configure"
18226 #include "confdefs.h"
18227
18228 #if HAVE_DLFCN_H
18229 #include <dlfcn.h>
18230 #endif
18231
18232 #include <stdio.h>
18233
18234 #ifdef RTLD_GLOBAL
18235 #  define LT_DLGLOBAL           RTLD_GLOBAL
18236 #else
18237 #  ifdef DL_GLOBAL
18238 #    define LT_DLGLOBAL         DL_GLOBAL
18239 #  else
18240 #    define LT_DLGLOBAL         0
18241 #  endif
18242 #endif
18243
18244 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18245    find out it does not work in some platform. */
18246 #ifndef LT_DLLAZY_OR_NOW
18247 #  ifdef RTLD_LAZY
18248 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18249 #  else
18250 #    ifdef DL_LAZY
18251 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18252 #    else
18253 #      ifdef RTLD_NOW
18254 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18255 #      else
18256 #        ifdef DL_NOW
18257 #          define LT_DLLAZY_OR_NOW      DL_NOW
18258 #        else
18259 #          define LT_DLLAZY_OR_NOW      0
18260 #        endif
18261 #      endif
18262 #    endif
18263 #  endif
18264 #endif
18265
18266 /* When -fvisbility=hidden is used, assume the code has been annotated
18267    correspondingly for the symbols needed.  */
18268 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18269 void fnord () __attribute__((visibility("default")));
18270 #endif
18271
18272 void fnord () { int i=42; }
18273 int main ()
18274 {
18275   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18276   int status = $lt_dlunknown;
18277
18278   if (self)
18279     {
18280       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18281       else
18282         {
18283           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18284           else puts (dlerror ());
18285         }
18286       /* dlclose (self); */
18287     }
18288   else
18289     puts (dlerror ());
18290
18291   return status;
18292 }
18293 _LT_EOF
18294   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18295   (eval $ac_link) 2>&5
18296   ac_status=$?
18297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18298   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18299     (./conftest; exit; ) >&5 2>/dev/null
18300     lt_status=$?
18301     case x$lt_status in
18302       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18303       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18304       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18305     esac
18306   else :
18307     # compilation failed
18308     lt_cv_dlopen_self_static=no
18309   fi
18310 fi
18311 rm -fr conftest*
18312
18313
18314 fi
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18316 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18317     fi
18318
18319     CPPFLAGS="$save_CPPFLAGS"
18320     LDFLAGS="$save_LDFLAGS"
18321     LIBS="$save_LIBS"
18322     ;;
18323   esac
18324
18325   case $lt_cv_dlopen_self in
18326   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18327   *) enable_dlopen_self=unknown ;;
18328   esac
18329
18330   case $lt_cv_dlopen_self_static in
18331   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18332   *) enable_dlopen_self_static=unknown ;;
18333   esac
18334 fi
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352 striplib=
18353 old_striplib=
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18355 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18356 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18357   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18358   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18360 $as_echo "yes" >&6; }
18361 else
18362 # FIXME - insert some real tests, host_os isn't really good enough
18363   case $host_os in
18364   darwin*)
18365     if test -n "$STRIP" ; then
18366       striplib="$STRIP -x"
18367       old_striplib="$STRIP -S"
18368       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18369 $as_echo "yes" >&6; }
18370     else
18371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372 $as_echo "no" >&6; }
18373     fi
18374     ;;
18375   *)
18376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377 $as_echo "no" >&6; }
18378     ;;
18379   esac
18380 fi
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393   # Report which library types will actually be built
18394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18395 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18397 $as_echo "$can_build_shared" >&6; }
18398
18399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18400 $as_echo_n "checking whether to build shared libraries... " >&6; }
18401   test "$can_build_shared" = "no" && enable_shared=no
18402
18403   # On AIX, shared libraries and static libraries use the same namespace, and
18404   # are all built from PIC.
18405   case $host_os in
18406   aix3*)
18407     test "$enable_shared" = yes && enable_static=no
18408     if test -n "$RANLIB"; then
18409       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18410       postinstall_cmds='$RANLIB $lib'
18411     fi
18412     ;;
18413
18414   aix[4-9]*)
18415     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18416       test "$enable_shared" = yes && enable_static=no
18417     fi
18418     ;;
18419   esac
18420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18421 $as_echo "$enable_shared" >&6; }
18422
18423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18424 $as_echo_n "checking whether to build static libraries... " >&6; }
18425   # Make sure either enable_shared or enable_static is yes.
18426   test "$enable_shared" = yes || enable_static=yes
18427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18428 $as_echo "$enable_static" >&6; }
18429
18430
18431
18432
18433 fi
18434 ac_ext=c
18435 ac_cpp='$CPP $CPPFLAGS'
18436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18439
18440 CC="$lt_save_CC"
18441
18442       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18443     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18444     (test "X$CXX" != "Xg++"))) ; then
18445   ac_ext=cpp
18446 ac_cpp='$CXXCPP $CPPFLAGS'
18447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18451 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18452 if test -z "$CXXCPP"; then
18453   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18454   $as_echo_n "(cached) " >&6
18455 else
18456       # Double quotes because CXXCPP needs to be expanded
18457     for CXXCPP in "$CXX -E" "/lib/cpp"
18458     do
18459       ac_preproc_ok=false
18460 for ac_cxx_preproc_warn_flag in '' yes
18461 do
18462   # Use a header file that comes with gcc, so configuring glibc
18463   # with a fresh cross-compiler works.
18464   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18465   # <limits.h> exists even on freestanding compilers.
18466   # On the NeXT, cc -E runs the code through the compiler's parser,
18467   # not just through cpp. "Syntax error" is here to catch this case.
18468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469 /* end confdefs.h.  */
18470 #ifdef __STDC__
18471 # include <limits.h>
18472 #else
18473 # include <assert.h>
18474 #endif
18475                      Syntax error
18476 _ACEOF
18477 if ac_fn_cxx_try_cpp "$LINENO"; then :
18478
18479 else
18480   # Broken: fails on valid input.
18481 continue
18482 fi
18483 rm -f conftest.err conftest.$ac_ext
18484
18485   # OK, works on sane cases.  Now check whether nonexistent headers
18486   # can be detected and how.
18487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h.  */
18489 #include <ac_nonexistent.h>
18490 _ACEOF
18491 if ac_fn_cxx_try_cpp "$LINENO"; then :
18492   # Broken: success on invalid input.
18493 continue
18494 else
18495   # Passes both tests.
18496 ac_preproc_ok=:
18497 break
18498 fi
18499 rm -f conftest.err conftest.$ac_ext
18500
18501 done
18502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18503 rm -f conftest.err conftest.$ac_ext
18504 if $ac_preproc_ok; then :
18505   break
18506 fi
18507
18508     done
18509     ac_cv_prog_CXXCPP=$CXXCPP
18510
18511 fi
18512   CXXCPP=$ac_cv_prog_CXXCPP
18513 else
18514   ac_cv_prog_CXXCPP=$CXXCPP
18515 fi
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18517 $as_echo "$CXXCPP" >&6; }
18518 ac_preproc_ok=false
18519 for ac_cxx_preproc_warn_flag in '' yes
18520 do
18521   # Use a header file that comes with gcc, so configuring glibc
18522   # with a fresh cross-compiler works.
18523   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18524   # <limits.h> exists even on freestanding compilers.
18525   # On the NeXT, cc -E runs the code through the compiler's parser,
18526   # not just through cpp. "Syntax error" is here to catch this case.
18527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h.  */
18529 #ifdef __STDC__
18530 # include <limits.h>
18531 #else
18532 # include <assert.h>
18533 #endif
18534                      Syntax error
18535 _ACEOF
18536 if ac_fn_cxx_try_cpp "$LINENO"; then :
18537
18538 else
18539   # Broken: fails on valid input.
18540 continue
18541 fi
18542 rm -f conftest.err conftest.$ac_ext
18543
18544   # OK, works on sane cases.  Now check whether nonexistent headers
18545   # can be detected and how.
18546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h.  */
18548 #include <ac_nonexistent.h>
18549 _ACEOF
18550 if ac_fn_cxx_try_cpp "$LINENO"; then :
18551   # Broken: success on invalid input.
18552 continue
18553 else
18554   # Passes both tests.
18555 ac_preproc_ok=:
18556 break
18557 fi
18558 rm -f conftest.err conftest.$ac_ext
18559
18560 done
18561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18562 rm -f conftest.err conftest.$ac_ext
18563 if $ac_preproc_ok; then :
18564
18565 else
18566   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18568 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18569 See \`config.log' for more details." "$LINENO" 5; }
18570 fi
18571
18572 ac_ext=c
18573 ac_cpp='$CPP $CPPFLAGS'
18574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18577
18578 else
18579   _lt_caught_CXX_error=yes
18580 fi
18581
18582 ac_ext=cpp
18583 ac_cpp='$CXXCPP $CPPFLAGS'
18584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18587
18588 archive_cmds_need_lc_CXX=no
18589 allow_undefined_flag_CXX=
18590 always_export_symbols_CXX=no
18591 archive_expsym_cmds_CXX=
18592 compiler_needs_object_CXX=no
18593 export_dynamic_flag_spec_CXX=
18594 hardcode_direct_CXX=no
18595 hardcode_direct_absolute_CXX=no
18596 hardcode_libdir_flag_spec_CXX=
18597 hardcode_libdir_flag_spec_ld_CXX=
18598 hardcode_libdir_separator_CXX=
18599 hardcode_minus_L_CXX=no
18600 hardcode_shlibpath_var_CXX=unsupported
18601 hardcode_automatic_CXX=no
18602 inherit_rpath_CXX=no
18603 module_cmds_CXX=
18604 module_expsym_cmds_CXX=
18605 link_all_deplibs_CXX=unknown
18606 old_archive_cmds_CXX=$old_archive_cmds
18607 reload_flag_CXX=$reload_flag
18608 reload_cmds_CXX=$reload_cmds
18609 no_undefined_flag_CXX=
18610 whole_archive_flag_spec_CXX=
18611 enable_shared_with_static_runtimes_CXX=no
18612
18613 # Source file extension for C++ test sources.
18614 ac_ext=cpp
18615
18616 # Object file extension for compiled C++ test sources.
18617 objext=o
18618 objext_CXX=$objext
18619
18620 # No sense in running all these tests if we already determined that
18621 # the CXX compiler isn't working.  Some variables (like enable_shared)
18622 # are currently assumed to apply to all compilers on this platform,
18623 # and will be corrupted by setting them based on a non-working compiler.
18624 if test "$_lt_caught_CXX_error" != yes; then
18625   # Code to be used in simple compile tests
18626   lt_simple_compile_test_code="int some_variable = 0;"
18627
18628   # Code to be used in simple link tests
18629   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18630
18631   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18632
18633
18634
18635
18636
18637
18638 # If no C compiler was specified, use CC.
18639 LTCC=${LTCC-"$CC"}
18640
18641 # If no C compiler flags were specified, use CFLAGS.
18642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18643
18644 # Allow CC to be a program name with arguments.
18645 compiler=$CC
18646
18647
18648   # save warnings/boilerplate of simple test code
18649   ac_outfile=conftest.$ac_objext
18650 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18652 _lt_compiler_boilerplate=`cat conftest.err`
18653 $RM conftest*
18654
18655   ac_outfile=conftest.$ac_objext
18656 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18658 _lt_linker_boilerplate=`cat conftest.err`
18659 $RM -r conftest*
18660
18661
18662   # Allow CC to be a program name with arguments.
18663   lt_save_CC=$CC
18664   lt_save_LD=$LD
18665   lt_save_GCC=$GCC
18666   GCC=$GXX
18667   lt_save_with_gnu_ld=$with_gnu_ld
18668   lt_save_path_LD=$lt_cv_path_LD
18669   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18670     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18671   else
18672     $as_unset lt_cv_prog_gnu_ld
18673   fi
18674   if test -n "${lt_cv_path_LDCXX+set}"; then
18675     lt_cv_path_LD=$lt_cv_path_LDCXX
18676   else
18677     $as_unset lt_cv_path_LD
18678   fi
18679   test -z "${LDCXX+set}" || LD=$LDCXX
18680   CC=${CXX-"c++"}
18681   compiler=$CC
18682   compiler_CXX=$CC
18683   for cc_temp in $compiler""; do
18684   case $cc_temp in
18685     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18686     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18687     \-*) ;;
18688     *) break;;
18689   esac
18690 done
18691 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18692
18693
18694   if test -n "$compiler"; then
18695     # We don't want -fno-exception when compiling C++ code, so set the
18696     # no_builtin_flag separately
18697     if test "$GXX" = yes; then
18698       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18699     else
18700       lt_prog_compiler_no_builtin_flag_CXX=
18701     fi
18702
18703     if test "$GXX" = yes; then
18704       # Set up default GNU C++ configuration
18705
18706
18707
18708 # Check whether --with-gnu-ld was given.
18709 if test "${with_gnu_ld+set}" = set; then :
18710   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18711 else
18712   with_gnu_ld=no
18713 fi
18714
18715 ac_prog=ld
18716 if test "$GCC" = yes; then
18717   # Check if gcc -print-prog-name=ld gives a path.
18718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18719 $as_echo_n "checking for ld used by $CC... " >&6; }
18720   case $host in
18721   *-*-mingw*)
18722     # gcc leaves a trailing carriage return which upsets mingw
18723     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18724   *)
18725     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18726   esac
18727   case $ac_prog in
18728     # Accept absolute paths.
18729     [\\/]* | ?:[\\/]*)
18730       re_direlt='/[^/][^/]*/\.\./'
18731       # Canonicalize the pathname of ld
18732       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18733       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18734         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18735       done
18736       test -z "$LD" && LD="$ac_prog"
18737       ;;
18738   "")
18739     # If it fails, then pretend we aren't using GCC.
18740     ac_prog=ld
18741     ;;
18742   *)
18743     # If it is relative, then search for the first ld in PATH.
18744     with_gnu_ld=unknown
18745     ;;
18746   esac
18747 elif test "$with_gnu_ld" = yes; then
18748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18749 $as_echo_n "checking for GNU ld... " >&6; }
18750 else
18751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18752 $as_echo_n "checking for non-GNU ld... " >&6; }
18753 fi
18754 if test "${lt_cv_path_LD+set}" = set; then :
18755   $as_echo_n "(cached) " >&6
18756 else
18757   if test -z "$LD"; then
18758   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18759   for ac_dir in $PATH; do
18760     IFS="$lt_save_ifs"
18761     test -z "$ac_dir" && ac_dir=.
18762     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18763       lt_cv_path_LD="$ac_dir/$ac_prog"
18764       # Check to see if the program is GNU ld.  I'd rather use --version,
18765       # but apparently some variants of GNU ld only accept -v.
18766       # Break only if it was the GNU/non-GNU ld that we prefer.
18767       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18768       *GNU* | *'with BFD'*)
18769         test "$with_gnu_ld" != no && break
18770         ;;
18771       *)
18772         test "$with_gnu_ld" != yes && break
18773         ;;
18774       esac
18775     fi
18776   done
18777   IFS="$lt_save_ifs"
18778 else
18779   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18780 fi
18781 fi
18782
18783 LD="$lt_cv_path_LD"
18784 if test -n "$LD"; then
18785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18786 $as_echo "$LD" >&6; }
18787 else
18788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18789 $as_echo "no" >&6; }
18790 fi
18791 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18793 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18794 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18795   $as_echo_n "(cached) " >&6
18796 else
18797   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18798 case `$LD -v 2>&1 </dev/null` in
18799 *GNU* | *'with BFD'*)
18800   lt_cv_prog_gnu_ld=yes
18801   ;;
18802 *)
18803   lt_cv_prog_gnu_ld=no
18804   ;;
18805 esac
18806 fi
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18808 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18809 with_gnu_ld=$lt_cv_prog_gnu_ld
18810
18811
18812
18813
18814
18815
18816
18817       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18818       # archiving commands below assume that GNU ld is being used.
18819       if test "$with_gnu_ld" = yes; then
18820         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18821         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'
18822
18823         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18824         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18825
18826         # If archive_cmds runs LD, not CC, wlarc should be empty
18827         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18828         #     investigate it a little bit more. (MM)
18829         wlarc='${wl}'
18830
18831         # ancient GNU ld didn't support --whole-archive et. al.
18832         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18833           $GREP 'no-whole-archive' > /dev/null; then
18834           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18835         else
18836           whole_archive_flag_spec_CXX=
18837         fi
18838       else
18839         with_gnu_ld=no
18840         wlarc=
18841
18842         # A generic and very simple default shared library creation
18843         # command for GNU C++ for the case where it uses the native
18844         # linker, instead of GNU ld.  If possible, this setting should
18845         # overridden to take advantage of the native linker features on
18846         # the platform it is being used on.
18847         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18848       fi
18849
18850       # Commands to make compiler produce verbose output that lists
18851       # what "hidden" libraries, object files and flags are used when
18852       # linking a shared library.
18853       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18854
18855     else
18856       GXX=no
18857       with_gnu_ld=no
18858       wlarc=
18859     fi
18860
18861     # PORTME: fill in a description of your system's C++ link characteristics
18862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18863 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18864     ld_shlibs_CXX=yes
18865     case $host_os in
18866       aix3*)
18867         # FIXME: insert proper C++ library support
18868         ld_shlibs_CXX=no
18869         ;;
18870       aix[4-9]*)
18871         if test "$host_cpu" = ia64; then
18872           # On IA64, the linker does run time linking by default, so we don't
18873           # have to do anything special.
18874           aix_use_runtimelinking=no
18875           exp_sym_flag='-Bexport'
18876           no_entry_flag=""
18877         else
18878           aix_use_runtimelinking=no
18879
18880           # Test if we are trying to use run time linking or normal
18881           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18882           # need to do runtime linking.
18883           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18884             for ld_flag in $LDFLAGS; do
18885               case $ld_flag in
18886               *-brtl*)
18887                 aix_use_runtimelinking=yes
18888                 break
18889                 ;;
18890               esac
18891             done
18892             ;;
18893           esac
18894
18895           exp_sym_flag='-bexport'
18896           no_entry_flag='-bnoentry'
18897         fi
18898
18899         # When large executables or shared objects are built, AIX ld can
18900         # have problems creating the table of contents.  If linking a library
18901         # or program results in "error TOC overflow" add -mminimal-toc to
18902         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18903         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18904
18905         archive_cmds_CXX=''
18906         hardcode_direct_CXX=yes
18907         hardcode_direct_absolute_CXX=yes
18908         hardcode_libdir_separator_CXX=':'
18909         link_all_deplibs_CXX=yes
18910         file_list_spec_CXX='${wl}-f,'
18911
18912         if test "$GXX" = yes; then
18913           case $host_os in aix4.[012]|aix4.[012].*)
18914           # We only want to do this on AIX 4.2 and lower, the check
18915           # below for broken collect2 doesn't work under 4.3+
18916           collect2name=`${CC} -print-prog-name=collect2`
18917           if test -f "$collect2name" &&
18918              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18919           then
18920             # We have reworked collect2
18921             :
18922           else
18923             # We have old collect2
18924             hardcode_direct_CXX=unsupported
18925             # It fails to find uninstalled libraries when the uninstalled
18926             # path is not listed in the libpath.  Setting hardcode_minus_L
18927             # to unsupported forces relinking
18928             hardcode_minus_L_CXX=yes
18929             hardcode_libdir_flag_spec_CXX='-L$libdir'
18930             hardcode_libdir_separator_CXX=
18931           fi
18932           esac
18933           shared_flag='-shared'
18934           if test "$aix_use_runtimelinking" = yes; then
18935             shared_flag="$shared_flag "'${wl}-G'
18936           fi
18937         else
18938           # not using gcc
18939           if test "$host_cpu" = ia64; then
18940           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18941           # chokes on -Wl,-G. The following line is correct:
18942           shared_flag='-G'
18943           else
18944             if test "$aix_use_runtimelinking" = yes; then
18945               shared_flag='${wl}-G'
18946             else
18947               shared_flag='${wl}-bM:SRE'
18948             fi
18949           fi
18950         fi
18951
18952         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18953         # It seems that -bexpall does not export symbols beginning with
18954         # underscore (_), so it is better to generate a list of symbols to
18955         # export.
18956         always_export_symbols_CXX=yes
18957         if test "$aix_use_runtimelinking" = yes; then
18958           # Warning - without using the other runtime loading flags (-brtl),
18959           # -berok will link without error, but may produce a broken library.
18960           allow_undefined_flag_CXX='-berok'
18961           # Determine the default libpath from the value encoded in an empty
18962           # executable.
18963           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18964 /* end confdefs.h.  */
18965
18966 int
18967 main ()
18968 {
18969
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 if ac_fn_cxx_try_link "$LINENO"; then :
18975
18976 lt_aix_libpath_sed='
18977     /Import File Strings/,/^$/ {
18978         /^0/ {
18979             s/^0  *\(.*\)$/\1/
18980             p
18981         }
18982     }'
18983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18984 # Check for a 64-bit object if we didn't find anything.
18985 if test -z "$aix_libpath"; then
18986   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18987 fi
18988 fi
18989 rm -f core conftest.err conftest.$ac_objext \
18990     conftest$ac_exeext conftest.$ac_ext
18991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18992
18993           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18994
18995           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"
18996         else
18997           if test "$host_cpu" = ia64; then
18998             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18999             allow_undefined_flag_CXX="-z nodefs"
19000             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"
19001           else
19002             # Determine the default libpath from the value encoded in an
19003             # empty executable.
19004             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005 /* end confdefs.h.  */
19006
19007 int
19008 main ()
19009 {
19010
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 if ac_fn_cxx_try_link "$LINENO"; then :
19016
19017 lt_aix_libpath_sed='
19018     /Import File Strings/,/^$/ {
19019         /^0/ {
19020             s/^0  *\(.*\)$/\1/
19021             p
19022         }
19023     }'
19024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19025 # Check for a 64-bit object if we didn't find anything.
19026 if test -z "$aix_libpath"; then
19027   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19028 fi
19029 fi
19030 rm -f core conftest.err conftest.$ac_objext \
19031     conftest$ac_exeext conftest.$ac_ext
19032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19033
19034             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19035             # Warning - without using the other run time loading flags,
19036             # -berok will link without error, but may produce a broken library.
19037             no_undefined_flag_CXX=' ${wl}-bernotok'
19038             allow_undefined_flag_CXX=' ${wl}-berok'
19039             if test "$with_gnu_ld" = yes; then
19040               # We only use this code for GNU lds that support --whole-archive.
19041               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19042             else
19043               # Exported symbols can be pulled into shared objects from archives
19044               whole_archive_flag_spec_CXX='$convenience'
19045             fi
19046             archive_cmds_need_lc_CXX=yes
19047             # This is similar to how AIX traditionally builds its shared
19048             # libraries.
19049             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'
19050           fi
19051         fi
19052         ;;
19053
19054       beos*)
19055         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19056           allow_undefined_flag_CXX=unsupported
19057           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19058           # support --undefined.  This deserves some investigation.  FIXME
19059           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19060         else
19061           ld_shlibs_CXX=no
19062         fi
19063         ;;
19064
19065       chorus*)
19066         case $cc_basename in
19067           *)
19068           # FIXME: insert proper C++ library support
19069           ld_shlibs_CXX=no
19070           ;;
19071         esac
19072         ;;
19073
19074       cygwin* | mingw* | pw32* | cegcc*)
19075         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19076         # as there is no search path for DLLs.
19077         hardcode_libdir_flag_spec_CXX='-L$libdir'
19078         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19079         allow_undefined_flag_CXX=unsupported
19080         always_export_symbols_CXX=no
19081         enable_shared_with_static_runtimes_CXX=yes
19082
19083         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19084           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'
19085           # If the export-symbols file already is a .def file (1st line
19086           # is EXPORTS), use it as is; otherwise, prepend...
19087           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19088             cp $export_symbols $output_objdir/$soname.def;
19089           else
19090             echo EXPORTS > $output_objdir/$soname.def;
19091             cat $export_symbols >> $output_objdir/$soname.def;
19092           fi~
19093           $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'
19094         else
19095           ld_shlibs_CXX=no
19096         fi
19097         ;;
19098       darwin* | rhapsody*)
19099
19100
19101   archive_cmds_need_lc_CXX=no
19102   hardcode_direct_CXX=no
19103   hardcode_automatic_CXX=yes
19104   hardcode_shlibpath_var_CXX=unsupported
19105   if test "$lt_cv_ld_force_load" = "yes"; then
19106     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\"`'
19107   else
19108     whole_archive_flag_spec_CXX=''
19109   fi
19110   link_all_deplibs_CXX=yes
19111   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19112   case $cc_basename in
19113      ifort*) _lt_dar_can_shared=yes ;;
19114      *) _lt_dar_can_shared=$GCC ;;
19115   esac
19116   if test "$_lt_dar_can_shared" = "yes"; then
19117     output_verbose_link_cmd=func_echo_all
19118     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}"
19119     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19120     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}"
19121     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}"
19122        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19123       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}"
19124       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}"
19125     fi
19126
19127   else
19128   ld_shlibs_CXX=no
19129   fi
19130
19131         ;;
19132
19133       dgux*)
19134         case $cc_basename in
19135           ec++*)
19136             # FIXME: insert proper C++ library support
19137             ld_shlibs_CXX=no
19138             ;;
19139           ghcx*)
19140             # Green Hills C++ Compiler
19141             # FIXME: insert proper C++ library support
19142             ld_shlibs_CXX=no
19143             ;;
19144           *)
19145             # FIXME: insert proper C++ library support
19146             ld_shlibs_CXX=no
19147             ;;
19148         esac
19149         ;;
19150
19151       freebsd2.*)
19152         # C++ shared libraries reported to be fairly broken before
19153         # switch to ELF
19154         ld_shlibs_CXX=no
19155         ;;
19156
19157       freebsd-elf*)
19158         archive_cmds_need_lc_CXX=no
19159         ;;
19160
19161       freebsd* | dragonfly*)
19162         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19163         # conventions
19164         ld_shlibs_CXX=yes
19165         ;;
19166
19167       gnu*)
19168         ;;
19169
19170       haiku*)
19171         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172         link_all_deplibs_CXX=yes
19173         ;;
19174
19175       hpux9*)
19176         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19177         hardcode_libdir_separator_CXX=:
19178         export_dynamic_flag_spec_CXX='${wl}-E'
19179         hardcode_direct_CXX=yes
19180         hardcode_minus_L_CXX=yes # Not in the search PATH,
19181                                              # but as the default
19182                                              # location of the library.
19183
19184         case $cc_basename in
19185           CC*)
19186             # FIXME: insert proper C++ library support
19187             ld_shlibs_CXX=no
19188             ;;
19189           aCC*)
19190             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'
19191             # Commands to make compiler produce verbose output that lists
19192             # what "hidden" libraries, object files and flags are used when
19193             # linking a shared library.
19194             #
19195             # There doesn't appear to be a way to prevent this compiler from
19196             # explicitly linking system object files so we need to strip them
19197             # from the output so that they don't get included in the library
19198             # dependencies.
19199             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"'
19200             ;;
19201           *)
19202             if test "$GXX" = yes; then
19203               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'
19204             else
19205               # FIXME: insert proper C++ library support
19206               ld_shlibs_CXX=no
19207             fi
19208             ;;
19209         esac
19210         ;;
19211
19212       hpux10*|hpux11*)
19213         if test $with_gnu_ld = no; then
19214           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19215           hardcode_libdir_separator_CXX=:
19216
19217           case $host_cpu in
19218             hppa*64*|ia64*)
19219               ;;
19220             *)
19221               export_dynamic_flag_spec_CXX='${wl}-E'
19222               ;;
19223           esac
19224         fi
19225         case $host_cpu in
19226           hppa*64*|ia64*)
19227             hardcode_direct_CXX=no
19228             hardcode_shlibpath_var_CXX=no
19229             ;;
19230           *)
19231             hardcode_direct_CXX=yes
19232             hardcode_direct_absolute_CXX=yes
19233             hardcode_minus_L_CXX=yes # Not in the search PATH,
19234                                                  # but as the default
19235                                                  # location of the library.
19236             ;;
19237         esac
19238
19239         case $cc_basename in
19240           CC*)
19241             # FIXME: insert proper C++ library support
19242             ld_shlibs_CXX=no
19243             ;;
19244           aCC*)
19245             case $host_cpu in
19246               hppa*64*)
19247                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19248                 ;;
19249               ia64*)
19250                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251                 ;;
19252               *)
19253                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19254                 ;;
19255             esac
19256             # Commands to make compiler produce verbose output that lists
19257             # what "hidden" libraries, object files and flags are used when
19258             # linking a shared library.
19259             #
19260             # There doesn't appear to be a way to prevent this compiler from
19261             # explicitly linking system object files so we need to strip them
19262             # from the output so that they don't get included in the library
19263             # dependencies.
19264             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"'
19265             ;;
19266           *)
19267             if test "$GXX" = yes; then
19268               if test $with_gnu_ld = no; then
19269                 case $host_cpu in
19270                   hppa*64*)
19271                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19272                     ;;
19273                   ia64*)
19274                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19275                     ;;
19276                   *)
19277                     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'
19278                     ;;
19279                 esac
19280               fi
19281             else
19282               # FIXME: insert proper C++ library support
19283               ld_shlibs_CXX=no
19284             fi
19285             ;;
19286         esac
19287         ;;
19288
19289       interix[3-9]*)
19290         hardcode_direct_CXX=no
19291         hardcode_shlibpath_var_CXX=no
19292         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19293         export_dynamic_flag_spec_CXX='${wl}-E'
19294         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19295         # Instead, shared libraries are loaded at an image base (0x10000000 by
19296         # default) and relocated if they conflict, which is a slow very memory
19297         # consuming and fragmenting process.  To avoid this, we pick a random,
19298         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19299         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19300         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'
19301         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'
19302         ;;
19303       irix5* | irix6*)
19304         case $cc_basename in
19305           CC*)
19306             # SGI C++
19307             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'
19308
19309             # Archives containing C++ object files must be created using
19310             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19311             # necessary to make sure instantiated templates are included
19312             # in the archive.
19313             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19314             ;;
19315           *)
19316             if test "$GXX" = yes; then
19317               if test "$with_gnu_ld" = no; then
19318                 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'
19319               else
19320                 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'
19321               fi
19322             fi
19323             link_all_deplibs_CXX=yes
19324             ;;
19325         esac
19326         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19327         hardcode_libdir_separator_CXX=:
19328         inherit_rpath_CXX=yes
19329         ;;
19330
19331       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19332         case $cc_basename in
19333           KCC*)
19334             # Kuck and Associates, Inc. (KAI) C++ Compiler
19335
19336             # KCC will only create a shared library if the output file
19337             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19338             # to its proper name (with version) after linking.
19339             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'
19340             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'
19341             # Commands to make compiler produce verbose output that lists
19342             # what "hidden" libraries, object files and flags are used when
19343             # linking a shared library.
19344             #
19345             # There doesn't appear to be a way to prevent this compiler from
19346             # explicitly linking system object files so we need to strip them
19347             # from the output so that they don't get included in the library
19348             # dependencies.
19349             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"'
19350
19351             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19352             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19353
19354             # Archives containing C++ object files must be created using
19355             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19356             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19357             ;;
19358           icpc* | ecpc* )
19359             # Intel C++
19360             with_gnu_ld=yes
19361             # version 8.0 and above of icpc choke on multiply defined symbols
19362             # if we add $predep_objects and $postdep_objects, however 7.1 and
19363             # earlier do not add the objects themselves.
19364             case `$CC -V 2>&1` in
19365               *"Version 7."*)
19366                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19367                 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'
19368                 ;;
19369               *)  # Version 8.0 or newer
19370                 tmp_idyn=
19371                 case $host_cpu in
19372                   ia64*) tmp_idyn=' -i_dynamic';;
19373                 esac
19374                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19375                 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'
19376                 ;;
19377             esac
19378             archive_cmds_need_lc_CXX=no
19379             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19380             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19381             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19382             ;;
19383           pgCC* | pgcpp*)
19384             # Portland Group C++ compiler
19385             case `$CC -V` in
19386             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19387               prelink_cmds_CXX='tpldir=Template.dir~
19388                 rm -rf $tpldir~
19389                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19390                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19391               old_archive_cmds_CXX='tpldir=Template.dir~
19392                 rm -rf $tpldir~
19393                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19394                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19395                 $RANLIB $oldlib'
19396               archive_cmds_CXX='tpldir=Template.dir~
19397                 rm -rf $tpldir~
19398                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19399                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19400               archive_expsym_cmds_CXX='tpldir=Template.dir~
19401                 rm -rf $tpldir~
19402                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19403                 $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'
19404               ;;
19405             *) # Version 6 and above use weak symbols
19406               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19407               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'
19408               ;;
19409             esac
19410
19411             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19412             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19413             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'
19414             ;;
19415           cxx*)
19416             # Compaq C++
19417             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19418             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'
19419
19420             runpath_var=LD_RUN_PATH
19421             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19422             hardcode_libdir_separator_CXX=:
19423
19424             # Commands to make compiler produce verbose output that lists
19425             # what "hidden" libraries, object files and flags are used when
19426             # linking a shared library.
19427             #
19428             # There doesn't appear to be a way to prevent this compiler from
19429             # explicitly linking system object files so we need to strip them
19430             # from the output so that they don't get included in the library
19431             # dependencies.
19432             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'
19433             ;;
19434           xl* | mpixl* | bgxl*)
19435             # IBM XL 8.0 on PPC, with GNU ld
19436             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19437             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19438             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19439             if test "x$supports_anon_versioning" = xyes; then
19440               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19441                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19442                 echo "local: *; };" >> $output_objdir/$libname.ver~
19443                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19444             fi
19445             ;;
19446           *)
19447             case `$CC -V 2>&1 | sed 5q` in
19448             *Sun\ C*)
19449               # Sun C++ 5.9
19450               no_undefined_flag_CXX=' -zdefs'
19451               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19452               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'
19453               hardcode_libdir_flag_spec_CXX='-R$libdir'
19454               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'
19455               compiler_needs_object_CXX=yes
19456
19457               # Not sure whether something based on
19458               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19459               # would be better.
19460               output_verbose_link_cmd='func_echo_all'
19461
19462               # Archives containing C++ object files must be created using
19463               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19464               # necessary to make sure instantiated templates are included
19465               # in the archive.
19466               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19467               ;;
19468             esac
19469             ;;
19470         esac
19471         ;;
19472
19473       lynxos*)
19474         # FIXME: insert proper C++ library support
19475         ld_shlibs_CXX=no
19476         ;;
19477
19478       m88k*)
19479         # FIXME: insert proper C++ library support
19480         ld_shlibs_CXX=no
19481         ;;
19482
19483       mvs*)
19484         case $cc_basename in
19485           cxx*)
19486             # FIXME: insert proper C++ library support
19487             ld_shlibs_CXX=no
19488             ;;
19489           *)
19490             # FIXME: insert proper C++ library support
19491             ld_shlibs_CXX=no
19492             ;;
19493         esac
19494         ;;
19495
19496       netbsd*)
19497         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19498           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19499           wlarc=
19500           hardcode_libdir_flag_spec_CXX='-R$libdir'
19501           hardcode_direct_CXX=yes
19502           hardcode_shlibpath_var_CXX=no
19503         fi
19504         # Workaround some broken pre-1.5 toolchains
19505         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19506         ;;
19507
19508       *nto* | *qnx*)
19509         ld_shlibs_CXX=yes
19510         ;;
19511
19512       openbsd2*)
19513         # C++ shared libraries are fairly broken
19514         ld_shlibs_CXX=no
19515         ;;
19516
19517       openbsd*)
19518         if test -f /usr/libexec/ld.so; then
19519           hardcode_direct_CXX=yes
19520           hardcode_shlibpath_var_CXX=no
19521           hardcode_direct_absolute_CXX=yes
19522           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19523           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19524           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19525             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19526             export_dynamic_flag_spec_CXX='${wl}-E'
19527             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19528           fi
19529           output_verbose_link_cmd=func_echo_all
19530         else
19531           ld_shlibs_CXX=no
19532         fi
19533         ;;
19534
19535       osf3* | osf4* | osf5*)
19536         case $cc_basename in
19537           KCC*)
19538             # Kuck and Associates, Inc. (KAI) C++ Compiler
19539
19540             # KCC will only create a shared library if the output file
19541             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19542             # to its proper name (with version) after linking.
19543             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'
19544
19545             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19546             hardcode_libdir_separator_CXX=:
19547
19548             # Archives containing C++ object files must be created using
19549             # the KAI C++ compiler.
19550             case $host in
19551               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19552               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19553             esac
19554             ;;
19555           RCC*)
19556             # Rational C++ 2.4.1
19557             # FIXME: insert proper C++ library support
19558             ld_shlibs_CXX=no
19559             ;;
19560           cxx*)
19561             case $host in
19562               osf3*)
19563                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19564                 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'
19565                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19566                 ;;
19567               *)
19568                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19569                 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'
19570                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19571                   echo "-hidden">> $lib.exp~
19572                   $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~
19573                   $RM $lib.exp'
19574                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19575                 ;;
19576             esac
19577
19578             hardcode_libdir_separator_CXX=:
19579
19580             # Commands to make compiler produce verbose output that lists
19581             # what "hidden" libraries, object files and flags are used when
19582             # linking a shared library.
19583             #
19584             # There doesn't appear to be a way to prevent this compiler from
19585             # explicitly linking system object files so we need to strip them
19586             # from the output so that they don't get included in the library
19587             # dependencies.
19588             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"'
19589             ;;
19590           *)
19591             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19592               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19593               case $host in
19594                 osf3*)
19595                   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'
19596                   ;;
19597                 *)
19598                   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'
19599                   ;;
19600               esac
19601
19602               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19603               hardcode_libdir_separator_CXX=:
19604
19605               # Commands to make compiler produce verbose output that lists
19606               # what "hidden" libraries, object files and flags are used when
19607               # linking a shared library.
19608               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19609
19610             else
19611               # FIXME: insert proper C++ library support
19612               ld_shlibs_CXX=no
19613             fi
19614             ;;
19615         esac
19616         ;;
19617
19618       psos*)
19619         # FIXME: insert proper C++ library support
19620         ld_shlibs_CXX=no
19621         ;;
19622
19623       sunos4*)
19624         case $cc_basename in
19625           CC*)
19626             # Sun C++ 4.x
19627             # FIXME: insert proper C++ library support
19628             ld_shlibs_CXX=no
19629             ;;
19630           lcc*)
19631             # Lucid
19632             # FIXME: insert proper C++ library support
19633             ld_shlibs_CXX=no
19634             ;;
19635           *)
19636             # FIXME: insert proper C++ library support
19637             ld_shlibs_CXX=no
19638             ;;
19639         esac
19640         ;;
19641
19642       solaris*)
19643         case $cc_basename in
19644           CC*)
19645             # Sun C++ 4.2, 5.x and Centerline C++
19646             archive_cmds_need_lc_CXX=yes
19647             no_undefined_flag_CXX=' -zdefs'
19648             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19649             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19650               $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'
19651
19652             hardcode_libdir_flag_spec_CXX='-R$libdir'
19653             hardcode_shlibpath_var_CXX=no
19654             case $host_os in
19655               solaris2.[0-5] | solaris2.[0-5].*) ;;
19656               *)
19657                 # The compiler driver will combine and reorder linker options,
19658                 # but understands `-z linker_flag'.
19659                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19660                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19661                 ;;
19662             esac
19663             link_all_deplibs_CXX=yes
19664
19665             output_verbose_link_cmd='func_echo_all'
19666
19667             # Archives containing C++ object files must be created using
19668             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19669             # necessary to make sure instantiated templates are included
19670             # in the archive.
19671             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19672             ;;
19673           gcx*)
19674             # Green Hills C++ Compiler
19675             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19676
19677             # The C++ compiler must be used to create the archive.
19678             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19679             ;;
19680           *)
19681             # GNU C++ compiler with Solaris linker
19682             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19683               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19684               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19685                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19686                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19687                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19688
19689                 # Commands to make compiler produce verbose output that lists
19690                 # what "hidden" libraries, object files and flags are used when
19691                 # linking a shared library.
19692                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19693               else
19694                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19695                 # platform.
19696                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19697                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19698                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19699
19700                 # Commands to make compiler produce verbose output that lists
19701                 # what "hidden" libraries, object files and flags are used when
19702                 # linking a shared library.
19703                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19704               fi
19705
19706               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19707               case $host_os in
19708                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19709                 *)
19710                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19711                   ;;
19712               esac
19713             fi
19714             ;;
19715         esac
19716         ;;
19717
19718     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19719       no_undefined_flag_CXX='${wl}-z,text'
19720       archive_cmds_need_lc_CXX=no
19721       hardcode_shlibpath_var_CXX=no
19722       runpath_var='LD_RUN_PATH'
19723
19724       case $cc_basename in
19725         CC*)
19726           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19727           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19728           ;;
19729         *)
19730           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19731           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19732           ;;
19733       esac
19734       ;;
19735
19736       sysv5* | sco3.2v5* | sco5v6*)
19737         # Note: We can NOT use -z defs as we might desire, because we do not
19738         # link with -lc, and that would cause any symbols used from libc to
19739         # always be unresolved, which means just about no library would
19740         # ever link correctly.  If we're not using GNU ld we use -z text
19741         # though, which does catch some bad symbols but isn't as heavy-handed
19742         # as -z defs.
19743         no_undefined_flag_CXX='${wl}-z,text'
19744         allow_undefined_flag_CXX='${wl}-z,nodefs'
19745         archive_cmds_need_lc_CXX=no
19746         hardcode_shlibpath_var_CXX=no
19747         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19748         hardcode_libdir_separator_CXX=':'
19749         link_all_deplibs_CXX=yes
19750         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19751         runpath_var='LD_RUN_PATH'
19752
19753         case $cc_basename in
19754           CC*)
19755             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19756             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19757             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19758               '"$old_archive_cmds_CXX"
19759             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19760               '"$reload_cmds_CXX"
19761             ;;
19762           *)
19763             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19764             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19765             ;;
19766         esac
19767       ;;
19768
19769       tandem*)
19770         case $cc_basename in
19771           NCC*)
19772             # NonStop-UX NCC 3.20
19773             # FIXME: insert proper C++ library support
19774             ld_shlibs_CXX=no
19775             ;;
19776           *)
19777             # FIXME: insert proper C++ library support
19778             ld_shlibs_CXX=no
19779             ;;
19780         esac
19781         ;;
19782
19783       vxworks*)
19784         # FIXME: insert proper C++ library support
19785         ld_shlibs_CXX=no
19786         ;;
19787
19788       *)
19789         # FIXME: insert proper C++ library support
19790         ld_shlibs_CXX=no
19791         ;;
19792     esac
19793
19794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19795 $as_echo "$ld_shlibs_CXX" >&6; }
19796     test "$ld_shlibs_CXX" = no && can_build_shared=no
19797
19798     GCC_CXX="$GXX"
19799     LD_CXX="$LD"
19800
19801     ## CAVEAT EMPTOR:
19802     ## There is no encapsulation within the following macros, do not change
19803     ## the running order or otherwise move them around unless you know exactly
19804     ## what you are doing...
19805     # Dependencies to place before and after the object being linked:
19806 predep_objects_CXX=
19807 postdep_objects_CXX=
19808 predeps_CXX=
19809 postdeps_CXX=
19810 compiler_lib_search_path_CXX=
19811
19812 cat > conftest.$ac_ext <<_LT_EOF
19813 class Foo
19814 {
19815 public:
19816   Foo (void) { a = 0; }
19817 private:
19818   int a;
19819 };
19820 _LT_EOF
19821
19822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19823   (eval $ac_compile) 2>&5
19824   ac_status=$?
19825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19826   test $ac_status = 0; }; then
19827   # Parse the compiler output and extract the necessary
19828   # objects, libraries and library flags.
19829
19830   # Sentinel used to keep track of whether or not we are before
19831   # the conftest object file.
19832   pre_test_object_deps_done=no
19833
19834   for p in `eval "$output_verbose_link_cmd"`; do
19835     case $p in
19836
19837     -L* | -R* | -l*)
19838        # Some compilers place space between "-{L,R}" and the path.
19839        # Remove the space.
19840        if test $p = "-L" ||
19841           test $p = "-R"; then
19842          prev=$p
19843          continue
19844        else
19845          prev=
19846        fi
19847
19848        if test "$pre_test_object_deps_done" = no; then
19849          case $p in
19850          -L* | -R*)
19851            # Internal compiler library paths should come after those
19852            # provided the user.  The postdeps already come after the
19853            # user supplied libs so there is no need to process them.
19854            if test -z "$compiler_lib_search_path_CXX"; then
19855              compiler_lib_search_path_CXX="${prev}${p}"
19856            else
19857              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19858            fi
19859            ;;
19860          # The "-l" case would never come before the object being
19861          # linked, so don't bother handling this case.
19862          esac
19863        else
19864          if test -z "$postdeps_CXX"; then
19865            postdeps_CXX="${prev}${p}"
19866          else
19867            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19868          fi
19869        fi
19870        ;;
19871
19872     *.$objext)
19873        # This assumes that the test object file only shows up
19874        # once in the compiler output.
19875        if test "$p" = "conftest.$objext"; then
19876          pre_test_object_deps_done=yes
19877          continue
19878        fi
19879
19880        if test "$pre_test_object_deps_done" = no; then
19881          if test -z "$predep_objects_CXX"; then
19882            predep_objects_CXX="$p"
19883          else
19884            predep_objects_CXX="$predep_objects_CXX $p"
19885          fi
19886        else
19887          if test -z "$postdep_objects_CXX"; then
19888            postdep_objects_CXX="$p"
19889          else
19890            postdep_objects_CXX="$postdep_objects_CXX $p"
19891          fi
19892        fi
19893        ;;
19894
19895     *) ;; # Ignore the rest.
19896
19897     esac
19898   done
19899
19900   # Clean up.
19901   rm -f a.out a.exe
19902 else
19903   echo "libtool.m4: error: problem compiling CXX test program"
19904 fi
19905
19906 $RM -f confest.$objext
19907
19908 # PORTME: override above test on systems where it is broken
19909 case $host_os in
19910 interix[3-9]*)
19911   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19912   # hack all around it, let's just trust "g++" to DTRT.
19913   predep_objects_CXX=
19914   postdep_objects_CXX=
19915   postdeps_CXX=
19916   ;;
19917
19918 linux*)
19919   case `$CC -V 2>&1 | sed 5q` in
19920   *Sun\ C*)
19921     # Sun C++ 5.9
19922
19923     # The more standards-conforming stlport4 library is
19924     # incompatible with the Cstd library. Avoid specifying
19925     # it if it's in CXXFLAGS. Ignore libCrun as
19926     # -library=stlport4 depends on it.
19927     case " $CXX $CXXFLAGS " in
19928     *" -library=stlport4 "*)
19929       solaris_use_stlport4=yes
19930       ;;
19931     esac
19932
19933     if test "$solaris_use_stlport4" != yes; then
19934       postdeps_CXX='-library=Cstd -library=Crun'
19935     fi
19936     ;;
19937   esac
19938   ;;
19939
19940 solaris*)
19941   case $cc_basename in
19942   CC*)
19943     # The more standards-conforming stlport4 library is
19944     # incompatible with the Cstd library. Avoid specifying
19945     # it if it's in CXXFLAGS. Ignore libCrun as
19946     # -library=stlport4 depends on it.
19947     case " $CXX $CXXFLAGS " in
19948     *" -library=stlport4 "*)
19949       solaris_use_stlport4=yes
19950       ;;
19951     esac
19952
19953     # Adding this requires a known-good setup of shared libraries for
19954     # Sun compiler versions before 5.6, else PIC objects from an old
19955     # archive will be linked into the output, leading to subtle bugs.
19956     if test "$solaris_use_stlport4" != yes; then
19957       postdeps_CXX='-library=Cstd -library=Crun'
19958     fi
19959     ;;
19960   esac
19961   ;;
19962 esac
19963
19964
19965 case " $postdeps_CXX " in
19966 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19967 esac
19968  compiler_lib_search_dirs_CXX=
19969 if test -n "${compiler_lib_search_path_CXX}"; then
19970  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19971 fi
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003     lt_prog_compiler_wl_CXX=
20004 lt_prog_compiler_pic_CXX=
20005 lt_prog_compiler_static_CXX=
20006
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20008 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20009
20010   # C++ specific cases for pic, static, wl, etc.
20011   if test "$GXX" = yes; then
20012     lt_prog_compiler_wl_CXX='-Wl,'
20013     lt_prog_compiler_static_CXX='-static'
20014
20015     case $host_os in
20016     aix*)
20017       # All AIX code is PIC.
20018       if test "$host_cpu" = ia64; then
20019         # AIX 5 now supports IA64 processor
20020         lt_prog_compiler_static_CXX='-Bstatic'
20021       fi
20022       ;;
20023
20024     amigaos*)
20025       case $host_cpu in
20026       powerpc)
20027             # see comment about AmigaOS4 .so support
20028             lt_prog_compiler_pic_CXX='-fPIC'
20029         ;;
20030       m68k)
20031             # FIXME: we need at least 68020 code to build shared libraries, but
20032             # adding the `-m68020' flag to GCC prevents building anything better,
20033             # like `-m68040'.
20034             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20035         ;;
20036       esac
20037       ;;
20038
20039     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20040       # PIC is the default for these OSes.
20041       ;;
20042     mingw* | cygwin* | os2* | pw32* | cegcc*)
20043       # This hack is so that the source file can tell whether it is being
20044       # built for inclusion in a dll (and should export symbols for example).
20045       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20046       # (--disable-auto-import) libraries
20047       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20048       ;;
20049     darwin* | rhapsody*)
20050       # PIC is the default on this platform
20051       # Common symbols not allowed in MH_DYLIB files
20052       lt_prog_compiler_pic_CXX='-fno-common'
20053       ;;
20054     *djgpp*)
20055       # DJGPP does not support shared libraries at all
20056       lt_prog_compiler_pic_CXX=
20057       ;;
20058     haiku*)
20059       # PIC is the default for Haiku.
20060       # The "-static" flag exists, but is broken.
20061       lt_prog_compiler_static_CXX=
20062       ;;
20063     interix[3-9]*)
20064       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20065       # Instead, we relocate shared libraries at runtime.
20066       ;;
20067     sysv4*MP*)
20068       if test -d /usr/nec; then
20069         lt_prog_compiler_pic_CXX=-Kconform_pic
20070       fi
20071       ;;
20072     hpux*)
20073       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20074       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20075       # sets the default TLS model and affects inlining.
20076       case $host_cpu in
20077       hppa*64*)
20078         ;;
20079       *)
20080         lt_prog_compiler_pic_CXX='-fPIC'
20081         ;;
20082       esac
20083       ;;
20084     *qnx* | *nto*)
20085       # QNX uses GNU C++, but need to define -shared option too, otherwise
20086       # it will coredump.
20087       lt_prog_compiler_pic_CXX='-fPIC -shared'
20088       ;;
20089     *)
20090       lt_prog_compiler_pic_CXX='-fPIC'
20091       ;;
20092     esac
20093   else
20094     case $host_os in
20095       aix[4-9]*)
20096         # All AIX code is PIC.
20097         if test "$host_cpu" = ia64; then
20098           # AIX 5 now supports IA64 processor
20099           lt_prog_compiler_static_CXX='-Bstatic'
20100         else
20101           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20102         fi
20103         ;;
20104       chorus*)
20105         case $cc_basename in
20106         cxch68*)
20107           # Green Hills C++ Compiler
20108           # _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"
20109           ;;
20110         esac
20111         ;;
20112       dgux*)
20113         case $cc_basename in
20114           ec++*)
20115             lt_prog_compiler_pic_CXX='-KPIC'
20116             ;;
20117           ghcx*)
20118             # Green Hills C++ Compiler
20119             lt_prog_compiler_pic_CXX='-pic'
20120             ;;
20121           *)
20122             ;;
20123         esac
20124         ;;
20125       freebsd* | dragonfly*)
20126         # FreeBSD uses GNU C++
20127         ;;
20128       hpux9* | hpux10* | hpux11*)
20129         case $cc_basename in
20130           CC*)
20131             lt_prog_compiler_wl_CXX='-Wl,'
20132             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20133             if test "$host_cpu" != ia64; then
20134               lt_prog_compiler_pic_CXX='+Z'
20135             fi
20136             ;;
20137           aCC*)
20138             lt_prog_compiler_wl_CXX='-Wl,'
20139             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20140             case $host_cpu in
20141             hppa*64*|ia64*)
20142               # +Z the default
20143               ;;
20144             *)
20145               lt_prog_compiler_pic_CXX='+Z'
20146               ;;
20147             esac
20148             ;;
20149           *)
20150             ;;
20151         esac
20152         ;;
20153       interix*)
20154         # This is c89, which is MS Visual C++ (no shared libs)
20155         # Anyone wants to do a port?
20156         ;;
20157       irix5* | irix6* | nonstopux*)
20158         case $cc_basename in
20159           CC*)
20160             lt_prog_compiler_wl_CXX='-Wl,'
20161             lt_prog_compiler_static_CXX='-non_shared'
20162             # CC pic flag -KPIC is the default.
20163             ;;
20164           *)
20165             ;;
20166         esac
20167         ;;
20168       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20169         case $cc_basename in
20170           KCC*)
20171             # KAI C++ Compiler
20172             lt_prog_compiler_wl_CXX='--backend -Wl,'
20173             lt_prog_compiler_pic_CXX='-fPIC'
20174             ;;
20175           ecpc* )
20176             # old Intel C++ for x86_64 which still supported -KPIC.
20177             lt_prog_compiler_wl_CXX='-Wl,'
20178             lt_prog_compiler_pic_CXX='-KPIC'
20179             lt_prog_compiler_static_CXX='-static'
20180             ;;
20181           icpc* )
20182             # Intel C++, used to be incompatible with GCC.
20183             # ICC 10 doesn't accept -KPIC any more.
20184             lt_prog_compiler_wl_CXX='-Wl,'
20185             lt_prog_compiler_pic_CXX='-fPIC'
20186             lt_prog_compiler_static_CXX='-static'
20187             ;;
20188           pgCC* | pgcpp*)
20189             # Portland Group C++ compiler
20190             lt_prog_compiler_wl_CXX='-Wl,'
20191             lt_prog_compiler_pic_CXX='-fpic'
20192             lt_prog_compiler_static_CXX='-Bstatic'
20193             ;;
20194           cxx*)
20195             # Compaq C++
20196             # Make sure the PIC flag is empty.  It appears that all Alpha
20197             # Linux and Compaq Tru64 Unix objects are PIC.
20198             lt_prog_compiler_pic_CXX=
20199             lt_prog_compiler_static_CXX='-non_shared'
20200             ;;
20201           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20202             # IBM XL 8.0, 9.0 on PPC and BlueGene
20203             lt_prog_compiler_wl_CXX='-Wl,'
20204             lt_prog_compiler_pic_CXX='-qpic'
20205             lt_prog_compiler_static_CXX='-qstaticlink'
20206             ;;
20207           *)
20208             case `$CC -V 2>&1 | sed 5q` in
20209             *Sun\ C*)
20210               # Sun C++ 5.9
20211               lt_prog_compiler_pic_CXX='-KPIC'
20212               lt_prog_compiler_static_CXX='-Bstatic'
20213               lt_prog_compiler_wl_CXX='-Qoption ld '
20214               ;;
20215             esac
20216             ;;
20217         esac
20218         ;;
20219       lynxos*)
20220         ;;
20221       m88k*)
20222         ;;
20223       mvs*)
20224         case $cc_basename in
20225           cxx*)
20226             lt_prog_compiler_pic_CXX='-W c,exportall'
20227             ;;
20228           *)
20229             ;;
20230         esac
20231         ;;
20232       netbsd*)
20233         ;;
20234       *qnx* | *nto*)
20235         # QNX uses GNU C++, but need to define -shared option too, otherwise
20236         # it will coredump.
20237         lt_prog_compiler_pic_CXX='-fPIC -shared'
20238         ;;
20239       osf3* | osf4* | osf5*)
20240         case $cc_basename in
20241           KCC*)
20242             lt_prog_compiler_wl_CXX='--backend -Wl,'
20243             ;;
20244           RCC*)
20245             # Rational C++ 2.4.1
20246             lt_prog_compiler_pic_CXX='-pic'
20247             ;;
20248           cxx*)
20249             # Digital/Compaq C++
20250             lt_prog_compiler_wl_CXX='-Wl,'
20251             # Make sure the PIC flag is empty.  It appears that all Alpha
20252             # Linux and Compaq Tru64 Unix objects are PIC.
20253             lt_prog_compiler_pic_CXX=
20254             lt_prog_compiler_static_CXX='-non_shared'
20255             ;;
20256           *)
20257             ;;
20258         esac
20259         ;;
20260       psos*)
20261         ;;
20262       solaris*)
20263         case $cc_basename in
20264           CC*)
20265             # Sun C++ 4.2, 5.x and Centerline C++
20266             lt_prog_compiler_pic_CXX='-KPIC'
20267             lt_prog_compiler_static_CXX='-Bstatic'
20268             lt_prog_compiler_wl_CXX='-Qoption ld '
20269             ;;
20270           gcx*)
20271             # Green Hills C++ Compiler
20272             lt_prog_compiler_pic_CXX='-PIC'
20273             ;;
20274           *)
20275             ;;
20276         esac
20277         ;;
20278       sunos4*)
20279         case $cc_basename in
20280           CC*)
20281             # Sun C++ 4.x
20282             lt_prog_compiler_pic_CXX='-pic'
20283             lt_prog_compiler_static_CXX='-Bstatic'
20284             ;;
20285           lcc*)
20286             # Lucid
20287             lt_prog_compiler_pic_CXX='-pic'
20288             ;;
20289           *)
20290             ;;
20291         esac
20292         ;;
20293       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20294         case $cc_basename in
20295           CC*)
20296             lt_prog_compiler_wl_CXX='-Wl,'
20297             lt_prog_compiler_pic_CXX='-KPIC'
20298             lt_prog_compiler_static_CXX='-Bstatic'
20299             ;;
20300         esac
20301         ;;
20302       tandem*)
20303         case $cc_basename in
20304           NCC*)
20305             # NonStop-UX NCC 3.20
20306             lt_prog_compiler_pic_CXX='-KPIC'
20307             ;;
20308           *)
20309             ;;
20310         esac
20311         ;;
20312       vxworks*)
20313         ;;
20314       *)
20315         lt_prog_compiler_can_build_shared_CXX=no
20316         ;;
20317     esac
20318   fi
20319
20320 case $host_os in
20321   # For platforms which do not support PIC, -DPIC is meaningless:
20322   *djgpp*)
20323     lt_prog_compiler_pic_CXX=
20324     ;;
20325   *)
20326     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20327     ;;
20328 esac
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20330 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20331
20332
20333
20334 #
20335 # Check to make sure the PIC flag actually works.
20336 #
20337 if test -n "$lt_prog_compiler_pic_CXX"; then
20338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20339 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20340 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20341   $as_echo_n "(cached) " >&6
20342 else
20343   lt_cv_prog_compiler_pic_works_CXX=no
20344    ac_outfile=conftest.$ac_objext
20345    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20346    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20347    # Insert the option either (1) after the last *FLAGS variable, or
20348    # (2) before a word containing "conftest.", or (3) at the end.
20349    # Note that $ac_compile itself does not contain backslashes and begins
20350    # with a dollar sign (not a hyphen), so the echo should work correctly.
20351    # The option is referenced via a variable to avoid confusing sed.
20352    lt_compile=`echo "$ac_compile" | $SED \
20353    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20355    -e 's:$: $lt_compiler_flag:'`
20356    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20357    (eval "$lt_compile" 2>conftest.err)
20358    ac_status=$?
20359    cat conftest.err >&5
20360    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361    if (exit $ac_status) && test -s "$ac_outfile"; then
20362      # The compiler can only warn and ignore the option if not recognized
20363      # So say no if there are warnings other than the usual output.
20364      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20365      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20366      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20367        lt_cv_prog_compiler_pic_works_CXX=yes
20368      fi
20369    fi
20370    $RM conftest*
20371
20372 fi
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20374 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20375
20376 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20377     case $lt_prog_compiler_pic_CXX in
20378      "" | " "*) ;;
20379      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20380      esac
20381 else
20382     lt_prog_compiler_pic_CXX=
20383      lt_prog_compiler_can_build_shared_CXX=no
20384 fi
20385
20386 fi
20387
20388
20389
20390 #
20391 # Check to make sure the static flag actually works.
20392 #
20393 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20395 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20396 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20397   $as_echo_n "(cached) " >&6
20398 else
20399   lt_cv_prog_compiler_static_works_CXX=no
20400    save_LDFLAGS="$LDFLAGS"
20401    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20402    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20403    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20404      # The linker can only warn and ignore the option if not recognized
20405      # So say no if there are warnings
20406      if test -s conftest.err; then
20407        # Append any errors to the config.log.
20408        cat conftest.err 1>&5
20409        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20410        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20411        if diff conftest.exp conftest.er2 >/dev/null; then
20412          lt_cv_prog_compiler_static_works_CXX=yes
20413        fi
20414      else
20415        lt_cv_prog_compiler_static_works_CXX=yes
20416      fi
20417    fi
20418    $RM -r conftest*
20419    LDFLAGS="$save_LDFLAGS"
20420
20421 fi
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20423 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20424
20425 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20426     :
20427 else
20428     lt_prog_compiler_static_CXX=
20429 fi
20430
20431
20432
20433
20434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20436 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20437   $as_echo_n "(cached) " >&6
20438 else
20439   lt_cv_prog_compiler_c_o_CXX=no
20440    $RM -r conftest 2>/dev/null
20441    mkdir conftest
20442    cd conftest
20443    mkdir out
20444    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20445
20446    lt_compiler_flag="-o out/conftest2.$ac_objext"
20447    # Insert the option either (1) after the last *FLAGS variable, or
20448    # (2) before a word containing "conftest.", or (3) at the end.
20449    # Note that $ac_compile itself does not contain backslashes and begins
20450    # with a dollar sign (not a hyphen), so the echo should work correctly.
20451    lt_compile=`echo "$ac_compile" | $SED \
20452    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20453    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20454    -e 's:$: $lt_compiler_flag:'`
20455    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20456    (eval "$lt_compile" 2>out/conftest.err)
20457    ac_status=$?
20458    cat out/conftest.err >&5
20459    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20461    then
20462      # The compiler can only warn and ignore the option if not recognized
20463      # So say no if there are warnings
20464      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20465      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20466      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20467        lt_cv_prog_compiler_c_o_CXX=yes
20468      fi
20469    fi
20470    chmod u+w . 2>&5
20471    $RM conftest*
20472    # SGI C++ compiler will create directory out/ii_files/ for
20473    # template instantiation
20474    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20475    $RM out/* && rmdir out
20476    cd ..
20477    $RM -r conftest
20478    $RM conftest*
20479
20480 fi
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20482 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20483
20484
20485
20486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20487 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20488 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20489   $as_echo_n "(cached) " >&6
20490 else
20491   lt_cv_prog_compiler_c_o_CXX=no
20492    $RM -r conftest 2>/dev/null
20493    mkdir conftest
20494    cd conftest
20495    mkdir out
20496    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20497
20498    lt_compiler_flag="-o out/conftest2.$ac_objext"
20499    # Insert the option either (1) after the last *FLAGS variable, or
20500    # (2) before a word containing "conftest.", or (3) at the end.
20501    # Note that $ac_compile itself does not contain backslashes and begins
20502    # with a dollar sign (not a hyphen), so the echo should work correctly.
20503    lt_compile=`echo "$ac_compile" | $SED \
20504    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20505    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20506    -e 's:$: $lt_compiler_flag:'`
20507    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20508    (eval "$lt_compile" 2>out/conftest.err)
20509    ac_status=$?
20510    cat out/conftest.err >&5
20511    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20513    then
20514      # The compiler can only warn and ignore the option if not recognized
20515      # So say no if there are warnings
20516      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20517      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20518      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20519        lt_cv_prog_compiler_c_o_CXX=yes
20520      fi
20521    fi
20522    chmod u+w . 2>&5
20523    $RM conftest*
20524    # SGI C++ compiler will create directory out/ii_files/ for
20525    # template instantiation
20526    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20527    $RM out/* && rmdir out
20528    cd ..
20529    $RM -r conftest
20530    $RM conftest*
20531
20532 fi
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20534 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20535
20536
20537
20538
20539 hard_links="nottested"
20540 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20541   # do not overwrite the value of need_locks provided by the user
20542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20543 $as_echo_n "checking if we can lock with hard links... " >&6; }
20544   hard_links=yes
20545   $RM conftest*
20546   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20547   touch conftest.a
20548   ln conftest.a conftest.b 2>&5 || hard_links=no
20549   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20551 $as_echo "$hard_links" >&6; }
20552   if test "$hard_links" = no; then
20553     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20554 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20555     need_locks=warn
20556   fi
20557 else
20558   need_locks=no
20559 fi
20560
20561
20562
20563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20564 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20565
20566   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20567   case $host_os in
20568   aix[4-9]*)
20569     # If we're using GNU nm, then we don't want the "-C" option.
20570     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20571     # Also, AIX nm treats weak defined symbols like other global defined
20572     # symbols, whereas GNU nm marks them as "W".
20573     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20574       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'
20575     else
20576       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'
20577     fi
20578     ;;
20579   pw32*)
20580     export_symbols_cmds_CXX="$ltdll_cmds"
20581   ;;
20582   cygwin* | mingw* | cegcc*)
20583     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'
20584   ;;
20585   *)
20586     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20587   ;;
20588   esac
20589   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20590
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20592 $as_echo "$ld_shlibs_CXX" >&6; }
20593 test "$ld_shlibs_CXX" = no && can_build_shared=no
20594
20595 with_gnu_ld_CXX=$with_gnu_ld
20596
20597
20598
20599
20600
20601
20602 #
20603 # Do we need to explicitly link libc?
20604 #
20605 case "x$archive_cmds_need_lc_CXX" in
20606 x|xyes)
20607   # Assume -lc should be added
20608   archive_cmds_need_lc_CXX=yes
20609
20610   if test "$enable_shared" = yes && test "$GCC" = yes; then
20611     case $archive_cmds_CXX in
20612     *'~'*)
20613       # FIXME: we may have to deal with multi-command sequences.
20614       ;;
20615     '$CC '*)
20616       # Test whether the compiler implicitly links with -lc since on some
20617       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20618       # to ld, don't add -lc before -lgcc.
20619       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20620 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20621 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20622   $as_echo_n "(cached) " >&6
20623 else
20624   $RM conftest*
20625         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20626
20627         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20628   (eval $ac_compile) 2>&5
20629   ac_status=$?
20630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20631   test $ac_status = 0; } 2>conftest.err; then
20632           soname=conftest
20633           lib=conftest
20634           libobjs=conftest.$ac_objext
20635           deplibs=
20636           wl=$lt_prog_compiler_wl_CXX
20637           pic_flag=$lt_prog_compiler_pic_CXX
20638           compiler_flags=-v
20639           linker_flags=-v
20640           verstring=
20641           output_objdir=.
20642           libname=conftest
20643           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20644           allow_undefined_flag_CXX=
20645           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20646   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20647   ac_status=$?
20648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20649   test $ac_status = 0; }
20650           then
20651             lt_cv_archive_cmds_need_lc_CXX=no
20652           else
20653             lt_cv_archive_cmds_need_lc_CXX=yes
20654           fi
20655           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20656         else
20657           cat conftest.err 1>&5
20658         fi
20659         $RM conftest*
20660
20661 fi
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20663 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20664       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20665       ;;
20666     esac
20667   fi
20668   ;;
20669 esac
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
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20735 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20736
20737 library_names_spec=
20738 libname_spec='lib$name'
20739 soname_spec=
20740 shrext_cmds=".so"
20741 postinstall_cmds=
20742 postuninstall_cmds=
20743 finish_cmds=
20744 finish_eval=
20745 shlibpath_var=
20746 shlibpath_overrides_runpath=unknown
20747 version_type=none
20748 dynamic_linker="$host_os ld.so"
20749 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20750 need_lib_prefix=unknown
20751 hardcode_into_libs=no
20752
20753 # when you set need_version to no, make sure it does not cause -set_version
20754 # flags to be left without arguments
20755 need_version=unknown
20756
20757 case $host_os in
20758 aix3*)
20759   version_type=linux
20760   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20761   shlibpath_var=LIBPATH
20762
20763   # AIX 3 has no versioning support, so we append a major version to the name.
20764   soname_spec='${libname}${release}${shared_ext}$major'
20765   ;;
20766
20767 aix[4-9]*)
20768   version_type=linux
20769   need_lib_prefix=no
20770   need_version=no
20771   hardcode_into_libs=yes
20772   if test "$host_cpu" = ia64; then
20773     # AIX 5 supports IA64
20774     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20775     shlibpath_var=LD_LIBRARY_PATH
20776   else
20777     # With GCC up to 2.95.x, collect2 would create an import file
20778     # for dependence libraries.  The import file would start with
20779     # the line `#! .'.  This would cause the generated library to
20780     # depend on `.', always an invalid library.  This was fixed in
20781     # development snapshots of GCC prior to 3.0.
20782     case $host_os in
20783       aix4 | aix4.[01] | aix4.[01].*)
20784       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20785            echo ' yes '
20786            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20787         :
20788       else
20789         can_build_shared=no
20790       fi
20791       ;;
20792     esac
20793     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20794     # soname into executable. Probably we can add versioning support to
20795     # collect2, so additional links can be useful in future.
20796     if test "$aix_use_runtimelinking" = yes; then
20797       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20798       # instead of lib<name>.a to let people know that these are not
20799       # typical AIX shared libraries.
20800       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20801     else
20802       # We preserve .a as extension for shared libraries through AIX4.2
20803       # and later when we are not doing run time linking.
20804       library_names_spec='${libname}${release}.a $libname.a'
20805       soname_spec='${libname}${release}${shared_ext}$major'
20806     fi
20807     shlibpath_var=LIBPATH
20808   fi
20809   ;;
20810
20811 amigaos*)
20812   case $host_cpu in
20813   powerpc)
20814     # Since July 2007 AmigaOS4 officially supports .so libraries.
20815     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817     ;;
20818   m68k)
20819     library_names_spec='$libname.ixlibrary $libname.a'
20820     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20821     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'
20822     ;;
20823   esac
20824   ;;
20825
20826 beos*)
20827   library_names_spec='${libname}${shared_ext}'
20828   dynamic_linker="$host_os ld.so"
20829   shlibpath_var=LIBRARY_PATH
20830   ;;
20831
20832 bsdi[45]*)
20833   version_type=linux
20834   need_version=no
20835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836   soname_spec='${libname}${release}${shared_ext}$major'
20837   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20838   shlibpath_var=LD_LIBRARY_PATH
20839   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20840   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20841   # the default ld.so.conf also contains /usr/contrib/lib and
20842   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20843   # libtool to hard-code these into programs
20844   ;;
20845
20846 cygwin* | mingw* | pw32* | cegcc*)
20847   version_type=windows
20848   shrext_cmds=".dll"
20849   need_version=no
20850   need_lib_prefix=no
20851
20852   case $GCC,$host_os in
20853   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20854     library_names_spec='$libname.dll.a'
20855     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20856     postinstall_cmds='base_file=`basename \${file}`~
20857       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20858       dldir=$destdir/`dirname \$dlpath`~
20859       test -d \$dldir || mkdir -p \$dldir~
20860       $install_prog $dir/$dlname \$dldir/$dlname~
20861       chmod a+x \$dldir/$dlname~
20862       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20863         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20864       fi'
20865     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20866       dlpath=$dir/\$dldll~
20867        $RM \$dlpath'
20868     shlibpath_overrides_runpath=yes
20869
20870     case $host_os in
20871     cygwin*)
20872       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20873       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20874
20875       ;;
20876     mingw* | cegcc*)
20877       # MinGW DLLs use traditional 'lib' prefix
20878       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20879       ;;
20880     pw32*)
20881       # pw32 DLLs use 'pw' prefix rather than 'lib'
20882       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20883       ;;
20884     esac
20885     ;;
20886
20887   *)
20888     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20889     ;;
20890   esac
20891   dynamic_linker='Win32 ld.exe'
20892   # FIXME: first we should search . and the directory the executable is in
20893   shlibpath_var=PATH
20894   ;;
20895
20896 darwin* | rhapsody*)
20897   dynamic_linker="$host_os dyld"
20898   version_type=darwin
20899   need_lib_prefix=no
20900   need_version=no
20901   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20902   soname_spec='${libname}${release}${major}$shared_ext'
20903   shlibpath_overrides_runpath=yes
20904   shlibpath_var=DYLD_LIBRARY_PATH
20905   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20906
20907   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20908   ;;
20909
20910 dgux*)
20911   version_type=linux
20912   need_lib_prefix=no
20913   need_version=no
20914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20915   soname_spec='${libname}${release}${shared_ext}$major'
20916   shlibpath_var=LD_LIBRARY_PATH
20917   ;;
20918
20919 freebsd* | dragonfly*)
20920   # DragonFly does not have aout.  When/if they implement a new
20921   # versioning mechanism, adjust this.
20922   if test -x /usr/bin/objformat; then
20923     objformat=`/usr/bin/objformat`
20924   else
20925     case $host_os in
20926     freebsd[23].*) objformat=aout ;;
20927     *) objformat=elf ;;
20928     esac
20929   fi
20930   version_type=freebsd-$objformat
20931   case $version_type in
20932     freebsd-elf*)
20933       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20934       need_version=no
20935       need_lib_prefix=no
20936       ;;
20937     freebsd-*)
20938       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20939       need_version=yes
20940       ;;
20941   esac
20942   shlibpath_var=LD_LIBRARY_PATH
20943   case $host_os in
20944   freebsd2.*)
20945     shlibpath_overrides_runpath=yes
20946     ;;
20947   freebsd3.[01]* | freebsdelf3.[01]*)
20948     shlibpath_overrides_runpath=yes
20949     hardcode_into_libs=yes
20950     ;;
20951   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20952   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20953     shlibpath_overrides_runpath=no
20954     hardcode_into_libs=yes
20955     ;;
20956   *) # from 4.6 on, and DragonFly
20957     shlibpath_overrides_runpath=yes
20958     hardcode_into_libs=yes
20959     ;;
20960   esac
20961   ;;
20962
20963 gnu*)
20964   version_type=linux
20965   need_lib_prefix=no
20966   need_version=no
20967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20968   soname_spec='${libname}${release}${shared_ext}$major'
20969   shlibpath_var=LD_LIBRARY_PATH
20970   hardcode_into_libs=yes
20971   ;;
20972
20973 haiku*)
20974   version_type=linux
20975   need_lib_prefix=no
20976   need_version=no
20977   dynamic_linker="$host_os runtime_loader"
20978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20979   soname_spec='${libname}${release}${shared_ext}$major'
20980   shlibpath_var=LIBRARY_PATH
20981   shlibpath_overrides_runpath=yes
20982   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20983   hardcode_into_libs=yes
20984   ;;
20985
20986 hpux9* | hpux10* | hpux11*)
20987   # Give a soname corresponding to the major version so that dld.sl refuses to
20988   # link against other versions.
20989   version_type=sunos
20990   need_lib_prefix=no
20991   need_version=no
20992   case $host_cpu in
20993   ia64*)
20994     shrext_cmds='.so'
20995     hardcode_into_libs=yes
20996     dynamic_linker="$host_os dld.so"
20997     shlibpath_var=LD_LIBRARY_PATH
20998     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21000     soname_spec='${libname}${release}${shared_ext}$major'
21001     if test "X$HPUX_IA64_MODE" = X32; then
21002       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21003     else
21004       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21005     fi
21006     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21007     ;;
21008   hppa*64*)
21009     shrext_cmds='.sl'
21010     hardcode_into_libs=yes
21011     dynamic_linker="$host_os dld.sl"
21012     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21013     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21017     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21018     ;;
21019   *)
21020     shrext_cmds='.sl'
21021     dynamic_linker="$host_os dld.sl"
21022     shlibpath_var=SHLIB_PATH
21023     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21025     soname_spec='${libname}${release}${shared_ext}$major'
21026     ;;
21027   esac
21028   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21029   postinstall_cmds='chmod 555 $lib'
21030   # or fails outright, so override atomically:
21031   install_override_mode=555
21032   ;;
21033
21034 interix[3-9]*)
21035   version_type=linux
21036   need_lib_prefix=no
21037   need_version=no
21038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21039   soname_spec='${libname}${release}${shared_ext}$major'
21040   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21041   shlibpath_var=LD_LIBRARY_PATH
21042   shlibpath_overrides_runpath=no
21043   hardcode_into_libs=yes
21044   ;;
21045
21046 irix5* | irix6* | nonstopux*)
21047   case $host_os in
21048     nonstopux*) version_type=nonstopux ;;
21049     *)
21050         if test "$lt_cv_prog_gnu_ld" = yes; then
21051                 version_type=linux
21052         else
21053                 version_type=irix
21054         fi ;;
21055   esac
21056   need_lib_prefix=no
21057   need_version=no
21058   soname_spec='${libname}${release}${shared_ext}$major'
21059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21060   case $host_os in
21061   irix5* | nonstopux*)
21062     libsuff= shlibsuff=
21063     ;;
21064   *)
21065     case $LD in # libtool.m4 will add one of these switches to LD
21066     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21067       libsuff= shlibsuff= libmagic=32-bit;;
21068     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21069       libsuff=32 shlibsuff=N32 libmagic=N32;;
21070     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21071       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21072     *) libsuff= shlibsuff= libmagic=never-match;;
21073     esac
21074     ;;
21075   esac
21076   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21077   shlibpath_overrides_runpath=no
21078   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21079   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21080   hardcode_into_libs=yes
21081   ;;
21082
21083 # No shared lib support for Linux oldld, aout, or coff.
21084 linux*oldld* | linux*aout* | linux*coff*)
21085   dynamic_linker=no
21086   ;;
21087
21088 # This must be Linux ELF.
21089 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21090   version_type=linux
21091   need_lib_prefix=no
21092   need_version=no
21093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21094   soname_spec='${libname}${release}${shared_ext}$major'
21095   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21096   shlibpath_var=LD_LIBRARY_PATH
21097   shlibpath_overrides_runpath=no
21098
21099   # Some binutils ld are patched to set DT_RUNPATH
21100   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21101   $as_echo_n "(cached) " >&6
21102 else
21103   lt_cv_shlibpath_overrides_runpath=no
21104     save_LDFLAGS=$LDFLAGS
21105     save_libdir=$libdir
21106     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21107          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h.  */
21110
21111 int
21112 main ()
21113 {
21114
21115   ;
21116   return 0;
21117 }
21118 _ACEOF
21119 if ac_fn_cxx_try_link "$LINENO"; then :
21120   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21121   lt_cv_shlibpath_overrides_runpath=yes
21122 fi
21123 fi
21124 rm -f core conftest.err conftest.$ac_objext \
21125     conftest$ac_exeext conftest.$ac_ext
21126     LDFLAGS=$save_LDFLAGS
21127     libdir=$save_libdir
21128
21129 fi
21130
21131   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21132
21133   # This implies no fast_install, which is unacceptable.
21134   # Some rework will be needed to allow for fast_install
21135   # before this can be enabled.
21136   hardcode_into_libs=yes
21137
21138   # Append ld.so.conf contents to the search path
21139   if test -f /etc/ld.so.conf; then
21140     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' ' '`
21141     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21142   fi
21143
21144   # We used to test for /lib/ld.so.1 and disable shared libraries on
21145   # powerpc, because MkLinux only supported shared libraries with the
21146   # GNU dynamic linker.  Since this was broken with cross compilers,
21147   # most powerpc-linux boxes support dynamic linking these days and
21148   # people can always --disable-shared, the test was removed, and we
21149   # assume the GNU/Linux dynamic linker is in use.
21150   dynamic_linker='GNU/Linux ld.so'
21151   ;;
21152
21153 netbsd*)
21154   version_type=sunos
21155   need_lib_prefix=no
21156   need_version=no
21157   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21159     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21160     dynamic_linker='NetBSD (a.out) ld.so'
21161   else
21162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21163     soname_spec='${libname}${release}${shared_ext}$major'
21164     dynamic_linker='NetBSD ld.elf_so'
21165   fi
21166   shlibpath_var=LD_LIBRARY_PATH
21167   shlibpath_overrides_runpath=yes
21168   hardcode_into_libs=yes
21169   ;;
21170
21171 newsos6)
21172   version_type=linux
21173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174   shlibpath_var=LD_LIBRARY_PATH
21175   shlibpath_overrides_runpath=yes
21176   ;;
21177
21178 *nto* | *qnx*)
21179   version_type=qnx
21180   need_lib_prefix=no
21181   need_version=no
21182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21183   soname_spec='${libname}${release}${shared_ext}$major'
21184   shlibpath_var=LD_LIBRARY_PATH
21185   shlibpath_overrides_runpath=no
21186   hardcode_into_libs=yes
21187   dynamic_linker='ldqnx.so'
21188   ;;
21189
21190 openbsd*)
21191   version_type=sunos
21192   sys_lib_dlsearch_path_spec="/usr/lib"
21193   need_lib_prefix=no
21194   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21195   case $host_os in
21196     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21197     *)                          need_version=no  ;;
21198   esac
21199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21200   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21201   shlibpath_var=LD_LIBRARY_PATH
21202   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21203     case $host_os in
21204       openbsd2.[89] | openbsd2.[89].*)
21205         shlibpath_overrides_runpath=no
21206         ;;
21207       *)
21208         shlibpath_overrides_runpath=yes
21209         ;;
21210       esac
21211   else
21212     shlibpath_overrides_runpath=yes
21213   fi
21214   ;;
21215
21216 os2*)
21217   libname_spec='$name'
21218   shrext_cmds=".dll"
21219   need_lib_prefix=no
21220   library_names_spec='$libname${shared_ext} $libname.a'
21221   dynamic_linker='OS/2 ld.exe'
21222   shlibpath_var=LIBPATH
21223   ;;
21224
21225 osf3* | osf4* | osf5*)
21226   version_type=osf
21227   need_lib_prefix=no
21228   need_version=no
21229   soname_spec='${libname}${release}${shared_ext}$major'
21230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21231   shlibpath_var=LD_LIBRARY_PATH
21232   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21233   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21234   ;;
21235
21236 rdos*)
21237   dynamic_linker=no
21238   ;;
21239
21240 solaris*)
21241   version_type=linux
21242   need_lib_prefix=no
21243   need_version=no
21244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21245   soname_spec='${libname}${release}${shared_ext}$major'
21246   shlibpath_var=LD_LIBRARY_PATH
21247   shlibpath_overrides_runpath=yes
21248   hardcode_into_libs=yes
21249   # ldd complains unless libraries are executable
21250   postinstall_cmds='chmod +x $lib'
21251   ;;
21252
21253 sunos4*)
21254   version_type=sunos
21255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21256   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21257   shlibpath_var=LD_LIBRARY_PATH
21258   shlibpath_overrides_runpath=yes
21259   if test "$with_gnu_ld" = yes; then
21260     need_lib_prefix=no
21261   fi
21262   need_version=yes
21263   ;;
21264
21265 sysv4 | sysv4.3*)
21266   version_type=linux
21267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21268   soname_spec='${libname}${release}${shared_ext}$major'
21269   shlibpath_var=LD_LIBRARY_PATH
21270   case $host_vendor in
21271     sni)
21272       shlibpath_overrides_runpath=no
21273       need_lib_prefix=no
21274       runpath_var=LD_RUN_PATH
21275       ;;
21276     siemens)
21277       need_lib_prefix=no
21278       ;;
21279     motorola)
21280       need_lib_prefix=no
21281       need_version=no
21282       shlibpath_overrides_runpath=no
21283       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21284       ;;
21285   esac
21286   ;;
21287
21288 sysv4*MP*)
21289   if test -d /usr/nec ;then
21290     version_type=linux
21291     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21292     soname_spec='$libname${shared_ext}.$major'
21293     shlibpath_var=LD_LIBRARY_PATH
21294   fi
21295   ;;
21296
21297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21298   version_type=freebsd-elf
21299   need_lib_prefix=no
21300   need_version=no
21301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21302   soname_spec='${libname}${release}${shared_ext}$major'
21303   shlibpath_var=LD_LIBRARY_PATH
21304   shlibpath_overrides_runpath=yes
21305   hardcode_into_libs=yes
21306   if test "$with_gnu_ld" = yes; then
21307     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21308   else
21309     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21310     case $host_os in
21311       sco3.2v5*)
21312         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21313         ;;
21314     esac
21315   fi
21316   sys_lib_dlsearch_path_spec='/usr/lib'
21317   ;;
21318
21319 tpf*)
21320   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21321   version_type=linux
21322   need_lib_prefix=no
21323   need_version=no
21324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21325   shlibpath_var=LD_LIBRARY_PATH
21326   shlibpath_overrides_runpath=no
21327   hardcode_into_libs=yes
21328   ;;
21329
21330 uts4*)
21331   version_type=linux
21332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333   soname_spec='${libname}${release}${shared_ext}$major'
21334   shlibpath_var=LD_LIBRARY_PATH
21335   ;;
21336
21337 *)
21338   dynamic_linker=no
21339   ;;
21340 esac
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21342 $as_echo "$dynamic_linker" >&6; }
21343 test "$dynamic_linker" = no && can_build_shared=no
21344
21345 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21346 if test "$GCC" = yes; then
21347   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21348 fi
21349
21350 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21351   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21352 fi
21353 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21354   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21355 fi
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
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21395 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21396 hardcode_action_CXX=
21397 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21398    test -n "$runpath_var_CXX" ||
21399    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21400
21401   # We can hardcode non-existent directories.
21402   if test "$hardcode_direct_CXX" != no &&
21403      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21404      # have to relink, otherwise we might link with an installed library
21405      # when we should be linking with a yet-to-be-installed one
21406      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21407      test "$hardcode_minus_L_CXX" != no; then
21408     # Linking always hardcodes the temporary library directory.
21409     hardcode_action_CXX=relink
21410   else
21411     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21412     hardcode_action_CXX=immediate
21413   fi
21414 else
21415   # We cannot hardcode anything, or else we can only hardcode existing
21416   # directories.
21417   hardcode_action_CXX=unsupported
21418 fi
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21420 $as_echo "$hardcode_action_CXX" >&6; }
21421
21422 if test "$hardcode_action_CXX" = relink ||
21423    test "$inherit_rpath_CXX" = yes; then
21424   # Fast installation is not supported
21425   enable_fast_install=no
21426 elif test "$shlibpath_overrides_runpath" = yes ||
21427      test "$enable_shared" = no; then
21428   # Fast installation is not necessary
21429   enable_fast_install=needless
21430 fi
21431
21432
21433
21434
21435
21436
21437
21438   fi # test -n "$compiler"
21439
21440   CC=$lt_save_CC
21441   LDCXX=$LD
21442   LD=$lt_save_LD
21443   GCC=$lt_save_GCC
21444   with_gnu_ld=$lt_save_with_gnu_ld
21445   lt_cv_path_LDCXX=$lt_cv_path_LD
21446   lt_cv_path_LD=$lt_save_path_LD
21447   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21448   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21449 fi # test "$_lt_caught_CXX_error" != yes
21450
21451 ac_ext=c
21452 ac_cpp='$CPP $CPPFLAGS'
21453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472 # Only expand once:
21473
21474
21475
21476
21477
21478 # Identify the assembler which will work hand-in-glove with the newly
21479 # built GCC, so that we can examine its features.  This is the assembler
21480 # which will be driven by the driver program.
21481 #
21482 # If build != host, and we aren't building gas in-tree, we identify a
21483 # build->target assembler and hope that it will have the same features
21484 # as the host->target assembler we'll be using.
21485 gcc_cv_gas_major_version=
21486 gcc_cv_gas_minor_version=
21487 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21488
21489 if test "${gcc_cv_as+set}" = set; then :
21490
21491 else
21492
21493 if test -x "$DEFAULT_ASSEMBLER"; then
21494         gcc_cv_as="$DEFAULT_ASSEMBLER"
21495 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21496      && test -f ../gas/Makefile \
21497      && test x$build = x$host; then
21498         gcc_cv_as=../gas/as-new$build_exeext
21499 elif test -x as$build_exeext; then
21500         # Build using assembler in the current directory.
21501         gcc_cv_as=./as$build_exeext
21502 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21503         gcc_cv_as="$AS_FOR_TARGET"
21504 else
21505         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21506 set dummy $AS_FOR_TARGET; ac_word=$2
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21508 $as_echo_n "checking for $ac_word... " >&6; }
21509 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21510   $as_echo_n "(cached) " >&6
21511 else
21512   case $gcc_cv_as in
21513   [\\/]* | ?:[\\/]*)
21514   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21515   ;;
21516   *)
21517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21518 for as_dir in $PATH
21519 do
21520   IFS=$as_save_IFS
21521   test -z "$as_dir" && as_dir=.
21522     for ac_exec_ext in '' $ac_executable_extensions; do
21523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21524     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21526     break 2
21527   fi
21528 done
21529   done
21530 IFS=$as_save_IFS
21531
21532   ;;
21533 esac
21534 fi
21535 gcc_cv_as=$ac_cv_path_gcc_cv_as
21536 if test -n "$gcc_cv_as"; then
21537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21538 $as_echo "$gcc_cv_as" >&6; }
21539 else
21540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21541 $as_echo "no" >&6; }
21542 fi
21543
21544
21545 fi
21546 fi
21547
21548 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21549
21550 case "$ORIGINAL_AS_FOR_TARGET" in
21551   ./as | ./as$build_exeext) ;;
21552   *) ac_config_files="$ac_config_files as:exec-tool.in"
21553  ;;
21554 esac
21555
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21557 $as_echo_n "checking what assembler to use... " >&6; }
21558 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21559   # Single tree build which includes gas.  We want to prefer it
21560   # over whatever linker top-level may have detected, since
21561   # we'll use what we're building after installation anyway.
21562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21563 $as_echo "newly built gas" >&6; }
21564   in_tree_gas=yes
21565   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21566 for f in $gcc_cv_as_bfd_srcdir/configure \
21567          $gcc_cv_as_gas_srcdir/configure \
21568          $gcc_cv_as_gas_srcdir/configure.in \
21569          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21570   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21571   if test x$gcc_cv_gas_version != x; then
21572     break
21573   fi
21574 done
21575 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21576 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21577 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21578 case $gcc_cv_gas_patch_version in
21579   "") gcc_cv_gas_patch_version="0" ;;
21580 esac
21581 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21582                             + $gcc_cv_gas_minor_version \) \* 1000 \
21583                             + $gcc_cv_gas_patch_version`
21584
21585   in_tree_gas_is_elf=no
21586   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21587      || (grep 'obj_format = multi' ../gas/Makefile \
21588          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21589   then
21590     in_tree_gas_is_elf=yes
21591   fi
21592 else
21593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21594 $as_echo "$gcc_cv_as" >&6; }
21595   in_tree_gas=no
21596 fi
21597
21598 # Identify the linker which will work hand-in-glove with the newly
21599 # built GCC, so that we can examine its features.  This is the linker
21600 # which will be driven by the driver program.
21601 #
21602 # If build != host, and we aren't building gas in-tree, we identify a
21603 # build->target linker and hope that it will have the same features
21604 # as the host->target linker we'll be using.
21605 gcc_cv_gld_major_version=
21606 gcc_cv_gld_minor_version=
21607 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21608 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21609
21610 if test "${gcc_cv_ld+set}" = set; then :
21611
21612 else
21613
21614 if test -x "$DEFAULT_LINKER"; then
21615         gcc_cv_ld="$DEFAULT_LINKER"
21616 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21617      && test -f ../ld/Makefile \
21618      && test x$build = x$host; then
21619         gcc_cv_ld=../ld/ld-new$build_exeext
21620 elif test -x collect-ld$build_exeext; then
21621         # Build using linker in the current directory.
21622         gcc_cv_ld=./collect-ld$build_exeext
21623 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21624         gcc_cv_ld="$LD_FOR_TARGET"
21625 else
21626         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21627 set dummy $LD_FOR_TARGET; ac_word=$2
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21629 $as_echo_n "checking for $ac_word... " >&6; }
21630 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21631   $as_echo_n "(cached) " >&6
21632 else
21633   case $gcc_cv_ld in
21634   [\\/]* | ?:[\\/]*)
21635   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21636   ;;
21637   *)
21638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21639 for as_dir in $PATH
21640 do
21641   IFS=$as_save_IFS
21642   test -z "$as_dir" && as_dir=.
21643     for ac_exec_ext in '' $ac_executable_extensions; do
21644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21645     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21647     break 2
21648   fi
21649 done
21650   done
21651 IFS=$as_save_IFS
21652
21653   ;;
21654 esac
21655 fi
21656 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21657 if test -n "$gcc_cv_ld"; then
21658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21659 $as_echo "$gcc_cv_ld" >&6; }
21660 else
21661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21662 $as_echo "no" >&6; }
21663 fi
21664
21665
21666 fi
21667 fi
21668
21669 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21670 PLUGIN_LD=`basename $gcc_cv_ld`
21671
21672 # Check whether --with-plugin-ld was given.
21673 if test "${with_plugin_ld+set}" = set; then :
21674   withval=$with_plugin_ld; if test x"$withval" != x; then
21675    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21676    PLUGIN_LD="$withval"
21677  fi
21678 fi
21679
21680
21681
21682 cat >>confdefs.h <<_ACEOF
21683 #define PLUGIN_LD "$PLUGIN_LD"
21684 _ACEOF
21685
21686
21687 # Check to see if we are using gold instead of ld
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21689 $as_echo_n "checking whether we are using gold... " >&6; }
21690 ld_is_gold=no
21691 if test x$gcc_cv_ld != x; then
21692   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21693      | grep "GNU gold" > /dev/null; then
21694     ld_is_gold=yes
21695   fi
21696 fi
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21698 $as_echo "$ld_is_gold" >&6; }
21699
21700 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21701
21702 case "$ORIGINAL_LD_FOR_TARGET" in
21703   ./collect-ld | ./collect-ld$build_exeext) ;;
21704   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21705  ;;
21706 esac
21707
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21709 $as_echo_n "checking what linker to use... " >&6; }
21710 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21711    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21712         # Single tree build which includes ld.  We want to prefer it
21713         # over whatever linker top-level may have detected, since
21714         # we'll use what we're building after installation anyway.
21715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21716 $as_echo "newly built ld" >&6; }
21717         in_tree_ld=yes
21718         in_tree_ld_is_elf=no
21719         if (grep 'EMUL = .*elf' ../ld/Makefile \
21720             || grep 'EMUL = .*linux' ../ld/Makefile \
21721             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21722           in_tree_ld_is_elf=yes
21723         elif test "$ld_is_gold" = yes; then
21724           in_tree_ld_is_elf=yes
21725         fi
21726         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
21727         do
21728                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21729                 if test x$gcc_cv_gld_version != x; then
21730                         break
21731                 fi
21732         done
21733         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21734         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21735 else
21736         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21737 $as_echo "$gcc_cv_ld" >&6; }
21738         in_tree_ld=no
21739 fi
21740
21741 # Figure out what nm we will be using.
21742 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21743 if test "${gcc_cv_nm+set}" = set; then :
21744
21745 else
21746
21747 if test -f $gcc_cv_binutils_srcdir/configure.in \
21748      && test -f ../binutils/Makefile \
21749      && test x$build = x$host; then
21750         gcc_cv_nm=../binutils/nm-new$build_exeext
21751 elif test -x nm$build_exeext; then
21752         gcc_cv_nm=./nm$build_exeext
21753 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21754         gcc_cv_nm="$NM_FOR_TARGET"
21755 else
21756         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21757 set dummy $NM_FOR_TARGET; ac_word=$2
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21759 $as_echo_n "checking for $ac_word... " >&6; }
21760 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21761   $as_echo_n "(cached) " >&6
21762 else
21763   case $gcc_cv_nm in
21764   [\\/]* | ?:[\\/]*)
21765   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21766   ;;
21767   *)
21768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21769 for as_dir in $PATH
21770 do
21771   IFS=$as_save_IFS
21772   test -z "$as_dir" && as_dir=.
21773     for ac_exec_ext in '' $ac_executable_extensions; do
21774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21775     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21777     break 2
21778   fi
21779 done
21780   done
21781 IFS=$as_save_IFS
21782
21783   ;;
21784 esac
21785 fi
21786 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21787 if test -n "$gcc_cv_nm"; then
21788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21789 $as_echo "$gcc_cv_nm" >&6; }
21790 else
21791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21792 $as_echo "no" >&6; }
21793 fi
21794
21795
21796 fi
21797 fi
21798
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21800 $as_echo_n "checking what nm to use... " >&6; }
21801 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21802         # Single tree build which includes binutils.
21803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21804 $as_echo "newly built nm" >&6; }
21805         in_tree_nm=yes
21806 else
21807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21808 $as_echo "$gcc_cv_nm" >&6; }
21809         in_tree_nm=no
21810 fi
21811
21812 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21813
21814 case "$ORIGINAL_NM_FOR_TARGET" in
21815   ./nm | ./nm$build_exeext) ;;
21816   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21817  ;;
21818 esac
21819
21820
21821 # Figure out what objdump we will be using.
21822 if test "${gcc_cv_objdump+set}" = set; then :
21823
21824 else
21825
21826 if test -f $gcc_cv_binutils_srcdir/configure.in \
21827      && test -f ../binutils/Makefile \
21828      && test x$build = x$host; then
21829         # Single tree build which includes binutils.
21830         gcc_cv_objdump=../binutils/objdump$build_exeext
21831 elif test -x objdump$build_exeext; then
21832         gcc_cv_objdump=./objdump$build_exeext
21833 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21834         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21835 else
21836         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21837 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21839 $as_echo_n "checking for $ac_word... " >&6; }
21840 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21841   $as_echo_n "(cached) " >&6
21842 else
21843   case $gcc_cv_objdump in
21844   [\\/]* | ?:[\\/]*)
21845   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21846   ;;
21847   *)
21848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21849 for as_dir in $PATH
21850 do
21851   IFS=$as_save_IFS
21852   test -z "$as_dir" && as_dir=.
21853     for ac_exec_ext in '' $ac_executable_extensions; do
21854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21855     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21857     break 2
21858   fi
21859 done
21860   done
21861 IFS=$as_save_IFS
21862
21863   ;;
21864 esac
21865 fi
21866 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21867 if test -n "$gcc_cv_objdump"; then
21868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21869 $as_echo "$gcc_cv_objdump" >&6; }
21870 else
21871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21872 $as_echo "no" >&6; }
21873 fi
21874
21875
21876 fi
21877 fi
21878
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21880 $as_echo_n "checking what objdump to use... " >&6; }
21881 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21882         # Single tree build which includes binutils.
21883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21884 $as_echo "newly built objdump" >&6; }
21885 elif test x$gcc_cv_objdump = x; then
21886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21887 $as_echo "not found" >&6; }
21888 else
21889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21890 $as_echo "$gcc_cv_objdump" >&6; }
21891 fi
21892
21893 # Figure out what readelf we will be using.
21894 if test "${gcc_cv_readelf+set}" = set; then :
21895
21896 else
21897
21898 if test -f $gcc_cv_binutils_srcdir/configure.in \
21899      && test -f ../binutils/Makefile \
21900      && test x$build = x$host; then
21901         # Single tree build which includes binutils.
21902         gcc_cv_readelf=../binutils/readelf$build_exeext
21903 elif test -x readelf$build_exeext; then
21904         gcc_cv_readelf=./readelf$build_exeext
21905 else
21906         # Extract the first word of "readelf", so it can be a program name with args.
21907 set dummy readelf; ac_word=$2
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21909 $as_echo_n "checking for $ac_word... " >&6; }
21910 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21911   $as_echo_n "(cached) " >&6
21912 else
21913   case $gcc_cv_readelf in
21914   [\\/]* | ?:[\\/]*)
21915   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21916   ;;
21917   *)
21918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21919 for as_dir in $PATH
21920 do
21921   IFS=$as_save_IFS
21922   test -z "$as_dir" && as_dir=.
21923     for ac_exec_ext in '' $ac_executable_extensions; do
21924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21925     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21927     break 2
21928   fi
21929 done
21930   done
21931 IFS=$as_save_IFS
21932
21933   ;;
21934 esac
21935 fi
21936 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21937 if test -n "$gcc_cv_readelf"; then
21938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21939 $as_echo "$gcc_cv_readelf" >&6; }
21940 else
21941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21942 $as_echo "no" >&6; }
21943 fi
21944
21945
21946 fi
21947 fi
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21950 $as_echo_n "checking what readelf to use... " >&6; }
21951 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21952         # Single tree build which includes binutils.
21953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21954 $as_echo "newly built readelf" >&6; }
21955 elif test x$gcc_cv_readelf = x; then
21956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21957 $as_echo "not found" >&6; }
21958 else
21959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21960 $as_echo "$gcc_cv_readelf" >&6; }
21961 fi
21962
21963 # Figure out what assembler alignment features are present.
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21965 $as_echo_n "checking assembler flags... " >&6; }
21966 if test "${gcc_cv_as_flags+set}" = set; then :
21967   $as_echo_n "(cached) " >&6
21968 else
21969    case "$target" in
21970   i[34567]86-*-linux*)
21971         gcc_cv_as_flags="--32"
21972     ;;
21973   powerpc*-*-darwin*)
21974         gcc_cv_as_flags="-arch ppc"
21975     ;;
21976   *)
21977     gcc_cv_as_flags=" "
21978     ;;
21979   esac
21980 fi
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21982 $as_echo "$gcc_cv_as_flags" >&6; }
21983
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21985 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21986 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21987   $as_echo_n "(cached) " >&6
21988 else
21989   gcc_cv_as_balign_and_p2align=no
21990     if test $in_tree_gas = yes; then
21991     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21992   then gcc_cv_as_balign_and_p2align=yes
21993 fi
21994   elif test x$gcc_cv_as != x; then
21995     $as_echo '.balign 4
21996 .p2align 2' > conftest.s
21997     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21998   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21999   (eval $ac_try) 2>&5
22000   ac_status=$?
22001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22002   test $ac_status = 0; }; }
22003     then
22004         gcc_cv_as_balign_and_p2align=yes
22005     else
22006       echo "configure: failed program was" >&5
22007       cat conftest.s >&5
22008     fi
22009     rm -f conftest.o conftest.s
22010   fi
22011 fi
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22013 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22014 if test $gcc_cv_as_balign_and_p2align = yes; then
22015
22016 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22017
22018 fi
22019
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22021 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22022 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22023   $as_echo_n "(cached) " >&6
22024 else
22025   gcc_cv_as_max_skip_p2align=no
22026     if test $in_tree_gas = yes; then
22027     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22028   then gcc_cv_as_max_skip_p2align=yes
22029 fi
22030   elif test x$gcc_cv_as != x; then
22031     $as_echo '.p2align 4,,7' > conftest.s
22032     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22033   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22034   (eval $ac_try) 2>&5
22035   ac_status=$?
22036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22037   test $ac_status = 0; }; }
22038     then
22039         gcc_cv_as_max_skip_p2align=yes
22040     else
22041       echo "configure: failed program was" >&5
22042       cat conftest.s >&5
22043     fi
22044     rm -f conftest.o conftest.s
22045   fi
22046 fi
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22048 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22049 if test $gcc_cv_as_max_skip_p2align = yes; then
22050
22051 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22052
22053 fi
22054
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22056 $as_echo_n "checking assembler for .literal16... " >&6; }
22057 if test "${gcc_cv_as_literal16+set}" = set; then :
22058   $as_echo_n "(cached) " >&6
22059 else
22060   gcc_cv_as_literal16=no
22061     if test $in_tree_gas = yes; then
22062     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22063   then gcc_cv_as_literal16=yes
22064 fi
22065   elif test x$gcc_cv_as != x; then
22066     $as_echo '.literal16' > conftest.s
22067     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22068   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22069   (eval $ac_try) 2>&5
22070   ac_status=$?
22071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22072   test $ac_status = 0; }; }
22073     then
22074         gcc_cv_as_literal16=yes
22075     else
22076       echo "configure: failed program was" >&5
22077       cat conftest.s >&5
22078     fi
22079     rm -f conftest.o conftest.s
22080   fi
22081 fi
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22083 $as_echo "$gcc_cv_as_literal16" >&6; }
22084 if test $gcc_cv_as_literal16 = yes; then
22085
22086 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22087
22088 fi
22089
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22091 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22092 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22093   $as_echo_n "(cached) " >&6
22094 else
22095   gcc_cv_as_subsection_m1=no
22096     if test $in_tree_gas = yes; then
22097     if test $in_tree_gas_is_elf = yes \
22098   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22099   then gcc_cv_as_subsection_m1=yes
22100 fi
22101   elif test x$gcc_cv_as != x; then
22102     $as_echo 'conftest_label1: .word 0
22103 .subsection -1
22104 conftest_label2: .word 0
22105 .previous' > conftest.s
22106     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22107   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22108   (eval $ac_try) 2>&5
22109   ac_status=$?
22110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22111   test $ac_status = 0; }; }
22112     then
22113         if test x$gcc_cv_nm != x; then
22114     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22115     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22116     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22117     then :
22118     else gcc_cv_as_subsection_m1=yes
22119     fi
22120     rm -f conftest.nm1 conftest.nm2
22121   fi
22122     else
22123       echo "configure: failed program was" >&5
22124       cat conftest.s >&5
22125     fi
22126     rm -f conftest.o conftest.s
22127   fi
22128 fi
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22130 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22131 if test $gcc_cv_as_subsection_m1 = yes; then
22132
22133 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22134
22135 fi
22136
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22138 $as_echo_n "checking assembler for .weak... " >&6; }
22139 if test "${gcc_cv_as_weak+set}" = set; then :
22140   $as_echo_n "(cached) " >&6
22141 else
22142   gcc_cv_as_weak=no
22143     if test $in_tree_gas = yes; then
22144     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22145   then gcc_cv_as_weak=yes
22146 fi
22147   elif test x$gcc_cv_as != x; then
22148     $as_echo '  .weak foobar' > conftest.s
22149     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22150   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22151   (eval $ac_try) 2>&5
22152   ac_status=$?
22153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22154   test $ac_status = 0; }; }
22155     then
22156         gcc_cv_as_weak=yes
22157     else
22158       echo "configure: failed program was" >&5
22159       cat conftest.s >&5
22160     fi
22161     rm -f conftest.o conftest.s
22162   fi
22163 fi
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22165 $as_echo "$gcc_cv_as_weak" >&6; }
22166 if test $gcc_cv_as_weak = yes; then
22167
22168 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22169
22170 fi
22171
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22173 $as_echo_n "checking assembler for .weakref... " >&6; }
22174 if test "${gcc_cv_as_weakref+set}" = set; then :
22175   $as_echo_n "(cached) " >&6
22176 else
22177   gcc_cv_as_weakref=no
22178     if test $in_tree_gas = yes; then
22179     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22180   then gcc_cv_as_weakref=yes
22181 fi
22182   elif test x$gcc_cv_as != x; then
22183     $as_echo '  .weakref foobar, barfnot' > conftest.s
22184     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22185   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22186   (eval $ac_try) 2>&5
22187   ac_status=$?
22188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22189   test $ac_status = 0; }; }
22190     then
22191         gcc_cv_as_weakref=yes
22192     else
22193       echo "configure: failed program was" >&5
22194       cat conftest.s >&5
22195     fi
22196     rm -f conftest.o conftest.s
22197   fi
22198 fi
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22200 $as_echo "$gcc_cv_as_weakref" >&6; }
22201 if test $gcc_cv_as_weakref = yes; then
22202
22203 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22204
22205 fi
22206
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22208 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22209 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22210   $as_echo_n "(cached) " >&6
22211 else
22212   gcc_cv_as_nsubspa_comdat=no
22213     if test $in_tree_gas = yes; then
22214     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22215   then gcc_cv_as_nsubspa_comdat=yes
22216 fi
22217   elif test x$gcc_cv_as != x; then
22218     $as_echo '  .SPACE $TEXT$
22219         .NSUBSPA $CODE$,COMDAT' > conftest.s
22220     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22221   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22222   (eval $ac_try) 2>&5
22223   ac_status=$?
22224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22225   test $ac_status = 0; }; }
22226     then
22227         gcc_cv_as_nsubspa_comdat=yes
22228     else
22229       echo "configure: failed program was" >&5
22230       cat conftest.s >&5
22231     fi
22232     rm -f conftest.o conftest.s
22233   fi
22234 fi
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22236 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22237 if test $gcc_cv_as_nsubspa_comdat = yes; then
22238
22239 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22240
22241 fi
22242
22243 # .hidden needs to be supported in both the assembler and the linker,
22244 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22245 # This is irritatingly difficult to feature test for; we have to check the
22246 # date string after the version number.  If we've got an in-tree
22247 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22248 # to be safe.
22249 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22251 $as_echo_n "checking assembler for .hidden... " >&6; }
22252 if test "${gcc_cv_as_hidden+set}" = set; then :
22253   $as_echo_n "(cached) " >&6
22254 else
22255   gcc_cv_as_hidden=no
22256     if test $in_tree_gas = yes; then
22257     if test $in_tree_gas_is_elf = yes \
22258   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22259   then gcc_cv_as_hidden=yes
22260 fi
22261   elif test x$gcc_cv_as != x; then
22262     $as_echo '  .hidden foobar
22263 foobar:' > conftest.s
22264     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22265   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22266   (eval $ac_try) 2>&5
22267   ac_status=$?
22268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22269   test $ac_status = 0; }; }
22270     then
22271
22272 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22273 # STV_HIDDEN, so disable .hidden support if so.
22274 case "${target}" in
22275   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22276     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22277       cat > conftest.s <<EOF
22278 .globl hidden
22279         .hidden hidden
22280 hidden:
22281 .globl default
22282         .set    default,hidden
22283 EOF
22284       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22285         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22286         grep '\.hidden default' > /dev/null; then
22287         gcc_cv_as_hidden=no
22288       else
22289         gcc_cv_as_hidden=yes
22290       fi
22291     else
22292       # Assume bug is present if objdump is missing.
22293       gcc_cv_as_hidden=no
22294     fi
22295     ;;
22296   *)
22297     gcc_cv_as_hidden=yes
22298     ;;
22299 esac
22300     else
22301       echo "configure: failed program was" >&5
22302       cat conftest.s >&5
22303     fi
22304     rm -f conftest.o conftest.s
22305   fi
22306 fi
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22308 $as_echo "$gcc_cv_as_hidden" >&6; }
22309
22310 case "${target}" in
22311   *-*-darwin*)
22312     # Darwin as has some visibility support, though with a different syntax.
22313     gcc_cv_as_hidden=yes
22314     ;;
22315 esac
22316
22317 # gnu_indirect_function type is an extension proposed at
22318 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22319 # selection of function implementation
22320 # Check whether --enable-gnu-indirect-function was given.
22321 if test "${enable_gnu_indirect_function+set}" = set; then :
22322   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22323     yes | no) ;;
22324     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22325 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22326   esac
22327 else
22328   enable_gnu_indirect_function="$default_gnu_indirect_function"
22329 fi
22330
22331 if test x$enable_gnu_indirect_function = xyes; then
22332
22333 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22334
22335 fi
22336
22337 if test $in_tree_ld != yes ; then
22338   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22339   if echo "$ld_ver" | grep GNU > /dev/null; then
22340     if test x"$ld_is_gold" = xyes; then
22341       # GNU gold --version looks like this:
22342       #
22343       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22344       #
22345       # We extract the binutils version which is more familiar and specific
22346       # than the gold version.
22347       ld_vers=`echo $ld_ver | sed -n \
22348           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22349     else
22350       # GNU ld --version looks like this:
22351       #
22352       # GNU ld (GNU Binutils) 2.21.51.20110225
22353       ld_vers=`echo $ld_ver | sed -n \
22354           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22355     fi
22356     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'`
22357     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22358     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22359     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22360   else
22361     case "${target}" in
22362       *-*-solaris2*)
22363         #
22364         # Solaris 2 ld -V output looks like this for a regular version:
22365         #
22366         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22367         #
22368         # but test versions add stuff at the end:
22369         #
22370         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22371         #
22372         ld_ver=`$gcc_cv_ld -V 2>&1`
22373         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22374           ld_vers=`echo $ld_ver | sed -n \
22375             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22376           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22377           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22378         fi
22379         ;;
22380     esac
22381   fi
22382 fi
22383
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22385 $as_echo_n "checking linker for .hidden support... " >&6; }
22386 if test "${gcc_cv_ld_hidden+set}" = set; then :
22387   $as_echo_n "(cached) " >&6
22388 else
22389   if test $in_tree_ld = yes ; then
22390   gcc_cv_ld_hidden=no
22391   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 \
22392      && test $in_tree_ld_is_elf = yes; then
22393      gcc_cv_ld_hidden=yes
22394   fi
22395 else
22396   gcc_cv_ld_hidden=yes
22397   if test x"$ld_is_gold" = xyes; then
22398     :
22399   elif echo "$ld_ver" | grep GNU > /dev/null; then
22400     if test 0"$ld_date" -lt 20020404; then
22401       if test -n "$ld_date"; then
22402         # If there was date string, but was earlier than 2002-04-04, fail
22403         gcc_cv_ld_hidden=no
22404       elif test -z "$ld_vers"; then
22405         # If there was no date string nor ld version number, something is wrong
22406         gcc_cv_ld_hidden=no
22407       else
22408         test -z "$ld_vers_patch" && ld_vers_patch=0
22409         if test "$ld_vers_major" -lt 2; then
22410           gcc_cv_ld_hidden=no
22411         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22412           gcc_cv_ld_hidden="no"
22413         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22414           gcc_cv_ld_hidden=no
22415         fi
22416       fi
22417     fi
22418   else
22419     case "${target}" in
22420       *-*-darwin*)
22421         # Darwin ld has some visibility support.
22422         gcc_cv_ld_hidden=yes
22423         ;;
22424       hppa64*-*-hpux* | ia64*-*-hpux*)
22425         gcc_cv_ld_hidden=yes
22426         ;;
22427       *-*-solaris2.8*)
22428         # .hidden support was backported to Solaris 8, starting with ld
22429         # version 1.276.
22430         if test "$ld_vers_minor" -ge 276; then
22431           gcc_cv_ld_hidden=yes
22432         else
22433           gcc_cv_ld_hidden=no
22434         fi
22435         ;;
22436       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22437         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22438         # .symbolic was only added in Solaris 9 12/02.
22439         gcc_cv_ld_hidden=yes
22440         ;;
22441       *)
22442         gcc_cv_ld_hidden=no
22443         ;;
22444     esac
22445   fi
22446 fi
22447 fi
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22449 $as_echo "$gcc_cv_ld_hidden" >&6; }
22450 libgcc_visibility=no
22451
22452
22453 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22454   libgcc_visibility=yes
22455
22456 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22457
22458 fi
22459
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22461 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22462 gcc_cv_ld_ro_rw_mix=unknown
22463 if test $in_tree_ld = yes ; then
22464   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 \
22465      && test $in_tree_ld_is_elf = yes; then
22466     gcc_cv_ld_ro_rw_mix=read-write
22467   fi
22468 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22469   echo '.section myfoosect, "a"' > conftest1.s
22470   echo '.section myfoosect, "aw"' > conftest2.s
22471   echo '.byte 1' >> conftest2.s
22472   echo '.section myfoosect, "a"' > conftest3.s
22473   echo '.byte 0' >> conftest3.s
22474   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22475      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22476      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22477      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22478         conftest2.o conftest3.o > /dev/null 2>&1; then
22479     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22480                          | sed -e '/myfoosect/!d' -e N`
22481     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22482       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22483         gcc_cv_ld_ro_rw_mix=read-only
22484       else
22485         gcc_cv_ld_ro_rw_mix=read-write
22486       fi
22487     fi
22488   fi
22489   rm -f conftest.* conftest[123].*
22490 fi
22491 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22492
22493 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22494
22495 fi
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22497 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22498
22499 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22501 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22502 if test "${gcc_cv_as_leb128+set}" = set; then :
22503   $as_echo_n "(cached) " >&6
22504 else
22505   gcc_cv_as_leb128=no
22506     if test $in_tree_gas = yes; then
22507     if test $in_tree_gas_is_elf = yes \
22508   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22509   then gcc_cv_as_leb128=yes
22510 fi
22511   elif test x$gcc_cv_as != x; then
22512     $as_echo '  .data
22513         .uleb128 L2 - L1
22514 L1:
22515         .uleb128 1280
22516         .sleb128 -1010
22517 L2:' > conftest.s
22518     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22519   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22520   (eval $ac_try) 2>&5
22521   ac_status=$?
22522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22523   test $ac_status = 0; }; }
22524     then
22525         # GAS versions before 2.11 do not support uleb128,
22526   # despite appearing to.
22527   # ??? There exists an elf-specific test that will crash
22528   # the assembler.  Perhaps it's better to figure out whether
22529   # arbitrary sections are supported and try the test.
22530   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22531   if echo "$as_ver" | grep GNU > /dev/null; then
22532     as_vers=`echo $as_ver | sed -n \
22533         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22534     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22535     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22536     if test $as_major -eq 2 && test $as_minor -lt 11
22537     then :
22538     else gcc_cv_as_leb128=yes
22539     fi
22540   fi
22541     else
22542       echo "configure: failed program was" >&5
22543       cat conftest.s >&5
22544     fi
22545     rm -f conftest.o conftest.s
22546   fi
22547 fi
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22549 $as_echo "$gcc_cv_as_leb128" >&6; }
22550 if test $gcc_cv_as_leb128 = yes; then
22551
22552 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22553
22554 fi
22555
22556 # Check if we have assembler support for unwind directives.
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22558 $as_echo_n "checking assembler for cfi directives... " >&6; }
22559 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22560   $as_echo_n "(cached) " >&6
22561 else
22562   gcc_cv_as_cfi_directive=no
22563   if test x$gcc_cv_as != x; then
22564     $as_echo '  .text
22565         .cfi_startproc
22566         .cfi_offset 0, 0
22567         .cfi_same_value 1
22568         .cfi_def_cfa 1, 2
22569         .cfi_escape 1, 2, 3, 4, 5
22570         .cfi_endproc' > conftest.s
22571     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22572   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22573   (eval $ac_try) 2>&5
22574   ac_status=$?
22575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22576   test $ac_status = 0; }; }
22577     then
22578         case "$target" in
22579   *-*-solaris*)
22580     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22581     # read-only and read-write sections, we need to make sure that the
22582     # assembler used emits read-write .eh_frame sections.
22583     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22584       if test "x$gcc_cv_objdump" != x; then
22585         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22586                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22587           gcc_cv_as_cfi_directive=no
22588         else
22589           case "$target" in
22590             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22591               # On Solaris/x86, make sure that GCC and gas agree on using
22592               # read-only .eh_frame sections for 64-bit.
22593               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22594                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22595                         sed -e /.eh_frame/!d -e N | \
22596                         grep READONLY > /dev/null; then
22597                 gcc_cv_as_cfi_directive=yes
22598               else
22599                 gcc_cv_as_cfi_directive=no
22600               fi
22601               ;;
22602             *)
22603               gcc_cv_as_cfi_directive=yes
22604               ;;
22605           esac
22606         fi
22607       else
22608         # no objdump, err on the side of caution
22609         gcc_cv_as_cfi_directive=no
22610       fi
22611     else
22612       gcc_cv_as_cfi_directive=yes
22613     fi
22614     ;;
22615   *-*-*)
22616     gcc_cv_as_cfi_directive=yes
22617     ;;
22618 esac
22619     else
22620       echo "configure: failed program was" >&5
22621       cat conftest.s >&5
22622     fi
22623     rm -f conftest.o conftest.s
22624   fi
22625 fi
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22627 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22628
22629 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22631 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22632 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22633   $as_echo_n "(cached) " >&6
22634 else
22635   gcc_cv_as_cfi_advance_working=no
22636   if test x$gcc_cv_as != x; then
22637     $as_echo '  .text
22638         .cfi_startproc
22639         .cfi_adjust_cfa_offset 64
22640         .skip 75040, 0
22641         .cfi_adjust_cfa_offset 128
22642         .cfi_endproc' > conftest.s
22643     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22644   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22645   (eval $ac_try) 2>&5
22646   ac_status=$?
22647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22648   test $ac_status = 0; }; }
22649     then
22650
22651 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22652     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22653    gcc_cv_as_cfi_advance_working=yes
22654 fi
22655
22656     else
22657       echo "configure: failed program was" >&5
22658       cat conftest.s >&5
22659     fi
22660     rm -f conftest.o conftest.s
22661   fi
22662 fi
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22664 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22665
22666 else
22667   # no objdump, err on the side of caution
22668   gcc_cv_as_cfi_advance_working=no
22669 fi
22670
22671
22672 cat >>confdefs.h <<_ACEOF
22673 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22674        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22675 _ACEOF
22676
22677
22678
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22680 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22681 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22682   $as_echo_n "(cached) " >&6
22683 else
22684   gcc_cv_as_cfi_personality_directive=no
22685   if test x$gcc_cv_as != x; then
22686     $as_echo '  .text
22687         .cfi_startproc
22688         .cfi_personality 0, symbol
22689         .cfi_endproc' > conftest.s
22690     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22691   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22692   (eval $ac_try) 2>&5
22693   ac_status=$?
22694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22695   test $ac_status = 0; }; }
22696     then
22697         gcc_cv_as_cfi_personality_directive=yes
22698     else
22699       echo "configure: failed program was" >&5
22700       cat conftest.s >&5
22701     fi
22702     rm -f conftest.o conftest.s
22703   fi
22704 fi
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22706 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22707
22708
22709 cat >>confdefs.h <<_ACEOF
22710 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22711     then echo 1; else echo 0; fi`
22712 _ACEOF
22713
22714
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22716 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22717 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22718   $as_echo_n "(cached) " >&6
22719 else
22720   gcc_cv_as_cfi_sections_directive=no
22721   if test x$gcc_cv_as != x; then
22722     $as_echo '  .text
22723         .cfi_sections .debug_frame, .eh_frame
22724         .cfi_startproc
22725         .cfi_endproc' > conftest.s
22726     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22727   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22728   (eval $ac_try) 2>&5
22729   ac_status=$?
22730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22731   test $ac_status = 0; }; }
22732     then
22733         case $target_os in
22734   win32 | pe | cygwin* | mingw32* | uwin*)
22735     # Need to check that we generated the correct relocation for the
22736     # .debug_frame section.  This was fixed for binutils 2.21.
22737     gcc_cv_as_cfi_sections_directive=no
22738     if test "x$gcc_cv_objdump" != x; then
22739      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22740         grep secrel > /dev/null; then
22741       gcc_cv_as_cfi_sections_directive=yes
22742      fi
22743     fi
22744     ;;
22745   *)
22746     gcc_cv_as_cfi_sections_directive=yes
22747     ;;
22748 esac
22749     else
22750       echo "configure: failed program was" >&5
22751       cat conftest.s >&5
22752     fi
22753     rm -f conftest.o conftest.s
22754   fi
22755 fi
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22757 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22758
22759
22760
22761 cat >>confdefs.h <<_ACEOF
22762 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22763     then echo 1; else echo 0; fi`
22764 _ACEOF
22765
22766
22767 # GAS versions up to and including 2.11.0 may mis-optimize
22768 # .eh_frame data.
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22770 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22771 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22772   $as_echo_n "(cached) " >&6
22773 else
22774   gcc_cv_as_eh_frame=no
22775     if test $in_tree_gas = yes; then
22776     if test $in_tree_gas_is_elf = yes \
22777   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22778   then gcc_cv_as_eh_frame=yes
22779 fi
22780   elif test x$gcc_cv_as != x; then
22781     $as_echo '  .text
22782 .LFB1:
22783         .4byte  0
22784 .L1:
22785         .4byte  0
22786 .LFE1:
22787         .section        .eh_frame,"aw",@progbits
22788 __FRAME_BEGIN__:
22789         .4byte  .LECIE1-.LSCIE1
22790 .LSCIE1:
22791         .4byte  0x0
22792         .byte   0x1
22793         .ascii "z\0"
22794         .byte   0x1
22795         .byte   0x78
22796         .byte   0x1a
22797         .byte   0x0
22798         .byte   0x4
22799         .4byte  1
22800         .p2align 1
22801 .LECIE1:
22802 .LSFDE1:
22803         .4byte  .LEFDE1-.LASFDE1
22804 .LASFDE1:
22805         .4byte  .LASFDE1-__FRAME_BEGIN__
22806         .4byte  .LFB1
22807         .4byte  .LFE1-.LFB1
22808         .byte   0x4
22809         .4byte  .LFE1-.LFB1
22810         .byte   0x4
22811         .4byte  .L1-.LFB1
22812 .LEFDE1:' > conftest.s
22813     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22814   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22815   (eval $ac_try) 2>&5
22816   ac_status=$?
22817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22818   test $ac_status = 0; }; }
22819     then
22820           cat > conftest.lit <<EOF
22821  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22822  0010 01000000 12000000 18000000 00000000  ................
22823  0020 08000000 04080000 0044               .........D      
22824 EOF
22825 cat > conftest.big <<EOF
22826  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22827  0010 00000001 00000012 00000018 00000000  ................
22828  0020 00000008 04000000 0844               .........D      
22829 EOF
22830   # If the assembler didn't choke, and we can objdump,
22831   # and we got the correct data, then succeed.
22832   # The text in the here-document typically retains its unix-style line
22833   # endings, while the output of objdump will use host line endings.
22834   # Therefore, use diff -b for the comparisons.
22835   if test x$gcc_cv_objdump != x \
22836   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22837      | tail -3 > conftest.got \
22838   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22839     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22840   then
22841     gcc_cv_as_eh_frame=yes
22842   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22843   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22844   (eval $ac_try) 2>&5
22845   ac_status=$?
22846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22847   test $ac_status = 0; }; }; then
22848     gcc_cv_as_eh_frame=buggy
22849   else
22850     # Uh oh, what do we do now?
22851     gcc_cv_as_eh_frame=no
22852   fi
22853     else
22854       echo "configure: failed program was" >&5
22855       cat conftest.s >&5
22856     fi
22857     rm -f conftest.o conftest.s
22858   fi
22859 fi
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22861 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22862
22863
22864 if test $gcc_cv_as_eh_frame = buggy; then
22865
22866 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22867
22868 fi
22869
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22871 $as_echo_n "checking assembler for section merging support... " >&6; }
22872 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22873   $as_echo_n "(cached) " >&6
22874 else
22875   gcc_cv_as_shf_merge=no
22876     if test $in_tree_gas = yes; then
22877     if test $in_tree_gas_is_elf = yes \
22878   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22879   then gcc_cv_as_shf_merge=yes
22880 fi
22881   elif test x$gcc_cv_as != x; then
22882     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22883     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22884   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22885   (eval $ac_try) 2>&5
22886   ac_status=$?
22887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22888   test $ac_status = 0; }; }
22889     then
22890         gcc_cv_as_shf_merge=yes
22891     else
22892       echo "configure: failed program was" >&5
22893       cat conftest.s >&5
22894     fi
22895     rm -f conftest.o conftest.s
22896   fi
22897 fi
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22899 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22900
22901 if test $gcc_cv_as_shf_merge = no; then
22902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22903 $as_echo_n "checking assembler for section merging support... " >&6; }
22904 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22905   $as_echo_n "(cached) " >&6
22906 else
22907   gcc_cv_as_shf_merge=no
22908     if test $in_tree_gas = yes; then
22909     if test $in_tree_gas_is_elf = yes \
22910   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22911   then gcc_cv_as_shf_merge=yes
22912 fi
22913   elif test x$gcc_cv_as != x; then
22914     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22915     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22916   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22917   (eval $ac_try) 2>&5
22918   ac_status=$?
22919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22920   test $ac_status = 0; }; }
22921     then
22922         gcc_cv_as_shf_merge=yes
22923     else
22924       echo "configure: failed program was" >&5
22925       cat conftest.s >&5
22926     fi
22927     rm -f conftest.o conftest.s
22928   fi
22929 fi
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22931 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22932
22933 fi
22934
22935 cat >>confdefs.h <<_ACEOF
22936 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22937 _ACEOF
22938
22939
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22941 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22942 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22943   $as_echo_n "(cached) " >&6
22944 else
22945   gcc_cv_as_comdat_group=no
22946     if test $in_tree_gas = yes; then
22947     if test $in_tree_gas_is_elf = yes \
22948   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22949   then gcc_cv_as_comdat_group=yes
22950 fi
22951   elif test x$gcc_cv_as != x; then
22952     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22953     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22954   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22955   (eval $ac_try) 2>&5
22956   ac_status=$?
22957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22958   test $ac_status = 0; }; }
22959     then
22960         gcc_cv_as_comdat_group=yes
22961     else
22962       echo "configure: failed program was" >&5
22963       cat conftest.s >&5
22964     fi
22965     rm -f conftest.o conftest.s
22966   fi
22967 fi
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22969 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22970
22971 if test $gcc_cv_as_comdat_group = yes; then
22972   gcc_cv_as_comdat_group_percent=no
22973   gcc_cv_as_comdat_group_group=no
22974 else
22975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22976 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22977 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22978   $as_echo_n "(cached) " >&6
22979 else
22980   gcc_cv_as_comdat_group_percent=no
22981     if test $in_tree_gas = yes; then
22982     if test $in_tree_gas_is_elf = yes \
22983   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22984   then gcc_cv_as_comdat_group_percent=yes
22985 fi
22986   elif test x$gcc_cv_as != x; then
22987     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22988     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22989   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22990   (eval $ac_try) 2>&5
22991   ac_status=$?
22992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993   test $ac_status = 0; }; }
22994     then
22995         gcc_cv_as_comdat_group_percent=yes
22996     else
22997       echo "configure: failed program was" >&5
22998       cat conftest.s >&5
22999     fi
23000     rm -f conftest.o conftest.s
23001   fi
23002 fi
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23004 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23005
23006  if test $gcc_cv_as_comdat_group_percent = yes; then
23007    gcc_cv_as_comdat_group_group=no
23008  else
23009    case "${target}" in
23010      # Sun as uses a completely different syntax.
23011      *-*-solaris2*)
23012        case "${target}" in
23013          sparc*-*-solaris2*)
23014            conftest_s='
23015                .group foo,".text%foo",#comdat
23016                .section ".text%foo", #alloc,#execinstr,#progbits
23017                .globl foo
23018              foo:
23019              '
23020            ;;
23021          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23022            conftest_s='
23023                .group foo,.text%foo,#comdat
23024                .section .text%foo, "ax", @progbits
23025                .globl  foo
23026              foo:
23027              '
23028            ;;
23029        esac
23030        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23031 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23032 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23033   $as_echo_n "(cached) " >&6
23034 else
23035   gcc_cv_as_comdat_group_group=no
23036   if test x$gcc_cv_as != x; then
23037     $as_echo "$conftest_s" > conftest.s
23038     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23039   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23040   (eval $ac_try) 2>&5
23041   ac_status=$?
23042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23043   test $ac_status = 0; }; }
23044     then
23045         gcc_cv_as_comdat_group_group=yes
23046     else
23047       echo "configure: failed program was" >&5
23048       cat conftest.s >&5
23049     fi
23050     rm -f conftest.o conftest.s
23051   fi
23052 fi
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23054 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23055
23056        ;;
23057    esac
23058  fi
23059 fi
23060 if test x"$ld_is_gold" = xyes; then
23061   comdat_group=yes
23062 elif test $in_tree_ld = yes ; then
23063   comdat_group=no
23064   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 \
23065      && test $in_tree_ld_is_elf = yes; then
23066      comdat_group=yes
23067   fi
23068 elif echo "$ld_ver" | grep GNU > /dev/null; then
23069   comdat_group=yes
23070   if test 0"$ld_date" -lt 20050308; then
23071     if test -n "$ld_date"; then
23072       # If there was date string, but was earlier than 2005-03-08, fail
23073       comdat_group=no
23074     elif test "$ld_vers_major" -lt 2; then
23075       comdat_group=no
23076     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23077       comdat_group=no
23078     fi
23079   fi
23080 else
23081   case "${target}" in
23082     *-*-solaris2.1[1-9]*)
23083       comdat_group=no
23084       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23085       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23086       # version 1.688.
23087       #
23088       # If using Sun as for COMDAT group as emitted by GCC, one needs at
23089       # least ld version 1.2267.
23090       if test "$ld_vers_major" -gt 1; then
23091         comdat_group=yes
23092       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23093         comdat_group=yes
23094       elif test "$ld_vers_minor" -ge 2267; then
23095         comdat_group=yes
23096       fi
23097       ;;
23098     *)
23099       # Assume linkers other than GNU ld don't support COMDAT group.
23100       comdat_group=no
23101       ;;
23102   esac
23103 fi
23104 # Allow overriding the automatic COMDAT group tests above.
23105 # Check whether --enable-comdat was given.
23106 if test "${enable_comdat+set}" = set; then :
23107   enableval=$enable_comdat; comdat_group="$enable_comdat"
23108 fi
23109
23110 if test $comdat_group = no; then
23111   gcc_cv_as_comdat_group=no
23112   gcc_cv_as_comdat_group_percent=no
23113   gcc_cv_as_comdat_group_group=no
23114 fi
23115
23116 cat >>confdefs.h <<_ACEOF
23117 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23118     || test $gcc_cv_as_comdat_group_percent = yes \
23119     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23120 _ACEOF
23121
23122
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23124 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23125 if test "${gcc_cv_as_discriminator+set}" = set; then :
23126   $as_echo_n "(cached) " >&6
23127 else
23128   gcc_cv_as_discriminator=no
23129     if test $in_tree_gas = yes; then
23130     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23131   then gcc_cv_as_discriminator=yes
23132 fi
23133   elif test x$gcc_cv_as != x; then
23134     $as_echo '  .text
23135         .file 1 "conf.c"
23136         .loc 1 1 0 discriminator 1' > conftest.s
23137     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23138   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23142   test $ac_status = 0; }; }
23143     then
23144         gcc_cv_as_discriminator=yes
23145     else
23146       echo "configure: failed program was" >&5
23147       cat conftest.s >&5
23148     fi
23149     rm -f conftest.o conftest.s
23150   fi
23151 fi
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23153 $as_echo "$gcc_cv_as_discriminator" >&6; }
23154 if test $gcc_cv_as_discriminator = yes; then
23155
23156 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23157
23158 fi
23159
23160 # Thread-local storage - the check is heavily parameterized.
23161 conftest_s=
23162 tls_first_major=
23163 tls_first_minor=
23164 tls_as_opt=
23165 case "$target" in
23166   alpha*-*-*)
23167     conftest_s='
23168         .section ".tdata","awT",@progbits
23169 foo:    .long   25
23170         .text
23171         ldq     $27,__tls_get_addr($29)         !literal!1
23172         lda     $16,foo($29)                    !tlsgd!1
23173         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23174         ldq     $27,__tls_get_addr($29)         !literal!2
23175         lda     $16,foo($29)                    !tlsldm!2
23176         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23177         ldq     $1,foo($29)                     !gotdtprel
23178         ldah    $2,foo($29)                     !dtprelhi
23179         lda     $3,foo($2)                      !dtprello
23180         lda     $4,foo($29)                     !dtprel
23181         ldq     $1,foo($29)                     !gottprel
23182         ldah    $2,foo($29)                     !tprelhi
23183         lda     $3,foo($2)                      !tprello
23184         lda     $4,foo($29)                     !tprel'
23185         tls_first_major=2
23186         tls_first_minor=13
23187         tls_as_opt=--fatal-warnings
23188         ;;
23189   cris-*-*|crisv32-*-*)
23190     conftest_s='
23191         .section ".tdata","awT",@progbits
23192 x:      .long   25
23193         .text
23194         move.d x:IE,$r10
23195         nop'
23196         tls_first_major=2
23197         tls_first_minor=20
23198         tls_as_opt=--fatal-warnings
23199         ;;
23200   frv*-*-*)
23201     conftest_s='
23202         .section ".tdata","awT",@progbits
23203 x:      .long   25
23204         .text
23205         call    #gettlsoff(x)'
23206         tls_first_major=2
23207         tls_first_minor=14
23208         ;;
23209   hppa*-*-linux*)
23210     conftest_s='
23211 t1:     .reg    %r20
23212 t2:     .reg    %r21
23213 gp:     .reg    %r19
23214         .section ".tdata","awT",@progbits
23215 foo:    .long   25
23216         .text
23217         .align  4
23218         addil LT%foo-$tls_gdidx$,gp
23219         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23220         b __tls_get_addr
23221         nop
23222         addil LT%foo-$tls_ldidx$,gp
23223         b __tls_get_addr
23224         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23225         addil LR%foo-$tls_dtpoff$,%ret0
23226         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23227         mfctl %cr27,%t1
23228         addil LT%foo-$tls_ieoff$,gp
23229         ldw RT%foo-$tls_ieoff$(%r1),%t2
23230         add %t1,%t2,%t3
23231         mfctl %cr27,%t1
23232         addil LR%foo-$tls_leoff$,%t1
23233         ldo RR%foo-$tls_leoff$(%r1),%t2'
23234         tls_first_major=2
23235         tls_first_minor=15
23236         tls_as_opt=--fatal-warnings
23237         ;;
23238   arm*-*-*)
23239     conftest_s='
23240         .section ".tdata","awT",%progbits
23241 foo:    .long   25
23242         .text
23243 .word foo(gottpoff)
23244 .word foo(tpoff)
23245 .word foo(tlsgd)
23246 .word foo(tlsldm)
23247 .word foo(tlsldo)'
23248         tls_first_major=2
23249         tls_first_minor=17
23250         ;;
23251   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23252     case "$target" in
23253       i[34567]86-*-solaris2.*)
23254         on_solaris=yes
23255         tga_func=___tls_get_addr
23256         ;;
23257       x86_64-*-solaris2.1[0-9]*)
23258         on_solaris=yes
23259         tga_func=__tls_get_addr
23260         ;;
23261       *)
23262         on_solaris=no
23263         ;;
23264     esac
23265     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23266       conftest_s='
23267         .section .tdata,"awt",@progbits'
23268       tls_first_major=0
23269       tls_first_minor=0
23270
23271 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23272
23273     else
23274       conftest_s='
23275         .section ".tdata","awT",@progbits'
23276       tls_first_major=2
23277       tls_first_minor=14
23278       tls_as_opt="--fatal-warnings"
23279     fi
23280     conftest_s="$conftest_s
23281 foo:    .long   25
23282         .text
23283         movl    %gs:0, %eax
23284         leal    foo@tlsgd(,%ebx,1), %eax
23285         leal    foo@tlsldm(%ebx), %eax
23286         leal    foo@dtpoff(%eax), %edx
23287         movl    foo@gottpoff(%ebx), %eax
23288         subl    foo@gottpoff(%ebx), %eax
23289         addl    foo@gotntpoff(%ebx), %eax
23290         movl    foo@indntpoff, %eax
23291         movl    \$foo@tpoff, %eax
23292         subl    \$foo@tpoff, %eax
23293         leal    foo@ntpoff(%ecx), %eax"
23294     ;;
23295   x86_64-*-*)
23296     conftest_s='
23297         .section ".tdata","awT",@progbits
23298 foo:    .long   25
23299         .text
23300         movq    %fs:0, %rax
23301         leaq    foo@TLSGD(%rip), %rdi
23302         leaq    foo@TLSLD(%rip), %rdi
23303         leaq    foo@DTPOFF(%rax), %rdx
23304         movq    foo@GOTTPOFF(%rip), %rax
23305         movq    $foo@TPOFF, %rax'
23306         tls_first_major=2
23307         tls_first_minor=14
23308         tls_as_opt=--fatal-warnings
23309         ;;
23310   ia64-*-*)
23311     conftest_s='
23312         .section ".tdata","awT",@progbits
23313 foo:    data8   25
23314         .text
23315         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23316         addl    r17 = @ltoff(@dtprel(foo#)), gp
23317         addl    r18 = @ltoff(@tprel(foo#)), gp
23318         addl    r19 = @dtprel(foo#), gp
23319         adds    r21 = @dtprel(foo#), r13
23320         movl    r23 = @dtprel(foo#)
23321         addl    r20 = @tprel(foo#), gp
23322         adds    r22 = @tprel(foo#), r13
23323         movl    r24 = @tprel(foo#)'
23324         tls_first_major=2
23325         tls_first_minor=13
23326         tls_as_opt=--fatal-warnings
23327         ;;
23328   mips*-*-*)
23329     conftest_s='
23330         .section .tdata,"awT",@progbits
23331 x:
23332         .word 2
23333         .text
23334         addiu $4, $28, %tlsgd(x)
23335         addiu $4, $28, %tlsldm(x)
23336         lui $4, %dtprel_hi(x)
23337         addiu $4, $4, %dtprel_lo(x)
23338         lw $4, %gottprel(x)($28)
23339         lui $4, %tprel_hi(x)
23340         addiu $4, $4, %tprel_lo(x)'
23341         tls_first_major=2
23342         tls_first_minor=16
23343         tls_as_opt='-32 --fatal-warnings'
23344         ;;
23345   m68k-*-*)
23346     conftest_s='
23347         .section .tdata,"awT",@progbits
23348 x:
23349         .word 2
23350         .text
23351 foo:
23352         move.l x@TLSGD(%a5),%a0
23353         move.l x@TLSLDM(%a5),%a0
23354         move.l x@TLSLDO(%a5),%a0
23355         move.l x@TLSIE(%a5),%a0
23356         move.l x@TLSLE(%a5),%a0'
23357         tls_first_major=2
23358         tls_first_minor=19
23359         tls_as_opt='--fatal-warnings'
23360         ;;
23361   powerpc-*-*)
23362     conftest_s='
23363         .section ".tdata","awT",@progbits
23364         .align 2
23365 ld0:    .space 4
23366 ld1:    .space 4
23367 x1:     .space 4
23368 x2:     .space 4
23369 x3:     .space 4
23370         .text
23371         addi 3,31,ld0@got@tlsgd
23372         bl __tls_get_addr
23373         addi 3,31,x1@got@tlsld
23374         bl __tls_get_addr
23375         addi 9,3,x1@dtprel
23376         addis 9,3,x2@dtprel@ha
23377         addi 9,9,x2@dtprel@l
23378         lwz 9,x3@got@tprel(31)
23379         add 9,9,x@tls
23380         addi 9,2,x1@tprel
23381         addis 9,2,x2@tprel@ha
23382         addi 9,9,x2@tprel@l'
23383         tls_first_major=2
23384         tls_first_minor=14
23385         tls_as_opt="-a32 --fatal-warnings"
23386         ;;
23387   powerpc64-*-*)
23388     conftest_s='
23389         .section ".tdata","awT",@progbits
23390         .align 3
23391 ld0:    .space 8
23392 ld1:    .space 8
23393 x1:     .space 8
23394 x2:     .space 8
23395 x3:     .space 8
23396         .text
23397         addi 3,2,ld0@got@tlsgd
23398         bl .__tls_get_addr
23399         nop
23400         addi 3,2,ld1@toc
23401         bl .__tls_get_addr
23402         nop
23403         addi 3,2,x1@got@tlsld
23404         bl .__tls_get_addr
23405         nop
23406         addi 9,3,x1@dtprel
23407         bl .__tls_get_addr
23408         nop
23409         addis 9,3,x2@dtprel@ha
23410         addi 9,9,x2@dtprel@l
23411         bl .__tls_get_addr
23412         nop
23413         ld 9,x3@got@dtprel(2)
23414         add 9,9,3
23415         bl .__tls_get_addr
23416         nop'
23417         tls_first_major=2
23418         tls_first_minor=14
23419         tls_as_opt="-a64 --fatal-warnings"
23420         ;;
23421   s390-*-*)
23422     conftest_s='
23423         .section ".tdata","awT",@progbits
23424 foo:    .long   25
23425         .text
23426         .long   foo@TLSGD
23427         .long   foo@TLSLDM
23428         .long   foo@DTPOFF
23429         .long   foo@NTPOFF
23430         .long   foo@GOTNTPOFF
23431         .long   foo@INDNTPOFF
23432         l       %r1,foo@GOTNTPOFF(%r12)
23433         l       %r1,0(%r1):tls_load:foo
23434         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23435         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23436         tls_first_major=2
23437         tls_first_minor=14
23438         tls_as_opt="-m31 --fatal-warnings"
23439         ;;
23440   s390x-*-*)
23441     conftest_s='
23442         .section ".tdata","awT",@progbits
23443 foo:    .long   25
23444         .text
23445         .quad   foo@TLSGD
23446         .quad   foo@TLSLDM
23447         .quad   foo@DTPOFF
23448         .quad   foo@NTPOFF
23449         .quad   foo@GOTNTPOFF
23450         lg      %r1,foo@GOTNTPOFF(%r12)
23451         larl    %r1,foo@INDNTPOFF
23452         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23453         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23454         tls_first_major=2
23455         tls_first_minor=14
23456         tls_as_opt="-m64 -Aesame --fatal-warnings"
23457         ;;
23458   sh-*-* | sh[34]-*-*)
23459     conftest_s='
23460         .section ".tdata","awT",@progbits
23461 foo:    .long   25
23462         .text
23463         .long   foo@TLSGD
23464         .long   foo@TLSLDM
23465         .long   foo@DTPOFF
23466         .long   foo@GOTTPOFF
23467         .long   foo@TPOFF'
23468         tls_first_major=2
23469         tls_first_minor=13
23470         tls_as_opt=--fatal-warnings
23471         ;;
23472   sparc*-*-*)
23473     case "$target" in
23474       sparc*-sun-solaris2.*)
23475         on_solaris=yes
23476         tga_func=__tls_get_addr
23477         ;;
23478       *)
23479         on_solaris=no
23480         ;;
23481     esac
23482     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23483       conftest_s='
23484         .section ".tdata",#alloc,#write,#tls'
23485         tls_first_major=0
23486         tls_first_minor=0
23487     else
23488       conftest_s='
23489         .section ".tdata","awT",@progbits'
23490         tls_first_major=2
23491         tls_first_minor=14
23492         tls_as_opt="-32 --fatal-warnings"
23493     fi
23494     conftest_s="$conftest_s
23495 foo:    .long   25
23496         .text
23497         sethi   %tgd_hi22(foo), %o0
23498         add     %o0, %tgd_lo10(foo), %o1
23499         add     %l7, %o1, %o0, %tgd_add(foo)
23500         call    __tls_get_addr, %tgd_call(foo)
23501         sethi   %tldm_hi22(foo), %l1
23502         add     %l1, %tldm_lo10(foo), %l2
23503         add     %l7, %l2, %o0, %tldm_add(foo)
23504         call    __tls_get_addr, %tldm_call(foo)
23505         sethi   %tldo_hix22(foo), %l3
23506         xor     %l3, %tldo_lox10(foo), %l4
23507         add     %o0, %l4, %l5, %tldo_add(foo)
23508         sethi   %tie_hi22(foo), %o3
23509         add     %o3, %tie_lo10(foo), %o3
23510         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23511         add     %g7, %o2, %o4, %tie_add(foo)
23512         sethi   %tle_hix22(foo), %l1
23513         xor     %l1, %tle_lox10(foo), %o5
23514         ld      [%g7 + %o5], %o1"
23515         ;;
23516   xtensa*-*-*)
23517     conftest_s='
23518         .section ".tdata","awT",@progbits
23519 foo:    .long   25
23520         .text
23521         movi    a8, foo@TLSFUNC
23522         movi    a10, foo@TLSARG
23523         callx8.tls a8, foo@TLSCALL'
23524         tls_first_major=2
23525         tls_first_minor=19
23526         ;;
23527 esac
23528 set_have_as_tls=no
23529 if test "x$enable_tls" = xno ; then
23530   : # TLS explicitly disabled.
23531 elif test "x$enable_tls" = xyes ; then
23532   set_have_as_tls=yes # TLS explicitly enabled.
23533 elif test -z "$tls_first_major"; then
23534   : # If we don't have a check, assume no support.
23535 else
23536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23537 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23538 if test "${gcc_cv_as_tls+set}" = set; then :
23539   $as_echo_n "(cached) " >&6
23540 else
23541   gcc_cv_as_tls=no
23542     if test $in_tree_gas = yes; then
23543     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23544   then gcc_cv_as_tls=yes
23545 fi
23546   elif test x$gcc_cv_as != x; then
23547     $as_echo "$conftest_s" > conftest.s
23548     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23549   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23550   (eval $ac_try) 2>&5
23551   ac_status=$?
23552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23553   test $ac_status = 0; }; }
23554     then
23555         gcc_cv_as_tls=yes
23556     else
23557       echo "configure: failed program was" >&5
23558       cat conftest.s >&5
23559     fi
23560     rm -f conftest.o conftest.s
23561   fi
23562 fi
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23564 $as_echo "$gcc_cv_as_tls" >&6; }
23565 if test $gcc_cv_as_tls = yes; then
23566   set_have_as_tls=yes
23567 fi
23568 fi
23569 case "$target" in
23570   *-*-irix6*)
23571     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23572     # with TLS support are in use, native TLS cannot work.
23573     set_have_as_tls=no
23574     ;;
23575   *-*-osf*)
23576     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23577     # gld with TLS support are in use, native TLS cannot work.
23578     set_have_as_tls=no
23579     ;;
23580   # TLS was introduced in the Solaris 9 FCS release and backported to
23581   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23582   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23583   # ld and GCC don't support any longer.
23584   *-*-solaris2.*)
23585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23586 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23587     ld_tls_support=no
23588     # Check ld and ld.so.1 TLS support.
23589     if echo "$ld_ver" | grep GNU > /dev/null; then
23590       # Assume all interesting versions of GNU ld have TLS support.
23591       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23592       ld_tls_support=yes
23593     else
23594       case "$target" in
23595         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23596         i?86-*-solaris2.8)
23597           min_tls_ld_vers_minor=280
23598           ;;
23599         # Solaris 8/SPARC ld has TLS support since version 1.272.
23600         sparc*-*-solaris2.8)
23601           min_tls_ld_vers_minor=272
23602           ;;
23603         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23604         i?86-*-solaris2.9)
23605           min_tls_ld_vers_minor=374
23606           ;;
23607         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23608         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23609           min_tls_ld_vers_minor=343
23610           ;;
23611       esac
23612       if test "$ld_vers_major" -gt 1 || \
23613         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23614         ld_tls_support=yes
23615       else
23616         set_have_as_tls=no
23617       fi
23618     fi
23619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23620 $as_echo "$ld_tls_support" >&6; }
23621
23622     save_LIBS="$LIBS"
23623     save_LDFLAGS="$LDFLAGS"
23624     LIBS=
23625     LDFLAGS=
23626
23627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23628 $as_echo_n "checking alternate thread library... " >&6; }
23629     case "$target" in
23630       # TLS support was backported to Solaris 8 patches, but only lives in
23631       # the alternate thread library which became the default in Solaris 9.
23632       # We want to always use that, irrespective of TLS support.
23633       *-*-solaris2.8)
23634         # Take multilib subdir into account.  There's no spec to handle
23635         # this.  The 64 symlink exists since Solaris 8.
23636         lwp_dir=/usr/lib/lwp
23637         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23638         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23639         ;;
23640       *-*-solaris2*)
23641         lwp_dir="none"
23642         lwp_spec=""
23643         ;;
23644     esac
23645     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23646
23647 cat >>confdefs.h <<_ACEOF
23648 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23649 _ACEOF
23650
23651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23652 $as_echo "$lwp_dir" >&6; }
23653
23654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23655 $as_echo_n "checking library containing $tga_func... " >&6; }
23656     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23657     # (32-bit x86) only lived in libthread, so check for that.  Keep
23658     # set_have_as_tls if found, disable if not.
23659     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23661 $as_echo_n "checking for library containing $tga_func... " >&6; }
23662 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23663   $as_echo_n "(cached) " >&6
23664 else
23665   ac_func_search_save_LIBS=$LIBS
23666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23667 /* end confdefs.h.  */
23668
23669 /* Override any GCC internal prototype to avoid an error.
23670    Use char because int might match the return type of a GCC
23671    builtin and then its argument prototype would still apply.  */
23672 #ifdef __cplusplus
23673 extern "C"
23674 #endif
23675 char $tga_func ();
23676 int
23677 main ()
23678 {
23679 return $tga_func ();
23680   ;
23681   return 0;
23682 }
23683 _ACEOF
23684 for ac_lib in '' thread; do
23685   if test -z "$ac_lib"; then
23686     ac_res="none required"
23687   else
23688     ac_res=-l$ac_lib
23689     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23690   fi
23691   if ac_fn_c_try_link "$LINENO"; then :
23692   eval "$as_ac_Search=\$ac_res"
23693 fi
23694 rm -f core conftest.err conftest.$ac_objext \
23695     conftest$ac_exeext
23696   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23697   break
23698 fi
23699 done
23700 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23701
23702 else
23703   eval "$as_ac_Search=no"
23704 fi
23705 rm conftest.$ac_ext
23706 LIBS=$ac_func_search_save_LIBS
23707 fi
23708 eval ac_res=\$$as_ac_Search
23709                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23710 $as_echo "$ac_res" >&6; }
23711 eval ac_res=\$$as_ac_Search
23712 if test "$ac_res" != no; then :
23713   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23714
23715 else
23716   set_have_as_tls=no
23717 fi
23718
23719     # Clear LIBS if we cannot support TLS.
23720     if test $set_have_as_tls = no; then
23721       LIBS=
23722     fi
23723     # Always define LIB_TLS_SPEC, even without TLS support.
23724
23725 cat >>confdefs.h <<_ACEOF
23726 #define LIB_TLS_SPEC "$LIBS"
23727 _ACEOF
23728
23729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23730 $as_echo "$LIBS" >&6; }
23731
23732     LIBS="$save_LIBS"
23733     LDFLAGS="$save_LDFLAGS"
23734     ;;
23735 esac
23736 if test $set_have_as_tls = yes ; then
23737
23738 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23739
23740 fi
23741
23742 # Target-specific assembler checks.
23743
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23745 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23746 gcc_cv_ld_static_dynamic=no
23747 gcc_cv_ld_static_option='-Bstatic'
23748 gcc_cv_ld_dynamic_option='-Bdynamic'
23749 if test $in_tree_ld = yes ; then
23750   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
23751     gcc_cv_ld_static_dynamic=yes
23752   fi
23753 elif test x$gcc_cv_ld != x; then
23754   # Check if linker supports -Bstatic/-Bdynamic option
23755   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23756      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23757       gcc_cv_ld_static_dynamic=yes
23758   else
23759     case "$target" in
23760       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23761       alpha*-dec-osf*)
23762         gcc_cv_ld_static_dynamic=yes
23763         gcc_cv_ld_static_option="-noso"
23764         gcc_cv_ld_dynamic_option="-so_archive"
23765         ;;
23766       # HP-UX ld uses -a flags to select between shared and archive.
23767       *-*-hpux*)
23768         if test x"$gnu_ld" = xno; then
23769           gcc_cv_ld_static_dynamic=yes
23770           gcc_cv_ld_static_option="-aarchive_shared"
23771           gcc_cv_ld_dynamic_option="-adefault"
23772         fi
23773         ;;
23774       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23775       mips-sgi-irix6*)
23776         gcc_cv_ld_static_dynamic=yes
23777         ;;
23778       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23779       *-*-solaris2*)
23780         gcc_cv_ld_static_dynamic=yes
23781         ;;
23782     esac
23783   fi
23784 fi
23785 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23786
23787 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23788
23789
23790 cat >>confdefs.h <<_ACEOF
23791 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23792 _ACEOF
23793
23794
23795 cat >>confdefs.h <<_ACEOF
23796 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23797 _ACEOF
23798
23799 fi
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23801 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23802
23803 if test x"$demangler_in_ld" = xyes; then
23804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23805 $as_echo_n "checking linker --demangle support... " >&6; }
23806   gcc_cv_ld_demangle=no
23807   if test $in_tree_ld = yes; then
23808     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 \
23809       gcc_cv_ld_demangle=yes
23810     fi
23811   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23812     # Check if the GNU linker supports --demangle option
23813     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23814       gcc_cv_ld_demangle=yes
23815     fi
23816   fi
23817   if test x"$gcc_cv_ld_demangle" = xyes; then
23818
23819 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23820
23821   fi
23822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23823 $as_echo "$gcc_cv_ld_demangle" >&6; }
23824 fi
23825
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23827 $as_echo_n "checking linker plugin support... " >&6; }
23828 gcc_cv_lto_plugin=0
23829 if test -f liblto_plugin.la; then
23830   save_ld_ver="$ld_ver"
23831   save_ld_vers_major="$ld_vers_major"
23832   save_ld_vers_minor="$ld_vers_minor"
23833   save_ld_is_gold="$ld_is_gold"
23834
23835   ld_is_gold=no
23836
23837   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23838     ld_ver="GNU ld"
23839     # FIXME: ld_is_gold?
23840     ld_vers_major="$gcc_cv_gld_major_version"
23841     ld_vers_minor="$gcc_cv_gld_minor_version"
23842   else
23843     # Determine plugin linker version.
23844     # FIXME: Partial duplicate from above, generalize.
23845     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23846     if echo "$ld_ver" | grep GNU > /dev/null; then
23847       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23848         ld_is_gold=yes
23849         ld_vers=`echo $ld_ver | sed -n \
23850             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23851       else
23852         ld_vers=`echo $ld_ver | sed -n \
23853             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23854       fi
23855       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23856       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23857     fi
23858   fi
23859
23860   # Determine plugin support.
23861   if echo "$ld_ver" | grep GNU > /dev/null; then
23862     # Require GNU ld or gold 2.21+ for plugin support by default.
23863     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23864       gcc_cv_lto_plugin=2
23865     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23866     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23867       gcc_cv_lto_plugin=1
23868     fi
23869   fi
23870
23871   ld_ver="$save_ld_ver"
23872   ld_vers_major="$save_ld_vers_major"
23873   ld_vers_minor="$save_ld_vers_minor"
23874   ld_is_gold="$save_ld_is_gold"
23875 fi
23876
23877 cat >>confdefs.h <<_ACEOF
23878 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23879 _ACEOF
23880
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23882 $as_echo "$gcc_cv_lto_plugin" >&6; }
23883
23884 case "$target" in
23885   # All TARGET_ABI_OSF targets.
23886   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23888 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23889 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23890   $as_echo_n "(cached) " >&6
23891 else
23892   gcc_cv_as_alpha_explicit_relocs=no
23893     if test $in_tree_gas = yes; then
23894     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23895   then gcc_cv_as_alpha_explicit_relocs=yes
23896 fi
23897   elif test x$gcc_cv_as != x; then
23898     $as_echo '  .set nomacro
23899         .text
23900         extbl   $3, $2, $3      !lituse_bytoff!1
23901         ldq     $2, a($29)      !literal!1
23902         ldq     $4, b($29)      !literal!2
23903         ldq_u   $3, 0($2)       !lituse_base!1
23904         ldq     $27, f($29)     !literal!5
23905         jsr     $26, ($27), f   !lituse_jsr!5
23906         ldah    $29, 0($26)     !gpdisp!3
23907         lda     $0, c($29)      !gprel
23908         ldah    $1, d($29)      !gprelhigh
23909         lda     $1, d($1)       !gprellow
23910         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23911     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23912   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23913   (eval $ac_try) 2>&5
23914   ac_status=$?
23915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23916   test $ac_status = 0; }; }
23917     then
23918         gcc_cv_as_alpha_explicit_relocs=yes
23919     else
23920       echo "configure: failed program was" >&5
23921       cat conftest.s >&5
23922     fi
23923     rm -f conftest.o conftest.s
23924   fi
23925 fi
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23927 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23928 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23929
23930 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23931
23932 fi
23933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23934 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23935 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23936   $as_echo_n "(cached) " >&6
23937 else
23938   gcc_cv_as_alpha_jsrdirect_relocs=no
23939     if test $in_tree_gas = yes; then
23940     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23941   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23942 fi
23943   elif test x$gcc_cv_as != x; then
23944     $as_echo '  .set nomacro
23945         .text
23946         ldq     $27, a($29)     !literal!1
23947         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23948     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23949   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950   (eval $ac_try) 2>&5
23951   ac_status=$?
23952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953   test $ac_status = 0; }; }
23954     then
23955         gcc_cv_as_alpha_jsrdirect_relocs=yes
23956     else
23957       echo "configure: failed program was" >&5
23958       cat conftest.s >&5
23959     fi
23960     rm -f conftest.o conftest.s
23961   fi
23962 fi
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23964 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23965 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23966
23967 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23968
23969 fi
23970     ;;
23971
23972   cris-*-*)
23973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23974 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23975 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23976   $as_echo_n "(cached) " >&6
23977 else
23978   gcc_cv_as_cris_no_mul_bug=no
23979     if test $in_tree_gas = yes; then
23980     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23981   then gcc_cv_as_cris_no_mul_bug=yes
23982 fi
23983   elif test x$gcc_cv_as != x; then
23984     $as_echo '.text' > conftest.s
23985     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23986   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23987   (eval $ac_try) 2>&5
23988   ac_status=$?
23989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23990   test $ac_status = 0; }; }
23991     then
23992         gcc_cv_as_cris_no_mul_bug=yes
23993     else
23994       echo "configure: failed program was" >&5
23995       cat conftest.s >&5
23996     fi
23997     rm -f conftest.o conftest.s
23998   fi
23999 fi
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24001 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24002 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24003
24004 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24005
24006 fi
24007     ;;
24008
24009   sparc*-*-*)
24010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24011 $as_echo_n "checking assembler for .register... " >&6; }
24012 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24013   $as_echo_n "(cached) " >&6
24014 else
24015   gcc_cv_as_sparc_register_op=no
24016   if test x$gcc_cv_as != x; then
24017     $as_echo '.register %g2, #scratch' > conftest.s
24018     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24019   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24020   (eval $ac_try) 2>&5
24021   ac_status=$?
24022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24023   test $ac_status = 0; }; }
24024     then
24025         gcc_cv_as_sparc_register_op=yes
24026     else
24027       echo "configure: failed program was" >&5
24028       cat conftest.s >&5
24029     fi
24030     rm -f conftest.o conftest.s
24031   fi
24032 fi
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24034 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24035 if test $gcc_cv_as_sparc_register_op = yes; then
24036
24037 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24038
24039 fi
24040
24041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24042 $as_echo_n "checking assembler for -relax option... " >&6; }
24043 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24044   $as_echo_n "(cached) " >&6
24045 else
24046   gcc_cv_as_sparc_relax=no
24047   if test x$gcc_cv_as != x; then
24048     $as_echo '.text' > conftest.s
24049     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24050   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24051   (eval $ac_try) 2>&5
24052   ac_status=$?
24053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24054   test $ac_status = 0; }; }
24055     then
24056         gcc_cv_as_sparc_relax=yes
24057     else
24058       echo "configure: failed program was" >&5
24059       cat conftest.s >&5
24060     fi
24061     rm -f conftest.o conftest.s
24062   fi
24063 fi
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24065 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24066 if test $gcc_cv_as_sparc_relax = yes; then
24067
24068 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24069
24070 fi
24071
24072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24073 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24074 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24075   $as_echo_n "(cached) " >&6
24076 else
24077   gcc_cv_as_sparc_gotdata_op=no
24078   if test x$gcc_cv_as != x; then
24079     $as_echo '.text
24080 .align 4
24081 foo:
24082         nop
24083 bar:
24084         sethi %gdop_hix22(foo), %g1
24085         xor    %g1, %gdop_lox10(foo), %g1
24086         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24087     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24088   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089   (eval $ac_try) 2>&5
24090   ac_status=$?
24091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092   test $ac_status = 0; }; }
24093     then
24094         if test x$gcc_cv_ld != x \
24095        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24096          if test x$gcc_cv_objdump != x; then
24097            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24098               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24099                gcc_cv_as_sparc_gotdata_op=no
24100            else
24101                gcc_cv_as_sparc_gotdata_op=yes
24102            fi
24103          fi
24104        fi
24105        rm -f conftest
24106     else
24107       echo "configure: failed program was" >&5
24108       cat conftest.s >&5
24109     fi
24110     rm -f conftest.o conftest.s
24111   fi
24112 fi
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24114 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24115 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24116
24117 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24118
24119 fi
24120
24121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24122 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24123 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24124   $as_echo_n "(cached) " >&6
24125 else
24126   gcc_cv_as_sparc_ua_pcrel=no
24127   if test x$gcc_cv_as != x; then
24128     $as_echo '.text
24129 foo:
24130         nop
24131 .data
24132 .align 4
24133 .byte 0
24134 .uaword %r_disp32(foo)' > conftest.s
24135     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24136   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24137   (eval $ac_try) 2>&5
24138   ac_status=$?
24139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24140   test $ac_status = 0; }; }
24141     then
24142         if test x$gcc_cv_ld != x \
24143        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24144          gcc_cv_as_sparc_ua_pcrel=yes
24145        fi
24146        rm -f conftest
24147     else
24148       echo "configure: failed program was" >&5
24149       cat conftest.s >&5
24150     fi
24151     rm -f conftest.o conftest.s
24152   fi
24153 fi
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24155 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24156 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24157
24158 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24159
24160
24161       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24162 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24163 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24164   $as_echo_n "(cached) " >&6
24165 else
24166   gcc_cv_as_sparc_ua_pcrel_hidden=no
24167   if test x$gcc_cv_as != x; then
24168     $as_echo '.data
24169 .align 4
24170 .byte 0x31
24171 .uaword %r_disp32(foo)
24172 .byte 0x32, 0x33, 0x34
24173 .global foo
24174 .hidden foo
24175 foo:
24176 .skip 4' > conftest.s
24177     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24178   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24179   (eval $ac_try) 2>&5
24180   ac_status=$?
24181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182   test $ac_status = 0; }; }
24183     then
24184         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24185          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24186          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24187             | grep ' 31000000 07323334' > /dev/null 2>&1; then
24188             if $gcc_cv_objdump -R conftest 2> /dev/null \
24189                | grep 'DISP32' > /dev/null 2>&1; then
24190                 :
24191             else
24192                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24193             fi
24194          fi
24195          rm -f conftest
24196     else
24197       echo "configure: failed program was" >&5
24198       cat conftest.s >&5
24199     fi
24200     rm -f conftest.o conftest.s
24201   fi
24202 fi
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24204 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24205 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24206
24207 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24208
24209 fi
24210
24211 fi # unaligned pcrel relocs
24212
24213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24214 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24215 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24216   $as_echo_n "(cached) " >&6
24217 else
24218   gcc_cv_as_sparc_offsetable_lo10=no
24219   if test x$gcc_cv_as != x; then
24220     $as_echo '.text
24221         or %g1, %lo(ab) + 12, %g1
24222         or %g1, %lo(ab + 12), %g1' > conftest.s
24223     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24224   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24225   (eval $ac_try) 2>&5
24226   ac_status=$?
24227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24228   test $ac_status = 0; }; }
24229     then
24230         if test x$gcc_cv_objdump != x \
24231        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24232           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24233          gcc_cv_as_sparc_offsetable_lo10=yes
24234        fi
24235     else
24236       echo "configure: failed program was" >&5
24237       cat conftest.s >&5
24238     fi
24239     rm -f conftest.o conftest.s
24240   fi
24241 fi
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24243 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24244 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24245
24246 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24247
24248 fi
24249
24250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24251 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24252 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24253   $as_echo_n "(cached) " >&6
24254 else
24255   gcc_cv_as_sparc_fmaf=no
24256   if test x$gcc_cv_as != x; then
24257     $as_echo '.text
24258        .register %g2, #scratch
24259        .register %g3, #scratch
24260        .align 4
24261        fmaddd %f0, %f2, %f4, %f6
24262        addxccc %g1, %g2, %g3
24263        fsrl32 %f2, %f4, %f8
24264        fnaddd %f10, %f12, %f14' > conftest.s
24265     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24266   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267   (eval $ac_try) 2>&5
24268   ac_status=$?
24269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270   test $ac_status = 0; }; }
24271     then
24272         gcc_cv_as_sparc_fmaf=yes
24273     else
24274       echo "configure: failed program was" >&5
24275       cat conftest.s >&5
24276     fi
24277     rm -f conftest.o conftest.s
24278   fi
24279 fi
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24281 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24282 if test $gcc_cv_as_sparc_fmaf = yes; then
24283
24284 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24285
24286 fi
24287     ;;
24288
24289   i[34567]86-*-* | x86_64-*-*)
24290     case $target_os in
24291       cygwin*)
24292         # Full C++ conformance when using a shared libstdc++-v3 requires some
24293         # support from the Cygwin DLL, which in more recent versions exports
24294         # wrappers to aid in interposing and redirecting operators new, delete,
24295         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24296         # are configuring for a version of Cygwin that exports the wrappers.
24297         if test x$host = x$target; then
24298           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24299 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24300   gcc_ac_cygwin_dll_wrappers=yes
24301 else
24302   gcc_ac_cygwin_dll_wrappers=no
24303 fi
24304
24305         else
24306           # Can't check presence of libc functions during cross-compile, so
24307           # we just have to assume we're building for an up-to-date target.
24308           gcc_ac_cygwin_dll_wrappers=yes
24309         fi
24310
24311 cat >>confdefs.h <<_ACEOF
24312 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24313 _ACEOF
24314
24315     esac
24316     case $target_os in
24317       cygwin* | pe | mingw32*)
24318         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24319         # definition is used unconditionally to initialise the default state of
24320         # the target option variable that governs usage of the feature.
24321         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24322 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24323 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24324   $as_echo_n "(cached) " >&6
24325 else
24326   gcc_cv_as_comm_has_align=no
24327     if test $in_tree_gas = yes; then
24328     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24329   then gcc_cv_as_comm_has_align=yes
24330 fi
24331   elif test x$gcc_cv_as != x; then
24332     $as_echo '.comm foo,1,32' > conftest.s
24333     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24334   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24335   (eval $ac_try) 2>&5
24336   ac_status=$?
24337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24338   test $ac_status = 0; }; }
24339     then
24340         gcc_cv_as_comm_has_align=yes
24341     else
24342       echo "configure: failed program was" >&5
24343       cat conftest.s >&5
24344     fi
24345     rm -f conftest.o conftest.s
24346   fi
24347 fi
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24349 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24350
24351
24352 cat >>confdefs.h <<_ACEOF
24353 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24354 _ACEOF
24355
24356         # Used for DWARF 2 in PE
24357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24358 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24359 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24360   $as_echo_n "(cached) " >&6
24361 else
24362   gcc_cv_as_ix86_pe_secrel32=no
24363     if test $in_tree_gas = yes; then
24364     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24365   then gcc_cv_as_ix86_pe_secrel32=yes
24366 fi
24367   elif test x$gcc_cv_as != x; then
24368     $as_echo '.text
24369 foo:    nop
24370 .data
24371         .secrel32 foo' > conftest.s
24372     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24373   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374   (eval $ac_try) 2>&5
24375   ac_status=$?
24376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377   test $ac_status = 0; }; }
24378     then
24379         if test x$gcc_cv_ld != x \
24380            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24381              gcc_cv_as_ix86_pe_secrel32=yes
24382            fi
24383            rm -f conftest
24384     else
24385       echo "configure: failed program was" >&5
24386       cat conftest.s >&5
24387     fi
24388     rm -f conftest.o conftest.s
24389   fi
24390 fi
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24392 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24393 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24394
24395 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24396
24397 fi
24398         # Test if the assembler supports the extended form of the .section
24399         # directive that specifies section alignment.  LTO support uses this,
24400         # but normally only after installation, so we warn but don't fail the
24401         # configure if LTO is enabled but the assembler does not support it.
24402         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24403 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24404 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24405   $as_echo_n "(cached) " >&6
24406 else
24407   gcc_cv_as_section_has_align=no
24408     if test $in_tree_gas = yes; then
24409     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24410   then gcc_cv_as_section_has_align=yes
24411 fi
24412   elif test x$gcc_cv_as != x; then
24413     $as_echo '.section lto_test,"dr0"' > conftest.s
24414     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24415   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416   (eval $ac_try) 2>&5
24417   ac_status=$?
24418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419   test $ac_status = 0; }; }
24420     then
24421         gcc_cv_as_section_has_align=yes
24422     else
24423       echo "configure: failed program was" >&5
24424       cat conftest.s >&5
24425     fi
24426     rm -f conftest.o conftest.s
24427   fi
24428 fi
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24430 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24431
24432         if test x$gcc_cv_as_section_has_align != xyes; then
24433           case ",$enable_languages," in
24434             *,lto,*)
24435               { $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
24436 $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;}
24437               ;;
24438           esac
24439         fi
24440         # Test if the assembler supports the section flag 'e' for specifying
24441         # an excluded section.
24442         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24443 $as_echo_n "checking assembler for .section with e... " >&6; }
24444 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24445   $as_echo_n "(cached) " >&6
24446 else
24447   gcc_cv_as_section_has_e=no
24448     if test $in_tree_gas = yes; then
24449     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24450   then gcc_cv_as_section_has_e=yes
24451 fi
24452   elif test x$gcc_cv_as != x; then
24453     $as_echo '.section foo1,"e"
24454 .byte 0,0,0,0' > conftest.s
24455     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24456   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457   (eval $ac_try) 2>&5
24458   ac_status=$?
24459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460   test $ac_status = 0; }; }
24461     then
24462         gcc_cv_as_section_has_e=yes
24463     else
24464       echo "configure: failed program was" >&5
24465       cat conftest.s >&5
24466     fi
24467     rm -f conftest.o conftest.s
24468   fi
24469 fi
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24471 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24472
24473
24474 cat >>confdefs.h <<_ACEOF
24475 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24476 _ACEOF
24477
24478         ;;
24479     esac
24480
24481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24482 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24483 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24484   $as_echo_n "(cached) " >&6
24485 else
24486   gcc_cv_as_ix86_filds=no
24487   if test x$gcc_cv_as != x; then
24488     $as_echo 'filds mem; fists mem' > conftest.s
24489     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24490   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24491   (eval $ac_try) 2>&5
24492   ac_status=$?
24493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24494   test $ac_status = 0; }; }
24495     then
24496         gcc_cv_as_ix86_filds=yes
24497     else
24498       echo "configure: failed program was" >&5
24499       cat conftest.s >&5
24500     fi
24501     rm -f conftest.o conftest.s
24502   fi
24503 fi
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24505 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24506 if test $gcc_cv_as_ix86_filds = yes; then
24507
24508 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24509
24510 fi
24511
24512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24513 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24514 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24515   $as_echo_n "(cached) " >&6
24516 else
24517   gcc_cv_as_ix86_fildq=no
24518   if test x$gcc_cv_as != x; then
24519     $as_echo 'fildq mem; fistpq mem' > conftest.s
24520     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24521   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24522   (eval $ac_try) 2>&5
24523   ac_status=$?
24524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24525   test $ac_status = 0; }; }
24526     then
24527         gcc_cv_as_ix86_fildq=yes
24528     else
24529       echo "configure: failed program was" >&5
24530       cat conftest.s >&5
24531     fi
24532     rm -f conftest.o conftest.s
24533   fi
24534 fi
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24536 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24537 if test $gcc_cv_as_ix86_fildq = yes; then
24538
24539 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24540
24541 fi
24542
24543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24544 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24545 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24546   $as_echo_n "(cached) " >&6
24547 else
24548   gcc_cv_as_ix86_cmov_sun_syntax=no
24549   if test x$gcc_cv_as != x; then
24550     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24551     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24552   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24553   (eval $ac_try) 2>&5
24554   ac_status=$?
24555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24556   test $ac_status = 0; }; }
24557     then
24558         gcc_cv_as_ix86_cmov_sun_syntax=yes
24559     else
24560       echo "configure: failed program was" >&5
24561       cat conftest.s >&5
24562     fi
24563     rm -f conftest.o conftest.s
24564   fi
24565 fi
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24567 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24568 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24569
24570 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24571
24572 fi
24573
24574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24575 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24576 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24577   $as_echo_n "(cached) " >&6
24578 else
24579   gcc_cv_as_ix86_ffreep=no
24580   if test x$gcc_cv_as != x; then
24581     $as_echo 'ffreep %st(1)' > conftest.s
24582     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24583   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24584   (eval $ac_try) 2>&5
24585   ac_status=$?
24586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24587   test $ac_status = 0; }; }
24588     then
24589         gcc_cv_as_ix86_ffreep=yes
24590     else
24591       echo "configure: failed program was" >&5
24592       cat conftest.s >&5
24593     fi
24594     rm -f conftest.o conftest.s
24595   fi
24596 fi
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24598 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24599 if test $gcc_cv_as_ix86_ffreep = yes; then
24600
24601 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24602
24603 fi
24604
24605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24606 $as_echo_n "checking assembler for .quad directive... " >&6; }
24607 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24608   $as_echo_n "(cached) " >&6
24609 else
24610   gcc_cv_as_ix86_quad=no
24611   if test x$gcc_cv_as != x; then
24612     $as_echo '.quad 0' > conftest.s
24613     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24614   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24615   (eval $ac_try) 2>&5
24616   ac_status=$?
24617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24618   test $ac_status = 0; }; }
24619     then
24620         gcc_cv_as_ix86_quad=yes
24621     else
24622       echo "configure: failed program was" >&5
24623       cat conftest.s >&5
24624     fi
24625     rm -f conftest.o conftest.s
24626   fi
24627 fi
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24629 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24630 if test $gcc_cv_as_ix86_quad = yes; then
24631
24632 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24633
24634 fi
24635
24636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24637 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24638 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24639   $as_echo_n "(cached) " >&6
24640 else
24641   gcc_cv_as_ix86_sahf=no
24642   if test x$gcc_cv_as != x; then
24643     $as_echo '.code64
24644        sahf' > conftest.s
24645     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24646   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647   (eval $ac_try) 2>&5
24648   ac_status=$?
24649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650   test $ac_status = 0; }; }
24651     then
24652         gcc_cv_as_ix86_sahf=yes
24653     else
24654       echo "configure: failed program was" >&5
24655       cat conftest.s >&5
24656     fi
24657     rm -f conftest.o conftest.s
24658   fi
24659 fi
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24661 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24662 if test $gcc_cv_as_ix86_sahf = yes; then
24663
24664 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24665
24666 fi
24667
24668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24669 $as_echo_n "checking assembler for swap suffix... " >&6; }
24670 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24671   $as_echo_n "(cached) " >&6
24672 else
24673   gcc_cv_as_ix86_swap=no
24674   if test x$gcc_cv_as != x; then
24675     $as_echo 'movl.s %esp, %ebp' > conftest.s
24676     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24677   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24678   (eval $ac_try) 2>&5
24679   ac_status=$?
24680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24681   test $ac_status = 0; }; }
24682     then
24683         gcc_cv_as_ix86_swap=yes
24684     else
24685       echo "configure: failed program was" >&5
24686       cat conftest.s >&5
24687     fi
24688     rm -f conftest.o conftest.s
24689   fi
24690 fi
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24692 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24693 if test $gcc_cv_as_ix86_swap = yes; then
24694
24695 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24696
24697 fi
24698
24699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24700 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24701 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24702   $as_echo_n "(cached) " >&6
24703 else
24704   gcc_cv_as_ix86_diff_sect_delta=no
24705   if test x$gcc_cv_as != x; then
24706     $as_echo '.section .rodata
24707 .L1:
24708         .long .L2-.L1
24709         .long .L3-.L1
24710         .text
24711 .L3:    nop
24712 .L2:    nop' > conftest.s
24713     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24714   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715   (eval $ac_try) 2>&5
24716   ac_status=$?
24717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718   test $ac_status = 0; }; }
24719     then
24720         gcc_cv_as_ix86_diff_sect_delta=yes
24721     else
24722       echo "configure: failed program was" >&5
24723       cat conftest.s >&5
24724     fi
24725     rm -f conftest.o conftest.s
24726   fi
24727 fi
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24729 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24730 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24731
24732 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24733
24734 fi
24735
24736     # These two are used unconditionally by i386.[ch]; it is to be defined
24737     # to 1 if the feature is present, 0 otherwise.
24738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24739 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24740 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24741   $as_echo_n "(cached) " >&6
24742 else
24743   gcc_cv_as_ix86_gotoff_in_data=no
24744     if test $in_tree_gas = yes; then
24745     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24746   then gcc_cv_as_ix86_gotoff_in_data=yes
24747 fi
24748   elif test x$gcc_cv_as != x; then
24749     $as_echo '  .text
24750 .L0:
24751         nop
24752         .data
24753         .long .L0@GOTOFF' > conftest.s
24754     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24755   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24756   (eval $ac_try) 2>&5
24757   ac_status=$?
24758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24759   test $ac_status = 0; }; }
24760     then
24761         gcc_cv_as_ix86_gotoff_in_data=yes
24762     else
24763       echo "configure: failed program was" >&5
24764       cat conftest.s >&5
24765     fi
24766     rm -f conftest.o conftest.s
24767   fi
24768 fi
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24770 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24771
24772
24773 cat >>confdefs.h <<_ACEOF
24774 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24775 _ACEOF
24776
24777
24778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24779 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24780 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24781   $as_echo_n "(cached) " >&6
24782 else
24783   gcc_cv_as_ix86_rep_lock_prefix=no
24784   if test x$gcc_cv_as != x; then
24785     $as_echo 'rep movsl
24786          lock addl %edi, (%eax,%esi)
24787          lock orl $0, (%esp)' > conftest.s
24788     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24789   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790   (eval $ac_try) 2>&5
24791   ac_status=$?
24792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793   test $ac_status = 0; }; }
24794     then
24795         gcc_cv_as_ix86_rep_lock_prefix=yes
24796     else
24797       echo "configure: failed program was" >&5
24798       cat conftest.s >&5
24799     fi
24800     rm -f conftest.o conftest.s
24801   fi
24802 fi
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24804 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24805 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24806
24807 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24808
24809 fi
24810
24811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24812 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24813 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24814   $as_echo_n "(cached) " >&6
24815 else
24816   gcc_cv_as_ix86_tlsgdplt=no
24817   if test x$gcc_cv_as != x; then
24818     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24819     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24820   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821   (eval $ac_try) 2>&5
24822   ac_status=$?
24823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824   test $ac_status = 0; }; }
24825     then
24826         if test x$gcc_cv_ld != x \
24827          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24828            gcc_cv_as_ix86_tlsgdplt=yes
24829          fi
24830          rm -f conftest
24831     else
24832       echo "configure: failed program was" >&5
24833       cat conftest.s >&5
24834     fi
24835     rm -f conftest.o conftest.s
24836   fi
24837 fi
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24839 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24840 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24841
24842 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24843
24844 fi
24845
24846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24847 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24848 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24849   $as_echo_n "(cached) " >&6
24850 else
24851   gcc_cv_as_ix86_tlsldmplt=no
24852   if test x$gcc_cv_as != x; then
24853     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24854     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24855   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24856   (eval $ac_try) 2>&5
24857   ac_status=$?
24858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24859   test $ac_status = 0; }; }
24860     then
24861         if test x$gcc_cv_ld != x \
24862          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24863            gcc_cv_as_ix86_tlsldmplt=yes
24864          fi
24865          rm -f conftest
24866     else
24867       echo "configure: failed program was" >&5
24868       cat conftest.s >&5
24869     fi
24870     rm -f conftest.o conftest.s
24871   fi
24872 fi
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24874 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24875 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24876
24877 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24878
24879 fi
24880
24881     ;;
24882
24883   ia64*-*-*)
24884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24885 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24886 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24887   $as_echo_n "(cached) " >&6
24888 else
24889   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24890     if test $in_tree_gas = yes; then
24891     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24892   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24893 fi
24894   elif test x$gcc_cv_as != x; then
24895     $as_echo '  .text
24896         addl r15 = @ltoffx(x#), gp
24897         ;;
24898         ld8.mov r16 = [r15], x#' > conftest.s
24899     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24900   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24901   (eval $ac_try) 2>&5
24902   ac_status=$?
24903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24904   test $ac_status = 0; }; }
24905     then
24906         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24907     else
24908       echo "configure: failed program was" >&5
24909       cat conftest.s >&5
24910     fi
24911     rm -f conftest.o conftest.s
24912   fi
24913 fi
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24915 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24916 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24917
24918 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24919
24920 fi
24921
24922     ;;
24923
24924   powerpc*-*-*)
24925     case $target in
24926       *-*-aix*) conftest_s='    .machine "pwr5"
24927         .csect .text[PR]
24928         mfcr 3,128';;
24929       *-*-darwin*)
24930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24931 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24932 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24933   $as_echo_n "(cached) " >&6
24934 else
24935   gcc_cv_as_machine_directive=no
24936   if test x$gcc_cv_as != x; then
24937     $as_echo '  .machine ppc7400' > conftest.s
24938     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24939   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24940   (eval $ac_try) 2>&5
24941   ac_status=$?
24942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24943   test $ac_status = 0; }; }
24944     then
24945         gcc_cv_as_machine_directive=yes
24946     else
24947       echo "configure: failed program was" >&5
24948       cat conftest.s >&5
24949     fi
24950     rm -f conftest.o conftest.s
24951   fi
24952 fi
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24954 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24955
24956         if test x$gcc_cv_as_machine_directive != xyes; then
24957           echo "*** This target requires an assembler supporting \".machine\"" >&2
24958           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24959           test x$build = x$target && exit 1
24960         fi
24961         conftest_s='    .text
24962         mfcr r3,128';;
24963       *) conftest_s='   .machine power4
24964         .text
24965         mfcr 3,128';;
24966     esac
24967
24968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24969 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24970 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24971   $as_echo_n "(cached) " >&6
24972 else
24973   gcc_cv_as_powerpc_mfcrf=no
24974     if test $in_tree_gas = yes; then
24975     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24976   then gcc_cv_as_powerpc_mfcrf=yes
24977 fi
24978   elif test x$gcc_cv_as != x; then
24979     $as_echo "$conftest_s" > conftest.s
24980     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24981   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24982   (eval $ac_try) 2>&5
24983   ac_status=$?
24984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24985   test $ac_status = 0; }; }
24986     then
24987         gcc_cv_as_powerpc_mfcrf=yes
24988     else
24989       echo "configure: failed program was" >&5
24990       cat conftest.s >&5
24991     fi
24992     rm -f conftest.o conftest.s
24993   fi
24994 fi
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24996 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24997 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24998
24999 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25000
25001 fi
25002
25003     case $target in
25004       *-*-aix*) conftest_s='    .machine "pwr5"
25005         .csect .text[PR]
25006         popcntb 3,3';;
25007       *) conftest_s='   .machine power5
25008         .text
25009         popcntb 3,3';;
25010     esac
25011
25012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25013 $as_echo_n "checking assembler for popcntb support... " >&6; }
25014 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25015   $as_echo_n "(cached) " >&6
25016 else
25017   gcc_cv_as_powerpc_popcntb=no
25018     if test $in_tree_gas = yes; then
25019     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25020   then gcc_cv_as_powerpc_popcntb=yes
25021 fi
25022   elif test x$gcc_cv_as != x; then
25023     $as_echo "$conftest_s" > conftest.s
25024     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25025   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25026   (eval $ac_try) 2>&5
25027   ac_status=$?
25028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25029   test $ac_status = 0; }; }
25030     then
25031         gcc_cv_as_powerpc_popcntb=yes
25032     else
25033       echo "configure: failed program was" >&5
25034       cat conftest.s >&5
25035     fi
25036     rm -f conftest.o conftest.s
25037   fi
25038 fi
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25040 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25041 if test $gcc_cv_as_powerpc_popcntb = yes; then
25042
25043 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25044
25045 fi
25046
25047     case $target in
25048       *-*-aix*) conftest_s='    .machine "pwr5x"
25049         .csect .text[PR]
25050         frin 1,1';;
25051       *) conftest_s='   .machine power5
25052         .text
25053         frin 1,1';;
25054     esac
25055
25056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25057 $as_echo_n "checking assembler for fp round support... " >&6; }
25058 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25059   $as_echo_n "(cached) " >&6
25060 else
25061   gcc_cv_as_powerpc_fprnd=no
25062     if test $in_tree_gas = yes; then
25063     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25064   then gcc_cv_as_powerpc_fprnd=yes
25065 fi
25066   elif test x$gcc_cv_as != x; then
25067     $as_echo "$conftest_s" > conftest.s
25068     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25069   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25070   (eval $ac_try) 2>&5
25071   ac_status=$?
25072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25073   test $ac_status = 0; }; }
25074     then
25075         gcc_cv_as_powerpc_fprnd=yes
25076     else
25077       echo "configure: failed program was" >&5
25078       cat conftest.s >&5
25079     fi
25080     rm -f conftest.o conftest.s
25081   fi
25082 fi
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25084 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25085 if test $gcc_cv_as_powerpc_fprnd = yes; then
25086
25087 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25088
25089 fi
25090
25091     case $target in
25092       *-*-aix*) conftest_s='    .machine "pwr6"
25093         .csect .text[PR]
25094         mffgpr 1,3';;
25095       *) conftest_s='   .machine power6
25096         .text
25097         mffgpr 1,3';;
25098     esac
25099
25100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25101 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25102 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25103   $as_echo_n "(cached) " >&6
25104 else
25105   gcc_cv_as_powerpc_mfpgpr=no
25106     if test $in_tree_gas = yes; then
25107     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25108   then gcc_cv_as_powerpc_mfpgpr=yes
25109 fi
25110   elif test x$gcc_cv_as != x; then
25111     $as_echo "$conftest_s" > conftest.s
25112     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25113   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25114   (eval $ac_try) 2>&5
25115   ac_status=$?
25116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25117   test $ac_status = 0; }; }
25118     then
25119         gcc_cv_as_powerpc_mfpgpr=yes
25120     else
25121       echo "configure: failed program was" >&5
25122       cat conftest.s >&5
25123     fi
25124     rm -f conftest.o conftest.s
25125   fi
25126 fi
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25128 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25129 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25130
25131 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25132
25133 fi
25134
25135     case $target in
25136       *-*-aix*) conftest_s='    .csect .text[PR]
25137 LCF..0:
25138         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25139       *-*-darwin*)
25140         conftest_s='    .text
25141 LCF0:
25142         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25143       *) conftest_s='   .text
25144 .LCF0:
25145         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25146     esac
25147
25148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25149 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25150 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25151   $as_echo_n "(cached) " >&6
25152 else
25153   gcc_cv_as_powerpc_rel16=no
25154     if test $in_tree_gas = yes; then
25155     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25156   then gcc_cv_as_powerpc_rel16=yes
25157 fi
25158   elif test x$gcc_cv_as != x; then
25159     $as_echo "$conftest_s" > conftest.s
25160     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25161   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162   (eval $ac_try) 2>&5
25163   ac_status=$?
25164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165   test $ac_status = 0; }; }
25166     then
25167         gcc_cv_as_powerpc_rel16=yes
25168     else
25169       echo "configure: failed program was" >&5
25170       cat conftest.s >&5
25171     fi
25172     rm -f conftest.o conftest.s
25173   fi
25174 fi
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25176 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25177 if test $gcc_cv_as_powerpc_rel16 = yes; then
25178
25179 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25180
25181 fi
25182
25183     case $target in
25184       *-*-aix*) conftest_s='    .machine "pwr6"
25185         .csect .text[PR]
25186         cmpb 3,4,5';;
25187       *) conftest_s='   .machine power6
25188         .text
25189         cmpb 3,4,5';;
25190     esac
25191
25192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25193 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25194 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25195   $as_echo_n "(cached) " >&6
25196 else
25197   gcc_cv_as_powerpc_cmpb=no
25198     if test $in_tree_gas = yes; then
25199     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25200   then gcc_cv_as_powerpc_cmpb=yes
25201 fi
25202   elif test x$gcc_cv_as != x; then
25203     $as_echo "$conftest_s" > conftest.s
25204     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25205   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25206   (eval $ac_try) 2>&5
25207   ac_status=$?
25208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25209   test $ac_status = 0; }; }
25210     then
25211         gcc_cv_as_powerpc_cmpb=yes
25212     else
25213       echo "configure: failed program was" >&5
25214       cat conftest.s >&5
25215     fi
25216     rm -f conftest.o conftest.s
25217   fi
25218 fi
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25220 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25221 if test $gcc_cv_as_powerpc_cmpb = yes; then
25222
25223 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25224
25225 fi
25226
25227     case $target in
25228       *-*-aix*) conftest_s='    .machine "pwr6"
25229         .csect .text[PR]
25230         dadd 1,2,3';;
25231       *) conftest_s='   .machine power6
25232         .text
25233         dadd 1,2,3';;
25234     esac
25235
25236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25237 $as_echo_n "checking assembler for decimal float support... " >&6; }
25238 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25239   $as_echo_n "(cached) " >&6
25240 else
25241   gcc_cv_as_powerpc_dfp=no
25242     if test $in_tree_gas = yes; then
25243     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25244   then gcc_cv_as_powerpc_dfp=yes
25245 fi
25246   elif test x$gcc_cv_as != x; then
25247     $as_echo "$conftest_s" > conftest.s
25248     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25249   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250   (eval $ac_try) 2>&5
25251   ac_status=$?
25252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253   test $ac_status = 0; }; }
25254     then
25255         gcc_cv_as_powerpc_dfp=yes
25256     else
25257       echo "configure: failed program was" >&5
25258       cat conftest.s >&5
25259     fi
25260     rm -f conftest.o conftest.s
25261   fi
25262 fi
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25264 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25265 if test $gcc_cv_as_powerpc_dfp = yes; then
25266
25267 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25268
25269 fi
25270
25271     case $target in
25272       *-*-aix*) conftest_s='    .machine "pwr7"
25273         .csect .text[PR]
25274         lxvd2x 1,2,3';;
25275       *) conftest_s='   .machine power7
25276         .text
25277         lxvd2x 1,2,3';;
25278     esac
25279
25280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25281 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25282 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25283   $as_echo_n "(cached) " >&6
25284 else
25285   gcc_cv_as_powerpc_vsx=no
25286     if test $in_tree_gas = yes; then
25287     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25288   then gcc_cv_as_powerpc_vsx=yes
25289 fi
25290   elif test x$gcc_cv_as != x; then
25291     $as_echo "$conftest_s" > conftest.s
25292     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25293   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25294   (eval $ac_try) 2>&5
25295   ac_status=$?
25296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25297   test $ac_status = 0; }; }
25298     then
25299         gcc_cv_as_powerpc_vsx=yes
25300     else
25301       echo "configure: failed program was" >&5
25302       cat conftest.s >&5
25303     fi
25304     rm -f conftest.o conftest.s
25305   fi
25306 fi
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25308 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25309 if test $gcc_cv_as_powerpc_vsx = yes; then
25310
25311 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25312
25313 fi
25314
25315     case $target in
25316       *-*-aix*) conftest_s='    .machine "pwr7"
25317         .csect .text[PR]
25318         popcntd 3,3';;
25319       *) conftest_s='   .machine power7
25320         .text
25321         popcntd 3,3';;
25322     esac
25323
25324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25325 $as_echo_n "checking assembler for popcntd support... " >&6; }
25326 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25327   $as_echo_n "(cached) " >&6
25328 else
25329   gcc_cv_as_powerpc_popcntd=no
25330     if test $in_tree_gas = yes; then
25331     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25332   then gcc_cv_as_powerpc_popcntd=yes
25333 fi
25334   elif test x$gcc_cv_as != x; then
25335     $as_echo "$conftest_s" > conftest.s
25336     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25337   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25338   (eval $ac_try) 2>&5
25339   ac_status=$?
25340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25341   test $ac_status = 0; }; }
25342     then
25343         gcc_cv_as_powerpc_popcntd=yes
25344     else
25345       echo "configure: failed program was" >&5
25346       cat conftest.s >&5
25347     fi
25348     rm -f conftest.o conftest.s
25349   fi
25350 fi
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25352 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25353 if test $gcc_cv_as_powerpc_popcntd = yes; then
25354
25355 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25356
25357 fi
25358
25359     case $target in
25360       *-*-aix*) conftest_s='    .csect .text[PR]
25361         lwsync';;
25362       *) conftest_s='   .text
25363         lwsync';;
25364     esac
25365
25366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25367 $as_echo_n "checking assembler for lwsync support... " >&6; }
25368 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25369   $as_echo_n "(cached) " >&6
25370 else
25371   gcc_cv_as_powerpc_lwsync=no
25372     if test $in_tree_gas = yes; then
25373     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25374   then gcc_cv_as_powerpc_lwsync=yes
25375 fi
25376   elif test x$gcc_cv_as != x; then
25377     $as_echo "$conftest_s" > conftest.s
25378     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25379   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25380   (eval $ac_try) 2>&5
25381   ac_status=$?
25382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25383   test $ac_status = 0; }; }
25384     then
25385         gcc_cv_as_powerpc_lwsync=yes
25386     else
25387       echo "configure: failed program was" >&5
25388       cat conftest.s >&5
25389     fi
25390     rm -f conftest.o conftest.s
25391   fi
25392 fi
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25394 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25395 if test $gcc_cv_as_powerpc_lwsync = yes; then
25396
25397 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25398
25399 fi
25400
25401     case $target in
25402       *-*-aix*) conftest_s='    .machine "476"
25403         .csect .text[PR]
25404         dci 0';;
25405       *) conftest_s='   .machine "476"
25406         .text
25407         dci 0';;
25408     esac
25409
25410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25411 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25412 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25413   $as_echo_n "(cached) " >&6
25414 else
25415   gcc_cv_as_powerpc_dci=no
25416     if test $in_tree_gas = yes; then
25417     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25418   then gcc_cv_as_powerpc_dci=yes
25419 fi
25420   elif test x$gcc_cv_as != x; then
25421     $as_echo "$conftest_s" > conftest.s
25422     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25423   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25424   (eval $ac_try) 2>&5
25425   ac_status=$?
25426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25427   test $ac_status = 0; }; }
25428     then
25429         gcc_cv_as_powerpc_dci=yes
25430     else
25431       echo "configure: failed program was" >&5
25432       cat conftest.s >&5
25433     fi
25434     rm -f conftest.o conftest.s
25435   fi
25436 fi
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25438 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25439 if test $gcc_cv_as_powerpc_dci = yes; then
25440
25441 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25442
25443 fi
25444
25445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25446 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25447 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25448   $as_echo_n "(cached) " >&6
25449 else
25450   gcc_cv_as_powerpc_gnu_attribute=no
25451     if test $in_tree_gas = yes; then
25452     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25453   then gcc_cv_as_powerpc_gnu_attribute=yes
25454 fi
25455   elif test x$gcc_cv_as != x; then
25456     $as_echo '.gnu_attribute 4,1' > conftest.s
25457     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25458   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25459   (eval $ac_try) 2>&5
25460   ac_status=$?
25461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25462   test $ac_status = 0; }; }
25463     then
25464         gcc_cv_as_powerpc_gnu_attribute=yes
25465     else
25466       echo "configure: failed program was" >&5
25467       cat conftest.s >&5
25468     fi
25469     rm -f conftest.o conftest.s
25470   fi
25471 fi
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25473 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25474 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25475
25476 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25477
25478 fi
25479
25480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25481 $as_echo_n "checking assembler for tls marker support... " >&6; }
25482 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25483   $as_echo_n "(cached) " >&6
25484 else
25485   gcc_cv_as_powerpc_tls_markers=no
25486     if test $in_tree_gas = yes; then
25487     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25488   then gcc_cv_as_powerpc_tls_markers=yes
25489 fi
25490   elif test x$gcc_cv_as != x; then
25491     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25492     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25493   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25494   (eval $ac_try) 2>&5
25495   ac_status=$?
25496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25497   test $ac_status = 0; }; }
25498     then
25499         gcc_cv_as_powerpc_tls_markers=yes
25500     else
25501       echo "configure: failed program was" >&5
25502       cat conftest.s >&5
25503     fi
25504     rm -f conftest.o conftest.s
25505   fi
25506 fi
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25508 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25509 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25510
25511 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25512
25513 fi
25514
25515     case $target in
25516       *-*-aix*)
25517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25518 $as_echo_n "checking assembler for .ref support... " >&6; }
25519 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25520   $as_echo_n "(cached) " >&6
25521 else
25522   gcc_cv_as_aix_ref=no
25523     if test $in_tree_gas = yes; then
25524     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25525   then :
25526 fi
25527   elif test x$gcc_cv_as != x; then
25528     $as_echo '  .csect stuff[rw]
25529              stuff:
25530                 .long 1
25531                 .extern sym
25532                 .ref sym
25533           ' > conftest.s
25534     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25535   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25536   (eval $ac_try) 2>&5
25537   ac_status=$?
25538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25539   test $ac_status = 0; }; }
25540     then
25541         gcc_cv_as_aix_ref=yes
25542     else
25543       echo "configure: failed program was" >&5
25544       cat conftest.s >&5
25545     fi
25546     rm -f conftest.o conftest.s
25547   fi
25548 fi
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25550 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25551 if test $gcc_cv_as_aix_ref = yes; then
25552
25553 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25554
25555 fi
25556         ;;
25557     esac
25558     ;;
25559
25560   mips*-*-*)
25561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25562 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25563 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25564   $as_echo_n "(cached) " >&6
25565 else
25566   gcc_cv_as_mips_explicit_relocs=no
25567     if test $in_tree_gas = yes; then
25568     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25569   then gcc_cv_as_mips_explicit_relocs=yes
25570 fi
25571   elif test x$gcc_cv_as != x; then
25572     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25573     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25574   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25575   (eval $ac_try) 2>&5
25576   ac_status=$?
25577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25578   test $ac_status = 0; }; }
25579     then
25580         gcc_cv_as_mips_explicit_relocs=yes
25581     else
25582       echo "configure: failed program was" >&5
25583       cat conftest.s >&5
25584     fi
25585     rm -f conftest.o conftest.s
25586   fi
25587 fi
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25589 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25590 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25591   if test x$target_cpu_default = x
25592        then target_cpu_default=MASK_EXPLICIT_RELOCS
25593        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25594        fi
25595 fi
25596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25597 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25598 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25599   $as_echo_n "(cached) " >&6
25600 else
25601   gcc_cv_as_mips_no_shared=no
25602     if test $in_tree_gas = yes; then
25603     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25604   then gcc_cv_as_mips_no_shared=yes
25605 fi
25606   elif test x$gcc_cv_as != x; then
25607     $as_echo 'nop' > conftest.s
25608     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25609   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25610   (eval $ac_try) 2>&5
25611   ac_status=$?
25612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25613   test $ac_status = 0; }; }
25614     then
25615         gcc_cv_as_mips_no_shared=yes
25616     else
25617       echo "configure: failed program was" >&5
25618       cat conftest.s >&5
25619     fi
25620     rm -f conftest.o conftest.s
25621   fi
25622 fi
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25624 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25625 if test $gcc_cv_as_mips_no_shared = yes; then
25626
25627 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25628
25629 fi
25630
25631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25632 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25633 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25634   $as_echo_n "(cached) " >&6
25635 else
25636   gcc_cv_as_mips_gnu_attribute=no
25637     if test $in_tree_gas = yes; then
25638     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25639   then gcc_cv_as_mips_gnu_attribute=yes
25640 fi
25641   elif test x$gcc_cv_as != x; then
25642     $as_echo '.gnu_attribute 4,1' > conftest.s
25643     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25644   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25645   (eval $ac_try) 2>&5
25646   ac_status=$?
25647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25648   test $ac_status = 0; }; }
25649     then
25650         gcc_cv_as_mips_gnu_attribute=yes
25651     else
25652       echo "configure: failed program was" >&5
25653       cat conftest.s >&5
25654     fi
25655     rm -f conftest.o conftest.s
25656   fi
25657 fi
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25659 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25660 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25661
25662 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25663
25664 fi
25665
25666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25667 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25668 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25669   $as_echo_n "(cached) " >&6
25670 else
25671   gcc_cv_as_mips_dtprelword=no
25672     if test $in_tree_gas = yes; then
25673     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25674   then gcc_cv_as_mips_dtprelword=yes
25675 fi
25676   elif test x$gcc_cv_as != x; then
25677     $as_echo '.section .tdata,"awT",@progbits
25678 x:
25679         .word 2
25680         .text
25681         .dtprelword x+0x8000' > conftest.s
25682     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25683   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25684   (eval $ac_try) 2>&5
25685   ac_status=$?
25686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25687   test $ac_status = 0; }; }
25688     then
25689         gcc_cv_as_mips_dtprelword=yes
25690     else
25691       echo "configure: failed program was" >&5
25692       cat conftest.s >&5
25693     fi
25694     rm -f conftest.o conftest.s
25695   fi
25696 fi
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25698 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25699 if test $gcc_cv_as_mips_dtprelword = yes; then
25700
25701 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25702
25703 fi
25704
25705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25706 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25707 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25708   $as_echo_n "(cached) " >&6
25709 else
25710   gcc_cv_as_mips_dspr1_mult=no
25711   if test x$gcc_cv_as != x; then
25712     $as_echo '  .set    mips32r2
25713         .set    nodspr2
25714         .set    dsp
25715         madd    $ac3,$4,$5
25716         maddu   $ac3,$4,$5
25717         msub    $ac3,$4,$5
25718         msubu   $ac3,$4,$5
25719         mult    $ac3,$4,$5
25720         multu   $ac3,$4,$5' > conftest.s
25721     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25722   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25723   (eval $ac_try) 2>&5
25724   ac_status=$?
25725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25726   test $ac_status = 0; }; }
25727     then
25728         gcc_cv_as_mips_dspr1_mult=yes
25729     else
25730       echo "configure: failed program was" >&5
25731       cat conftest.s >&5
25732     fi
25733     rm -f conftest.o conftest.s
25734   fi
25735 fi
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25737 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25738 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25739
25740 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25741
25742 fi
25743
25744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25745 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25746     gcc_cv_as_ld_jalr_reloc=no
25747     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25748       if test $in_tree_ld = yes ; then
25749         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 \
25750            && test $in_tree_ld_is_elf = yes; then
25751           gcc_cv_as_ld_jalr_reloc=yes
25752         fi
25753       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25754         echo '  .ent x' > conftest.s
25755         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25756         echo '  ld $25,%call16(y)($28)' >> conftest.s
25757         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25758         echo '1:        jalr $25' >> conftest.s
25759         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25760         echo '1:        jalr $25' >> conftest.s
25761         echo '  .end x' >> conftest.s
25762         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25763            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25764           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25765              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25766             gcc_cv_as_ld_jalr_reloc=yes
25767           fi
25768         fi
25769         rm -f conftest.*
25770       fi
25771     fi
25772     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25773       if test x$target_cpu_default = x; then
25774         target_cpu_default=MASK_RELAX_PIC_CALLS
25775       else
25776         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25777       fi
25778     fi
25779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25780 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25781
25782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25783 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25784 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25785   $as_echo_n "(cached) " >&6
25786 else
25787   gcc_cv_ld_mips_personality_relaxation=no
25788        if test $in_tree_ld = yes ; then
25789          if test "$gcc_cv_gld_major_version" -eq 2 \
25790                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25791                  -o "$gcc_cv_gld_major_version" -gt 2; then
25792            gcc_cv_ld_mips_personality_relaxation=yes
25793          fi
25794        elif test x$gcc_cv_as != x \
25795                  -a x$gcc_cv_ld != x \
25796                  -a x$gcc_cv_readelf != x ; then
25797          cat > conftest.s <<EOF
25798         .cfi_startproc
25799         .cfi_personality 0x80,indirect_ptr
25800         .ent test
25801 test:
25802         nop
25803         .end test
25804         .cfi_endproc
25805
25806         .section .data,"aw",@progbits
25807 indirect_ptr:
25808         .dc.a personality
25809 EOF
25810          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25811             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25812            if $gcc_cv_readelf -d conftest 2>&1 \
25813               | grep TEXTREL > /dev/null 2>&1; then
25814              :
25815            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25816                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25817              :
25818            else
25819              gcc_cv_ld_mips_personality_relaxation=yes
25820            fi
25821          fi
25822        fi
25823        rm -f conftest.s conftest.o conftest
25824 fi
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25826 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25827     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25828
25829 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25830
25831     fi
25832     ;;
25833 esac
25834
25835 # Mips and HP-UX need the GNU assembler.
25836 # Linux on IA64 might be able to use the Intel assembler.
25837
25838 case "$target" in
25839   mips*-*-* | *-*-hpux* )
25840     if test x$gas_flag = xyes \
25841        || test x"$host" != x"$build" \
25842        || test ! -x "$gcc_cv_as" \
25843        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25844       :
25845     else
25846       echo "*** This configuration requires the GNU assembler" >&2
25847       exit 1
25848     fi
25849     ;;
25850 esac
25851
25852 # ??? Not all targets support dwarf2 debug_line, even within a version
25853 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25854 # info to the output file.  So, as supported targets are added to gas 2.11,
25855 # add some instruction here to (also) show we expect this might work.
25856 # ??? Once 2.11 is released, probably need to add first known working
25857 # version to the per-target configury.
25858 case "$cpu_type" in
25859   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25860   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25861     insn="nop"
25862     ;;
25863   ia64 | s390)
25864     insn="nop 0"
25865     ;;
25866   mmix)
25867     insn="swym 0"
25868     ;;
25869 esac
25870 if test x"$insn" != x; then
25871  conftest_s="\
25872         .file 1 \"conftest.s\"
25873         .loc 1 3 0
25874         $insn"
25875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25876 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25877 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25878   $as_echo_n "(cached) " >&6
25879 else
25880   gcc_cv_as_dwarf2_debug_line=no
25881     if test $in_tree_gas = yes; then
25882     if test $in_tree_gas_is_elf = yes \
25883   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25884   then gcc_cv_as_dwarf2_debug_line=yes
25885 fi
25886   elif test x$gcc_cv_as != x; then
25887     $as_echo "$conftest_s" > conftest.s
25888     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25889   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25890   (eval $ac_try) 2>&5
25891   ac_status=$?
25892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25893   test $ac_status = 0; }; }
25894     then
25895         if test x$gcc_cv_objdump != x \
25896    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25897       | grep debug_line > /dev/null 2>&1; then
25898      gcc_cv_as_dwarf2_debug_line=yes
25899    fi
25900     else
25901       echo "configure: failed program was" >&5
25902       cat conftest.s >&5
25903     fi
25904     rm -f conftest.o conftest.s
25905   fi
25906 fi
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25908 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25909
25910
25911 # The .debug_line file table must be in the exact order that
25912 # we specified the files, since these indices are also used
25913 # by DW_AT_decl_file.  Approximate this test by testing if
25914 # the assembler bitches if the same index is assigned twice.
25915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25916 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25917 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25918   $as_echo_n "(cached) " >&6
25919 else
25920   gcc_cv_as_dwarf2_file_buggy=no
25921   if test x$gcc_cv_as != x; then
25922     $as_echo '  .file 1 "foo.s"
25923         .file 1 "bar.s"' > conftest.s
25924     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25925   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25926   (eval $ac_try) 2>&5
25927   ac_status=$?
25928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25929   test $ac_status = 0; }; }
25930     then
25931         gcc_cv_as_dwarf2_file_buggy=yes
25932     else
25933       echo "configure: failed program was" >&5
25934       cat conftest.s >&5
25935     fi
25936     rm -f conftest.o conftest.s
25937   fi
25938 fi
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25940 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25941
25942
25943  if test $gcc_cv_as_dwarf2_debug_line = yes \
25944  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25945
25946 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25947
25948  fi
25949
25950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25951 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25952 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25953   $as_echo_n "(cached) " >&6
25954 else
25955   gcc_cv_as_gdwarf2_flag=no
25956     if test $in_tree_gas = yes; then
25957     if test $in_tree_gas_is_elf = yes \
25958   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25959   then gcc_cv_as_gdwarf2_flag=yes
25960 fi
25961   elif test x$gcc_cv_as != x; then
25962     $as_echo "$insn" > conftest.s
25963     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25964   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25965   (eval $ac_try) 2>&5
25966   ac_status=$?
25967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25968   test $ac_status = 0; }; }
25969     then
25970         gcc_cv_as_gdwarf2_flag=yes
25971     else
25972       echo "configure: failed program was" >&5
25973       cat conftest.s >&5
25974     fi
25975     rm -f conftest.o conftest.s
25976   fi
25977 fi
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25979 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25980 if test $gcc_cv_as_gdwarf2_flag = yes; then
25981
25982 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25983
25984 fi
25985
25986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25987 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25988 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25989   $as_echo_n "(cached) " >&6
25990 else
25991   gcc_cv_as_gstabs_flag=no
25992     if test $in_tree_gas = yes; then
25993     if test $in_tree_gas_is_elf = yes \
25994   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25995   then gcc_cv_as_gstabs_flag=yes
25996 fi
25997   elif test x$gcc_cv_as != x; then
25998     $as_echo "$insn" > conftest.s
25999     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26000   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26001   (eval $ac_try) 2>&5
26002   ac_status=$?
26003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004   test $ac_status = 0; }; }
26005     then
26006         # The native Solaris 9/Intel assembler doesn't understand --gstabs
26007    # and warns about it, but still exits successfully.  So check for
26008    # this.
26009    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26010   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26011   (eval $ac_try) 2>&5
26012   ac_status=$?
26013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26014   test $ac_status = 0; }; }
26015    then :
26016    else gcc_cv_as_gstabs_flag=yes
26017    fi
26018     else
26019       echo "configure: failed program was" >&5
26020       cat conftest.s >&5
26021     fi
26022     rm -f conftest.o conftest.s
26023   fi
26024 fi
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26026 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26027 if test $gcc_cv_as_gstabs_flag = yes; then
26028
26029 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26030
26031 fi
26032
26033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26034 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26035 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26036   $as_echo_n "(cached) " >&6
26037 else
26038   gcc_cv_as_debug_prefix_map_flag=no
26039     if test $in_tree_gas = yes; then
26040     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26041   then gcc_cv_as_debug_prefix_map_flag=yes
26042 fi
26043   elif test x$gcc_cv_as != x; then
26044     $as_echo "$insn" > conftest.s
26045     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26046   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26047   (eval $ac_try) 2>&5
26048   ac_status=$?
26049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26050   test $ac_status = 0; }; }
26051     then
26052         gcc_cv_as_debug_prefix_map_flag=yes
26053     else
26054       echo "configure: failed program was" >&5
26055       cat conftest.s >&5
26056     fi
26057     rm -f conftest.o conftest.s
26058   fi
26059 fi
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26061 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26062 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26063
26064 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26065
26066 fi
26067 fi
26068
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26070 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26071 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26072   $as_echo_n "(cached) " >&6
26073 else
26074   gcc_cv_as_lcomm_with_alignment=no
26075   if test x$gcc_cv_as != x; then
26076     $as_echo '.lcomm bar,4,16' > conftest.s
26077     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26079   (eval $ac_try) 2>&5
26080   ac_status=$?
26081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26082   test $ac_status = 0; }; }
26083     then
26084         gcc_cv_as_lcomm_with_alignment=yes
26085     else
26086       echo "configure: failed program was" >&5
26087       cat conftest.s >&5
26088     fi
26089     rm -f conftest.o conftest.s
26090   fi
26091 fi
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26093 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26094 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26095
26096 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26097
26098 fi
26099
26100 # Check whether --enable-gnu-unique-object was given.
26101 if test "${enable_gnu_unique_object+set}" = set; then :
26102   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26103     yes | no) ;;
26104     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26105 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26106   esac
26107 else
26108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26109 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26110 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26111   $as_echo_n "(cached) " >&6
26112 else
26113   gcc_cv_as_gnu_unique_object=no
26114     if test $in_tree_gas = yes; then
26115     if test $in_tree_gas_is_elf = yes \
26116   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26117   then gcc_cv_as_gnu_unique_object=yes
26118 fi
26119   elif test x$gcc_cv_as != x; then
26120     $as_echo '.type foo, @gnu_unique_object' > conftest.s
26121     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26122   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26123   (eval $ac_try) 2>&5
26124   ac_status=$?
26125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26126   test $ac_status = 0; }; }
26127     then
26128         gcc_cv_as_gnu_unique_object=yes
26129     else
26130       echo "configure: failed program was" >&5
26131       cat conftest.s >&5
26132     fi
26133     rm -f conftest.o conftest.s
26134   fi
26135 fi
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26137 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26138 if test $gcc_cv_as_gnu_unique_object = yes; then
26139   # Also check for ld.so support, i.e. glibc 2.11 or higher.
26140    if test x$host = x$build -a x$host = x$target &&
26141        ldd --version 2>/dev/null &&
26142        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26143       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26144       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26145       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26146       if test "$glibcnum" -ge 2011 ; then
26147         enable_gnu_unique_object=yes
26148       fi
26149     fi
26150 fi
26151 fi
26152
26153 if test x$enable_gnu_unique_object = xyes; then
26154
26155 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26156
26157 fi
26158
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26160 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26161 if test "${gcc_cv_as_line_zero+set}" = set; then :
26162   $as_echo_n "(cached) " >&6
26163 else
26164   gcc_cv_as_line_zero=no
26165   if test $in_tree_gas = yes; then
26166     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26167   then gcc_cv_as_line_zero=yes
26168 fi
26169   elif test "x$gcc_cv_as" != x; then
26170     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26171     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26172   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26173   (eval $ac_try) 2>&5
26174   ac_status=$?
26175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26176   test $ac_status = 0; }; } &&
26177        test "x`cat conftest.out`" = x
26178     then
26179       gcc_cv_as_line_zero=yes
26180     else
26181       echo "configure: failed program was" >&5
26182       cat conftest.s >&5
26183       echo "configure: error output was" >&5
26184       cat conftest.out >&5
26185     fi
26186     rm -f conftest.o conftest.s conftest.out
26187   fi
26188 fi
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26190 $as_echo "$gcc_cv_as_line_zero" >&6; }
26191 if test "x$gcc_cv_as_line_zero" = xyes; then
26192
26193 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26194
26195 fi
26196
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26198 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26199 gcc_cv_ld_eh_frame_hdr=no
26200 if test $in_tree_ld = yes ; then
26201   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 \
26202      && test $in_tree_ld_is_elf = yes; then
26203     gcc_cv_ld_eh_frame_hdr=yes
26204   fi
26205 elif test x$gcc_cv_ld != x; then
26206   if echo "$ld_ver" | grep GNU > /dev/null; then
26207     # Check if linker supports --eh-frame-hdr option
26208     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26209       gcc_cv_ld_eh_frame_hdr=yes
26210     fi
26211   else
26212     case "$target" in
26213       *-*-solaris2*)
26214         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26215         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26216           gcc_cv_ld_eh_frame_hdr=yes
26217         fi
26218         ;;
26219     esac
26220   fi
26221 fi
26222
26223 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26224
26225 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26226
26227 fi
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26229 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26230
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26232 $as_echo_n "checking linker position independent executable support... " >&6; }
26233 gcc_cv_ld_pie=no
26234 if test $in_tree_ld = yes ; then
26235   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 \
26236      && test $in_tree_ld_is_elf = yes; then
26237     gcc_cv_ld_pie=yes
26238   fi
26239 elif test x$gcc_cv_ld != x; then
26240         # Check if linker supports -pie option
26241         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26242                 gcc_cv_ld_pie=yes
26243         fi
26244 fi
26245 if test x"$gcc_cv_ld_pie" = xyes; then
26246
26247 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26248
26249 fi
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26251 $as_echo "$gcc_cv_ld_pie" >&6; }
26252
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26254 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26255 gcc_cv_ld_eh_gc_sections=no
26256 if test $in_tree_ld = yes ; then
26257   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 \
26258      && test $in_tree_ld_is_elf = yes; then
26259     gcc_cv_ld_eh_gc_sections=yes
26260   fi
26261 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26262   cat > conftest.s <<EOF
26263         .section        .text
26264 .globl _start
26265         .type _start, @function
26266 _start:
26267         .long foo
26268         .size _start, .-_start
26269         .section        .text.foo,"ax",@progbits
26270         .type foo, @function
26271 foo:
26272         .long 0
26273         .size foo, .-foo
26274         .section        .gcc_except_table.foo,"a",@progbits
26275 .L0:
26276         .long 0
26277         .section        .eh_frame,"a",@progbits
26278         .long .L0
26279 EOF
26280   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26281     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26282          | grep "gc-sections option ignored" > /dev/null; then
26283       gcc_cv_ld_eh_gc_sections=no
26284     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26285          | grep gcc_except_table > /dev/null; then
26286       gcc_cv_ld_eh_gc_sections=yes
26287       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26288       if test x$gcc_cv_as_comdat_group != xyes; then
26289         gcc_cv_ld_eh_gc_sections=no
26290         cat > conftest.s <<EOF
26291         .section        .text
26292 .globl _start
26293         .type _start, @function
26294 _start:
26295         .long foo
26296         .size _start, .-_start
26297         .section        .gnu.linkonce.t.foo,"ax",@progbits
26298         .type foo, @function
26299 foo:
26300         .long 0
26301         .size foo, .-foo
26302         .section        .gcc_except_table.foo,"a",@progbits
26303 .L0:
26304         .long 0
26305         .section        .eh_frame,"a",@progbits
26306         .long .L0
26307 EOF
26308         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26309           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26310                | grep "gc-sections option ignored" > /dev/null; then
26311             gcc_cv_ld_eh_gc_sections=no
26312           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26313                | grep gcc_except_table > /dev/null; then
26314             gcc_cv_ld_eh_gc_sections=yes
26315           fi
26316         fi
26317       fi
26318     fi
26319   fi
26320   rm -f conftest.s conftest.o conftest
26321 fi
26322 case "$target" in
26323   hppa*-*-linux*)
26324     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26325     gcc_cv_ld_eh_gc_sections=no
26326     ;;
26327 esac
26328 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26329
26330 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26331
26332 fi
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26334 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26335
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26337 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26338 gcc_cv_ld_eh_gc_sections_bug=no
26339 if test $in_tree_ld = yes ; then
26340   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 \
26341      && test $in_tree_ld_is_elf = yes; then
26342     gcc_cv_ld_eh_gc_sections_bug=yes
26343   fi
26344 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
26345   gcc_cv_ld_eh_gc_sections_bug=yes
26346   cat > conftest.s <<EOF
26347         .section        .text
26348 .globl _start
26349         .type _start, @function
26350 _start:
26351         .long foo
26352         .size _start, .-_start
26353         .section        .text.startup.foo,"ax",@progbits
26354         .type foo, @function
26355 foo:
26356         .long 0
26357         .size foo, .-foo
26358         .section        .gcc_except_table.foo,"a",@progbits
26359 .L0:
26360         .long 0
26361         .section        .eh_frame,"a",@progbits
26362         .long .L0
26363 EOF
26364   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26365     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26366          | grep "gc-sections option ignored" > /dev/null; then
26367       :
26368     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26369          | grep gcc_except_table > /dev/null; then
26370       gcc_cv_ld_eh_gc_sections_bug=no
26371     fi
26372   fi
26373   rm -f conftest.s conftest.o conftest
26374 fi
26375 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26376
26377 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26378
26379 fi
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26381 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26382
26383 # --------
26384 # UNSORTED
26385 # --------
26386
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26388 $as_echo_n "checking linker --as-needed support... " >&6; }
26389 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26390   $as_echo_n "(cached) " >&6
26391 else
26392   gcc_cv_ld_as_needed=no
26393 if test $in_tree_ld = yes ; then
26394   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 \
26395      && test $in_tree_ld_is_elf = yes; then
26396     gcc_cv_ld_as_needed=yes
26397   fi
26398 elif test x$gcc_cv_ld != x; then
26399         # Check if linker supports --as-needed and --no-as-needed options
26400         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26401                 gcc_cv_ld_as_needed=yes
26402         fi
26403 fi
26404
26405 fi
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26407 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26408 if test x"$gcc_cv_ld_as_needed" = xyes; then
26409
26410 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26411
26412 fi
26413
26414 case "$target:$tm_file" in
26415   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26417 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26418 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26419   $as_echo_n "(cached) " >&6
26420 else
26421   gcc_cv_ld_no_dot_syms=no
26422     if test $in_tree_ld = yes ; then
26423       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
26424         gcc_cv_ld_no_dot_syms=yes
26425       fi
26426     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26427       cat > conftest1.s <<EOF
26428         .text
26429         bl .foo
26430 EOF
26431       cat > conftest2.s <<EOF
26432         .section ".opd","aw"
26433         .align 3
26434         .globl foo
26435         .type foo,@function
26436 foo:
26437         .quad .LEfoo,.TOC.@tocbase,0
26438         .text
26439 .LEfoo:
26440         blr
26441         .size foo,.-.LEfoo
26442 EOF
26443       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26444          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26445          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26446         gcc_cv_ld_no_dot_syms=yes
26447       fi
26448       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26449     fi
26450
26451 fi
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26453 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26454     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26455
26456 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26457
26458     fi
26459
26460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26461 $as_echo_n "checking linker large toc support... " >&6; }
26462 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26463   $as_echo_n "(cached) " >&6
26464 else
26465   gcc_cv_ld_large_toc=no
26466     if test $in_tree_ld = yes ; then
26467       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
26468         gcc_cv_ld_large_toc=yes
26469       fi
26470     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26471       cat > conftest.s <<EOF
26472         .section ".tbss","awT",@nobits
26473         .align 3
26474 ie0:    .space 8
26475         .global _start
26476         .text
26477 _start:
26478         addis 9,13,ie0@got@tprel@ha
26479         ld 9,ie0@got@tprel@l(9)
26480 EOF
26481       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26482          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26483         gcc_cv_ld_large_toc=yes
26484       fi
26485       rm -f conftest conftest.o conftest.s
26486     fi
26487
26488 fi
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26490 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26491     if test x"$gcc_cv_ld_large_toc" = xyes; then
26492
26493 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26494
26495     fi
26496     ;;
26497 esac
26498
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26500 $as_echo_n "checking linker --build-id support... " >&6; }
26501 if test "${gcc_cv_ld_buildid+set}" = set; then :
26502   $as_echo_n "(cached) " >&6
26503 else
26504   gcc_cv_ld_buildid=no
26505   if test $in_tree_ld = yes ; then
26506     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26507        "$gcc_cv_gld_minor_version" -ge 18 -o \
26508        "$gcc_cv_gld_major_version" -gt 2 \
26509        && test $in_tree_ld_is_elf = yes; then
26510       gcc_cv_ld_buildid=yes
26511     fi
26512   elif test x$gcc_cv_ld != x; then
26513     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26514       gcc_cv_ld_buildid=yes
26515     fi
26516   fi
26517 fi
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26519 $as_echo "$gcc_cv_ld_buildid" >&6; }
26520 if test x"$gcc_cv_ld_buildid" = xyes; then
26521
26522 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26523
26524 fi
26525
26526 # Check whether --enable-linker-build-id was given.
26527 if test "${enable_linker_build_id+set}" = set; then :
26528   enableval=$enable_linker_build_id;
26529 else
26530   enable_linker_build_id=no
26531 fi
26532
26533
26534 if test x"$enable_linker_build_id" = xyes; then
26535   if test x"$gcc_cv_ld_buildid" = xyes; then
26536
26537 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26538
26539   else
26540     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26541 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26542   fi
26543 fi
26544
26545 # In binutils 2.21, GNU ld gained support for new emulations fully
26546 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26548 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26549 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26550   $as_echo_n "(cached) " >&6
26551 else
26552   gcc_cv_ld_sol2_emulation=no
26553   if test $in_tree_ld = yes ; then
26554     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26555        "$gcc_cv_gld_minor_version" -ge 21 -o \
26556        "$gcc_cv_gld_major_version" -gt 2 \
26557        && test $in_tree_ld_is_elf = yes; then
26558       gcc_cv_ld_sol2_emulation=yes
26559     fi
26560   elif test x$gcc_cv_ld != x; then
26561     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26562        grep _sol2 > /dev/null; then
26563       gcc_cv_ld_sol2_emulation=yes
26564     fi
26565   fi
26566 fi
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26568 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26569 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26570
26571 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26572
26573 fi
26574
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26576 $as_echo_n "checking linker --sysroot support... " >&6; }
26577 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26578   $as_echo_n "(cached) " >&6
26579 else
26580   gcc_cv_ld_sysroot=no
26581   if test $in_tree_ld = yes ; then
26582       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
26583         gcc_cv_ld_sysroot=yes
26584       fi
26585   elif test x$gcc_cv_ld != x; then
26586     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26587       gcc_cv_ld_sysroot=yes
26588     fi
26589   fi
26590 fi
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26592 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26593 if test x"$gcc_cv_ld_sysroot" = xyes; then
26594
26595 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26596
26597 fi
26598
26599 if test x$with_sysroot = x && test x$host = x$target \
26600    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26601    && test "$prefix" != "NONE"; then
26602
26603 cat >>confdefs.h <<_ACEOF
26604 #define PREFIX_INCLUDE_DIR "$prefix/include"
26605 _ACEOF
26606
26607 fi
26608
26609 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26610   if test "x$with_headers" != x; then
26611     target_header_dir=$with_headers
26612   elif test "x$with_sysroot" = x; then
26613     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26614   elif test "x$with_build_sysroot" != "x"; then
26615     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26616   elif test "x$with_sysroot" = xyes; then
26617     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26618   else
26619     target_header_dir="${with_sysroot}${native_system_header_dir}"
26620   fi
26621 else
26622   target_header_dir=${native_system_header_dir}
26623 fi
26624
26625 # Test for stack protector support in target C library.
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26627 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26628 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26629   $as_echo_n "(cached) " >&6
26630 else
26631   gcc_cv_libc_provides_ssp=no
26632     case "$target" in
26633        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26634       # glibc 2.4 and later provides __stack_chk_fail and
26635       # either __stack_chk_guard, or TLS access to stack guard canary.
26636       if test -f $target_header_dir/features.h \
26637          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26638             $target_header_dir/features.h > /dev/null; then
26639         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26640            $target_header_dir/features.h > /dev/null; then
26641           gcc_cv_libc_provides_ssp=yes
26642         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26643              $target_header_dir/features.h > /dev/null \
26644              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26645              $target_header_dir/features.h > /dev/null; then
26646           gcc_cv_libc_provides_ssp=yes
26647         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26648              $target_header_dir/features.h > /dev/null && \
26649              test -f $target_header_dir/bits/uClibc_config.h && \
26650              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26651              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26652           gcc_cv_libc_provides_ssp=yes
26653         fi
26654       fi
26655         ;;
26656        *-*-gnu*)
26657          # Avoid complicated tests (see
26658          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26659          # simply assert that glibc does provide this, which is true for all
26660          # realistically usable GNU/Hurd configurations.
26661          gcc_cv_libc_provides_ssp=yes;;
26662        *-*-darwin* | *-*-freebsd*)
26663          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26664 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26665   gcc_cv_libc_provides_ssp=yes
26666 else
26667   echo "no __stack_chk_fail on this target"
26668 fi
26669
26670         ;;
26671   *) gcc_cv_libc_provides_ssp=no ;;
26672     esac
26673 fi
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26675 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26676
26677 if test x$gcc_cv_libc_provides_ssp = xyes; then
26678
26679 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26680
26681 fi
26682
26683 # Test for <sys/sdt.h> on the target.
26684
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26686 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26687 have_sys_sdt_h=no
26688 if test -f $target_header_dir/sys/sdt.h; then
26689   have_sys_sdt_h=yes
26690
26691 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26692
26693 fi
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26695 $as_echo "$have_sys_sdt_h" >&6; }
26696
26697 # Check if TFmode long double should be used by default or not.
26698 # Some glibc targets used DFmode long double, but with glibc 2.4
26699 # and later they can use TFmode.
26700 case "$target" in
26701   powerpc*-*-linux* | \
26702   sparc*-*-linux* | \
26703   s390*-*-linux* | \
26704   alpha*-*-linux*)
26705
26706 # Check whether --with-long-double-128 was given.
26707 if test "${with_long_double_128+set}" = set; then :
26708   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26709 else
26710   gcc_cv_target_ldbl128=no
26711       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26712         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26713       && gcc_cv_target_ldbl128=yes
26714
26715 fi
26716
26717     ;;
26718 esac
26719 if test x$gcc_cv_target_ldbl128 = xyes; then
26720
26721 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26722
26723 fi
26724
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26726 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26727 gcc_cv_target_dl_iterate_phdr=unknown
26728 case "$target" in
26729   *-*-solaris2*)
26730     # <link.h> needs both a dl_iterate_phdr declaration and support for
26731     # compilation with largefile support.
26732     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26733       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26734       gcc_cv_target_dl_iterate_phdr=yes
26735     else
26736       gcc_cv_target_dl_iterate_phdr=no
26737     fi
26738     ;;
26739 esac
26740
26741 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26742
26743 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26744
26745 fi
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26747 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26748
26749 # Find out what GC implementation we want, or may, use.
26750
26751 # Check whether --with-gc was given.
26752 if test "${with_gc+set}" = set; then :
26753   withval=$with_gc; case "$withval" in
26754   page)
26755     GGC=ggc-$withval
26756     ;;
26757   zone)
26758     GGC=ggc-$withval
26759
26760 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26761
26762     ;;
26763   *)
26764     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26765     ;;
26766 esac
26767 else
26768   GGC=ggc-page
26769 fi
26770
26771
26772 echo "Using $GGC for garbage collection."
26773
26774 # Libraries to use on the host.  This will normally be set by the top
26775 # level Makefile.  Here we simply capture the value for our Makefile.
26776 if test -z "${HOST_LIBS+set}"; then
26777   HOST_LIBS=
26778 fi
26779
26780
26781 # Use the system's zlib library.
26782 zlibdir=-L../zlib
26783 zlibinc="-I\$(srcdir)/../zlib"
26784
26785 # Check whether --with-system-zlib was given.
26786 if test "${with_system_zlib+set}" = set; then :
26787   withval=$with_system_zlib; zlibdir=
26788 zlibinc=
26789
26790 fi
26791
26792
26793
26794
26795
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26797 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26798     # Check whether --enable-maintainer-mode was given.
26799 if test "${enable_maintainer_mode+set}" = set; then :
26800   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26801 else
26802   maintainer_mode=no
26803 fi
26804
26805
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26807 $as_echo "$maintainer_mode" >&6; }
26808
26809 if test "$maintainer_mode" = "yes"; then
26810   MAINT=''
26811 else
26812   MAINT='#'
26813 fi
26814
26815 # --------------
26816 # Language hooks
26817 # --------------
26818
26819 # Make empty files to contain the specs and options for each language.
26820 # Then add #include lines to for a compiler that has specs and/or options.
26821
26822 subdirs=
26823 lang_opt_files=
26824 lang_specs_files=
26825 lang_tree_files=
26826 # These (without "all_") are set in each config-lang.in.
26827 # `language' must be a single word so is spelled singularly.
26828 all_languages=
26829 all_compilers=
26830 all_outputs='Makefile'
26831 # List of language makefile fragments.
26832 all_lang_makefrags=
26833 # Additional files for gengtype
26834 all_gtfiles="$target_gtfiles"
26835
26836 # These are the languages that are set in --enable-languages,
26837 # and are available in the GCC tree.
26838 all_selected_languages=
26839
26840 # Add the language fragments.
26841 # Languages are added via two mechanisms.  Some information must be
26842 # recorded in makefile variables, these are defined in config-lang.in.
26843 # We accumulate them and plug them into the main Makefile.
26844 # The other mechanism is a set of hooks for each of the main targets
26845 # like `clean', `install', etc.
26846
26847 language_hooks="Make-hooks"
26848
26849 for lang in ${srcdir}/*/config-lang.in
26850 do
26851         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26852
26853         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26854         if test "x$lang_alias" = x
26855         then
26856               echo "$lang doesn't set \$language." 1>&2
26857               exit 1
26858         fi
26859         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26860         subdirs="$subdirs $subdir"
26861
26862         # $gcc_subdir is where the gcc integration files are to be found
26863         # for a language, both for internal compiler purposes (compiler
26864         # sources implementing front-end to GCC tree converters), and for
26865         # build infrastructure purposes (Make-lang.in, etc.)
26866         #
26867         # This will be <subdir> (relative to $srcdir) if a line like
26868         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26869         # is found in <langdir>/config-lang.in, and will remain <langdir>
26870         # otherwise.
26871         #
26872         # Except for the language alias (fetched above), the regular
26873         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26874         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26875         # only this and the language alias.
26876
26877         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26878         if [ "$gcc_subdir" = "" ]; then
26879            gcc_subdir="$subdir"
26880         fi
26881
26882         case ",$enable_languages," in
26883         *,$lang_alias,*)
26884             all_selected_languages="$all_selected_languages $lang_alias"
26885             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26886                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26887             fi
26888             ;;
26889         esac
26890
26891         language=
26892         boot_language=
26893         compilers=
26894         outputs=
26895         gtfiles=
26896         subdir_requires=
26897         . ${srcdir}/$gcc_subdir/config-lang.in
26898         if test "x$language" = x
26899         then
26900                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26901                 exit 1
26902         fi
26903
26904         ok=:
26905         case ",$enable_languages," in
26906                 *,$lang_alias,*) ;;
26907                 *)
26908                         for i in $subdir_requires; do
26909                                 test -f "${srcdir}/$i/config-lang.in" && continue
26910                                 ok=false
26911                                 break
26912                         done
26913                 ;;
26914         esac
26915         $ok || continue
26916
26917         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26918         if test -f $srcdir/$gcc_subdir/lang.opt; then
26919             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26920             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26921         fi
26922         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26923             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26924         fi
26925         all_languages="$all_languages $language"
26926         all_compilers="$all_compilers $compilers"
26927         all_outputs="$all_outputs $outputs"
26928         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26929         case ",$enable_languages," in
26930                 *,lto,*)
26931
26932 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26933
26934                     enable_lto=yes
26935
26936                     ;;
26937                 *) ;;
26938         esac
26939 done
26940
26941 # Pick up gtfiles for c
26942 gtfiles=
26943 . ${srcdir}/c-config-lang.in
26944 all_gtfiles="$all_gtfiles [c] $gtfiles"
26945
26946 check_languages=
26947 for language in $all_selected_languages
26948 do
26949         check_languages="$check_languages check-$language"
26950 done
26951
26952 # We link each language in with a set of hooks, reached indirectly via
26953 # lang.${target}.  Only do so for selected languages.
26954
26955 rm -f Make-hooks
26956 touch Make-hooks
26957 target_list="all.cross start.encap rest.encap tags \
26958         install-common install-man install-info install-pdf install-html dvi \
26959         pdf html uninstall info man srcextra srcman srcinfo \
26960         mostlyclean clean distclean maintainer-clean install-plugin"
26961
26962 for t in $target_list
26963 do
26964         x=
26965         for lang in $all_selected_languages
26966         do
26967                 x="$x $lang.$t"
26968         done
26969         echo "lang.$t: $x" >> Make-hooks
26970 done
26971
26972 # --------
26973 # Option include files
26974 # --------
26975
26976 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26977 option_includes="option-includes.mk"
26978
26979
26980 # --------
26981 # UNSORTED
26982 # --------
26983
26984 # Create .gdbinit.
26985
26986 echo "dir ." > .gdbinit
26987 echo "dir ${srcdir}" >> .gdbinit
26988 if test x$gdb_needs_out_file_path = xyes
26989 then
26990         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26991 fi
26992 if test "x$subdirs" != x; then
26993         for s in $subdirs
26994         do
26995                 echo "dir ${srcdir}/$s" >> .gdbinit
26996         done
26997 fi
26998 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26999
27000 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27001
27002
27003
27004 # Find a directory in which to install a shared libgcc.
27005
27006 # Check whether --enable-version-specific-runtime-libs was given.
27007 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27008   enableval=$enable_version_specific_runtime_libs;
27009 fi
27010
27011
27012 # Substitute configuration variables
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
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076 # Echo link setup.
27077 if test x${build} = x${host} ; then
27078   if test x${host} = x${target} ; then
27079     echo "Links are now set up to build a native compiler for ${target}." 1>&2
27080   else
27081     echo "Links are now set up to build a cross-compiler" 1>&2
27082     echo " from ${host} to ${target}." 1>&2
27083   fi
27084 else
27085   if test x${host} = x${target} ; then
27086     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27087     echo " for ${target}." 1>&2
27088   else
27089     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27090     echo " from ${host} to ${target}." 1>&2
27091   fi
27092 fi
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102 if test "x${CLOOGLIBS}" != "x" ; then
27103
27104 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27105
27106 fi
27107
27108 # Check for plugin support
27109 # Check whether --enable-plugin was given.
27110 if test "${enable_plugin+set}" = set; then :
27111   enableval=$enable_plugin; enable_plugin=$enableval
27112 else
27113   enable_plugin=yes; default_plugin=yes
27114 fi
27115
27116
27117 pluginlibs=
27118
27119 case "${host}" in
27120   *-*-darwin*)
27121     if test x$build = x$host; then
27122       export_sym_check="nm${exeext} -g"
27123     elif test x$host = x$target; then
27124       export_sym_check="$gcc_cv_nm -g"
27125     else
27126       export_sym_check=
27127     fi
27128   ;;
27129   *)
27130     if test x$build = x$host; then
27131       export_sym_check="objdump${exeext} -T"
27132     elif test x$host = x$target; then
27133       export_sym_check="$gcc_cv_objdump -T"
27134     else
27135       export_sym_check=
27136     fi
27137   ;;
27138 esac
27139
27140 if test x"$enable_plugin" = x"yes"; then
27141
27142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27143 $as_echo_n "checking for exported symbols... " >&6; }
27144   if test "x$export_sym_check" != x; then
27145     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27146     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27147     if $export_sym_check conftest | grep foobar > /dev/null; then
27148       : # No need to use a flag
27149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27150 $as_echo "yes" >&6; }
27151     else
27152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27153 $as_echo "yes" >&6; }
27154       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27155 $as_echo_n "checking for -rdynamic... " >&6; }
27156       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27157       if $export_sym_check conftest | grep foobar > /dev/null; then
27158         plugin_rdynamic=yes
27159         pluginlibs="-rdynamic"
27160       else
27161         plugin_rdynamic=no
27162         enable_plugin=no
27163       fi
27164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27165 $as_echo "$plugin_rdynamic" >&6; }
27166     fi
27167   else
27168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27169 $as_echo "unable to check" >&6; }
27170   fi
27171
27172   # Check -ldl
27173   saved_LIBS="$LIBS"
27174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27175 $as_echo_n "checking for library containing dlopen... " >&6; }
27176 if test "${ac_cv_search_dlopen+set}" = set; then :
27177   $as_echo_n "(cached) " >&6
27178 else
27179   ac_func_search_save_LIBS=$LIBS
27180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27181 /* end confdefs.h.  */
27182
27183 /* Override any GCC internal prototype to avoid an error.
27184    Use char because int might match the return type of a GCC
27185    builtin and then its argument prototype would still apply.  */
27186 #ifdef __cplusplus
27187 extern "C"
27188 #endif
27189 char dlopen ();
27190 int
27191 main ()
27192 {
27193 return dlopen ();
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 for ac_lib in '' dl; do
27199   if test -z "$ac_lib"; then
27200     ac_res="none required"
27201   else
27202     ac_res=-l$ac_lib
27203     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27204   fi
27205   if ac_fn_c_try_link "$LINENO"; then :
27206   ac_cv_search_dlopen=$ac_res
27207 fi
27208 rm -f core conftest.err conftest.$ac_objext \
27209     conftest$ac_exeext
27210   if test "${ac_cv_search_dlopen+set}" = set; then :
27211   break
27212 fi
27213 done
27214 if test "${ac_cv_search_dlopen+set}" = set; then :
27215
27216 else
27217   ac_cv_search_dlopen=no
27218 fi
27219 rm conftest.$ac_ext
27220 LIBS=$ac_func_search_save_LIBS
27221 fi
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27223 $as_echo "$ac_cv_search_dlopen" >&6; }
27224 ac_res=$ac_cv_search_dlopen
27225 if test "$ac_res" != no; then :
27226   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27227
27228 fi
27229
27230   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27231     pluginlibs="$pluginlibs -ldl"
27232   fi
27233   LIBS="$saved_LIBS"
27234
27235   # Check that we can build shared objects with -fPIC -shared
27236   saved_LDFLAGS="$LDFLAGS"
27237   saved_CFLAGS="$CFLAGS"
27238   case "${host}" in
27239     *-*-darwin*)
27240       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27241       CFLAGS="$CFLAGS -fPIC"
27242       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27243     ;;
27244     *)
27245       CFLAGS="$CFLAGS -fPIC"
27246       LDFLAGS="$LDFLAGS -fPIC -shared"
27247     ;;
27248   esac
27249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27250 $as_echo_n "checking for -fPIC -shared... " >&6; }
27251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27252 /* end confdefs.h.  */
27253 extern int X;
27254 int
27255 main ()
27256 {
27257 return X == 0;
27258   ;
27259   return 0;
27260 }
27261 _ACEOF
27262 if ac_fn_c_try_link "$LINENO"; then :
27263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27264 $as_echo "yes" >&6; }; have_pic_shared=yes
27265 else
27266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27267 $as_echo "no" >&6; }; have_pic_shared=no
27268 fi
27269 rm -f core conftest.err conftest.$ac_objext \
27270     conftest$ac_exeext conftest.$ac_ext
27271   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27272     pluginlibs=
27273     enable_plugin=no
27274   fi
27275   LDFLAGS="$saved_LDFLAGS"
27276   CFLAGS="$saved_CFLAGS"
27277
27278   # If plugin support had been requested but not available, fail.
27279   if test x"$enable_plugin" = x"no" ; then
27280     if test x"$default_plugin" != x"yes"; then
27281       as_fn_error "
27282 Building GCC with plugin support requires a host that supports
27283 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27284     fi
27285   fi
27286 fi
27287
27288
27289
27290 if test x"$enable_plugin" = x"yes"; then
27291
27292 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27293
27294 fi
27295
27296
27297 # Check whether --enable-libquadmath-support was given.
27298 if test "${enable_libquadmath_support+set}" = set; then :
27299   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27300 else
27301   ENABLE_LIBQUADMATH_SUPPORT=yes
27302 fi
27303
27304 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27305
27306 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27307
27308 fi
27309
27310
27311 # Specify what hash style to use by default.
27312
27313 # Check whether --with-linker-hash-style was given.
27314 if test "${with_linker_hash_style+set}" = set; then :
27315   withval=$with_linker_hash_style; case x"$withval" in
27316    xsysv)
27317      LINKER_HASH_STYLE=sysv
27318      ;;
27319    xgnu)
27320      LINKER_HASH_STYLE=gnu
27321      ;;
27322    xboth)
27323      LINKER_HASH_STYLE=both
27324      ;;
27325    *)
27326      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27327      ;;
27328  esac
27329 else
27330   LINKER_HASH_STYLE=''
27331 fi
27332
27333 if test x"${LINKER_HASH_STYLE}" != x; then
27334
27335 cat >>confdefs.h <<_ACEOF
27336 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27337 _ACEOF
27338
27339 fi
27340
27341 # Configure the subdirectories
27342 # AC_CONFIG_SUBDIRS($subdirs)
27343
27344 # Create the Makefile
27345 # and configure language subdirectories
27346 ac_config_files="$ac_config_files $all_outputs"
27347
27348
27349 ac_config_commands="$ac_config_commands default"
27350
27351 cat >confcache <<\_ACEOF
27352 # This file is a shell script that caches the results of configure
27353 # tests run on this system so they can be shared between configure
27354 # scripts and configure runs, see configure's option --config-cache.
27355 # It is not useful on other systems.  If it contains results you don't
27356 # want to keep, you may remove or edit it.
27357 #
27358 # config.status only pays attention to the cache file if you give it
27359 # the --recheck option to rerun configure.
27360 #
27361 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27362 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27363 # following values.
27364
27365 _ACEOF
27366
27367 # The following way of writing the cache mishandles newlines in values,
27368 # but we know of no workaround that is simple, portable, and efficient.
27369 # So, we kill variables containing newlines.
27370 # Ultrix sh set writes to stderr and can't be redirected directly,
27371 # and sets the high bit in the cache file unless we assign to the vars.
27372 (
27373   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27374     eval ac_val=\$$ac_var
27375     case $ac_val in #(
27376     *${as_nl}*)
27377       case $ac_var in #(
27378       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27380       esac
27381       case $ac_var in #(
27382       _ | IFS | as_nl) ;; #(
27383       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27384       *) { eval $ac_var=; unset $ac_var;} ;;
27385       esac ;;
27386     esac
27387   done
27388
27389   (set) 2>&1 |
27390     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27391     *${as_nl}ac_space=\ *)
27392       # `set' does not quote correctly, so add quotes: double-quote
27393       # substitution turns \\\\ into \\, and sed turns \\ into \.
27394       sed -n \
27395         "s/'/'\\\\''/g;
27396           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27397       ;; #(
27398     *)
27399       # `set' quotes correctly as required by POSIX, so do not add quotes.
27400       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27401       ;;
27402     esac |
27403     sort
27404 ) |
27405   sed '
27406      /^ac_cv_env_/b end
27407      t clear
27408      :clear
27409      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27410      t end
27411      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27412      :end' >>confcache
27413 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27414   if test -w "$cache_file"; then
27415     test "x$cache_file" != "x/dev/null" &&
27416       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27417 $as_echo "$as_me: updating cache $cache_file" >&6;}
27418     cat confcache >$cache_file
27419   else
27420     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27421 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27422   fi
27423 fi
27424 rm -f confcache
27425
27426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27427 # Let make expand exec_prefix.
27428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27429
27430 DEFS=-DHAVE_CONFIG_H
27431
27432 ac_libobjs=
27433 ac_ltlibobjs=
27434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27435   # 1. Remove the extension, and $U if already installed.
27436   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27437   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27438   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27439   #    will be set to the directory where LIBOBJS objects are built.
27440   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27441   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27442 done
27443 LIBOBJS=$ac_libobjs
27444
27445 LTLIBOBJS=$ac_ltlibobjs
27446
27447
27448
27449
27450 : ${CONFIG_STATUS=./config.status}
27451 ac_write_fail=0
27452 ac_clean_files_save=$ac_clean_files
27453 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27455 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27456 as_write_fail=0
27457 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27458 #! $SHELL
27459 # Generated by $as_me.
27460 # Run this file to recreate the current configuration.
27461 # Compiler output produced by configure, useful for debugging
27462 # configure, is in config.log if it exists.
27463
27464 debug=false
27465 ac_cs_recheck=false
27466 ac_cs_silent=false
27467
27468 SHELL=\${CONFIG_SHELL-$SHELL}
27469 export SHELL
27470 _ASEOF
27471 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27472 ## -------------------- ##
27473 ## M4sh Initialization. ##
27474 ## -------------------- ##
27475
27476 # Be more Bourne compatible
27477 DUALCASE=1; export DUALCASE # for MKS sh
27478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27479   emulate sh
27480   NULLCMD=:
27481   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27482   # is contrary to our usage.  Disable this feature.
27483   alias -g '${1+"$@"}'='"$@"'
27484   setopt NO_GLOB_SUBST
27485 else
27486   case `(set -o) 2>/dev/null` in #(
27487   *posix*) :
27488     set -o posix ;; #(
27489   *) :
27490      ;;
27491 esac
27492 fi
27493
27494
27495 as_nl='
27496 '
27497 export as_nl
27498 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27499 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27500 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27502 # Prefer a ksh shell builtin over an external printf program on Solaris,
27503 # but without wasting forks for bash or zsh.
27504 if test -z "$BASH_VERSION$ZSH_VERSION" \
27505     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27506   as_echo='print -r --'
27507   as_echo_n='print -rn --'
27508 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27509   as_echo='printf %s\n'
27510   as_echo_n='printf %s'
27511 else
27512   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27513     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27514     as_echo_n='/usr/ucb/echo -n'
27515   else
27516     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27517     as_echo_n_body='eval
27518       arg=$1;
27519       case $arg in #(
27520       *"$as_nl"*)
27521         expr "X$arg" : "X\\(.*\\)$as_nl";
27522         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27523       esac;
27524       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27525     '
27526     export as_echo_n_body
27527     as_echo_n='sh -c $as_echo_n_body as_echo'
27528   fi
27529   export as_echo_body
27530   as_echo='sh -c $as_echo_body as_echo'
27531 fi
27532
27533 # The user is always right.
27534 if test "${PATH_SEPARATOR+set}" != set; then
27535   PATH_SEPARATOR=:
27536   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27537     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27538       PATH_SEPARATOR=';'
27539   }
27540 fi
27541
27542
27543 # IFS
27544 # We need space, tab and new line, in precisely that order.  Quoting is
27545 # there to prevent editors from complaining about space-tab.
27546 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27547 # splitting by setting IFS to empty value.)
27548 IFS=" ""        $as_nl"
27549
27550 # Find who we are.  Look in the path if we contain no directory separator.
27551 case $0 in #((
27552   *[\\/]* ) as_myself=$0 ;;
27553   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27554 for as_dir in $PATH
27555 do
27556   IFS=$as_save_IFS
27557   test -z "$as_dir" && as_dir=.
27558     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27559   done
27560 IFS=$as_save_IFS
27561
27562      ;;
27563 esac
27564 # We did not find ourselves, most probably we were run as `sh COMMAND'
27565 # in which case we are not to be found in the path.
27566 if test "x$as_myself" = x; then
27567   as_myself=$0
27568 fi
27569 if test ! -f "$as_myself"; then
27570   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27571   exit 1
27572 fi
27573
27574 # Unset variables that we do not need and which cause bugs (e.g. in
27575 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27576 # suppresses any "Segmentation fault" message there.  '((' could
27577 # trigger a bug in pdksh 5.2.14.
27578 for as_var in BASH_ENV ENV MAIL MAILPATH
27579 do eval test x\${$as_var+set} = xset \
27580   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27581 done
27582 PS1='$ '
27583 PS2='> '
27584 PS4='+ '
27585
27586 # NLS nuisances.
27587 LC_ALL=C
27588 export LC_ALL
27589 LANGUAGE=C
27590 export LANGUAGE
27591
27592 # CDPATH.
27593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27594
27595
27596 # as_fn_error ERROR [LINENO LOG_FD]
27597 # ---------------------------------
27598 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27599 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27600 # script with status $?, using 1 if that was 0.
27601 as_fn_error ()
27602 {
27603   as_status=$?; test $as_status -eq 0 && as_status=1
27604   if test "$3"; then
27605     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27606     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27607   fi
27608   $as_echo "$as_me: error: $1" >&2
27609   as_fn_exit $as_status
27610 } # as_fn_error
27611
27612
27613 # as_fn_set_status STATUS
27614 # -----------------------
27615 # Set $? to STATUS, without forking.
27616 as_fn_set_status ()
27617 {
27618   return $1
27619 } # as_fn_set_status
27620
27621 # as_fn_exit STATUS
27622 # -----------------
27623 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27624 as_fn_exit ()
27625 {
27626   set +e
27627   as_fn_set_status $1
27628   exit $1
27629 } # as_fn_exit
27630
27631 # as_fn_unset VAR
27632 # ---------------
27633 # Portably unset VAR.
27634 as_fn_unset ()
27635 {
27636   { eval $1=; unset $1;}
27637 }
27638 as_unset=as_fn_unset
27639 # as_fn_append VAR VALUE
27640 # ----------------------
27641 # Append the text in VALUE to the end of the definition contained in VAR. Take
27642 # advantage of any shell optimizations that allow amortized linear growth over
27643 # repeated appends, instead of the typical quadratic growth present in naive
27644 # implementations.
27645 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27646   eval 'as_fn_append ()
27647   {
27648     eval $1+=\$2
27649   }'
27650 else
27651   as_fn_append ()
27652   {
27653     eval $1=\$$1\$2
27654   }
27655 fi # as_fn_append
27656
27657 # as_fn_arith ARG...
27658 # ------------------
27659 # Perform arithmetic evaluation on the ARGs, and store the result in the
27660 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27661 # must be portable across $(()) and expr.
27662 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27663   eval 'as_fn_arith ()
27664   {
27665     as_val=$(( $* ))
27666   }'
27667 else
27668   as_fn_arith ()
27669   {
27670     as_val=`expr "$@" || test $? -eq 1`
27671   }
27672 fi # as_fn_arith
27673
27674
27675 if expr a : '\(a\)' >/dev/null 2>&1 &&
27676    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27677   as_expr=expr
27678 else
27679   as_expr=false
27680 fi
27681
27682 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27683   as_basename=basename
27684 else
27685   as_basename=false
27686 fi
27687
27688 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27689   as_dirname=dirname
27690 else
27691   as_dirname=false
27692 fi
27693
27694 as_me=`$as_basename -- "$0" ||
27695 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27696          X"$0" : 'X\(//\)$' \| \
27697          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27698 $as_echo X/"$0" |
27699     sed '/^.*\/\([^/][^/]*\)\/*$/{
27700             s//\1/
27701             q
27702           }
27703           /^X\/\(\/\/\)$/{
27704             s//\1/
27705             q
27706           }
27707           /^X\/\(\/\).*/{
27708             s//\1/
27709             q
27710           }
27711           s/.*/./; q'`
27712
27713 # Avoid depending upon Character Ranges.
27714 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27715 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27716 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27717 as_cr_digits='0123456789'
27718 as_cr_alnum=$as_cr_Letters$as_cr_digits
27719
27720 ECHO_C= ECHO_N= ECHO_T=
27721 case `echo -n x` in #(((((
27722 -n*)
27723   case `echo 'xy\c'` in
27724   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27725   xy)  ECHO_C='\c';;
27726   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27727        ECHO_T=' ';;
27728   esac;;
27729 *)
27730   ECHO_N='-n';;
27731 esac
27732
27733 rm -f conf$$ conf$$.exe conf$$.file
27734 if test -d conf$$.dir; then
27735   rm -f conf$$.dir/conf$$.file
27736 else
27737   rm -f conf$$.dir
27738   mkdir conf$$.dir 2>/dev/null
27739 fi
27740 if (echo >conf$$.file) 2>/dev/null; then
27741   if ln -s conf$$.file conf$$ 2>/dev/null; then
27742     as_ln_s='ln -s'
27743     # ... but there are two gotchas:
27744     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27745     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27746     # In both cases, we have to default to `cp -p'.
27747     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27748       as_ln_s='cp -p'
27749   elif ln conf$$.file conf$$ 2>/dev/null; then
27750     as_ln_s=ln
27751   else
27752     as_ln_s='cp -p'
27753   fi
27754 else
27755   as_ln_s='cp -p'
27756 fi
27757 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27758 rmdir conf$$.dir 2>/dev/null
27759
27760
27761 # as_fn_mkdir_p
27762 # -------------
27763 # Create "$as_dir" as a directory, including parents if necessary.
27764 as_fn_mkdir_p ()
27765 {
27766
27767   case $as_dir in #(
27768   -*) as_dir=./$as_dir;;
27769   esac
27770   test -d "$as_dir" || eval $as_mkdir_p || {
27771     as_dirs=
27772     while :; do
27773       case $as_dir in #(
27774       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27775       *) as_qdir=$as_dir;;
27776       esac
27777       as_dirs="'$as_qdir' $as_dirs"
27778       as_dir=`$as_dirname -- "$as_dir" ||
27779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27780          X"$as_dir" : 'X\(//\)[^/]' \| \
27781          X"$as_dir" : 'X\(//\)$' \| \
27782          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27783 $as_echo X"$as_dir" |
27784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27785             s//\1/
27786             q
27787           }
27788           /^X\(\/\/\)[^/].*/{
27789             s//\1/
27790             q
27791           }
27792           /^X\(\/\/\)$/{
27793             s//\1/
27794             q
27795           }
27796           /^X\(\/\).*/{
27797             s//\1/
27798             q
27799           }
27800           s/.*/./; q'`
27801       test -d "$as_dir" && break
27802     done
27803     test -z "$as_dirs" || eval "mkdir $as_dirs"
27804   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27805
27806
27807 } # as_fn_mkdir_p
27808 if mkdir -p . 2>/dev/null; then
27809   as_mkdir_p='mkdir -p "$as_dir"'
27810 else
27811   test -d ./-p && rmdir ./-p
27812   as_mkdir_p=false
27813 fi
27814
27815 if test -x / >/dev/null 2>&1; then
27816   as_test_x='test -x'
27817 else
27818   if ls -dL / >/dev/null 2>&1; then
27819     as_ls_L_option=L
27820   else
27821     as_ls_L_option=
27822   fi
27823   as_test_x='
27824     eval sh -c '\''
27825       if test -d "$1"; then
27826         test -d "$1/.";
27827       else
27828         case $1 in #(
27829         -*)set "./$1";;
27830         esac;
27831         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27832         ???[sx]*):;;*)false;;esac;fi
27833     '\'' sh
27834   '
27835 fi
27836 as_executable_p=$as_test_x
27837
27838 # Sed expression to map a string onto a valid CPP name.
27839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27840
27841 # Sed expression to map a string onto a valid variable name.
27842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27843
27844
27845 exec 6>&1
27846 ## ----------------------------------- ##
27847 ## Main body of $CONFIG_STATUS script. ##
27848 ## ----------------------------------- ##
27849 _ASEOF
27850 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27851
27852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27853 # Save the log message, to keep $0 and so on meaningful, and to
27854 # report actual input values of CONFIG_FILES etc. instead of their
27855 # values after options handling.
27856 ac_log="
27857 This file was extended by $as_me, which was
27858 generated by GNU Autoconf 2.64.  Invocation command line was
27859
27860   CONFIG_FILES    = $CONFIG_FILES
27861   CONFIG_HEADERS  = $CONFIG_HEADERS
27862   CONFIG_LINKS    = $CONFIG_LINKS
27863   CONFIG_COMMANDS = $CONFIG_COMMANDS
27864   $ $0 $@
27865
27866 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27867 "
27868
27869 _ACEOF
27870
27871 case $ac_config_files in *"
27872 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27873 esac
27874
27875 case $ac_config_headers in *"
27876 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27877 esac
27878
27879
27880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27881 # Files that config.status was made for.
27882 config_files="$ac_config_files"
27883 config_headers="$ac_config_headers"
27884 config_commands="$ac_config_commands"
27885
27886 _ACEOF
27887
27888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27889 ac_cs_usage="\
27890 \`$as_me' instantiates files and other configuration actions
27891 from templates according to the current configuration.  Unless the files
27892 and actions are specified as TAGs, all are instantiated by default.
27893
27894 Usage: $0 [OPTION]... [TAG]...
27895
27896   -h, --help       print this help, then exit
27897   -V, --version    print version number and configuration settings, then exit
27898   -q, --quiet, --silent
27899                    do not print progress messages
27900   -d, --debug      don't remove temporary files
27901       --recheck    update $as_me by reconfiguring in the same conditions
27902       --file=FILE[:TEMPLATE]
27903                    instantiate the configuration file FILE
27904       --header=FILE[:TEMPLATE]
27905                    instantiate the configuration header FILE
27906
27907 Configuration files:
27908 $config_files
27909
27910 Configuration headers:
27911 $config_headers
27912
27913 Configuration commands:
27914 $config_commands
27915
27916 Report bugs to the package provider."
27917
27918 _ACEOF
27919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27920 ac_cs_version="\\
27921 config.status
27922 configured by $0, generated by GNU Autoconf 2.64,
27923   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27924
27925 Copyright (C) 2009 Free Software Foundation, Inc.
27926 This config.status script is free software; the Free Software Foundation
27927 gives unlimited permission to copy, distribute and modify it."
27928
27929 ac_pwd='$ac_pwd'
27930 srcdir='$srcdir'
27931 AWK='$AWK'
27932 test -n "\$AWK" || AWK=awk
27933 _ACEOF
27934
27935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27936 # The default lists apply if the user does not specify any file.
27937 ac_need_defaults=:
27938 while test $# != 0
27939 do
27940   case $1 in
27941   --*=*)
27942     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27943     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27944     ac_shift=:
27945     ;;
27946   *)
27947     ac_option=$1
27948     ac_optarg=$2
27949     ac_shift=shift
27950     ;;
27951   esac
27952
27953   case $ac_option in
27954   # Handling of the options.
27955   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27956     ac_cs_recheck=: ;;
27957   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27958     $as_echo "$ac_cs_version"; exit ;;
27959   --debug | --debu | --deb | --de | --d | -d )
27960     debug=: ;;
27961   --file | --fil | --fi | --f )
27962     $ac_shift
27963     case $ac_optarg in
27964     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27965     esac
27966     as_fn_append CONFIG_FILES " '$ac_optarg'"
27967     ac_need_defaults=false;;
27968   --header | --heade | --head | --hea )
27969     $ac_shift
27970     case $ac_optarg in
27971     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27972     esac
27973     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27974     ac_need_defaults=false;;
27975   --he | --h)
27976     # Conflict between --help and --header
27977     as_fn_error "ambiguous option: \`$1'
27978 Try \`$0 --help' for more information.";;
27979   --help | --hel | -h )
27980     $as_echo "$ac_cs_usage"; exit ;;
27981   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27982   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27983     ac_cs_silent=: ;;
27984
27985   # This is an error.
27986   -*) as_fn_error "unrecognized option: \`$1'
27987 Try \`$0 --help' for more information." ;;
27988
27989   *) as_fn_append ac_config_targets " $1"
27990      ac_need_defaults=false ;;
27991
27992   esac
27993   shift
27994 done
27995
27996 ac_configure_extra_args=
27997
27998 if $ac_cs_silent; then
27999   exec 6>/dev/null
28000   ac_configure_extra_args="$ac_configure_extra_args --silent"
28001 fi
28002
28003 _ACEOF
28004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28005 if \$ac_cs_recheck; then
28006   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28007   shift
28008   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28009   CONFIG_SHELL='$SHELL'
28010   export CONFIG_SHELL
28011   exec "\$@"
28012 fi
28013
28014 _ACEOF
28015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28016 exec 5>>config.log
28017 {
28018   echo
28019   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28020 ## Running $as_me. ##
28021 _ASBOX
28022   $as_echo "$ac_log"
28023 } >&5
28024
28025 _ACEOF
28026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28027 #
28028 # INIT-COMMANDS
28029 #
28030 subdirs='$subdirs'
28031
28032 _ACEOF
28033
28034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28035
28036 # Handling of arguments.
28037 for ac_config_target in $ac_config_targets
28038 do
28039   case $ac_config_target in
28040     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28041     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28042     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28043     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28044     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28045     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28046
28047   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28048   esac
28049 done
28050
28051
28052 # If the user did not use the arguments to specify the items to instantiate,
28053 # then the envvar interface is used.  Set only those that are not.
28054 # We use the long form for the default assignment because of an extremely
28055 # bizarre bug on SunOS 4.1.3.
28056 if $ac_need_defaults; then
28057   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28058   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28059   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28060 fi
28061
28062 # Have a temporary directory for convenience.  Make it in the build tree
28063 # simply because there is no reason against having it here, and in addition,
28064 # creating and moving files from /tmp can sometimes cause problems.
28065 # Hook for its removal unless debugging.
28066 # Note that there is a small window in which the directory will not be cleaned:
28067 # after its creation but before its name has been assigned to `$tmp'.
28068 $debug ||
28069 {
28070   tmp=
28071   trap 'exit_status=$?
28072   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28073 ' 0
28074   trap 'as_fn_exit 1' 1 2 13 15
28075 }
28076 # Create a (secure) tmp directory for tmp files.
28077
28078 {
28079   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28080   test -n "$tmp" && test -d "$tmp"
28081 }  ||
28082 {
28083   tmp=./conf$$-$RANDOM
28084   (umask 077 && mkdir "$tmp")
28085 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28086
28087 # Set up the scripts for CONFIG_FILES section.
28088 # No need to generate them if there are no CONFIG_FILES.
28089 # This happens for instance with `./config.status config.h'.
28090 if test -n "$CONFIG_FILES"; then
28091
28092 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28093   ac_cs_awk_getline=:
28094   ac_cs_awk_pipe_init=
28095   ac_cs_awk_read_file='
28096       while ((getline aline < (F[key])) > 0)
28097         print(aline)
28098       close(F[key])'
28099   ac_cs_awk_pipe_fini=
28100 else
28101   ac_cs_awk_getline=false
28102   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28103   ac_cs_awk_read_file='
28104       print "|#_!!_#|"
28105       print "cat " F[key] " &&"
28106       '$ac_cs_awk_pipe_init
28107   # The final `:' finishes the AND list.
28108   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28109 fi
28110 ac_cr=`echo X | tr X '\015'`
28111 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28112 # But we know of no other shell where ac_cr would be empty at this
28113 # point, so we can use a bashism as a fallback.
28114 if test "x$ac_cr" = x; then
28115   eval ac_cr=\$\'\\r\'
28116 fi
28117 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28118 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28119   ac_cs_awk_cr='\r'
28120 else
28121   ac_cs_awk_cr=$ac_cr
28122 fi
28123
28124 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28125 _ACEOF
28126
28127 # Create commands to substitute file output variables.
28128 {
28129   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28130   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28131   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28132   echo "_ACAWK" &&
28133   echo "_ACEOF"
28134 } >conf$$files.sh &&
28135 . ./conf$$files.sh ||
28136   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28137 rm -f conf$$files.sh
28138
28139 {
28140   echo "cat >conf$$subs.awk <<_ACEOF" &&
28141   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28142   echo "_ACEOF"
28143 } >conf$$subs.sh ||
28144   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28145 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28146 ac_delim='%!_!# '
28147 for ac_last_try in false false false false false :; do
28148   . ./conf$$subs.sh ||
28149     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28150
28151   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28152   if test $ac_delim_n = $ac_delim_num; then
28153     break
28154   elif $ac_last_try; then
28155     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28156   else
28157     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28158   fi
28159 done
28160 rm -f conf$$subs.sh
28161
28162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28163 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28164 _ACEOF
28165 sed -n '
28166 h
28167 s/^/S["/; s/!.*/"]=/
28168 p
28169 g
28170 s/^[^!]*!//
28171 :repl
28172 t repl
28173 s/'"$ac_delim"'$//
28174 t delim
28175 :nl
28176 h
28177 s/\(.\{148\}\).*/\1/
28178 t more1
28179 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28180 p
28181 n
28182 b repl
28183 :more1
28184 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28185 p
28186 g
28187 s/.\{148\}//
28188 t nl
28189 :delim
28190 h
28191 s/\(.\{148\}\).*/\1/
28192 t more2
28193 s/["\\]/\\&/g; s/^/"/; s/$/"/
28194 p
28195 b
28196 :more2
28197 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28198 p
28199 g
28200 s/.\{148\}//
28201 t delim
28202 ' <conf$$subs.awk | sed '
28203 /^[^""]/{
28204   N
28205   s/\n//
28206 }
28207 ' >>$CONFIG_STATUS || ac_write_fail=1
28208 rm -f conf$$subs.awk
28209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28210 _ACAWK
28211 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28212   for (key in S) S_is_set[key] = 1
28213   FS = "\a"
28214   \$ac_cs_awk_pipe_init
28215 }
28216 {
28217   line = $ 0
28218   nfields = split(line, field, "@")
28219   substed = 0
28220   len = length(field[1])
28221   for (i = 2; i < nfields; i++) {
28222     key = field[i]
28223     keylen = length(key)
28224     if (S_is_set[key]) {
28225       value = S[key]
28226       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28227       len += length(value) + length(field[++i])
28228       substed = 1
28229     } else
28230       len += 1 + keylen
28231   }
28232   if (nfields == 3 && !substed) {
28233     key = field[2]
28234     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28235       \$ac_cs_awk_read_file
28236       next
28237     }
28238   }
28239   print line
28240 }
28241 \$ac_cs_awk_pipe_fini
28242 _ACAWK
28243 _ACEOF
28244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28245 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28246   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28247 else
28248   cat
28249 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28250   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28251 _ACEOF
28252
28253 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28254 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28255 # trailing colons and then remove the whole line if VPATH becomes empty
28256 # (actually we leave an empty line to preserve line numbers).
28257 if test "x$srcdir" = x.; then
28258   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28259 s/:*\$(srcdir):*/:/
28260 s/:*\${srcdir}:*/:/
28261 s/:*@srcdir@:*/:/
28262 s/^\([^=]*=[     ]*\):*/\1/
28263 s/:*$//
28264 s/^[^=]*=[       ]*$//
28265 }'
28266 fi
28267
28268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28269 fi # test -n "$CONFIG_FILES"
28270
28271 # Set up the scripts for CONFIG_HEADERS section.
28272 # No need to generate them if there are no CONFIG_HEADERS.
28273 # This happens for instance with `./config.status Makefile'.
28274 if test -n "$CONFIG_HEADERS"; then
28275 cat >"$tmp/defines.awk" <<\_ACAWK ||
28276 BEGIN {
28277 _ACEOF
28278
28279 # Transform confdefs.h into an awk script `defines.awk', embedded as
28280 # here-document in config.status, that substitutes the proper values into
28281 # config.h.in to produce config.h.
28282
28283 # Create a delimiter string that does not exist in confdefs.h, to ease
28284 # handling of long lines.
28285 ac_delim='%!_!# '
28286 for ac_last_try in false false :; do
28287   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28288   if test -z "$ac_t"; then
28289     break
28290   elif $ac_last_try; then
28291     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28292   else
28293     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28294   fi
28295 done
28296
28297 # For the awk script, D is an array of macro values keyed by name,
28298 # likewise P contains macro parameters if any.  Preserve backslash
28299 # newline sequences.
28300
28301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28302 sed -n '
28303 s/.\{148\}/&'"$ac_delim"'/g
28304 t rset
28305 :rset
28306 s/^[     ]*#[    ]*define[       ][      ]*/ /
28307 t def
28308 d
28309 :def
28310 s/\\$//
28311 t bsnl
28312 s/["\\]/\\&/g
28313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28314 D["\1"]=" \3"/p
28315 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28316 d
28317 :bsnl
28318 s/["\\]/\\&/g
28319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28320 D["\1"]=" \3\\\\\\n"\\/p
28321 t cont
28322 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28323 t cont
28324 d
28325 :cont
28326 n
28327 s/.\{148\}/&'"$ac_delim"'/g
28328 t clear
28329 :clear
28330 s/\\$//
28331 t bsnlc
28332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28333 d
28334 :bsnlc
28335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28336 b cont
28337 ' <confdefs.h | sed '
28338 s/'"$ac_delim"'/"\\\
28339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28340
28341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28342   for (key in D) D_is_set[key] = 1
28343   FS = "\a"
28344 }
28345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28346   line = \$ 0
28347   split(line, arg, " ")
28348   if (arg[1] == "#") {
28349     defundef = arg[2]
28350     mac1 = arg[3]
28351   } else {
28352     defundef = substr(arg[1], 2)
28353     mac1 = arg[2]
28354   }
28355   split(mac1, mac2, "(") #)
28356   macro = mac2[1]
28357   prefix = substr(line, 1, index(line, defundef) - 1)
28358   if (D_is_set[macro]) {
28359     # Preserve the white space surrounding the "#".
28360     print prefix "define", macro P[macro] D[macro]
28361     next
28362   } else {
28363     # Replace #undef with comments.  This is necessary, for example,
28364     # in the case of _POSIX_SOURCE, which is predefined and required
28365     # on some systems where configure will not decide to define it.
28366     if (defundef == "undef") {
28367       print "/*", prefix defundef, macro, "*/"
28368       next
28369     }
28370   }
28371 }
28372 { print }
28373 _ACAWK
28374 _ACEOF
28375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28376   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28377 fi # test -n "$CONFIG_HEADERS"
28378
28379
28380 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28381 shift
28382 for ac_tag
28383 do
28384   case $ac_tag in
28385   :[FHLC]) ac_mode=$ac_tag; continue;;
28386   esac
28387   case $ac_mode$ac_tag in
28388   :[FHL]*:*);;
28389   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28390   :[FH]-) ac_tag=-:-;;
28391   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28392   esac
28393   ac_save_IFS=$IFS
28394   IFS=:
28395   set x $ac_tag
28396   IFS=$ac_save_IFS
28397   shift
28398   ac_file=$1
28399   shift
28400
28401   case $ac_mode in
28402   :L) ac_source=$1;;
28403   :[FH])
28404     ac_file_inputs=
28405     for ac_f
28406     do
28407       case $ac_f in
28408       -) ac_f="$tmp/stdin";;
28409       *) # Look for the file first in the build tree, then in the source tree
28410          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28411          # because $ac_f cannot contain `:'.
28412          test -f "$ac_f" ||
28413            case $ac_f in
28414            [\\/$]*) false;;
28415            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28416            esac ||
28417            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28418       esac
28419       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28420       as_fn_append ac_file_inputs " '$ac_f'"
28421     done
28422
28423     # Let's still pretend it is `configure' which instantiates (i.e., don't
28424     # use $as_me), people would be surprised to read:
28425     #    /* config.h.  Generated by config.status.  */
28426     configure_input='Generated from '`
28427           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28428         `' by configure.'
28429     if test x"$ac_file" != x-; then
28430       configure_input="$ac_file.  $configure_input"
28431       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28432 $as_echo "$as_me: creating $ac_file" >&6;}
28433     fi
28434     # Neutralize special characters interpreted by sed in replacement strings.
28435     case $configure_input in #(
28436     *\&* | *\|* | *\\* )
28437        ac_sed_conf_input=`$as_echo "$configure_input" |
28438        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28439     *) ac_sed_conf_input=$configure_input;;
28440     esac
28441
28442     case $ac_tag in
28443     *:-:* | *:-) cat >"$tmp/stdin" \
28444       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28445     esac
28446     ;;
28447   esac
28448
28449   ac_dir=`$as_dirname -- "$ac_file" ||
28450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28451          X"$ac_file" : 'X\(//\)[^/]' \| \
28452          X"$ac_file" : 'X\(//\)$' \| \
28453          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28454 $as_echo X"$ac_file" |
28455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28456             s//\1/
28457             q
28458           }
28459           /^X\(\/\/\)[^/].*/{
28460             s//\1/
28461             q
28462           }
28463           /^X\(\/\/\)$/{
28464             s//\1/
28465             q
28466           }
28467           /^X\(\/\).*/{
28468             s//\1/
28469             q
28470           }
28471           s/.*/./; q'`
28472   as_dir="$ac_dir"; as_fn_mkdir_p
28473   ac_builddir=.
28474
28475 case "$ac_dir" in
28476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28477 *)
28478   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28479   # A ".." for each directory in $ac_dir_suffix.
28480   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28481   case $ac_top_builddir_sub in
28482   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28483   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28484   esac ;;
28485 esac
28486 ac_abs_top_builddir=$ac_pwd
28487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28488 # for backward compatibility:
28489 ac_top_builddir=$ac_top_build_prefix
28490
28491 case $srcdir in
28492   .)  # We are building in place.
28493     ac_srcdir=.
28494     ac_top_srcdir=$ac_top_builddir_sub
28495     ac_abs_top_srcdir=$ac_pwd ;;
28496   [\\/]* | ?:[\\/]* )  # Absolute name.
28497     ac_srcdir=$srcdir$ac_dir_suffix;
28498     ac_top_srcdir=$srcdir
28499     ac_abs_top_srcdir=$srcdir ;;
28500   *) # Relative name.
28501     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28502     ac_top_srcdir=$ac_top_build_prefix$srcdir
28503     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28504 esac
28505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28506
28507
28508   case $ac_mode in
28509   :F)
28510   #
28511   # CONFIG_FILE
28512   #
28513
28514 _ACEOF
28515
28516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28517 # If the template does not know about datarootdir, expand it.
28518 # FIXME: This hack should be removed a few years after 2.60.
28519 ac_datarootdir_hack=; ac_datarootdir_seen=
28520 ac_sed_dataroot='
28521 /datarootdir/ {
28522   p
28523   q
28524 }
28525 /@datadir@/p
28526 /@docdir@/p
28527 /@infodir@/p
28528 /@localedir@/p
28529 /@mandir@/p'
28530 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28531 *datarootdir*) ac_datarootdir_seen=yes;;
28532 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28533   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28534 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28535 _ACEOF
28536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28537   ac_datarootdir_hack='
28538   s&@datadir@&$datadir&g
28539   s&@docdir@&$docdir&g
28540   s&@infodir@&$infodir&g
28541   s&@localedir@&$localedir&g
28542   s&@mandir@&$mandir&g
28543   s&\\\${datarootdir}&$datarootdir&g' ;;
28544 esac
28545 _ACEOF
28546
28547 # Neutralize VPATH when `$srcdir' = `.'.
28548 # Shell code in configure.ac might set extrasub.
28549 # FIXME: do we really want to maintain this feature?
28550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28551 ac_sed_extra="$ac_vpsub
28552 $extrasub
28553 _ACEOF
28554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28555 :t
28556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28557 s|@configure_input@|$ac_sed_conf_input|;t t
28558 s&@top_builddir@&$ac_top_builddir_sub&;t t
28559 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28560 s&@srcdir@&$ac_srcdir&;t t
28561 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28562 s&@top_srcdir@&$ac_top_srcdir&;t t
28563 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28564 s&@builddir@&$ac_builddir&;t t
28565 s&@abs_builddir@&$ac_abs_builddir&;t t
28566 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28567 $ac_datarootdir_hack
28568 "
28569 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28570 if $ac_cs_awk_getline; then
28571   $AWK -f "$tmp/subs.awk"
28572 else
28573   $AWK -f "$tmp/subs.awk" | $SHELL
28574 fi >$tmp/out \
28575   || as_fn_error "could not create $ac_file" "$LINENO" 5
28576
28577 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28578   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28579   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28580   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28581 which seems to be undefined.  Please make sure it is defined." >&5
28582 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28583 which seems to be undefined.  Please make sure it is defined." >&2;}
28584
28585   rm -f "$tmp/stdin"
28586   case $ac_file in
28587   -) cat "$tmp/out" && rm -f "$tmp/out";;
28588   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28589   esac \
28590   || as_fn_error "could not create $ac_file" "$LINENO" 5
28591  ;;
28592   :H)
28593   #
28594   # CONFIG_HEADER
28595   #
28596   if test x"$ac_file" != x-; then
28597     {
28598       $as_echo "/* $configure_input  */" \
28599       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28600     } >"$tmp/config.h" \
28601       || as_fn_error "could not create $ac_file" "$LINENO" 5
28602     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28603       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28604 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28605     else
28606       rm -f "$ac_file"
28607       mv "$tmp/config.h" "$ac_file" \
28608         || as_fn_error "could not create $ac_file" "$LINENO" 5
28609     fi
28610   else
28611     $as_echo "/* $configure_input  */" \
28612       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28613       || as_fn_error "could not create -" "$LINENO" 5
28614   fi
28615  ;;
28616
28617   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28618 $as_echo "$as_me: executing $ac_file commands" >&6;}
28619  ;;
28620   esac
28621
28622
28623   case $ac_file$ac_mode in
28624     "as":F) chmod +x as ;;
28625     "collect-ld":F) chmod +x collect-ld ;;
28626     "nm":F) chmod +x nm ;;
28627     "default":C)
28628 case ${CONFIG_HEADERS} in
28629   *auto-host.h:config.in*)
28630   echo > cstamp-h ;;
28631 esac
28632 # Make sure all the subdirs exist.
28633 for d in $subdirs doc build common c-family
28634 do
28635     test -d $d || mkdir $d
28636 done
28637  ;;
28638
28639   esac
28640 done # for ac_tag
28641
28642
28643 as_fn_exit 0
28644 _ACEOF
28645 ac_clean_files=$ac_clean_files_save
28646
28647 test $ac_write_fail = 0 ||
28648   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28649
28650
28651 # configure is writing to config.log, and then calls config.status.
28652 # config.status does its own redirection, appending to config.log.
28653 # Unfortunately, on DOS this fails, as config.log is still kept open
28654 # by configure, so config.status won't be able to write to it; its
28655 # output is simply discarded.  So we exec the FD to /dev/null,
28656 # effectively closing config.log, so it can be properly (re)opened and
28657 # appended to by config.status.  When coming back to configure, we
28658 # need to make the FD available again.
28659 if test "$no_create" != yes; then
28660   ac_cs_success=:
28661   ac_config_status_args=
28662   test "$silent" = yes &&
28663     ac_config_status_args="$ac_config_status_args --quiet"
28664   exec 5>/dev/null
28665   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28666   exec 5>>config.log
28667   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28668   # would make configure fail if this is the last instruction.
28669   $ac_cs_success || as_fn_exit $?
28670 fi
28671 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28672   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28673 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28674 fi
28675
28676