OSDN Git Service

* configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
[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_sjlj_exceptions
897 enable_secureplt
898 enable_leading_mingw64_underscores
899 enable_cld
900 enable_frame_pointer
901 enable_win32_registry
902 enable_static
903 with_pic
904 enable_fast_install
905 enable_libtool_lock
906 with_plugin_ld
907 enable_gnu_indirect_function
908 enable_initfini_array
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-sjlj-exceptions
1595                           arrange to use setjmp/longjmp exception handling
1596   --enable-secureplt      enable -msecure-plt by default for PowerPC
1597   --enable-leading-mingw64-underscores
1598                           enable leading underscores on 64 bit mingw targets
1599   --enable-cld            enable -mcld by default for 32bit x86
1600   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1601                           x86
1602   --disable-win32-registry
1603                           disable lookup of installation paths in the Registry
1604                           on Windows hosts
1605   --enable-win32-registry enable registry lookup (default)
1606   --enable-win32-registry=KEY
1607                           use KEY instead of GCC version as the last portion
1608                           of the registry key
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614   --enable-gnu-indirect-function
1615                           enable the use of the @gnu_indirect_function to
1616                           glibc systems
1617   --enable-initfini-array       use .init_array/.fini_array sections
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3398 $as_echo_n "checking whether a default linker was specified... " >&6; }
3399 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3400   if test x"$gnu_ld_flag" = x"no"; then
3401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3403   else
3404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3405 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3406   fi
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412 # With demangler in GNU ld
3413
3414 # Check whether --with-demangler-in-ld was given.
3415 if test "${with_demangler_in_ld+set}" = set; then :
3416   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3417 else
3418   demangler_in_ld=yes
3419 fi
3420
3421
3422 # ----------------------
3423 # Find default assembler
3424 # ----------------------
3425
3426 # With GNU as
3427
3428 # Check whether --with-gnu-as was given.
3429 if test "${with_gnu_as+set}" = set; then :
3430   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3431 else
3432   gas_flag=no
3433 fi
3434
3435
3436
3437 # Check whether --with-as was given.
3438 if test "${with_as+set}" = set; then :
3439   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3440 fi
3441
3442 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3443   if test ! -x "$DEFAULT_ASSEMBLER"; then
3444     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3445   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3446     gas_flag=yes
3447   fi
3448
3449 cat >>confdefs.h <<_ACEOF
3450 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3451 _ACEOF
3452
3453 fi
3454
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3456 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3457 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3458   if test x"$gas_flag" = x"no"; then
3459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3460 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3461   else
3462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3463 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3464   fi
3465 else
3466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 fi
3469
3470 # ---------------
3471 # Find C compiler
3472 # ---------------
3473
3474 # If a non-executable a.out is present (e.g. created by GNU as above even if
3475 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3476 # file, even when creating an executable, so an execution test fails.
3477 # Remove possible default executable files to avoid this.
3478 #
3479 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3480 # Autoconf includes it.
3481 rm -f a.out a.exe b.out
3482
3483 # Find the native compiler
3484 ac_ext=c
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 if test -n "$ac_tool_prefix"; then
3490   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_CC+set}" = set; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   if test -n "$CC"; then
3498   ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505     for ac_exec_ext in '' $ac_executable_extensions; do
3506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512   done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3521 else
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 fi
3525
3526
3527 fi
3528 if test -z "$ac_cv_prog_CC"; then
3529   ac_ct_CC=$CC
3530   # Extract the first word of "gcc", so it can be a program name with args.
3531 set dummy gcc; ac_word=$2
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3535   $as_echo_n "(cached) " >&6
3536 else
3537   if test -n "$ac_ct_CC"; then
3538   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543   IFS=$as_save_IFS
3544   test -z "$as_dir" && as_dir=.
3545     for ac_exec_ext in '' $ac_executable_extensions; do
3546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547     ac_cv_prog_ac_ct_CC="gcc"
3548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549     break 2
3550   fi
3551 done
3552   done
3553 IFS=$as_save_IFS
3554
3555 fi
3556 fi
3557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558 if test -n "$ac_ct_CC"; then
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3560 $as_echo "$ac_ct_CC" >&6; }
3561 else
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566   if test "x$ac_ct_CC" = x; then
3567     CC=""
3568   else
3569     case $cross_compiling:$ac_tool_warned in
3570 yes:)
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3574 esac
3575     CC=$ac_ct_CC
3576   fi
3577 else
3578   CC="$ac_cv_prog_CC"
3579 fi
3580
3581 if test -z "$CC"; then
3582           if test -n "$ac_tool_prefix"; then
3583     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3584 set dummy ${ac_tool_prefix}cc; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_CC+set}" = set; then :
3588   $as_echo_n "(cached) " >&6
3589 else
3590   if test -n "$CC"; then
3591   ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   test -z "$as_dir" && as_dir=.
3598     for ac_exec_ext in '' $ac_executable_extensions; do
3599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600     ac_cv_prog_CC="${ac_tool_prefix}cc"
3601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602     break 2
3603   fi
3604 done
3605   done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 CC=$ac_cv_prog_CC
3611 if test -n "$CC"; then
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3614 else
3615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619
3620   fi
3621 fi
3622 if test -z "$CC"; then
3623   # Extract the first word of "cc", so it can be a program name with args.
3624 set dummy cc; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_CC+set}" = set; then :
3628   $as_echo_n "(cached) " >&6
3629 else
3630   if test -n "$CC"; then
3631   ac_cv_prog_CC="$CC" # Let the user override the test.
3632 else
3633   ac_prog_rejected=no
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637   IFS=$as_save_IFS
3638   test -z "$as_dir" && as_dir=.
3639     for ac_exec_ext in '' $ac_executable_extensions; do
3640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3642        ac_prog_rejected=yes
3643        continue
3644      fi
3645     ac_cv_prog_CC="cc"
3646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647     break 2
3648   fi
3649 done
3650   done
3651 IFS=$as_save_IFS
3652
3653 if test $ac_prog_rejected = yes; then
3654   # We found a bogon in the path, so make sure we never use it.
3655   set dummy $ac_cv_prog_CC
3656   shift
3657   if test $# != 0; then
3658     # We chose a different compiler from the bogus one.
3659     # However, it has the same basename, so the bogon will be chosen
3660     # first if we set CC to just the basename; use the full file name.
3661     shift
3662     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3663   fi
3664 fi
3665 fi
3666 fi
3667 CC=$ac_cv_prog_CC
3668 if test -n "$CC"; then
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3670 $as_echo "$CC" >&6; }
3671 else
3672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 fi
3675
3676
3677 fi
3678 if test -z "$CC"; then
3679   if test -n "$ac_tool_prefix"; then
3680   for ac_prog in cl.exe
3681   do
3682     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if test "${ac_cv_prog_CC+set}" = set; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   if test -n "$CC"; then
3690   ac_cv_prog_CC="$CC" # Let the user override the test.
3691 else
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695   IFS=$as_save_IFS
3696   test -z "$as_dir" && as_dir=.
3697     for ac_exec_ext in '' $ac_executable_extensions; do
3698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3699     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701     break 2
3702   fi
3703 done
3704   done
3705 IFS=$as_save_IFS
3706
3707 fi
3708 fi
3709 CC=$ac_cv_prog_CC
3710 if test -n "$CC"; then
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3712 $as_echo "$CC" >&6; }
3713 else
3714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3716 fi
3717
3718
3719     test -n "$CC" && break
3720   done
3721 fi
3722 if test -z "$CC"; then
3723   ac_ct_CC=$CC
3724   for ac_prog in cl.exe
3725 do
3726   # Extract the first word of "$ac_prog", so it can be a program name with args.
3727 set dummy $ac_prog; ac_word=$2
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 $as_echo_n "checking for $ac_word... " >&6; }
3730 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3731   $as_echo_n "(cached) " >&6
3732 else
3733   if test -n "$ac_ct_CC"; then
3734   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3738 do
3739   IFS=$as_save_IFS
3740   test -z "$as_dir" && as_dir=.
3741     for ac_exec_ext in '' $ac_executable_extensions; do
3742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3743     ac_cv_prog_ac_ct_CC="$ac_prog"
3744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745     break 2
3746   fi
3747 done
3748   done
3749 IFS=$as_save_IFS
3750
3751 fi
3752 fi
3753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3754 if test -n "$ac_ct_CC"; then
3755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3756 $as_echo "$ac_ct_CC" >&6; }
3757 else
3758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 $as_echo "no" >&6; }
3760 fi
3761
3762
3763   test -n "$ac_ct_CC" && break
3764 done
3765
3766   if test "x$ac_ct_CC" = x; then
3767     CC=""
3768   else
3769     case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775     CC=$ac_ct_CC
3776   fi
3777 fi
3778
3779 fi
3780
3781
3782 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784 as_fn_error "no acceptable C compiler found in \$PATH
3785 See \`config.log' for more details." "$LINENO" 5; }
3786
3787 # Provide some information about the compiler.
3788 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3789 set X $ac_compile
3790 ac_compiler=$2
3791 for ac_option in --version -v -V -qversion; do
3792   { { ac_try="$ac_compiler $ac_option >&5"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3800   ac_status=$?
3801   if test -s conftest.err; then
3802     sed '10a\
3803 ... rest of stderr output deleted ...
3804          10q' conftest.err >conftest.er1
3805     cat conftest.er1 >&5
3806     rm -f conftest.er1 conftest.err
3807   fi
3808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809   test $ac_status = 0; }
3810 done
3811
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h.  */
3814
3815 int
3816 main ()
3817 {
3818
3819   ;
3820   return 0;
3821 }
3822 _ACEOF
3823 ac_clean_files_save=$ac_clean_files
3824 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3825 # Try to create an executable without -o first, disregard a.out.
3826 # It will help us diagnose broken compilers, and finding out an intuition
3827 # of exeext.
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3829 $as_echo_n "checking for C compiler default output file name... " >&6; }
3830 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3831
3832 # The possible output files:
3833 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3834
3835 ac_rmfiles=
3836 for ac_file in $ac_files
3837 do
3838   case $ac_file in
3839     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3841   esac
3842 done
3843 rm -f $ac_rmfiles
3844
3845 if { { ac_try="$ac_link_default"
3846 case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852   (eval "$ac_link_default") 2>&5
3853   ac_status=$?
3854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855   test $ac_status = 0; }; then :
3856   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3857 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3858 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3859 # so that the user can short-circuit this test for compilers unknown to
3860 # Autoconf.
3861 for ac_file in $ac_files ''
3862 do
3863   test -f "$ac_file" || continue
3864   case $ac_file in
3865     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3866         ;;
3867     [ab].out )
3868         # We found the default executable, but exeext='' is most
3869         # certainly right.
3870         break;;
3871     *.* )
3872         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3873         then :; else
3874            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3875         fi
3876         # We set ac_cv_exeext here because the later test for it is not
3877         # safe: cross compilers may not add the suffix if given an `-o'
3878         # argument, so we may need to know it at that point already.
3879         # Even if this section looks crufty: it has the advantage of
3880         # actually working.
3881         break;;
3882     * )
3883         break;;
3884   esac
3885 done
3886 test "$ac_cv_exeext" = no && ac_cv_exeext=
3887
3888 else
3889   ac_file=''
3890 fi
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3892 $as_echo "$ac_file" >&6; }
3893 if test -z "$ac_file"; then :
3894   $as_echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3896
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 { as_fn_set_status 77
3900 as_fn_error "C compiler cannot create executables
3901 See \`config.log' for more details." "$LINENO" 5; }; }
3902 fi
3903 ac_exeext=$ac_cv_exeext
3904
3905 # Check that the compiler produces executables we can run.  If not, either
3906 # the compiler is broken, or we cross compile.
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3908 $as_echo_n "checking whether the C compiler works... " >&6; }
3909 # If not cross compiling, check that we can run a simple program.
3910 if test "$cross_compiling" != yes; then
3911   if { ac_try='./$ac_file'
3912   { { case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918   (eval "$ac_try") 2>&5
3919   ac_status=$?
3920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921   test $ac_status = 0; }; }; then
3922     cross_compiling=no
3923   else
3924     if test "$cross_compiling" = maybe; then
3925         cross_compiling=yes
3926     else
3927         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error "cannot run C compiled programs.
3930 If you meant to cross compile, use \`--host'.
3931 See \`config.log' for more details." "$LINENO" 5; }
3932     fi
3933   fi
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3936 $as_echo "yes" >&6; }
3937
3938 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3939 ac_clean_files=$ac_clean_files_save
3940 # Check that the compiler produces executables we can run.  If not, either
3941 # the compiler is broken, or we cross compile.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3943 $as_echo_n "checking whether we are cross compiling... " >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3945 $as_echo "$cross_compiling" >&6; }
3946
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3948 $as_echo_n "checking for suffix of executables... " >&6; }
3949 if { { ac_try="$ac_link"
3950 case "(($ac_try" in
3951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952   *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956   (eval "$ac_link") 2>&5
3957   ac_status=$?
3958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959   test $ac_status = 0; }; then :
3960   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3961 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3962 # work properly (i.e., refer to `conftest.exe'), while it won't with
3963 # `rm'.
3964 for ac_file in conftest.exe conftest conftest.*; do
3965   test -f "$ac_file" || continue
3966   case $ac_file in
3967     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3968     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969           break;;
3970     * ) break;;
3971   esac
3972 done
3973 else
3974   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976 as_fn_error "cannot compute suffix of executables: cannot compile and link
3977 See \`config.log' for more details." "$LINENO" 5; }
3978 fi
3979 rm -f conftest$ac_cv_exeext
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3981 $as_echo "$ac_cv_exeext" >&6; }
3982
3983 rm -f conftest.$ac_ext
3984 EXEEXT=$ac_cv_exeext
3985 ac_exeext=$EXEEXT
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3987 $as_echo_n "checking for suffix of object files... " >&6; }
3988 if test "${ac_cv_objext+set}" = set; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h.  */
3993
3994 int
3995 main ()
3996 {
3997
3998   ;
3999   return 0;
4000 }
4001 _ACEOF
4002 rm -f conftest.o conftest.obj
4003 if { { ac_try="$ac_compile"
4004 case "(($ac_try" in
4005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006   *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010   (eval "$ac_compile") 2>&5
4011   ac_status=$?
4012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013   test $ac_status = 0; }; then :
4014   for ac_file in conftest.o conftest.obj conftest.*; do
4015   test -f "$ac_file" || continue;
4016   case $ac_file in
4017     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4018     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4019        break;;
4020   esac
4021 done
4022 else
4023   $as_echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error "cannot compute suffix of object files: cannot compile
4029 See \`config.log' for more details." "$LINENO" 5; }
4030 fi
4031 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4034 $as_echo "$ac_cv_objext" >&6; }
4035 OBJEXT=$ac_cv_objext
4036 ac_objext=$OBJEXT
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4038 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4039 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4040   $as_echo_n "(cached) " >&6
4041 else
4042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h.  */
4044
4045 int
4046 main ()
4047 {
4048 #ifndef __GNUC__
4049        choke me
4050 #endif
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057   ac_compiler_gnu=yes
4058 else
4059   ac_compiler_gnu=no
4060 fi
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4063
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4066 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4067 if test $ac_compiler_gnu = yes; then
4068   GCC=yes
4069 else
4070   GCC=
4071 fi
4072 ac_test_CFLAGS=${CFLAGS+set}
4073 ac_save_CFLAGS=$CFLAGS
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4075 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4076 if test "${ac_cv_prog_cc_g+set}" = set; then :
4077   $as_echo_n "(cached) " >&6
4078 else
4079   ac_save_c_werror_flag=$ac_c_werror_flag
4080    ac_c_werror_flag=yes
4081    ac_cv_prog_cc_g=no
4082    CFLAGS="-g"
4083    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h.  */
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095   ac_cv_prog_cc_g=yes
4096 else
4097   CFLAGS=""
4098       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h.  */
4100
4101 int
4102 main ()
4103 {
4104
4105   ;
4106   return 0;
4107 }
4108 _ACEOF
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110
4111 else
4112   ac_c_werror_flag=$ac_save_c_werror_flag
4113          CFLAGS="-g"
4114          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h.  */
4116
4117 int
4118 main ()
4119 {
4120
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126   ac_cv_prog_cc_g=yes
4127 fi
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133    ac_c_werror_flag=$ac_save_c_werror_flag
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4136 $as_echo "$ac_cv_prog_cc_g" >&6; }
4137 if test "$ac_test_CFLAGS" = set; then
4138   CFLAGS=$ac_save_CFLAGS
4139 elif test $ac_cv_prog_cc_g = yes; then
4140   if test "$GCC" = yes; then
4141     CFLAGS="-g -O2"
4142   else
4143     CFLAGS="-g"
4144   fi
4145 else
4146   if test "$GCC" = yes; then
4147     CFLAGS="-O2"
4148   else
4149     CFLAGS=
4150   fi
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4153 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4154 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4155   $as_echo_n "(cached) " >&6
4156 else
4157   ac_cv_prog_cc_c89=no
4158 ac_save_CC=$CC
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h.  */
4161 #include <stdarg.h>
4162 #include <stdio.h>
4163 #include <sys/types.h>
4164 #include <sys/stat.h>
4165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4166 struct buf { int x; };
4167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4168 static char *e (p, i)
4169      char **p;
4170      int i;
4171 {
4172   return p[i];
4173 }
4174 static char *f (char * (*g) (char **, int), char **p, ...)
4175 {
4176   char *s;
4177   va_list v;
4178   va_start (v,p);
4179   s = g (p, va_arg (v,int));
4180   va_end (v);
4181   return s;
4182 }
4183
4184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4185    function prototypes and stuff, but not '\xHH' hex character constants.
4186    These don't provoke an error unfortunately, instead are silently treated
4187    as 'x'.  The following induces an error, until -std is added to get
4188    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4189    array size at least.  It's necessary to write '\x00'==0 to get something
4190    that's true only with -std.  */
4191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4192
4193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4194    inside strings and character constants.  */
4195 #define FOO(x) 'x'
4196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4197
4198 int test (int i, double x);
4199 struct s1 {int (*f) (int a);};
4200 struct s2 {int (*f) (double a);};
4201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4202 int argc;
4203 char **argv;
4204 int
4205 main ()
4206 {
4207 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4213         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4214 do
4215   CC="$ac_save_CC $ac_arg"
4216   if ac_fn_c_try_compile "$LINENO"; then :
4217   ac_cv_prog_cc_c89=$ac_arg
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext
4220   test "x$ac_cv_prog_cc_c89" != "xno" && break
4221 done
4222 rm -f conftest.$ac_ext
4223 CC=$ac_save_CC
4224
4225 fi
4226 # AC_CACHE_VAL
4227 case "x$ac_cv_prog_cc_c89" in
4228   x)
4229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4230 $as_echo "none needed" >&6; } ;;
4231   xno)
4232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4233 $as_echo "unsupported" >&6; } ;;
4234   *)
4235     CC="$CC $ac_cv_prog_cc_c89"
4236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4237 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4238 esac
4239 if test "x$ac_cv_prog_cc_c89" != xno; then :
4240
4241 fi
4242
4243 ac_ext=c
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248
4249 if test "x$CC" != xcc; then
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4251 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4252 else
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4254 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4255 fi
4256 set dummy $CC; ac_cc=`$as_echo "$2" |
4257                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4258 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h.  */
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 # Make sure it works both with $CC and with simple cc.
4273 # We do the test twice because some compilers refuse to overwrite an
4274 # existing .o file with -o, though they will create one.
4275 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4276 rm -f conftest2.*
4277 if { { case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 $as_echo "$ac_try_echo"; } >&5
4283   (eval "$ac_try") 2>&5
4284   ac_status=$?
4285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286   test $ac_status = 0; } &&
4287    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292 $as_echo "$ac_try_echo"; } >&5
4293   (eval "$ac_try") 2>&5
4294   ac_status=$?
4295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296   test $ac_status = 0; };
4297 then
4298   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4299   if test "x$CC" != xcc; then
4300     # Test first that cc exists at all.
4301     if { ac_try='cc -c conftest.$ac_ext >&5'
4302   { { case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308   (eval "$ac_try") 2>&5
4309   ac_status=$?
4310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311   test $ac_status = 0; }; }; then
4312       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4313       rm -f conftest2.*
4314       if { { case "(($ac_try" in
4315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316   *) ac_try_echo=$ac_try;;
4317 esac
4318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319 $as_echo "$ac_try_echo"; } >&5
4320   (eval "$ac_try") 2>&5
4321   ac_status=$?
4322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323   test $ac_status = 0; } &&
4324          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329 $as_echo "$ac_try_echo"; } >&5
4330   (eval "$ac_try") 2>&5
4331   ac_status=$?
4332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333   test $ac_status = 0; };
4334       then
4335         # cc works too.
4336         :
4337       else
4338         # cc exists but doesn't like -o.
4339         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4340       fi
4341     fi
4342   fi
4343 else
4344   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345 fi
4346 rm -f core conftest*
4347
4348 fi
4349 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4351 $as_echo "yes" >&6; }
4352 else
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355
4356 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4357
4358 fi
4359
4360 # expand $ac_aux_dir to an absolute path
4361 am_aux_dir=`cd $ac_aux_dir && pwd`
4362
4363 # FIXME: we rely on the cache variable name because
4364 # there is no other way.
4365 set dummy $CC
4366 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4367 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4368 if test "$am_t" != yes; then
4369    # Losing compiler, so override with the script.
4370    # FIXME: It is wrong to rewrite CC.
4371    # But if we don't then we get into trouble of one sort or another.
4372    # A longer-term fix would be to have automake use am__CC in this case,
4373    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4374    CC="$am_aux_dir/compile $CC"
4375 fi
4376
4377
4378 ac_ext=cpp
4379 ac_cpp='$CXXCPP $CPPFLAGS'
4380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4383 if test -z "$CXX"; then
4384   if test -n "$CCC"; then
4385     CXX=$CCC
4386   else
4387     if test -n "$ac_tool_prefix"; then
4388   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4389   do
4390     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if test "${ac_cv_prog_CXX+set}" = set; then :
4395   $as_echo_n "(cached) " >&6
4396 else
4397   if test -n "$CXX"; then
4398   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405     for ac_exec_ext in '' $ac_executable_extensions; do
4406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4407     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412   done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 CXX=$ac_cv_prog_CXX
4418 if test -n "$CXX"; then
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4420 $as_echo "$CXX" >&6; }
4421 else
4422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4424 fi
4425
4426
4427     test -n "$CXX" && break
4428   done
4429 fi
4430 if test -z "$CXX"; then
4431   ac_ct_CXX=$CXX
4432   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4433 do
4434   # Extract the first word of "$ac_prog", so it can be a program name with args.
4435 set dummy $ac_prog; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4439   $as_echo_n "(cached) " >&6
4440 else
4441   if test -n "$ac_ct_CXX"; then
4442   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449     for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     ac_cv_prog_ac_ct_CXX="$ac_prog"
4452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456   done
4457 IFS=$as_save_IFS
4458
4459 fi
4460 fi
4461 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4462 if test -n "$ac_ct_CXX"; then
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4464 $as_echo "$ac_ct_CXX" >&6; }
4465 else
4466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468 fi
4469
4470
4471   test -n "$ac_ct_CXX" && break
4472 done
4473
4474   if test "x$ac_ct_CXX" = x; then
4475     CXX="g++"
4476   else
4477     case $cross_compiling:$ac_tool_warned in
4478 yes:)
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4481 ac_tool_warned=yes ;;
4482 esac
4483     CXX=$ac_ct_CXX
4484   fi
4485 fi
4486
4487   fi
4488 fi
4489 # Provide some information about the compiler.
4490 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4491 set X $ac_compile
4492 ac_compiler=$2
4493 for ac_option in --version -v -V -qversion; do
4494   { { ac_try="$ac_compiler $ac_option >&5"
4495 case "(($ac_try" in
4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497   *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4502   ac_status=$?
4503   if test -s conftest.err; then
4504     sed '10a\
4505 ... rest of stderr output deleted ...
4506          10q' conftest.err >conftest.er1
4507     cat conftest.er1 >&5
4508     rm -f conftest.er1 conftest.err
4509   fi
4510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511   test $ac_status = 0; }
4512 done
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4515 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4516 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4517   $as_echo_n "(cached) " >&6
4518 else
4519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h.  */
4521
4522 int
4523 main ()
4524 {
4525 #ifndef __GNUC__
4526        choke me
4527 #endif
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 if ac_fn_cxx_try_compile "$LINENO"; then :
4534   ac_compiler_gnu=yes
4535 else
4536   ac_compiler_gnu=no
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4540
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4543 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4544 if test $ac_compiler_gnu = yes; then
4545   GXX=yes
4546 else
4547   GXX=
4548 fi
4549 ac_test_CXXFLAGS=${CXXFLAGS+set}
4550 ac_save_CXXFLAGS=$CXXFLAGS
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4552 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4553 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4557    ac_cxx_werror_flag=yes
4558    ac_cv_prog_cxx_g=no
4559    CXXFLAGS="-g"
4560    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h.  */
4562
4563 int
4564 main ()
4565 {
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_cxx_try_compile "$LINENO"; then :
4572   ac_cv_prog_cxx_g=yes
4573 else
4574   CXXFLAGS=""
4575       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h.  */
4577
4578 int
4579 main ()
4580 {
4581
4582   ;
4583   return 0;
4584 }
4585 _ACEOF
4586 if ac_fn_cxx_try_compile "$LINENO"; then :
4587
4588 else
4589   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4590          CXXFLAGS="-g"
4591          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h.  */
4593
4594 int
4595 main ()
4596 {
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_cxx_try_compile "$LINENO"; then :
4603   ac_cv_prog_cxx_g=yes
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4613 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4614 if test "$ac_test_CXXFLAGS" = set; then
4615   CXXFLAGS=$ac_save_CXXFLAGS
4616 elif test $ac_cv_prog_cxx_g = yes; then
4617   if test "$GXX" = yes; then
4618     CXXFLAGS="-g -O2"
4619   else
4620     CXXFLAGS="-g"
4621   fi
4622 else
4623   if test "$GXX" = yes; then
4624     CXXFLAGS="-O2"
4625   else
4626     CXXFLAGS=
4627   fi
4628 fi
4629 ac_ext=c
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635
4636
4637
4638 if test -n "$ac_tool_prefix"; then
4639   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4644   $as_echo_n "(cached) " >&6
4645 else
4646   if test -n "$GNATBIND"; then
4647   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654     for ac_exec_ext in '' $ac_executable_extensions; do
4655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661   done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 GNATBIND=$ac_cv_prog_GNATBIND
4667 if test -n "$GNATBIND"; then
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4669 $as_echo "$GNATBIND" >&6; }
4670 else
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674
4675
4676 fi
4677 if test -z "$ac_cv_prog_GNATBIND"; then
4678   ac_ct_GNATBIND=$GNATBIND
4679   # Extract the first word of "gnatbind", so it can be a program name with args.
4680 set dummy gnatbind; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   if test -n "$ac_ct_GNATBIND"; then
4687   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698     break 2
4699   fi
4700 done
4701   done
4702 IFS=$as_save_IFS
4703
4704 fi
4705 fi
4706 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4707 if test -n "$ac_ct_GNATBIND"; then
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4709 $as_echo "$ac_ct_GNATBIND" >&6; }
4710 else
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714
4715   if test "x$ac_ct_GNATBIND" = x; then
4716     GNATBIND="no"
4717   else
4718     case $cross_compiling:$ac_tool_warned in
4719 yes:)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4723 esac
4724     GNATBIND=$ac_ct_GNATBIND
4725   fi
4726 else
4727   GNATBIND="$ac_cv_prog_GNATBIND"
4728 fi
4729
4730 if test -n "$ac_tool_prefix"; then
4731   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   if test -n "$GNATMAKE"; then
4739   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746     for ac_exec_ext in '' $ac_executable_extensions; do
4747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753   done
4754 IFS=$as_save_IFS
4755
4756 fi
4757 fi
4758 GNATMAKE=$ac_cv_prog_GNATMAKE
4759 if test -n "$GNATMAKE"; then
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4761 $as_echo "$GNATMAKE" >&6; }
4762 else
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4765 fi
4766
4767
4768 fi
4769 if test -z "$ac_cv_prog_GNATMAKE"; then
4770   ac_ct_GNATMAKE=$GNATMAKE
4771   # Extract the first word of "gnatmake", so it can be a program name with args.
4772 set dummy gnatmake; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4776   $as_echo_n "(cached) " >&6
4777 else
4778   if test -n "$ac_ct_GNATMAKE"; then
4779   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786     for ac_exec_ext in '' $ac_executable_extensions; do
4787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793   done
4794 IFS=$as_save_IFS
4795
4796 fi
4797 fi
4798 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4799 if test -n "$ac_ct_GNATMAKE"; then
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4801 $as_echo "$ac_ct_GNATMAKE" >&6; }
4802 else
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806
4807   if test "x$ac_ct_GNATMAKE" = x; then
4808     GNATMAKE="no"
4809   else
4810     case $cross_compiling:$ac_tool_warned in
4811 yes:)
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4814 ac_tool_warned=yes ;;
4815 esac
4816     GNATMAKE=$ac_ct_GNATMAKE
4817   fi
4818 else
4819   GNATMAKE="$ac_cv_prog_GNATMAKE"
4820 fi
4821
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4823 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4824 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   cat >conftest.adb <<EOF
4828 procedure conftest is begin null; end conftest;
4829 EOF
4830 acx_cv_cc_gcc_supports_ada=no
4831 # There is a bug in old released versions of GCC which causes the
4832 # driver to exit successfully when the appropriate language module
4833 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4834 # Therefore we must check for the error message as well as an
4835 # unsuccessful exit.
4836 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4837 # given a .adb file, but produce no object file.  So we must check
4838 # if an object file was really produced to guard against this.
4839 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4840 if test x"$errors" = x && test -f conftest.$ac_objext; then
4841   acx_cv_cc_gcc_supports_ada=yes
4842 fi
4843 rm -f conftest.*
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4846 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4847
4848 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4849   have_gnat=yes
4850 else
4851   have_gnat=no
4852 fi
4853
4854
4855 # autoconf is lame and doesn't give us any substitution variable for this.
4856 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4857   NO_MINUS_C_MINUS_O=yes
4858 else
4859   OUTPUT_OPTION='-o $@'
4860 fi
4861
4862
4863
4864 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4865 # optimizations to be activated explicitly by the toplevel.
4866 case "$CC" in
4867   */prev-gcc/xgcc*) ;;
4868   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4869 esac
4870
4871
4872 # Determine PICFLAG for target gnatlib.
4873
4874
4875
4876
4877 case "${target}" in
4878     # PIC is the default on some targets or must not be used.
4879     *-*-darwin*)
4880         # PIC is the default on this platform
4881         # Common symbols not allowed in MH_DYLIB files
4882         PICFLAG_FOR_TARGET=-fno-common
4883         ;;
4884     alpha*-dec-osf5*)
4885         # PIC is the default.
4886         ;;
4887     hppa*64*-*-hpux*)
4888         # PIC is the default for 64-bit PA HP-UX.
4889         ;;
4890     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4891         ;;
4892     i[34567]86-*-interix[3-9]*)
4893         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4894         # Instead, we relocate shared libraries at runtime.
4895         ;;
4896     i[34567]86-*-nto-qnx*)
4897         # QNX uses GNU C++, but need to define -shared option too, otherwise
4898         # it will coredump.
4899         PICFLAG_FOR_TARGET='-fPIC -shared'
4900         ;;
4901     i[34567]86-pc-msdosdjgpp*)
4902         # DJGPP does not support shared libraries at all.
4903         ;;
4904     ia64*-*-hpux*)
4905         # On IA64 HP-UX, PIC is the default but the pic flag
4906         # sets the default TLS model and affects inlining.
4907         PICFLAG_FOR_TARGET=-fPIC
4908         ;;
4909     mips-sgi-irix6*)
4910         # PIC is the default.
4911         ;;
4912     rs6000-ibm-aix* | powerpc-ibm-aix*)
4913         # All AIX code is PIC.
4914         ;;
4915
4916     # Some targets support both -fPIC and -fpic, but prefer the latter.
4917     # FIXME: Why?
4918     i[34567]86-*-* | x86_64-*-*)
4919         PICFLAG_FOR_TARGET=-fpic
4920         ;;
4921     m68k-*-*)
4922         PICFLAG_FOR_TARGET=-fpic
4923         ;;
4924     # FIXME: Override -fPIC default in libgcc only?
4925     sh-*-linux* | sh[2346lbe]*-*-linux*)
4926         PICFLAG_FOR_TARGET=-fpic
4927         ;;
4928     # FIXME: Simplify to sh*-*-netbsd*?
4929     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4930       sh64-*-netbsd* | sh64l*-*-netbsd*)
4931         PICFLAG_FOR_TARGET=-fpic
4932         ;;
4933     # Default to -fPIC unless specified otherwise.
4934     *)
4935         PICFLAG_FOR_TARGET=-fPIC
4936         ;;
4937 esac
4938
4939 # If the user explicitly uses -fpic/-fPIC, keep that.
4940 case "${CFLAGS_FOR_TARGET}" in
4941     *-fpic*)
4942         PICFLAG_FOR_TARGET=-fpic
4943         ;;
4944     *-fPIC*)
4945         PICFLAG_FOR_TARGET=-fPIC
4946         ;;
4947 esac
4948
4949
4950
4951 # -------------------------
4952 # Check C compiler features
4953 # -------------------------
4954
4955
4956 ac_ext=c
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4963 # On Suns, sometimes $CPP names a directory.
4964 if test -n "$CPP" && test -d "$CPP"; then
4965   CPP=
4966 fi
4967 if test -z "$CPP"; then
4968   if test "${ac_cv_prog_CPP+set}" = set; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971       # Double quotes because CPP needs to be expanded
4972     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4973     do
4974       ac_preproc_ok=false
4975 for ac_c_preproc_warn_flag in '' yes
4976 do
4977   # Use a header file that comes with gcc, so configuring glibc
4978   # with a fresh cross-compiler works.
4979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980   # <limits.h> exists even on freestanding compilers.
4981   # On the NeXT, cc -E runs the code through the compiler's parser,
4982   # not just through cpp. "Syntax error" is here to catch this case.
4983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h.  */
4985 #ifdef __STDC__
4986 # include <limits.h>
4987 #else
4988 # include <assert.h>
4989 #endif
4990                      Syntax error
4991 _ACEOF
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4993
4994 else
4995   # Broken: fails on valid input.
4996 continue
4997 fi
4998 rm -f conftest.err conftest.$ac_ext
4999
5000   # OK, works on sane cases.  Now check whether nonexistent headers
5001   # can be detected and how.
5002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004 #include <ac_nonexistent.h>
5005 _ACEOF
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007   # Broken: success on invalid input.
5008 continue
5009 else
5010   # Passes both tests.
5011 ac_preproc_ok=:
5012 break
5013 fi
5014 rm -f conftest.err conftest.$ac_ext
5015
5016 done
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then :
5020   break
5021 fi
5022
5023     done
5024     ac_cv_prog_CPP=$CPP
5025
5026 fi
5027   CPP=$ac_cv_prog_CPP
5028 else
5029   ac_cv_prog_CPP=$CPP
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5032 $as_echo "$CPP" >&6; }
5033 ac_preproc_ok=false
5034 for ac_c_preproc_warn_flag in '' yes
5035 do
5036   # Use a header file that comes with gcc, so configuring glibc
5037   # with a fresh cross-compiler works.
5038   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039   # <limits.h> exists even on freestanding compilers.
5040   # On the NeXT, cc -E runs the code through the compiler's parser,
5041   # not just through cpp. "Syntax error" is here to catch this case.
5042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h.  */
5044 #ifdef __STDC__
5045 # include <limits.h>
5046 #else
5047 # include <assert.h>
5048 #endif
5049                      Syntax error
5050 _ACEOF
5051 if ac_fn_c_try_cpp "$LINENO"; then :
5052
5053 else
5054   # Broken: fails on valid input.
5055 continue
5056 fi
5057 rm -f conftest.err conftest.$ac_ext
5058
5059   # OK, works on sane cases.  Now check whether nonexistent headers
5060   # can be detected and how.
5061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h.  */
5063 #include <ac_nonexistent.h>
5064 _ACEOF
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5066   # Broken: success on invalid input.
5067 continue
5068 else
5069   # Passes both tests.
5070 ac_preproc_ok=:
5071 break
5072 fi
5073 rm -f conftest.err conftest.$ac_ext
5074
5075 done
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then :
5079
5080 else
5081   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5083 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5084 See \`config.log' for more details." "$LINENO" 5; }
5085 fi
5086
5087 ac_ext=c
5088 ac_cpp='$CPP $CPPFLAGS'
5089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5095 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5096 if test "${ac_cv_path_GREP+set}" = set; then :
5097   $as_echo_n "(cached) " >&6
5098 else
5099   if test -z "$GREP"; then
5100   ac_path_GREP_found=false
5101   # Loop through the user's path and test for each of PROGNAME-LIST
5102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 do
5105   IFS=$as_save_IFS
5106   test -z "$as_dir" && as_dir=.
5107     for ac_prog in grep ggrep; do
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5110       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5111 # Check for GNU ac_path_GREP and select it if it is found.
5112   # Check for GNU $ac_path_GREP
5113 case `"$ac_path_GREP" --version 2>&1` in
5114 *GNU*)
5115   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5116 *)
5117   ac_count=0
5118   $as_echo_n 0123456789 >"conftest.in"
5119   while :
5120   do
5121     cat "conftest.in" "conftest.in" >"conftest.tmp"
5122     mv "conftest.tmp" "conftest.in"
5123     cp "conftest.in" "conftest.nl"
5124     $as_echo 'GREP' >> "conftest.nl"
5125     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127     as_fn_arith $ac_count + 1 && ac_count=$as_val
5128     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5129       # Best one so far, save it but keep looking for a better one
5130       ac_cv_path_GREP="$ac_path_GREP"
5131       ac_path_GREP_max=$ac_count
5132     fi
5133     # 10*(2^10) chars as input seems more than enough
5134     test $ac_count -gt 10 && break
5135   done
5136   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139       $ac_path_GREP_found && break 3
5140     done
5141   done
5142   done
5143 IFS=$as_save_IFS
5144   if test -z "$ac_cv_path_GREP"; then
5145     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146   fi
5147 else
5148   ac_cv_path_GREP=$GREP
5149 fi
5150
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5153 $as_echo "$ac_cv_path_GREP" >&6; }
5154  GREP="$ac_cv_path_GREP"
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5158 $as_echo_n "checking for egrep... " >&6; }
5159 if test "${ac_cv_path_EGREP+set}" = set; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5163    then ac_cv_path_EGREP="$GREP -E"
5164    else
5165      if test -z "$EGREP"; then
5166   ac_path_EGREP_found=false
5167   # Loop through the user's path and test for each of PROGNAME-LIST
5168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173     for ac_prog in egrep; do
5174     for ac_exec_ext in '' $ac_executable_extensions; do
5175       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5176       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5177 # Check for GNU ac_path_EGREP and select it if it is found.
5178   # Check for GNU $ac_path_EGREP
5179 case `"$ac_path_EGREP" --version 2>&1` in
5180 *GNU*)
5181   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5182 *)
5183   ac_count=0
5184   $as_echo_n 0123456789 >"conftest.in"
5185   while :
5186   do
5187     cat "conftest.in" "conftest.in" >"conftest.tmp"
5188     mv "conftest.tmp" "conftest.in"
5189     cp "conftest.in" "conftest.nl"
5190     $as_echo 'EGREP' >> "conftest.nl"
5191     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193     as_fn_arith $ac_count + 1 && ac_count=$as_val
5194     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5195       # Best one so far, save it but keep looking for a better one
5196       ac_cv_path_EGREP="$ac_path_EGREP"
5197       ac_path_EGREP_max=$ac_count
5198     fi
5199     # 10*(2^10) chars as input seems more than enough
5200     test $ac_count -gt 10 && break
5201   done
5202   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203 esac
5204
5205       $ac_path_EGREP_found && break 3
5206     done
5207   done
5208   done
5209 IFS=$as_save_IFS
5210   if test -z "$ac_cv_path_EGREP"; then
5211     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5212   fi
5213 else
5214   ac_cv_path_EGREP=$EGREP
5215 fi
5216
5217    fi
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5220 $as_echo "$ac_cv_path_EGREP" >&6; }
5221  EGREP="$ac_cv_path_EGREP"
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5225 $as_echo_n "checking for ANSI C header files... " >&6; }
5226 if test "${ac_cv_header_stdc+set}" = set; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h.  */
5231 #include <stdlib.h>
5232 #include <stdarg.h>
5233 #include <string.h>
5234 #include <float.h>
5235
5236 int
5237 main ()
5238 {
5239
5240   ;
5241   return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_compile "$LINENO"; then :
5245   ac_cv_header_stdc=yes
5246 else
5247   ac_cv_header_stdc=no
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250
5251 if test $ac_cv_header_stdc = yes; then
5252   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h.  */
5255 #include <string.h>
5256
5257 _ACEOF
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259   $EGREP "memchr" >/dev/null 2>&1; then :
5260
5261 else
5262   ac_cv_header_stdc=no
5263 fi
5264 rm -f conftest*
5265
5266 fi
5267
5268 if test $ac_cv_header_stdc = yes; then
5269   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h.  */
5272 #include <stdlib.h>
5273
5274 _ACEOF
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276   $EGREP "free" >/dev/null 2>&1; then :
5277
5278 else
5279   ac_cv_header_stdc=no
5280 fi
5281 rm -f conftest*
5282
5283 fi
5284
5285 if test $ac_cv_header_stdc = yes; then
5286   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5287   if test "$cross_compiling" = yes; then :
5288   :
5289 else
5290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h.  */
5292 #include <ctype.h>
5293 #include <stdlib.h>
5294 #if ((' ' & 0x0FF) == 0x020)
5295 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5296 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5297 #else
5298 # define ISLOWER(c) \
5299                    (('a' <= (c) && (c) <= 'i') \
5300                      || ('j' <= (c) && (c) <= 'r') \
5301                      || ('s' <= (c) && (c) <= 'z'))
5302 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5303 #endif
5304
5305 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5306 int
5307 main ()
5308 {
5309   int i;
5310   for (i = 0; i < 256; i++)
5311     if (XOR (islower (i), ISLOWER (i))
5312         || toupper (i) != TOUPPER (i))
5313       return 2;
5314   return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_c_try_run "$LINENO"; then :
5318
5319 else
5320   ac_cv_header_stdc=no
5321 fi
5322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5323   conftest.$ac_objext conftest.beam conftest.$ac_ext
5324 fi
5325
5326 fi
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5329 $as_echo "$ac_cv_header_stdc" >&6; }
5330 if test $ac_cv_header_stdc = yes; then
5331
5332 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5333
5334 fi
5335
5336 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5338                   inttypes.h stdint.h unistd.h
5339 do :
5340   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5342 "
5343 eval as_val=\$$as_ac_Header
5344    if test "x$as_val" = x""yes; then :
5345   cat >>confdefs.h <<_ACEOF
5346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347 _ACEOF
5348
5349 fi
5350
5351 done
5352
5353
5354
5355   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5356 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5357   MINIX=yes
5358 else
5359   MINIX=
5360 fi
5361
5362
5363   if test "$MINIX" = yes; then
5364
5365 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5366
5367
5368 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5369
5370
5371 $as_echo "#define _MINIX 1" >>confdefs.h
5372
5373   fi
5374
5375
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5377 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5378 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h.  */
5383
5384 #         define __EXTENSIONS__ 1
5385           $ac_includes_default
5386 int
5387 main ()
5388 {
5389
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395   ac_cv_safe_to_define___extensions__=yes
5396 else
5397   ac_cv_safe_to_define___extensions__=no
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5402 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5403   test $ac_cv_safe_to_define___extensions__ = yes &&
5404     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5405
5406   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5407
5408   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5409
5410   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5411
5412   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5413
5414
5415 ac_ext=c
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5421 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5422 # On Suns, sometimes $CPP names a directory.
5423 if test -n "$CPP" && test -d "$CPP"; then
5424   CPP=
5425 fi
5426 if test -z "$CPP"; then
5427   if test "${ac_cv_prog_CPP+set}" = set; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430       # Double quotes because CPP needs to be expanded
5431     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5432     do
5433       ac_preproc_ok=false
5434 for ac_c_preproc_warn_flag in '' yes
5435 do
5436   # Use a header file that comes with gcc, so configuring glibc
5437   # with a fresh cross-compiler works.
5438   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5439   # <limits.h> exists even on freestanding compilers.
5440   # On the NeXT, cc -E runs the code through the compiler's parser,
5441   # not just through cpp. "Syntax error" is here to catch this case.
5442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h.  */
5444 #ifdef __STDC__
5445 # include <limits.h>
5446 #else
5447 # include <assert.h>
5448 #endif
5449                      Syntax error
5450 _ACEOF
5451 if ac_fn_c_try_cpp "$LINENO"; then :
5452
5453 else
5454   # Broken: fails on valid input.
5455 continue
5456 fi
5457 rm -f conftest.err conftest.$ac_ext
5458
5459   # OK, works on sane cases.  Now check whether nonexistent headers
5460   # can be detected and how.
5461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h.  */
5463 #include <ac_nonexistent.h>
5464 _ACEOF
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5466   # Broken: success on invalid input.
5467 continue
5468 else
5469   # Passes both tests.
5470 ac_preproc_ok=:
5471 break
5472 fi
5473 rm -f conftest.err conftest.$ac_ext
5474
5475 done
5476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477 rm -f conftest.err conftest.$ac_ext
5478 if $ac_preproc_ok; then :
5479   break
5480 fi
5481
5482     done
5483     ac_cv_prog_CPP=$CPP
5484
5485 fi
5486   CPP=$ac_cv_prog_CPP
5487 else
5488   ac_cv_prog_CPP=$CPP
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5491 $as_echo "$CPP" >&6; }
5492 ac_preproc_ok=false
5493 for ac_c_preproc_warn_flag in '' yes
5494 do
5495   # Use a header file that comes with gcc, so configuring glibc
5496   # with a fresh cross-compiler works.
5497   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5498   # <limits.h> exists even on freestanding compilers.
5499   # On the NeXT, cc -E runs the code through the compiler's parser,
5500   # not just through cpp. "Syntax error" is here to catch this case.
5501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h.  */
5503 #ifdef __STDC__
5504 # include <limits.h>
5505 #else
5506 # include <assert.h>
5507 #endif
5508                      Syntax error
5509 _ACEOF
5510 if ac_fn_c_try_cpp "$LINENO"; then :
5511
5512 else
5513   # Broken: fails on valid input.
5514 continue
5515 fi
5516 rm -f conftest.err conftest.$ac_ext
5517
5518   # OK, works on sane cases.  Now check whether nonexistent headers
5519   # can be detected and how.
5520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h.  */
5522 #include <ac_nonexistent.h>
5523 _ACEOF
5524 if ac_fn_c_try_cpp "$LINENO"; then :
5525   # Broken: success on invalid input.
5526 continue
5527 else
5528   # Passes both tests.
5529 ac_preproc_ok=:
5530 break
5531 fi
5532 rm -f conftest.err conftest.$ac_ext
5533
5534 done
5535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536 rm -f conftest.err conftest.$ac_ext
5537 if $ac_preproc_ok; then :
5538
5539 else
5540   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5543 See \`config.log' for more details." "$LINENO" 5; }
5544 fi
5545
5546 ac_ext=c
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5553 $as_echo_n "checking for inline... " >&6; }
5554 if test "${ac_cv_c_inline+set}" = set; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557   ac_cv_c_inline=no
5558 for ac_kw in inline __inline__ __inline; do
5559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h.  */
5561 #ifndef __cplusplus
5562 typedef int foo_t;
5563 static $ac_kw foo_t static_foo () {return 0; }
5564 $ac_kw foo_t foo () {return 0; }
5565 #endif
5566
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569   ac_cv_c_inline=$ac_kw
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572   test "$ac_cv_c_inline" != no && break
5573 done
5574
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5577 $as_echo "$ac_cv_c_inline" >&6; }
5578
5579 case $ac_cv_c_inline in
5580   inline | yes) ;;
5581   *)
5582     case $ac_cv_c_inline in
5583       no) ac_val=;;
5584       *) ac_val=$ac_cv_c_inline;;
5585     esac
5586     cat >>confdefs.h <<_ACEOF
5587 #ifndef __cplusplus
5588 #define inline $ac_val
5589 #endif
5590 _ACEOF
5591     ;;
5592 esac
5593
5594
5595 # Check whether --enable-largefile was given.
5596 if test "${enable_largefile+set}" = set; then :
5597   enableval=$enable_largefile;
5598 fi
5599
5600 if test "$enable_largefile" != no; then
5601
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5603 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5604 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5605   $as_echo_n "(cached) " >&6
5606 else
5607   ac_cv_sys_largefile_CC=no
5608      if test "$GCC" != yes; then
5609        ac_save_CC=$CC
5610        while :; do
5611          # IRIX 6.2 and later do not support large files by default,
5612          # so use the C compiler's -n32 option if that helps.
5613          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h.  */
5615 #include <sys/types.h>
5616  /* Check that off_t can represent 2**63 - 1 correctly.
5617     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5618     since some C++ compilers masquerading as C compilers
5619     incorrectly reject 9223372036854775807.  */
5620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5621   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5622                        && LARGE_OFF_T % 2147483647 == 1)
5623                       ? 1 : -1];
5624 int
5625 main ()
5626 {
5627
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632          if ac_fn_c_try_compile "$LINENO"; then :
5633   break
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext
5636          CC="$CC -n32"
5637          if ac_fn_c_try_compile "$LINENO"; then :
5638   ac_cv_sys_largefile_CC=' -n32'; break
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext
5641          break
5642        done
5643        CC=$ac_save_CC
5644        rm -f conftest.$ac_ext
5645     fi
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5648 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5649   if test "$ac_cv_sys_largefile_CC" != no; then
5650     CC=$CC$ac_cv_sys_largefile_CC
5651   fi
5652
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5654 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5655 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   while :; do
5659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h.  */
5661 #include <sys/types.h>
5662  /* Check that off_t can represent 2**63 - 1 correctly.
5663     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5664     since some C++ compilers masquerading as C compilers
5665     incorrectly reject 9223372036854775807.  */
5666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5667   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5668                        && LARGE_OFF_T % 2147483647 == 1)
5669                       ? 1 : -1];
5670 int
5671 main ()
5672 {
5673
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679   ac_cv_sys_file_offset_bits=no; break
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h.  */
5684 #define _FILE_OFFSET_BITS 64
5685 #include <sys/types.h>
5686  /* Check that off_t can represent 2**63 - 1 correctly.
5687     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5688     since some C++ compilers masquerading as C compilers
5689     incorrectly reject 9223372036854775807.  */
5690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5691   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5692                        && LARGE_OFF_T % 2147483647 == 1)
5693                       ? 1 : -1];
5694 int
5695 main ()
5696 {
5697
5698   ;
5699   return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703   ac_cv_sys_file_offset_bits=64; break
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706   ac_cv_sys_file_offset_bits=unknown
5707   break
5708 done
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5711 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5712 case $ac_cv_sys_file_offset_bits in #(
5713   no | unknown) ;;
5714   *)
5715 cat >>confdefs.h <<_ACEOF
5716 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5717 _ACEOF
5718 ;;
5719 esac
5720 rm -rf conftest*
5721   if test $ac_cv_sys_file_offset_bits = unknown; then
5722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5723 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5724 if test "${ac_cv_sys_large_files+set}" = set; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   while :; do
5728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h.  */
5730 #include <sys/types.h>
5731  /* Check that off_t can represent 2**63 - 1 correctly.
5732     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5733     since some C++ compilers masquerading as C compilers
5734     incorrectly reject 9223372036854775807.  */
5735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5736   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5737                        && LARGE_OFF_T % 2147483647 == 1)
5738                       ? 1 : -1];
5739 int
5740 main ()
5741 {
5742
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 if ac_fn_c_try_compile "$LINENO"; then :
5748   ac_cv_sys_large_files=no; break
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h.  */
5753 #define _LARGE_FILES 1
5754 #include <sys/types.h>
5755  /* Check that off_t can represent 2**63 - 1 correctly.
5756     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5757     since some C++ compilers masquerading as C compilers
5758     incorrectly reject 9223372036854775807.  */
5759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5760   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5761                        && LARGE_OFF_T % 2147483647 == 1)
5762                       ? 1 : -1];
5763 int
5764 main ()
5765 {
5766
5767   ;
5768   return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772   ac_cv_sys_large_files=1; break
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775   ac_cv_sys_large_files=unknown
5776   break
5777 done
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5780 $as_echo "$ac_cv_sys_large_files" >&6; }
5781 case $ac_cv_sys_large_files in #(
5782   no | unknown) ;;
5783   *)
5784 cat >>confdefs.h <<_ACEOF
5785 #define _LARGE_FILES $ac_cv_sys_large_files
5786 _ACEOF
5787 ;;
5788 esac
5789 rm -rf conftest*
5790   fi
5791 fi
5792
5793
5794 # sizeof(char) is 1 by definition.
5795 # The cast to long int works around a bug in the HP C Compiler
5796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5798 # This bug is HP SR number 8606223364.
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5800 $as_echo_n "checking size of void *... " >&6; }
5801 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5805
5806 else
5807   if test "$ac_cv_type_void_p" = yes; then
5808      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5810 { as_fn_set_status 77
5811 as_fn_error "cannot compute sizeof (void *)
5812 See \`config.log' for more details." "$LINENO" 5; }; }
5813    else
5814      ac_cv_sizeof_void_p=0
5815    fi
5816 fi
5817
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5820 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5821
5822
5823
5824 cat >>confdefs.h <<_ACEOF
5825 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5826 _ACEOF
5827
5828
5829 # The cast to long int works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5834 $as_echo_n "checking size of short... " >&6; }
5835 if test "${ac_cv_sizeof_short+set}" = set; then :
5836   $as_echo_n "(cached) " >&6
5837 else
5838   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5839
5840 else
5841   if test "$ac_cv_type_short" = yes; then
5842      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { as_fn_set_status 77
5845 as_fn_error "cannot compute sizeof (short)
5846 See \`config.log' for more details." "$LINENO" 5; }; }
5847    else
5848      ac_cv_sizeof_short=0
5849    fi
5850 fi
5851
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5854 $as_echo "$ac_cv_sizeof_short" >&6; }
5855
5856
5857
5858 cat >>confdefs.h <<_ACEOF
5859 #define SIZEOF_SHORT $ac_cv_sizeof_short
5860 _ACEOF
5861
5862
5863 # The cast to long int works around a bug in the HP C Compiler
5864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5866 # This bug is HP SR number 8606223364.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5868 $as_echo_n "checking size of int... " >&6; }
5869 if test "${ac_cv_sizeof_int+set}" = set; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5873
5874 else
5875   if test "$ac_cv_type_int" = yes; then
5876      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5878 { as_fn_set_status 77
5879 as_fn_error "cannot compute sizeof (int)
5880 See \`config.log' for more details." "$LINENO" 5; }; }
5881    else
5882      ac_cv_sizeof_int=0
5883    fi
5884 fi
5885
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5888 $as_echo "$ac_cv_sizeof_int" >&6; }
5889
5890
5891
5892 cat >>confdefs.h <<_ACEOF
5893 #define SIZEOF_INT $ac_cv_sizeof_int
5894 _ACEOF
5895
5896
5897 # The cast to long int works around a bug in the HP C Compiler
5898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5900 # This bug is HP SR number 8606223364.
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5902 $as_echo_n "checking size of long... " >&6; }
5903 if test "${ac_cv_sizeof_long+set}" = set; then :
5904   $as_echo_n "(cached) " >&6
5905 else
5906   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5907
5908 else
5909   if test "$ac_cv_type_long" = yes; then
5910      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5912 { as_fn_set_status 77
5913 as_fn_error "cannot compute sizeof (long)
5914 See \`config.log' for more details." "$LINENO" 5; }; }
5915    else
5916      ac_cv_sizeof_long=0
5917    fi
5918 fi
5919
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5922 $as_echo "$ac_cv_sizeof_long" >&6; }
5923
5924
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define SIZEOF_LONG $ac_cv_sizeof_long
5928 _ACEOF
5929
5930
5931 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5932 if test "x$ac_cv_type_long_long" = x""yes; then :
5933
5934 cat >>confdefs.h <<_ACEOF
5935 #define HAVE_LONG_LONG 1
5936 _ACEOF
5937
5938 # The cast to long int works around a bug in the HP C Compiler
5939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5941 # This bug is HP SR number 8606223364.
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5943 $as_echo_n "checking size of long long... " >&6; }
5944 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5945   $as_echo_n "(cached) " >&6
5946 else
5947   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5948
5949 else
5950   if test "$ac_cv_type_long_long" = yes; then
5951      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5953 { as_fn_set_status 77
5954 as_fn_error "cannot compute sizeof (long long)
5955 See \`config.log' for more details." "$LINENO" 5; }; }
5956    else
5957      ac_cv_sizeof_long_long=0
5958    fi
5959 fi
5960
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5963 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5964
5965
5966
5967 cat >>confdefs.h <<_ACEOF
5968 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5969 _ACEOF
5970
5971
5972 fi
5973
5974 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5975 if test "x$ac_cv_type___int64" = x""yes; then :
5976
5977 cat >>confdefs.h <<_ACEOF
5978 #define HAVE___INT64 1
5979 _ACEOF
5980
5981 # The cast to long int works around a bug in the HP C Compiler
5982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5984 # This bug is HP SR number 8606223364.
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5986 $as_echo_n "checking size of __int64... " >&6; }
5987 if test "${ac_cv_sizeof___int64+set}" = set; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5991
5992 else
5993   if test "$ac_cv_type___int64" = yes; then
5994      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5996 { as_fn_set_status 77
5997 as_fn_error "cannot compute sizeof (__int64)
5998 See \`config.log' for more details." "$LINENO" 5; }; }
5999    else
6000      ac_cv_sizeof___int64=0
6001    fi
6002 fi
6003
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6006 $as_echo "$ac_cv_sizeof___int64" >&6; }
6007
6008
6009
6010 cat >>confdefs.h <<_ACEOF
6011 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6012 _ACEOF
6013
6014
6015 fi
6016
6017 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6018 case $ac_cv_c_int8_t in #(
6019   no|yes) ;; #(
6020   *)
6021
6022 cat >>confdefs.h <<_ACEOF
6023 #define int8_t $ac_cv_c_int8_t
6024 _ACEOF
6025 ;;
6026 esac
6027
6028 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6029 case $ac_cv_c_int16_t in #(
6030   no|yes) ;; #(
6031   *)
6032
6033 cat >>confdefs.h <<_ACEOF
6034 #define int16_t $ac_cv_c_int16_t
6035 _ACEOF
6036 ;;
6037 esac
6038
6039 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6040 case $ac_cv_c_int32_t in #(
6041   no|yes) ;; #(
6042   *)
6043
6044 cat >>confdefs.h <<_ACEOF
6045 #define int32_t $ac_cv_c_int32_t
6046 _ACEOF
6047 ;;
6048 esac
6049
6050 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6051 case $ac_cv_c_int64_t in #(
6052   no|yes) ;; #(
6053   *)
6054
6055 cat >>confdefs.h <<_ACEOF
6056 #define int64_t $ac_cv_c_int64_t
6057 _ACEOF
6058 ;;
6059 esac
6060
6061
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6063 $as_echo_n "checking for long long int... " >&6; }
6064 if test "${ac_cv_type_long_long_int+set}" = set; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h.  */
6069
6070   /* For now, do not test the preprocessor; as of 2007 there are too many
6071          implementations with broken preprocessors.  Perhaps this can
6072          be revisited in 2012.  In the meantime, code should not expect
6073          #if to work with literals wider than 32 bits.  */
6074       /* Test literals.  */
6075       long long int ll = 9223372036854775807ll;
6076       long long int nll = -9223372036854775807LL;
6077       unsigned long long int ull = 18446744073709551615ULL;
6078       /* Test constant expressions.   */
6079       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6080                      ? 1 : -1)];
6081       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6082                      ? 1 : -1)];
6083       int i = 63;
6084 int
6085 main ()
6086 {
6087 /* Test availability of runtime routines for shift and division.  */
6088       long long int llmax = 9223372036854775807ll;
6089       unsigned long long int ullmax = 18446744073709551615ull;
6090       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6091               | (llmax / ll) | (llmax % ll)
6092               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6093               | (ullmax / ull) | (ullmax % ull));
6094   ;
6095   return 0;
6096 }
6097
6098 _ACEOF
6099 if ac_fn_c_try_link "$LINENO"; then :
6100                         if test "$cross_compiling" = yes; then :
6101   ac_cv_type_long_long_int=yes
6102 else
6103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h.  */
6105 #include <limits.h>
6106                #ifndef LLONG_MAX
6107                # define HALF \
6108                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6109                # define LLONG_MAX (HALF - 1 + HALF)
6110                #endif
6111 int
6112 main ()
6113 {
6114 long long int n = 1;
6115                int i;
6116                for (i = 0; ; i++)
6117                  {
6118                    long long int m = n << i;
6119                    if (m >> i != n)
6120                      return 1;
6121                    if (LLONG_MAX / 2 < m)
6122                      break;
6123                  }
6124                return 0;
6125   ;
6126   return 0;
6127 }
6128 _ACEOF
6129 if ac_fn_c_try_run "$LINENO"; then :
6130   ac_cv_type_long_long_int=yes
6131 else
6132   ac_cv_type_long_long_int=no
6133 fi
6134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6135   conftest.$ac_objext conftest.beam conftest.$ac_ext
6136 fi
6137
6138 else
6139   ac_cv_type_long_long_int=no
6140 fi
6141 rm -f core conftest.err conftest.$ac_objext \
6142     conftest$ac_exeext conftest.$ac_ext
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6145 $as_echo "$ac_cv_type_long_long_int" >&6; }
6146   if test $ac_cv_type_long_long_int = yes; then
6147
6148 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6149
6150   fi
6151
6152
6153
6154   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6155 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6156
6157 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6158
6159 else
6160   test $ac_cv_type_long_long_int = yes \
6161        && ac_type='long long int' \
6162        || ac_type='long int'
6163
6164 cat >>confdefs.h <<_ACEOF
6165 #define intmax_t $ac_type
6166 _ACEOF
6167
6168 fi
6169
6170
6171
6172   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6173 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6174
6175 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6176
6177 else
6178   for ac_type in 'int' 'long int' 'long long int'; do
6179        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h.  */
6181 $ac_includes_default
6182 int
6183 main ()
6184 {
6185 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6186 test_array [0] = 0
6187
6188   ;
6189   return 0;
6190 }
6191 _ACEOF
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193
6194 cat >>confdefs.h <<_ACEOF
6195 #define intptr_t $ac_type
6196 _ACEOF
6197
6198           ac_type=
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201        test -z "$ac_type" && break
6202      done
6203 fi
6204
6205
6206 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6207 case $ac_cv_c_uint8_t in #(
6208   no|yes) ;; #(
6209   *)
6210
6211 $as_echo "#define _UINT8_T 1" >>confdefs.h
6212
6213
6214 cat >>confdefs.h <<_ACEOF
6215 #define uint8_t $ac_cv_c_uint8_t
6216 _ACEOF
6217 ;;
6218   esac
6219
6220 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6221 case $ac_cv_c_uint16_t in #(
6222   no|yes) ;; #(
6223   *)
6224
6225
6226 cat >>confdefs.h <<_ACEOF
6227 #define uint16_t $ac_cv_c_uint16_t
6228 _ACEOF
6229 ;;
6230   esac
6231
6232 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6233 case $ac_cv_c_uint32_t in #(
6234   no|yes) ;; #(
6235   *)
6236
6237 $as_echo "#define _UINT32_T 1" >>confdefs.h
6238
6239
6240 cat >>confdefs.h <<_ACEOF
6241 #define uint32_t $ac_cv_c_uint32_t
6242 _ACEOF
6243 ;;
6244   esac
6245
6246 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6247 case $ac_cv_c_uint64_t in #(
6248   no|yes) ;; #(
6249   *)
6250
6251 $as_echo "#define _UINT64_T 1" >>confdefs.h
6252
6253
6254 cat >>confdefs.h <<_ACEOF
6255 #define uint64_t $ac_cv_c_uint64_t
6256 _ACEOF
6257 ;;
6258   esac
6259
6260
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6262 $as_echo_n "checking for unsigned long long int... " >&6; }
6263 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h.  */
6268
6269   /* For now, do not test the preprocessor; as of 2007 there are too many
6270          implementations with broken preprocessors.  Perhaps this can
6271          be revisited in 2012.  In the meantime, code should not expect
6272          #if to work with literals wider than 32 bits.  */
6273       /* Test literals.  */
6274       long long int ll = 9223372036854775807ll;
6275       long long int nll = -9223372036854775807LL;
6276       unsigned long long int ull = 18446744073709551615ULL;
6277       /* Test constant expressions.   */
6278       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6279                      ? 1 : -1)];
6280       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6281                      ? 1 : -1)];
6282       int i = 63;
6283 int
6284 main ()
6285 {
6286 /* Test availability of runtime routines for shift and division.  */
6287       long long int llmax = 9223372036854775807ll;
6288       unsigned long long int ullmax = 18446744073709551615ull;
6289       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6290               | (llmax / ll) | (llmax % ll)
6291               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6292               | (ullmax / ull) | (ullmax % ull));
6293   ;
6294   return 0;
6295 }
6296
6297 _ACEOF
6298 if ac_fn_c_try_link "$LINENO"; then :
6299   ac_cv_type_unsigned_long_long_int=yes
6300 else
6301   ac_cv_type_unsigned_long_long_int=no
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext \
6304     conftest$ac_exeext conftest.$ac_ext
6305 fi
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6307 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6308   if test $ac_cv_type_unsigned_long_long_int = yes; then
6309
6310 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6311
6312   fi
6313
6314
6315
6316   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6317 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6318
6319 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6320
6321 else
6322   test $ac_cv_type_unsigned_long_long_int = yes \
6323        && ac_type='unsigned long long int' \
6324        || ac_type='unsigned long int'
6325
6326 cat >>confdefs.h <<_ACEOF
6327 #define uintmax_t $ac_type
6328 _ACEOF
6329
6330 fi
6331
6332
6333
6334   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6335 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6336
6337 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6338
6339 else
6340   for ac_type in 'unsigned int' 'unsigned long int' \
6341         'unsigned long long int'; do
6342        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h.  */
6344 $ac_includes_default
6345 int
6346 main ()
6347 {
6348 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6349 test_array [0] = 0
6350
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 if ac_fn_c_try_compile "$LINENO"; then :
6356
6357 cat >>confdefs.h <<_ACEOF
6358 #define uintptr_t $ac_type
6359 _ACEOF
6360
6361           ac_type=
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364        test -z "$ac_type" && break
6365      done
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 # ---------------------
6383 # Warnings and checking
6384 # ---------------------
6385
6386 # Check $CC warning features (if it's GCC).
6387 # We want to use -pedantic, but we don't want warnings about
6388 # * 'long long'
6389 # * variadic macros
6390 # * overlong strings
6391 # * C++11 narrowing conversions in { }
6392 # So, we only use -pedantic if we can disable those warnings.
6393
6394 loose_warn=
6395 save_CFLAGS="$CFLAGS"
6396 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6397   # Do the check with the no- prefix removed since gcc silently
6398   # accepts any -Wno-* option on purpose
6399   case $real_option in
6400     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6401     *) option=$real_option ;;
6402   esac
6403   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6404
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6406 $as_echo_n "checking whether $CC supports $option... " >&6; }
6407 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   CFLAGS="$option"
6411     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h.  */
6413
6414 int
6415 main ()
6416 {
6417
6418   ;
6419   return 0;
6420 }
6421 _ACEOF
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423   eval "$as_acx_Woption=yes"
6424 else
6425   eval "$as_acx_Woption=no"
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428
6429 fi
6430 eval ac_res=\$$as_acx_Woption
6431                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6432 $as_echo "$ac_res" >&6; }
6433   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6434   loose_warn="$loose_warn${loose_warn:+ }$real_option"
6435 fi
6436   done
6437 CFLAGS="$save_CFLAGS"
6438
6439 c_loose_warn=
6440 save_CFLAGS="$CFLAGS"
6441 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6442   # Do the check with the no- prefix removed since gcc silently
6443   # accepts any -Wno-* option on purpose
6444   case $real_option in
6445     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6446     *) option=$real_option ;;
6447   esac
6448   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6449
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6451 $as_echo_n "checking whether $CC supports $option... " >&6; }
6452 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   CFLAGS="$option"
6456     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h.  */
6458
6459 int
6460 main ()
6461 {
6462
6463   ;
6464   return 0;
6465 }
6466 _ACEOF
6467 if ac_fn_c_try_compile "$LINENO"; then :
6468   eval "$as_acx_Woption=yes"
6469 else
6470   eval "$as_acx_Woption=no"
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473
6474 fi
6475 eval ac_res=\$$as_acx_Woption
6476                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6477 $as_echo "$ac_res" >&6; }
6478   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6479   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6480 fi
6481   done
6482 CFLAGS="$save_CFLAGS"
6483
6484 strict_warn=
6485 save_CFLAGS="$CFLAGS"
6486 for real_option in -Wmissing-format-attribute; do
6487   # Do the check with the no- prefix removed since gcc silently
6488   # accepts any -Wno-* option on purpose
6489   case $real_option in
6490     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6491     *) option=$real_option ;;
6492   esac
6493   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6494
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6496 $as_echo_n "checking whether $CC supports $option... " >&6; }
6497 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   CFLAGS="$option"
6501     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h.  */
6503
6504 int
6505 main ()
6506 {
6507
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 if ac_fn_c_try_compile "$LINENO"; then :
6513   eval "$as_acx_Woption=yes"
6514 else
6515   eval "$as_acx_Woption=no"
6516 fi
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518
6519 fi
6520 eval ac_res=\$$as_acx_Woption
6521                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6522 $as_echo "$ac_res" >&6; }
6523   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6524   strict_warn="$strict_warn${strict_warn:+ }$real_option"
6525 fi
6526   done
6527 CFLAGS="$save_CFLAGS"
6528
6529 c_strict_warn=
6530 save_CFLAGS="$CFLAGS"
6531 for real_option in -Wold-style-definition -Wc++-compat; do
6532   # Do the check with the no- prefix removed since gcc silently
6533   # accepts any -Wno-* option on purpose
6534   case $real_option in
6535     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6536     *) option=$real_option ;;
6537   esac
6538   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6539
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6541 $as_echo_n "checking whether $CC supports $option... " >&6; }
6542 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   CFLAGS="$option"
6546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h.  */
6548
6549 int
6550 main ()
6551 {
6552
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558   eval "$as_acx_Woption=yes"
6559 else
6560   eval "$as_acx_Woption=no"
6561 fi
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563
6564 fi
6565 eval ac_res=\$$as_acx_Woption
6566                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6567 $as_echo "$ac_res" >&6; }
6568   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6569   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6570 fi
6571   done
6572 CFLAGS="$save_CFLAGS"
6573
6574 # Do the check with the no- prefix removed from the warning options
6575 # since gcc silently accepts any -Wno-* option on purpose
6576 if test "$GCC" = yes; then :
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6578 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6579 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6580   $as_echo_n "(cached) " >&6
6581 else
6582   save_CFLAGS="$CFLAGS"
6583 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h.  */
6586
6587 int
6588 main ()
6589 {
6590
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6597 else
6598   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 CFLAGS="$save_CFLAGS"
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6604 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6605 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6606   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6607 fi
6608
6609 fi
6610
6611 # Check whether --enable-werror-always was given.
6612 if test "${enable_werror_always+set}" = set; then :
6613   enableval=$enable_werror_always;
6614 else
6615   enable_werror_always=no
6616 fi
6617
6618 if test $enable_werror_always = yes; then :
6619   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6620 fi
6621
6622
6623
6624 # The above macros do nothing if the compiler is not GCC.  However, the
6625 # Makefile has more goo to add other flags, so these variables are used
6626 # to enable warnings only for GCC.
6627 warn_cflags=
6628 warn_cxxflags=
6629 if test "x$GCC" = "xyes"; then
6630   warn_cflags='$(GCC_WARN_CFLAGS)'
6631   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6632 fi
6633
6634
6635
6636 # Disable exceptions and RTTI if building with g++
6637 noexception_flags=
6638 save_CFLAGS="$CFLAGS"
6639 for real_option in -fno-exceptions -fno-rtti; do
6640   # Do the check with the no- prefix removed since gcc silently
6641   # accepts any -Wno-* option on purpose
6642   case $real_option in
6643     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6644     *) option=$real_option ;;
6645   esac
6646   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6647
6648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6649 $as_echo_n "checking whether $CC supports $option... " >&6; }
6650 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6651   $as_echo_n "(cached) " >&6
6652 else
6653   CFLAGS="$option"
6654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h.  */
6656
6657 int
6658 main ()
6659 {
6660
6661   ;
6662   return 0;
6663 }
6664 _ACEOF
6665 if ac_fn_c_try_compile "$LINENO"; then :
6666   eval "$as_acx_Woption=yes"
6667 else
6668   eval "$as_acx_Woption=no"
6669 fi
6670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671
6672 fi
6673 eval ac_res=\$$as_acx_Woption
6674                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6675 $as_echo "$ac_res" >&6; }
6676   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6677   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6678 fi
6679   done
6680 CFLAGS="$save_CFLAGS"
6681
6682
6683 # Enable expensive internal checks
6684 is_release=
6685 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6686   is_release=yes
6687 fi
6688
6689 # Check whether --enable-checking was given.
6690 if test "${enable_checking+set}" = set; then :
6691   enableval=$enable_checking; ac_checking_flags="${enableval}"
6692 else
6693
6694 # Determine the default checks.
6695 if test x$is_release = x ; then
6696   ac_checking_flags=yes
6697 else
6698   ac_checking_flags=release
6699 fi
6700 fi
6701
6702 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6703 for check in release $ac_checking_flags
6704 do
6705         case $check in
6706         # these set all the flags to specific states
6707         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6708                         ac_fold_checking= ; ac_gc_checking=1 ;
6709                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6710                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6711                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6712                         ac_types_checking=1 ;;
6713         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6714                         ac_fold_checking= ; ac_gc_checking= ;
6715                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6716                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6717                         ac_tree_checking= ; ac_valgrind_checking= ;
6718                         ac_types_checking= ;;
6719         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6720                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6721                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6722                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6723                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6724                         ac_types_checking=1 ;;
6725         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6726                         ac_fold_checking= ; ac_gc_checking= ;
6727                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6728                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6729                         ac_tree_checking= ; ac_valgrind_checking= ;
6730                         ac_types_checking= ;;
6731         # these enable particular checks
6732         assert)         ac_assert_checking=1 ;;
6733         df)             ac_df_checking=1 ;;
6734         fold)           ac_fold_checking=1 ;;
6735         gc)             ac_gc_checking=1 ;;
6736         gcac)           ac_gc_always_collect=1 ;;
6737         gimple)         ac_gimple_checking=1 ;;
6738         misc)           ac_checking=1 ;;
6739         rtl)            ac_rtl_checking=1 ;;
6740         rtlflag)        ac_rtlflag_checking=1 ;;
6741         runtime)        ac_runtime_checking=1 ;;
6742         tree)           ac_tree_checking=1 ;;
6743         types)          ac_types_checking=1 ;;
6744         valgrind)       ac_valgrind_checking=1 ;;
6745         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6746         esac
6747 done
6748 IFS="$ac_save_IFS"
6749
6750 nocommon_flag=""
6751 if test x$ac_checking != x ; then
6752
6753 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6754
6755   nocommon_flag=-fno-common
6756 fi
6757
6758 if test x$ac_df_checking != x ; then
6759
6760 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6761
6762 fi
6763 if test x$ac_assert_checking != x ; then
6764
6765 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6766
6767 fi
6768 if test x$ac_gimple_checking != x ; then
6769
6770 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6771
6772 fi
6773
6774 if test x$ac_runtime_checking != x ; then
6775
6776 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6777
6778 fi
6779 if test x$ac_tree_checking != x ; then
6780
6781 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6782
6783   TREEBROWSER=tree-browser.o
6784 fi
6785 if test x$ac_types_checking != x ; then
6786
6787 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6788
6789 fi
6790
6791 if test x$ac_rtl_checking != x ; then
6792
6793 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6794
6795 fi
6796 if test x$ac_rtlflag_checking != x ; then
6797
6798 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6799
6800 fi
6801 if test x$ac_gc_checking != x ; then
6802
6803 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6804
6805 fi
6806 if test x$ac_gc_always_collect != x ; then
6807
6808 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6809
6810 fi
6811 if test x$ac_fold_checking != x ; then
6812
6813 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6814
6815 fi
6816 valgrind_path_defines=
6817 valgrind_command=
6818
6819 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6820 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6821   have_valgrind_h=yes
6822 else
6823   have_valgrind_h=no
6824 fi
6825
6826
6827
6828 if test x$ac_valgrind_checking != x ; then
6829   # It is certainly possible that there's valgrind but no valgrind.h.
6830   # GCC relies on making annotations so we must have both.
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6832 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h.  */
6835 #include <valgrind/memcheck.h>
6836 #ifndef VALGRIND_DISCARD
6837 #error VALGRIND_DISCARD not defined
6838 #endif
6839 _ACEOF
6840 if ac_fn_c_try_cpp "$LINENO"; then :
6841   gcc_cv_header_valgrind_memcheck_h=yes
6842 else
6843   gcc_cv_header_valgrind_memcheck_h=no
6844 fi
6845 rm -f conftest.err conftest.$ac_ext
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6847 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6849 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h.  */
6852 #include <memcheck.h>
6853 #ifndef VALGRIND_DISCARD
6854 #error VALGRIND_DISCARD not defined
6855 #endif
6856 _ACEOF
6857 if ac_fn_c_try_cpp "$LINENO"; then :
6858   gcc_cv_header_memcheck_h=yes
6859 else
6860   gcc_cv_header_memcheck_h=no
6861 fi
6862 rm -f conftest.err conftest.$ac_ext
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6864 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6865
6866 # Prepare PATH_SEPARATOR.
6867 # The user is always right.
6868 if test "${PATH_SEPARATOR+set}" != set; then
6869   echo "#! /bin/sh" >conf$$.sh
6870   echo  "exit 0"   >>conf$$.sh
6871   chmod +x conf$$.sh
6872   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6873     PATH_SEPARATOR=';'
6874   else
6875     PATH_SEPARATOR=:
6876   fi
6877   rm -f conf$$.sh
6878 fi
6879
6880 # Find out how to test for executable files. Don't use a zero-byte file,
6881 # as systems may use methods other than mode bits to determine executability.
6882 cat >conf$$.file <<_ASEOF
6883 #! /bin/sh
6884 exit 0
6885 _ASEOF
6886 chmod +x conf$$.file
6887 if test -x conf$$.file >/dev/null 2>&1; then
6888   ac_executable_p="test -x"
6889 else
6890   ac_executable_p="test -f"
6891 fi
6892 rm -f conf$$.file
6893
6894 # Extract the first word of "valgrind", so it can be a program name with args.
6895 set dummy valgrind; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6899   $as_echo_n "(cached) " >&6
6900 else
6901   case "$valgrind_path" in
6902   [\\/]* | ?:[\\/]*)
6903     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6904     ;;
6905   *)
6906     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6907     for ac_dir in $PATH; do
6908       IFS="$ac_save_IFS"
6909       test -z "$ac_dir" && ac_dir=.
6910       for ac_exec_ext in '' $ac_executable_extensions; do
6911         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6912           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6913             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6914             break 2
6915           fi
6916         fi
6917       done
6918     done
6919     IFS="$ac_save_IFS"
6920     ;;
6921 esac
6922 fi
6923 valgrind_path="$ac_cv_path_valgrind_path"
6924 if test -n "$valgrind_path"; then
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6926 $as_echo "$valgrind_path" >&6; }
6927 else
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932   if test "x$valgrind_path" = "x" \
6933     || (test $have_valgrind_h = no \
6934         && test $gcc_cv_header_memcheck_h = no \
6935         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6936         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6937   fi
6938   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6939   valgrind_command="$valgrind_path -q"
6940
6941 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6942
6943   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6944
6945 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6946
6947   fi
6948   if test $gcc_cv_header_memcheck_h = yes; then
6949
6950 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6951
6952   fi
6953 fi
6954
6955
6956
6957 # Enable code coverage collection
6958 # Check whether --enable-coverage was given.
6959 if test "${enable_coverage+set}" = set; then :
6960   enableval=$enable_coverage; case "${enableval}" in
6961   yes|noopt)
6962     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6963     ;;
6964   opt)
6965     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6966     ;;
6967   no)
6968     # a.k.a. --disable-coverage
6969     coverage_flags=""
6970     ;;
6971   *)
6972     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6973     ;;
6974 esac
6975 else
6976   coverage_flags=""
6977 fi
6978
6979
6980
6981 # Check whether --enable-gather-detailed-mem-stats was given.
6982 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6983   enableval=$enable_gather_detailed_mem_stats;
6984 else
6985   enable_gather_detailed_mem_stats=no
6986 fi
6987
6988 if test x$enable_gather_detailed_mem_stats = xyes ; then
6989
6990 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6991
6992 fi
6993
6994 # -------------------------------
6995 # Miscenalleous configure options
6996 # -------------------------------
6997
6998 # See if we are building gcc with C++.
6999 # Check whether --enable-build-with-cxx was given.
7000 if test "${enable_build_with_cxx+set}" = set; then :
7001   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7002 else
7003   ENABLE_BUILD_WITH_CXX=no
7004 fi
7005
7006
7007 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7008
7009 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7010
7011 fi
7012
7013 # With stabs
7014
7015 # Check whether --with-stabs was given.
7016 if test "${with_stabs+set}" = set; then :
7017   withval=$with_stabs; stabs="$with_stabs"
7018 else
7019   stabs=no
7020 fi
7021
7022
7023 # Determine whether or not multilibs are enabled.
7024 # Check whether --enable-multilib was given.
7025 if test "${enable_multilib+set}" = set; then :
7026   enableval=$enable_multilib;
7027 else
7028   enable_multilib=yes
7029 fi
7030
7031
7032
7033 # Enable __cxa_atexit for C++.
7034 # Check whether --enable-__cxa_atexit was given.
7035 if test "${enable___cxa_atexit+set}" = set; then :
7036   enableval=$enable___cxa_atexit;
7037 fi
7038
7039
7040 # Enable C extension for decimal float if target supports it.
7041
7042 # Check whether --enable-decimal-float was given.
7043 if test "${enable_decimal_float+set}" = set; then :
7044   enableval=$enable_decimal_float;
7045   case $enable_decimal_float in
7046     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7047     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7048 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7049   esac
7050
7051 else
7052
7053   case $target in
7054     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7055     i?86*-*-mingw* | x86_64*-*-mingw* | \
7056     i?86*-*-cygwin*)
7057       enable_decimal_float=yes
7058       ;;
7059     *)
7060       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7061 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7062       enable_decimal_float=no
7063       ;;
7064   esac
7065
7066 fi
7067
7068
7069 # x86's use BID format instead of DPD
7070 case x$enable_decimal_float in
7071   xyes)
7072     case $target in
7073       i?86*-*-* | x86_64*-*-*)
7074         enable_decimal_float=bid
7075         ;;
7076       *)
7077         enable_decimal_float=dpd
7078         ;;
7079     esac
7080     default_decimal_float=$enable_decimal_float
7081     ;;
7082   xno)
7083     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7084     # dependency on libdecnumber.
7085     default_decimal_float=dpd
7086     ;;
7087 esac
7088
7089
7090
7091
7092 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7093
7094 cat >>confdefs.h <<_ACEOF
7095 #define ENABLE_DECIMAL_FLOAT $dfp
7096 _ACEOF
7097
7098
7099 # Use default_decimal_float for dependency.
7100 enable_decimal_float=$default_decimal_float
7101
7102 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7103
7104 cat >>confdefs.h <<_ACEOF
7105 #define ENABLE_DECIMAL_BID_FORMAT $bid
7106 _ACEOF
7107
7108
7109 # Enable C extension for fixed-point arithmetic.
7110 # Check whether --enable-fixed-point was given.
7111 if test "${enable_fixed_point+set}" = set; then :
7112   enableval=$enable_fixed_point;
7113 else
7114
7115   case $target in
7116     arm*)
7117       enable_fixed_point=yes
7118       ;;
7119
7120     mips*-*-*)
7121       case $host in
7122         mips*-sgi-irix*)
7123           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7124 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7125           enable_fixed_point=no
7126           ;;
7127         *)
7128           enable_fixed_point=yes
7129           ;;
7130       esac
7131       ;;
7132     *)
7133       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7134 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7135       enable_fixed_point=no
7136       ;;
7137   esac
7138
7139 fi
7140
7141
7142
7143 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7144
7145 cat >>confdefs.h <<_ACEOF
7146 #define ENABLE_FIXED_POINT $fixedpoint
7147 _ACEOF
7148
7149
7150 # Enable threads
7151 # Pass with no value to take the default
7152 # Pass with a value to specify a thread package
7153 # Check whether --enable-threads was given.
7154 if test "${enable_threads+set}" = set; then :
7155   enableval=$enable_threads;
7156 else
7157   enable_threads=''
7158 fi
7159
7160
7161 # Check whether --enable-tls was given.
7162 if test "${enable_tls+set}" = set; then :
7163   enableval=$enable_tls;
7164   case $enable_tls in
7165     yes | no) ;;
7166     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7167 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7168   esac
7169
7170 else
7171   enable_tls=''
7172 fi
7173
7174
7175 # Check whether --enable-objc-gc was given.
7176 if test "${enable_objc_gc+set}" = set; then :
7177   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7178         objc_boehm_gc=''
7179 else
7180         objc_boehm_gc=1
7181 fi
7182 else
7183   objc_boehm_gc=''
7184 fi
7185
7186
7187
7188 # Check whether --with-dwarf2 was given.
7189 if test "${with_dwarf2+set}" = set; then :
7190   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7191 else
7192   dwarf2=no
7193 fi
7194
7195
7196 # Check whether --enable-shared was given.
7197 if test "${enable_shared+set}" = set; then :
7198   enableval=$enable_shared;
7199   case $enable_shared in
7200   yes | no) ;;
7201   *)
7202     enable_shared=no
7203     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7204     for pkg in $enableval; do
7205       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7206         enable_shared=yes
7207       fi
7208     done
7209     IFS="$ac_save_ifs"
7210     ;;
7211   esac
7212
7213 else
7214   enable_shared=yes
7215 fi
7216
7217
7218
7219
7220 # Check whether --with-native-system-header-dir was given.
7221 if test "${with_native_system_header_dir+set}" = set; then :
7222   withval=$with_native_system_header_dir;
7223  case ${with_native_system_header_dir} in
7224  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7225  /* | [A-Za-z]:[\\/]*) ;;
7226  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7227  esac
7228  configured_native_system_header_dir="${withval}"
7229
7230 else
7231   configured_native_system_header_dir=
7232 fi
7233
7234
7235
7236 # Check whether --with-build-sysroot was given.
7237 if test "${with_build_sysroot+set}" = set; then :
7238   withval=$with_build_sysroot; if test x"$withval" != x ; then
7239      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7240    fi
7241 else
7242   SYSROOT_CFLAGS_FOR_TARGET=
7243 fi
7244
7245
7246
7247
7248 # Check whether --with-sysroot was given.
7249 if test "${with_sysroot+set}" = set; then :
7250   withval=$with_sysroot;
7251  case ${with_sysroot} in
7252  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7253  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7254  esac
7255
7256  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7257  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7258
7259  if test "x$prefix" = xNONE; then
7260   test_prefix=/usr/local
7261  else
7262   test_prefix=$prefix
7263  fi
7264  if test "x$exec_prefix" = xNONE; then
7265   test_exec_prefix=$test_prefix
7266  else
7267   test_exec_prefix=$exec_prefix
7268  fi
7269  case ${TARGET_SYSTEM_ROOT} in
7270  "${test_prefix}"|"${test_prefix}/"*|\
7271  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7272  '${prefix}'|'${prefix}/'*|\
7273  '${exec_prefix}'|'${exec_prefix}/'*)
7274    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7275    TARGET_SYSTEM_ROOT_DEFINE="$t"
7276    ;;
7277  esac
7278
7279 else
7280
7281  TARGET_SYSTEM_ROOT=
7282  TARGET_SYSTEM_ROOT_DEFINE=
7283  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7284
7285 fi
7286
7287
7288
7289
7290
7291
7292 # Check whether --with-specs was given.
7293 if test "${with_specs+set}" = set; then :
7294   withval=$with_specs; CONFIGURE_SPECS=$withval
7295 else
7296   CONFIGURE_SPECS=
7297
7298 fi
7299
7300
7301
7302
7303
7304 # Check whether --with-pkgversion was given.
7305 if test "${with_pkgversion+set}" = set; then :
7306   withval=$with_pkgversion; case "$withval" in
7307       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7308       no)  PKGVERSION= ;;
7309       *)   PKGVERSION="($withval) " ;;
7310      esac
7311 else
7312   PKGVERSION="(GCC) "
7313
7314 fi
7315
7316
7317
7318
7319
7320 # Check whether --with-bugurl was given.
7321 if test "${with_bugurl+set}" = set; then :
7322   withval=$with_bugurl; case "$withval" in
7323       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7324       no)  BUGURL=
7325            ;;
7326       *)   BUGURL="$withval"
7327            ;;
7328      esac
7329 else
7330   BUGURL="http://gcc.gnu.org/bugs.html"
7331
7332 fi
7333
7334   case ${BUGURL} in
7335   "")
7336     REPORT_BUGS_TO=
7337     REPORT_BUGS_TEXI=
7338     ;;
7339   *)
7340     REPORT_BUGS_TO="<$BUGURL>"
7341     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7342     ;;
7343   esac;
7344
7345
7346
7347
7348 # Sanity check enable_languages in case someone does not run the toplevel
7349 # configure # script.
7350 # Check whether --enable-languages was given.
7351 if test "${enable_languages+set}" = set; then :
7352   enableval=$enable_languages; case ,${enable_languages}, in
7353        ,,|,yes,)
7354                 # go safe -- we cannot be much sure without the toplevel
7355                 # configure's
7356                 # analysis of which target libs are present and usable
7357                 enable_languages=c
7358                 ;;
7359          *,all,*)
7360                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7361                 ;;
7362         *,c,*)
7363                 ;;
7364         *)
7365                 enable_languages=c,${enable_languages}
7366                 ;;
7367 esac
7368 else
7369   enable_languages=c
7370 fi
7371
7372
7373
7374 # Check whether --with-multilib-list was given.
7375 if test "${with_multilib_list+set}" = set; then :
7376   withval=$with_multilib_list; :
7377 else
7378   with_multilib_list=default
7379 fi
7380
7381
7382 # -------------------------
7383 # Checks for other programs
7384 # -------------------------
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7387 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7388 set x ${MAKE-make}
7389 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7390 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   cat >conftest.make <<\_ACEOF
7394 SHELL = /bin/sh
7395 all:
7396         @echo '@@@%%%=$(MAKE)=@@@%%%'
7397 _ACEOF
7398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7399 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7400   *@@@%%%=?*=@@@%%%*)
7401     eval ac_cv_prog_make_${ac_make}_set=yes;;
7402   *)
7403     eval ac_cv_prog_make_${ac_make}_set=no;;
7404 esac
7405 rm -f conftest.make
7406 fi
7407 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7410   SET_MAKE=
7411 else
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414   SET_MAKE="MAKE=${MAKE-make}"
7415 fi
7416
7417
7418 # Find some useful tools
7419 for ac_prog in gawk mawk nawk awk
7420 do
7421   # Extract the first word of "$ac_prog", so it can be a program name with args.
7422 set dummy $ac_prog; ac_word=$2
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424 $as_echo_n "checking for $ac_word... " >&6; }
7425 if test "${ac_cv_prog_AWK+set}" = set; then :
7426   $as_echo_n "(cached) " >&6
7427 else
7428   if test -n "$AWK"; then
7429   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436     for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_prog_AWK="$ac_prog"
7439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443   done
7444 IFS=$as_save_IFS
7445
7446 fi
7447 fi
7448 AWK=$ac_cv_prog_AWK
7449 if test -n "$AWK"; then
7450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7451 $as_echo "$AWK" >&6; }
7452 else
7453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7455 fi
7456
7457
7458   test -n "$AWK" && break
7459 done
7460
7461 # We need awk to create options.c and options.h.
7462 # Bail out if it's missing.
7463 case ${AWK} in
7464   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7465 esac
7466
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7468 $as_echo_n "checking whether ln -s works... " >&6; }
7469 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   rm -f conftestdata_t
7473 echo >conftestdata_f
7474 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7475 then
7476   gcc_cv_prog_LN_S="ln -s"
7477 else
7478   if ln conftestdata_f conftestdata_t 2>/dev/null
7479   then
7480     gcc_cv_prog_LN_S=ln
7481   else
7482     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7483     then
7484       gcc_cv_prog_LN_S="cp -p"
7485     else
7486       gcc_cv_prog_LN_S=cp
7487     fi
7488   fi
7489 fi
7490 rm -f conftestdata_f conftestdata_t
7491
7492 fi
7493 LN_S="$gcc_cv_prog_LN_S"
7494 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7496 $as_echo "yes" >&6; }
7497 else
7498   if test "$gcc_cv_prog_LN_S" = "ln"; then
7499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7500 $as_echo "no, using ln" >&6; }
7501   else
7502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7503 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7504   fi
7505 fi
7506
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7508 $as_echo_n "checking whether ln works... " >&6; }
7509 if test "${acx_cv_prog_LN+set}" = set; then :
7510   $as_echo_n "(cached) " >&6
7511 else
7512   rm -f conftestdata_t
7513 echo >conftestdata_f
7514 if ln conftestdata_f conftestdata_t 2>/dev/null
7515 then
7516   acx_cv_prog_LN=ln
7517 else
7518   acx_cv_prog_LN=no
7519 fi
7520 rm -f conftestdata_f conftestdata_t
7521
7522 fi
7523 if test $acx_cv_prog_LN = no; then
7524   LN="$LN_S"
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7526 $as_echo "no, using $LN" >&6; }
7527 else
7528   LN="$acx_cv_prog_LN"
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7530 $as_echo "yes" >&6; }
7531 fi
7532
7533 if test -n "$ac_tool_prefix"; then
7534   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$RANLIB"; then
7542   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 RANLIB=$ac_cv_prog_RANLIB
7562 if test -n "$RANLIB"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7564 $as_echo "$RANLIB" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570
7571 fi
7572 if test -z "$ac_cv_prog_RANLIB"; then
7573   ac_ct_RANLIB=$RANLIB
7574   # Extract the first word of "ranlib", so it can be a program name with args.
7575 set dummy ranlib; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   if test -n "$ac_ct_RANLIB"; then
7582   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_prog_ac_ct_RANLIB="ranlib"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7602 if test -n "$ac_ct_RANLIB"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7604 $as_echo "$ac_ct_RANLIB" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610   if test "x$ac_ct_RANLIB" = x; then
7611     RANLIB=":"
7612   else
7613     case $cross_compiling:$ac_tool_warned in
7614 yes:)
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617 ac_tool_warned=yes ;;
7618 esac
7619     RANLIB=$ac_ct_RANLIB
7620   fi
7621 else
7622   RANLIB="$ac_cv_prog_RANLIB"
7623 fi
7624
7625 ranlib_flags=""
7626
7627
7628 # Find a good install program.  We prefer a C program (faster),
7629 # so one script is as good as another.  But avoid the broken or
7630 # incompatible versions:
7631 # SysV /etc/install, /usr/sbin/install
7632 # SunOS /usr/etc/install
7633 # IRIX /sbin/install
7634 # AIX /bin/install
7635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7637 # ./install, which can be erroneously created by make from ./install.sh.
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7639 $as_echo_n "checking for a BSD compatible install... " >&6; }
7640 if test -z "$INSTALL"; then
7641 if test "${ac_cv_path_install+set}" = set; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7645   for ac_dir in $PATH; do
7646     # Account for people who put trailing slashes in PATH elements.
7647     case "$ac_dir/" in
7648     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7649     *)
7650       # OSF1 and SCO ODT 3.0 have their own names for install.
7651       for ac_prog in ginstall scoinst install; do
7652         if test -f $ac_dir/$ac_prog; then
7653           if test $ac_prog = install &&
7654             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7655             # AIX install.  It has an incompatible calling convention.
7656             # OSF/1 installbsd also uses dspmsg, but is usable.
7657             :
7658           else
7659             ac_cv_path_install="$ac_dir/$ac_prog -c"
7660             break 2
7661           fi
7662         fi
7663       done
7664       ;;
7665     esac
7666   done
7667   IFS="$ac_save_IFS"
7668
7669 fi
7670   if test "${ac_cv_path_install+set}" = set; then
7671     INSTALL="$ac_cv_path_install"
7672   else
7673     # As a last resort, use the slow shell script.  We don't cache a
7674     # path for INSTALL within a source directory, because that will
7675     # break other packages using the cache if that directory is
7676     # removed, or if the path is relative.
7677     INSTALL="$ac_install_sh"
7678   fi
7679 fi
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7681 $as_echo "$INSTALL" >&6; }
7682
7683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7684 # It thinks the first close brace ends the variable substitution.
7685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7686
7687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7688
7689
7690 # See if cmp has --ignore-initial.
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7692 $as_echo_n "checking for cmp's capabilities... " >&6; }
7693 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696    echo abfoo >t1
7697   echo cdfoo >t2
7698   gcc_cv_prog_cmp_skip=slowcompare
7699   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7700     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7701       :
7702     else
7703       gcc_cv_prog_cmp_skip=gnucompare
7704     fi
7705   fi
7706   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7707     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7708       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7709         :
7710       else
7711         gcc_cv_prog_cmp_skip=fastcompare
7712       fi
7713     fi
7714   fi
7715   rm t1 t2
7716
7717 fi
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7719 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7720 make_compare_target=$gcc_cv_prog_cmp_skip
7721
7722
7723
7724 # See if we have the mktemp command.
7725 # Extract the first word of "mktemp", so it can be a program name with args.
7726 set dummy mktemp; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732   if test -n "$have_mktemp_command"; then
7733   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740     for ac_exec_ext in '' $ac_executable_extensions; do
7741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742     ac_cv_prog_have_mktemp_command="yes"
7743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747   done
7748 IFS=$as_save_IFS
7749
7750   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7751 fi
7752 fi
7753 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7754 if test -n "$have_mktemp_command"; then
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7756 $as_echo "$have_mktemp_command" >&6; }
7757 else
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762
7763
7764 # See if makeinfo has been installed and is modern enough
7765 # that we can use it.
7766
7767   # Extract the first word of "makeinfo", so it can be a program name with args.
7768 set dummy makeinfo; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   if test -n "$MAKEINFO"; then
7775   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782     for ac_exec_ext in '' $ac_executable_extensions; do
7783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784     ac_cv_prog_MAKEINFO="makeinfo"
7785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789   done
7790 IFS=$as_save_IFS
7791
7792 fi
7793 fi
7794 MAKEINFO=$ac_cv_prog_MAKEINFO
7795 if test -n "$MAKEINFO"; then
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7797 $as_echo "$MAKEINFO" >&6; }
7798 else
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7801 fi
7802
7803
7804   if test -n "$MAKEINFO"; then
7805     # Found it, now check the version.
7806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7807 $as_echo_n "checking for modern makeinfo... " >&6; }
7808 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7812                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7813
7814                     case $ac_prog_version in
7815                       '')  gcc_cv_prog_makeinfo_modern=no;;
7816                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7817                       *)   gcc_cv_prog_makeinfo_modern=no;;
7818                     esac
7819
7820 fi
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7822 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7823   else
7824     gcc_cv_prog_makeinfo_modern=no
7825   fi
7826   if test $gcc_cv_prog_makeinfo_modern = no; then
7827     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7828   fi
7829
7830 if test $gcc_cv_prog_makeinfo_modern = no; then
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7832 *** Makeinfo is missing or too old.
7833 *** Info documentation will not be built." >&5
7834 $as_echo "$as_me: WARNING:
7835 *** Makeinfo is missing or too old.
7836 *** Info documentation will not be built." >&2;}
7837   BUILD_INFO=
7838 else
7839   BUILD_INFO=info
7840 fi
7841
7842
7843 # Is pod2man recent enough to regenerate manpages?
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7845 $as_echo_n "checking for recent Pod::Man... " >&6; }
7846 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7848 $as_echo "yes" >&6; }
7849   GENERATED_MANPAGES=generated-manpages
7850 else
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853   GENERATED_MANPAGES=
7854 fi
7855
7856
7857 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7858
7859 # How about lex?
7860 for ac_prog in flex
7861 do
7862   # Extract the first word of "$ac_prog", so it can be a program name with args.
7863 set dummy $ac_prog; ac_word=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if test "${ac_cv_prog_FLEX+set}" = set; then :
7867   $as_echo_n "(cached) " >&6
7868 else
7869   if test -n "$FLEX"; then
7870   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875   IFS=$as_save_IFS
7876   test -z "$as_dir" && as_dir=.
7877     for ac_exec_ext in '' $ac_executable_extensions; do
7878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879     ac_cv_prog_FLEX="$ac_prog"
7880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881     break 2
7882   fi
7883 done
7884   done
7885 IFS=$as_save_IFS
7886
7887 fi
7888 fi
7889 FLEX=$ac_cv_prog_FLEX
7890 if test -n "$FLEX"; then
7891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7892 $as_echo "$FLEX" >&6; }
7893 else
7894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897
7898
7899   test -n "$FLEX" && break
7900 done
7901 test -n "$FLEX" || FLEX="$MISSING flex"
7902
7903
7904 # Bison?
7905 for ac_prog in bison
7906 do
7907   # Extract the first word of "$ac_prog", so it can be a program name with args.
7908 set dummy $ac_prog; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if test "${ac_cv_prog_BISON+set}" = set; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   if test -n "$BISON"; then
7915   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920   IFS=$as_save_IFS
7921   test -z "$as_dir" && as_dir=.
7922     for ac_exec_ext in '' $ac_executable_extensions; do
7923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7924     ac_cv_prog_BISON="$ac_prog"
7925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926     break 2
7927   fi
7928 done
7929   done
7930 IFS=$as_save_IFS
7931
7932 fi
7933 fi
7934 BISON=$ac_cv_prog_BISON
7935 if test -n "$BISON"; then
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7937 $as_echo "$BISON" >&6; }
7938 else
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7941 fi
7942
7943
7944   test -n "$BISON" && break
7945 done
7946 test -n "$BISON" || BISON="$MISSING bison"
7947
7948
7949 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7950 # check for build == host before using them.
7951
7952 # NM
7953 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7954   && test -d ../binutils ; then
7955   NM='${objdir}/../binutils/nm-new'
7956 else
7957   # Extract the first word of "nm", so it can be a program name with args.
7958 set dummy nm; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if test "${ac_cv_prog_NM+set}" = set; then :
7962   $as_echo_n "(cached) " >&6
7963 else
7964   if test -n "$NM"; then
7965   ac_cv_prog_NM="$NM" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970   IFS=$as_save_IFS
7971   test -z "$as_dir" && as_dir=.
7972     for ac_exec_ext in '' $ac_executable_extensions; do
7973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7974     ac_cv_prog_NM="nm"
7975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976     break 2
7977   fi
7978 done
7979   done
7980 IFS=$as_save_IFS
7981
7982   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7983 fi
7984 fi
7985 NM=$ac_cv_prog_NM
7986 if test -n "$NM"; then
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7988 $as_echo "$NM" >&6; }
7989 else
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994
7995 fi
7996
7997 # AR
7998 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7999   && test -d ../binutils ; then
8000   AR='${objdir}/../binutils/ar'
8001 else
8002   # Extract the first word of "ar", so it can be a program name with args.
8003 set dummy ar; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 $as_echo_n "checking for $ac_word... " >&6; }
8006 if test "${ac_cv_prog_AR+set}" = set; then :
8007   $as_echo_n "(cached) " >&6
8008 else
8009   if test -n "$AR"; then
8010   ac_cv_prog_AR="$AR" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015   IFS=$as_save_IFS
8016   test -z "$as_dir" && as_dir=.
8017     for ac_exec_ext in '' $ac_executable_extensions; do
8018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8019     ac_cv_prog_AR="ar"
8020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021     break 2
8022   fi
8023 done
8024   done
8025 IFS=$as_save_IFS
8026
8027   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8028 fi
8029 fi
8030 AR=$ac_cv_prog_AR
8031 if test -n "$AR"; then
8032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8033 $as_echo "$AR" >&6; }
8034 else
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038
8039
8040 fi
8041
8042
8043 # --------------------
8044 # Checks for C headers
8045 # --------------------
8046
8047 # Need to reject headers which give warnings, so that the -Werror bootstrap
8048 # works later. *sigh*  This needs to come before all header checks.
8049
8050 ac_c_preproc_warn_flag=yes
8051
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8053 $as_echo_n "checking for ANSI C header files... " >&6; }
8054 if test "${ac_cv_header_stdc+set}" = set; then :
8055   $as_echo_n "(cached) " >&6
8056 else
8057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h.  */
8059 #include <stdlib.h>
8060 #include <stdarg.h>
8061 #include <string.h>
8062 #include <float.h>
8063
8064 int
8065 main ()
8066 {
8067
8068   ;
8069   return 0;
8070 }
8071 _ACEOF
8072 if ac_fn_c_try_compile "$LINENO"; then :
8073   ac_cv_header_stdc=yes
8074 else
8075   ac_cv_header_stdc=no
8076 fi
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078
8079 if test $ac_cv_header_stdc = yes; then
8080   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h.  */
8083 #include <string.h>
8084
8085 _ACEOF
8086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8087   $EGREP "memchr" >/dev/null 2>&1; then :
8088
8089 else
8090   ac_cv_header_stdc=no
8091 fi
8092 rm -f conftest*
8093
8094 fi
8095
8096 if test $ac_cv_header_stdc = yes; then
8097   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h.  */
8100 #include <stdlib.h>
8101
8102 _ACEOF
8103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8104   $EGREP "free" >/dev/null 2>&1; then :
8105
8106 else
8107   ac_cv_header_stdc=no
8108 fi
8109 rm -f conftest*
8110
8111 fi
8112
8113 if test $ac_cv_header_stdc = yes; then
8114   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8115   if test "$cross_compiling" = yes; then :
8116   :
8117 else
8118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h.  */
8120 #include <ctype.h>
8121 #include <stdlib.h>
8122 #if ((' ' & 0x0FF) == 0x020)
8123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8125 #else
8126 # define ISLOWER(c) \
8127                    (('a' <= (c) && (c) <= 'i') \
8128                      || ('j' <= (c) && (c) <= 'r') \
8129                      || ('s' <= (c) && (c) <= 'z'))
8130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8131 #endif
8132
8133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8134 int
8135 main ()
8136 {
8137   int i;
8138   for (i = 0; i < 256; i++)
8139     if (XOR (islower (i), ISLOWER (i))
8140         || toupper (i) != TOUPPER (i))
8141       return 2;
8142   return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_run "$LINENO"; then :
8146
8147 else
8148   ac_cv_header_stdc=no
8149 fi
8150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8151   conftest.$ac_objext conftest.beam conftest.$ac_ext
8152 fi
8153
8154 fi
8155 fi
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8157 $as_echo "$ac_cv_header_stdc" >&6; }
8158 if test $ac_cv_header_stdc = yes; then
8159
8160 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8161
8162 fi
8163
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8165 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8166 if test "${ac_cv_header_time+set}" = set; then :
8167   $as_echo_n "(cached) " >&6
8168 else
8169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h.  */
8171 #include <sys/types.h>
8172 #include <sys/time.h>
8173 #include <time.h>
8174
8175 int
8176 main ()
8177 {
8178 if ((struct tm *) 0)
8179 return 0;
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 if ac_fn_c_try_compile "$LINENO"; then :
8185   ac_cv_header_time=yes
8186 else
8187   ac_cv_header_time=no
8188 fi
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8192 $as_echo "$ac_cv_header_time" >&6; }
8193 if test $ac_cv_header_time = yes; then
8194
8195 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8196
8197 fi
8198
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8200 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8201 if test "${gcc_cv_header_string+set}" = set; then :
8202   $as_echo_n "(cached) " >&6
8203 else
8204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h.  */
8206 #include <string.h>
8207 #include <strings.h>
8208 int
8209 main ()
8210 {
8211
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 if ac_fn_c_try_compile "$LINENO"; then :
8217   gcc_cv_header_string=yes
8218 else
8219   gcc_cv_header_string=no
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8224 $as_echo "$gcc_cv_header_string" >&6; }
8225 if test $gcc_cv_header_string = yes; then
8226
8227 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8228
8229 fi
8230
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8232 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8233 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8234   $as_echo_n "(cached) " >&6
8235 else
8236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h.  */
8238 #include <sys/types.h>
8239 #include <sys/wait.h>
8240 #ifndef WEXITSTATUS
8241 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8242 #endif
8243 #ifndef WIFEXITED
8244 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8245 #endif
8246
8247 int
8248 main ()
8249 {
8250   int s;
8251   wait (&s);
8252   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8253   ;
8254   return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_compile "$LINENO"; then :
8258   ac_cv_header_sys_wait_h=yes
8259 else
8260   ac_cv_header_sys_wait_h=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 fi
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8265 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8266 if test $ac_cv_header_sys_wait_h = yes; then
8267
8268 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8269
8270 fi
8271
8272 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8273                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8274                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8275                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8276 do :
8277   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8278 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8279 eval as_val=\$$as_ac_Header
8280    if test "x$as_val" = x""yes; then :
8281   cat >>confdefs.h <<_ACEOF
8282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8283 _ACEOF
8284
8285 fi
8286 done
8287
8288
8289 # Check for thread headers.
8290 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8291 if test "x$ac_cv_header_thread_h" = x""yes; then :
8292   have_thread_h=yes
8293 else
8294   have_thread_h=
8295 fi
8296
8297 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8298 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8299   have_pthread_h=yes
8300 else
8301   have_pthread_h=
8302 fi
8303
8304
8305 # These tests can't be done till we know if we have limits.h.
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8307 $as_echo_n "checking for CHAR_BIT... " >&6; }
8308 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h.  */
8313 #ifdef HAVE_LIMITS_H
8314 #include <limits.h>
8315 #endif
8316 #ifdef CHAR_BIT
8317 found
8318 #endif
8319 _ACEOF
8320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8321   $EGREP "found" >/dev/null 2>&1; then :
8322   gcc_cv_decl_char_bit=yes
8323 else
8324   gcc_cv_decl_char_bit=no
8325 fi
8326 rm -f conftest*
8327
8328
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8331 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8332 if test $gcc_cv_decl_char_bit = no; then
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8334 $as_echo_n "checking number of bits in a byte... " >&6; }
8335 if test "${gcc_cv_c_nbby+set}" = set; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   i=8
8339  gcc_cv_c_nbby=
8340  while test $i -lt 65; do
8341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h.  */
8343
8344 int
8345 main ()
8346 {
8347 switch(0) {
8348   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8349   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8350   ; }
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 if ac_fn_c_try_compile "$LINENO"; then :
8356   gcc_cv_c_nbby=$i; break
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359    i=`expr $i + 1`
8360  done
8361  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8362
8363 fi
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8365 $as_echo "$gcc_cv_c_nbby" >&6; }
8366 if test $gcc_cv_c_nbby = failed; then
8367   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8368 else
8369
8370 cat >>confdefs.h <<_ACEOF
8371 #define CHAR_BIT $gcc_cv_c_nbby
8372 _ACEOF
8373
8374 fi
8375 fi
8376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8377 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8378 if test "${ac_cv_c_bigendian+set}" = set; then :
8379   $as_echo_n "(cached) " >&6
8380 else
8381   ac_cv_c_bigendian=unknown
8382     # See if we're dealing with a universal compiler.
8383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h.  */
8385 #ifndef __APPLE_CC__
8386                not a universal capable compiler
8387              #endif
8388              typedef int dummy;
8389
8390 _ACEOF
8391 if ac_fn_c_try_compile "$LINENO"; then :
8392
8393         # Check for potential -arch flags.  It is not universal unless
8394         # there are at least two -arch flags with different values.
8395         ac_arch=
8396         ac_prev=
8397         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8398          if test -n "$ac_prev"; then
8399            case $ac_word in
8400              i?86 | x86_64 | ppc | ppc64)
8401                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8402                  ac_arch=$ac_word
8403                else
8404                  ac_cv_c_bigendian=universal
8405                  break
8406                fi
8407                ;;
8408            esac
8409            ac_prev=
8410          elif test "x$ac_word" = "x-arch"; then
8411            ac_prev=arch
8412          fi
8413        done
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416     if test $ac_cv_c_bigendian = unknown; then
8417       # See if sys/param.h defines the BYTE_ORDER macro.
8418       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h.  */
8420 #include <sys/types.h>
8421              #include <sys/param.h>
8422
8423 int
8424 main ()
8425 {
8426 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8427                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8428                      && LITTLE_ENDIAN)
8429               bogus endian macros
8430              #endif
8431
8432   ;
8433   return 0;
8434 }
8435 _ACEOF
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437   # It does; now see whether it defined to BIG_ENDIAN or not.
8438          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h.  */
8440 #include <sys/types.h>
8441                 #include <sys/param.h>
8442
8443 int
8444 main ()
8445 {
8446 #if BYTE_ORDER != BIG_ENDIAN
8447                  not big endian
8448                 #endif
8449
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"; then :
8455   ac_cv_c_bigendian=yes
8456 else
8457   ac_cv_c_bigendian=no
8458 fi
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462     fi
8463     if test $ac_cv_c_bigendian = unknown; then
8464       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8465       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h.  */
8467 #include <limits.h>
8468
8469 int
8470 main ()
8471 {
8472 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8473               bogus endian macros
8474              #endif
8475
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_compile "$LINENO"; then :
8481   # It does; now see whether it defined to _BIG_ENDIAN or not.
8482          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h.  */
8484 #include <limits.h>
8485
8486 int
8487 main ()
8488 {
8489 #ifndef _BIG_ENDIAN
8490                  not big endian
8491                 #endif
8492
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498   ac_cv_c_bigendian=yes
8499 else
8500   ac_cv_c_bigendian=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505     fi
8506     if test $ac_cv_c_bigendian = unknown; then
8507       # Compile a test program.
8508       if test "$cross_compiling" = yes; then :
8509   # Try to guess by grepping values from an object file.
8510          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h.  */
8512 short int ascii_mm[] =
8513                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8514                 short int ascii_ii[] =
8515                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8516                 int use_ascii (int i) {
8517                   return ascii_mm[i] + ascii_ii[i];
8518                 }
8519                 short int ebcdic_ii[] =
8520                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8521                 short int ebcdic_mm[] =
8522                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8523                 int use_ebcdic (int i) {
8524                   return ebcdic_mm[i] + ebcdic_ii[i];
8525                 }
8526                 extern int foo;
8527
8528 int
8529 main ()
8530 {
8531 return use_ascii (foo) == use_ebcdic (foo);
8532   ;
8533   return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8538               ac_cv_c_bigendian=yes
8539             fi
8540             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8541               if test "$ac_cv_c_bigendian" = unknown; then
8542                 ac_cv_c_bigendian=no
8543               else
8544                 # finding both strings is unlikely to happen, but who knows?
8545                 ac_cv_c_bigendian=unknown
8546               fi
8547             fi
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 else
8551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h.  */
8553 $ac_includes_default
8554 int
8555 main ()
8556 {
8557
8558              /* Are we little or big endian?  From Harbison&Steele.  */
8559              union
8560              {
8561                long int l;
8562                char c[sizeof (long int)];
8563              } u;
8564              u.l = 1;
8565              return u.c[sizeof (long int) - 1] == 1;
8566
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 if ac_fn_c_try_run "$LINENO"; then :
8572   ac_cv_c_bigendian=no
8573 else
8574   ac_cv_c_bigendian=yes
8575 fi
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577   conftest.$ac_objext conftest.beam conftest.$ac_ext
8578 fi
8579
8580     fi
8581 fi
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8583 $as_echo "$ac_cv_c_bigendian" >&6; }
8584  case $ac_cv_c_bigendian in #(
8585    yes)
8586      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8587 ;; #(
8588    no)
8589       ;; #(
8590    universal)
8591
8592 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8593
8594      ;; #(
8595    *)
8596      as_fn_error "unknown endianness
8597  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8598  esac
8599
8600
8601 # ----------------------
8602 # Checks for C++ headers
8603 # ----------------------
8604
8605 ac_ext=cpp
8606 ac_cpp='$CXXCPP $CPPFLAGS'
8607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8611 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8612 if test -z "$CXXCPP"; then
8613   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8614   $as_echo_n "(cached) " >&6
8615 else
8616       # Double quotes because CXXCPP needs to be expanded
8617     for CXXCPP in "$CXX -E" "/lib/cpp"
8618     do
8619       ac_preproc_ok=false
8620 for ac_cxx_preproc_warn_flag in '' yes
8621 do
8622   # Use a header file that comes with gcc, so configuring glibc
8623   # with a fresh cross-compiler works.
8624   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8625   # <limits.h> exists even on freestanding compilers.
8626   # On the NeXT, cc -E runs the code through the compiler's parser,
8627   # not just through cpp. "Syntax error" is here to catch this case.
8628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h.  */
8630 #ifdef __STDC__
8631 # include <limits.h>
8632 #else
8633 # include <assert.h>
8634 #endif
8635                      Syntax error
8636 _ACEOF
8637 if ac_fn_cxx_try_cpp "$LINENO"; then :
8638
8639 else
8640   # Broken: fails on valid input.
8641 continue
8642 fi
8643 rm -f conftest.err conftest.$ac_ext
8644
8645   # OK, works on sane cases.  Now check whether nonexistent headers
8646   # can be detected and how.
8647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h.  */
8649 #include <ac_nonexistent.h>
8650 _ACEOF
8651 if ac_fn_cxx_try_cpp "$LINENO"; then :
8652   # Broken: success on invalid input.
8653 continue
8654 else
8655   # Passes both tests.
8656 ac_preproc_ok=:
8657 break
8658 fi
8659 rm -f conftest.err conftest.$ac_ext
8660
8661 done
8662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8663 rm -f conftest.err conftest.$ac_ext
8664 if $ac_preproc_ok; then :
8665   break
8666 fi
8667
8668     done
8669     ac_cv_prog_CXXCPP=$CXXCPP
8670
8671 fi
8672   CXXCPP=$ac_cv_prog_CXXCPP
8673 else
8674   ac_cv_prog_CXXCPP=$CXXCPP
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8677 $as_echo "$CXXCPP" >&6; }
8678 ac_preproc_ok=false
8679 for ac_cxx_preproc_warn_flag in '' yes
8680 do
8681   # Use a header file that comes with gcc, so configuring glibc
8682   # with a fresh cross-compiler works.
8683   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8684   # <limits.h> exists even on freestanding compilers.
8685   # On the NeXT, cc -E runs the code through the compiler's parser,
8686   # not just through cpp. "Syntax error" is here to catch this case.
8687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h.  */
8689 #ifdef __STDC__
8690 # include <limits.h>
8691 #else
8692 # include <assert.h>
8693 #endif
8694                      Syntax error
8695 _ACEOF
8696 if ac_fn_cxx_try_cpp "$LINENO"; then :
8697
8698 else
8699   # Broken: fails on valid input.
8700 continue
8701 fi
8702 rm -f conftest.err conftest.$ac_ext
8703
8704   # OK, works on sane cases.  Now check whether nonexistent headers
8705   # can be detected and how.
8706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h.  */
8708 #include <ac_nonexistent.h>
8709 _ACEOF
8710 if ac_fn_cxx_try_cpp "$LINENO"; then :
8711   # Broken: success on invalid input.
8712 continue
8713 else
8714   # Passes both tests.
8715 ac_preproc_ok=:
8716 break
8717 fi
8718 rm -f conftest.err conftest.$ac_ext
8719
8720 done
8721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8722 rm -f conftest.err conftest.$ac_ext
8723 if $ac_preproc_ok; then :
8724
8725 else
8726   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8729 See \`config.log' for more details." >&5
8730 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8731 See \`config.log' for more details." >&2;}; }
8732 fi
8733
8734 ac_ext=c
8735 ac_cpp='$CPP $CPPFLAGS'
8736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8739
8740
8741 ac_ext=cpp
8742 ac_cpp='$CXXCPP $CPPFLAGS'
8743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8746
8747
8748
8749
8750 for ac_header in unordered_map
8751 do :
8752   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8753 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8754   cat >>confdefs.h <<_ACEOF
8755 #define HAVE_UNORDERED_MAP 1
8756 _ACEOF
8757
8758 fi
8759 done
8760
8761 for ac_header in tr1/unordered_map
8762 do :
8763   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8764 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8765   cat >>confdefs.h <<_ACEOF
8766 #define HAVE_TR1_UNORDERED_MAP 1
8767 _ACEOF
8768
8769 fi
8770 done
8771
8772 for ac_header in ext/hash_map
8773 do :
8774   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8775 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8776   cat >>confdefs.h <<_ACEOF
8777 #define HAVE_EXT_HASH_MAP 1
8778 _ACEOF
8779
8780 fi
8781 done
8782
8783
8784 ac_ext=c
8785 ac_cpp='$CPP $CPPFLAGS'
8786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8789
8790
8791 # --------
8792 # UNSORTED
8793 # --------
8794
8795
8796 # These libraries may be used by collect2.
8797 # We may need a special search path to get them linked.
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8799 $as_echo_n "checking for collect2 libraries... " >&6; }
8800 if test "${gcc_cv_collect2_libs+set}" = set; then :
8801   $as_echo_n "(cached) " >&6
8802 else
8803   save_LIBS="$LIBS"
8804 for libs in '' -lld -lmld \
8805                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8806                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8807 do
8808         LIBS="$libs"
8809         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h.  */
8811
8812 /* Override any GCC internal prototype to avoid an error.
8813    Use char because int might match the return type of a GCC
8814    builtin and then its argument prototype would still apply.  */
8815 #ifdef __cplusplus
8816 extern "C"
8817 #endif
8818 char ldopen ();
8819 int
8820 main ()
8821 {
8822 return ldopen ();
8823   ;
8824   return 0;
8825 }
8826 _ACEOF
8827 if ac_fn_c_try_link "$LINENO"; then :
8828   gcc_cv_collect2_libs="$libs"; break
8829 fi
8830 rm -f core conftest.err conftest.$ac_objext \
8831     conftest$ac_exeext conftest.$ac_ext
8832 done
8833 LIBS="$save_LIBS"
8834 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8837 $as_echo "$gcc_cv_collect2_libs" >&6; }
8838 case $gcc_cv_collect2_libs in
8839         "none required")        ;;
8840         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8841 esac
8842
8843
8844 # When building Ada code on Alpha, we need exc_resume which is usually in
8845 # -lexc.  So test for it.
8846 save_LIBS="$LIBS"
8847 LIBS=
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8849 $as_echo_n "checking for library containing exc_resume... " >&6; }
8850 if test "${ac_cv_search_exc_resume+set}" = set; then :
8851   $as_echo_n "(cached) " >&6
8852 else
8853   ac_func_search_save_LIBS=$LIBS
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h.  */
8856
8857 /* Override any GCC internal prototype to avoid an error.
8858    Use char because int might match the return type of a GCC
8859    builtin and then its argument prototype would still apply.  */
8860 #ifdef __cplusplus
8861 extern "C"
8862 #endif
8863 char exc_resume ();
8864 int
8865 main ()
8866 {
8867 return exc_resume ();
8868   ;
8869   return 0;
8870 }
8871 _ACEOF
8872 for ac_lib in '' exc; do
8873   if test -z "$ac_lib"; then
8874     ac_res="none required"
8875   else
8876     ac_res=-l$ac_lib
8877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8878   fi
8879   if ac_fn_c_try_link "$LINENO"; then :
8880   ac_cv_search_exc_resume=$ac_res
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext \
8883     conftest$ac_exeext
8884   if test "${ac_cv_search_exc_resume+set}" = set; then :
8885   break
8886 fi
8887 done
8888 if test "${ac_cv_search_exc_resume+set}" = set; then :
8889
8890 else
8891   ac_cv_search_exc_resume=no
8892 fi
8893 rm conftest.$ac_ext
8894 LIBS=$ac_func_search_save_LIBS
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8897 $as_echo "$ac_cv_search_exc_resume" >&6; }
8898 ac_res=$ac_cv_search_exc_resume
8899 if test "$ac_res" != no; then :
8900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8901
8902 fi
8903
8904 GNAT_LIBEXC="$LIBS"
8905 LIBS="$save_LIBS"
8906
8907
8908 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8909 save_LIBS="$LIBS"
8910 LIBS=
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8912 $as_echo_n "checking for library containing kstat_open... " >&6; }
8913 if test "${ac_cv_search_kstat_open+set}" = set; then :
8914   $as_echo_n "(cached) " >&6
8915 else
8916   ac_func_search_save_LIBS=$LIBS
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h.  */
8919
8920 /* Override any GCC internal prototype to avoid an error.
8921    Use char because int might match the return type of a GCC
8922    builtin and then its argument prototype would still apply.  */
8923 #ifdef __cplusplus
8924 extern "C"
8925 #endif
8926 char kstat_open ();
8927 int
8928 main ()
8929 {
8930 return kstat_open ();
8931   ;
8932   return 0;
8933 }
8934 _ACEOF
8935 for ac_lib in '' kstat; do
8936   if test -z "$ac_lib"; then
8937     ac_res="none required"
8938   else
8939     ac_res=-l$ac_lib
8940     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8941   fi
8942   if ac_fn_c_try_link "$LINENO"; then :
8943   ac_cv_search_kstat_open=$ac_res
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext \
8946     conftest$ac_exeext
8947   if test "${ac_cv_search_kstat_open+set}" = set; then :
8948   break
8949 fi
8950 done
8951 if test "${ac_cv_search_kstat_open+set}" = set; then :
8952
8953 else
8954   ac_cv_search_kstat_open=no
8955 fi
8956 rm conftest.$ac_ext
8957 LIBS=$ac_func_search_save_LIBS
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8960 $as_echo "$ac_cv_search_kstat_open" >&6; }
8961 ac_res=$ac_cv_search_kstat_open
8962 if test "$ac_res" != no; then :
8963   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8964
8965 fi
8966
8967 EXTRA_GCC_LIBS="$LIBS"
8968 LIBS="$save_LIBS"
8969
8970
8971 # Some systems put ldexp and frexp in libm instead of libc; assume
8972 # they're both in the same place.  jcf-dump needs them.
8973 save_LIBS="$LIBS"
8974 LIBS=
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8976 $as_echo_n "checking for library containing ldexp... " >&6; }
8977 if test "${ac_cv_search_ldexp+set}" = set; then :
8978   $as_echo_n "(cached) " >&6
8979 else
8980   ac_func_search_save_LIBS=$LIBS
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h.  */
8983
8984 /* Override any GCC internal prototype to avoid an error.
8985    Use char because int might match the return type of a GCC
8986    builtin and then its argument prototype would still apply.  */
8987 #ifdef __cplusplus
8988 extern "C"
8989 #endif
8990 char ldexp ();
8991 int
8992 main ()
8993 {
8994 return ldexp ();
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 for ac_lib in '' m; do
9000   if test -z "$ac_lib"; then
9001     ac_res="none required"
9002   else
9003     ac_res=-l$ac_lib
9004     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9005   fi
9006   if ac_fn_c_try_link "$LINENO"; then :
9007   ac_cv_search_ldexp=$ac_res
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext \
9010     conftest$ac_exeext
9011   if test "${ac_cv_search_ldexp+set}" = set; then :
9012   break
9013 fi
9014 done
9015 if test "${ac_cv_search_ldexp+set}" = set; then :
9016
9017 else
9018   ac_cv_search_ldexp=no
9019 fi
9020 rm conftest.$ac_ext
9021 LIBS=$ac_func_search_save_LIBS
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9024 $as_echo "$ac_cv_search_ldexp" >&6; }
9025 ac_res=$ac_cv_search_ldexp
9026 if test "$ac_res" != no; then :
9027   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9028
9029 fi
9030
9031 LDEXP_LIB="$LIBS"
9032 LIBS="$save_LIBS"
9033
9034
9035 # Use <inttypes.h> only if it exists,
9036 # doesn't clash with <sys/types.h>, and declares intmax_t.
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9038 $as_echo_n "checking for inttypes.h... " >&6; }
9039 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9040   $as_echo_n "(cached) " >&6
9041 else
9042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h.  */
9044 #include <sys/types.h>
9045 #include <inttypes.h>
9046 int
9047 main ()
9048 {
9049 intmax_t i = -1;
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_compile "$LINENO"; then :
9055   gcc_cv_header_inttypes_h=yes
9056 else
9057   gcc_cv_header_inttypes_h=no
9058 fi
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060 fi
9061
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9063 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9064 if test $gcc_cv_header_inttypes_h = yes; then
9065
9066 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9067
9068 fi
9069
9070
9071
9072 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9073         sysconf strsignal getrusage nl_langinfo \
9074         gettimeofday mbstowcs wcswidth mmap setlocale \
9075         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
9076 do :
9077   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9079 eval as_val=\$$as_ac_var
9080    if test "x$as_val" = x""yes; then :
9081   cat >>confdefs.h <<_ACEOF
9082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9083 _ACEOF
9084
9085 fi
9086 done
9087
9088
9089 if test x$ac_cv_func_mbstowcs = xyes; then
9090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9091 $as_echo_n "checking whether mbstowcs works... " >&6; }
9092 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9093   $as_echo_n "(cached) " >&6
9094 else
9095       if test "$cross_compiling" = yes; then :
9096   gcc_cv_func_mbstowcs_works=yes
9097 else
9098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h.  */
9100 #include <stdlib.h>
9101 int main()
9102 {
9103   mbstowcs(0, "", 0);
9104   return 0;
9105 }
9106 _ACEOF
9107 if ac_fn_c_try_run "$LINENO"; then :
9108   gcc_cv_func_mbstowcs_works=yes
9109 else
9110   gcc_cv_func_mbstowcs_works=no
9111 fi
9112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9113   conftest.$ac_objext conftest.beam conftest.$ac_ext
9114 fi
9115
9116 fi
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9118 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9119   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9120
9121 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9122
9123   fi
9124 fi
9125
9126 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9127 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9128
9129 else
9130
9131 cat >>confdefs.h <<_ACEOF
9132 #define ssize_t int
9133 _ACEOF
9134
9135 fi
9136
9137 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9138 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9139
9140 else
9141
9142 cat >>confdefs.h <<_ACEOF
9143 #define caddr_t char *
9144 _ACEOF
9145
9146 fi
9147
9148
9149
9150 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9151 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9152   gcc_header_sys_mman_h=yes
9153 else
9154   gcc_header_sys_mman_h=no
9155 fi
9156
9157 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9158 if test "x$ac_cv_func_mmap" = x""yes; then :
9159   gcc_func_mmap=yes
9160 else
9161   gcc_func_mmap=no
9162 fi
9163
9164 if test "$gcc_header_sys_mman_h" != yes \
9165  || test "$gcc_func_mmap" != yes; then
9166    gcc_cv_func_mmap_file=no
9167    gcc_cv_func_mmap_dev_zero=no
9168    gcc_cv_func_mmap_anon=no
9169 else
9170    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9171 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9172 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9173   $as_echo_n "(cached) " >&6
9174 else
9175   # Add a system to this blacklist if
9176    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9177    # memory area containing the same data that you'd get if you applied
9178    # read() to the same fd.  The only system known to have a problem here
9179    # is VMS, where text files have record structure.
9180    case "$host_os" in
9181      vms* | ultrix*)
9182         gcc_cv_func_mmap_file=no ;;
9183      *)
9184         gcc_cv_func_mmap_file=yes;;
9185    esac
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9188 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9190 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9191 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9192   $as_echo_n "(cached) " >&6
9193 else
9194   # Add a system to this blacklist if it has mmap() but /dev/zero
9195    # does not exist, or if mmapping /dev/zero does not give anonymous
9196    # zeroed pages with both the following properties:
9197    # 1. If you map N consecutive pages in with one call, and then
9198    #    unmap any subset of those pages, the pages that were not
9199    #    explicitly unmapped remain accessible.
9200    # 2. If you map two adjacent blocks of memory and then unmap them
9201    #    both at once, they must both go away.
9202    # Systems known to be in this category are Windows (all variants),
9203    # VMS, and Darwin.
9204    case "$host_os" in
9205      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9206         gcc_cv_func_mmap_dev_zero=no ;;
9207      *)
9208         gcc_cv_func_mmap_dev_zero=yes;;
9209    esac
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9212 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9213
9214    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9216 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9217 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9218   $as_echo_n "(cached) " >&6
9219 else
9220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h.  */
9222 #include <sys/types.h>
9223 #include <sys/mman.h>
9224 #include <unistd.h>
9225
9226 #ifndef MAP_ANONYMOUS
9227 #define MAP_ANONYMOUS MAP_ANON
9228 #endif
9229
9230 int
9231 main ()
9232 {
9233 int n = MAP_ANONYMOUS;
9234   ;
9235   return 0;
9236 }
9237 _ACEOF
9238 if ac_fn_c_try_compile "$LINENO"; then :
9239   gcc_cv_decl_map_anon=yes
9240 else
9241   gcc_cv_decl_map_anon=no
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9246 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9247
9248    if test $gcc_cv_decl_map_anon = no; then
9249      gcc_cv_func_mmap_anon=no
9250    else
9251      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9252 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9253 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9254   $as_echo_n "(cached) " >&6
9255 else
9256   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9257    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9258    # doesn't give anonymous zeroed pages with the same properties listed
9259    # above for use of /dev/zero.
9260    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9261    case "$host_os" in
9262      vms* | cygwin* | pe | mingw* | sco* | udk* )
9263         gcc_cv_func_mmap_anon=no ;;
9264      *)
9265         gcc_cv_func_mmap_anon=yes;;
9266    esac
9267 fi
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9269 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9270    fi
9271 fi
9272
9273 if test $gcc_cv_func_mmap_file = yes; then
9274
9275 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9276
9277 fi
9278 if test $gcc_cv_func_mmap_dev_zero = yes; then
9279
9280 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9281
9282 fi
9283 if test $gcc_cv_func_mmap_anon = yes; then
9284
9285 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9286
9287 fi
9288
9289
9290 case "${host}" in
9291 *-*-*vms*)
9292   # Under VMS, vfork works very differently than on Unix. The standard test
9293   # won't work, and it isn't easily adaptable. It makes more sense to
9294   # just force it.
9295   ac_cv_func_vfork_works=yes
9296   ;;
9297 esac
9298 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9299 if test "x$ac_cv_type_pid_t" = x""yes; then :
9300
9301 else
9302
9303 cat >>confdefs.h <<_ACEOF
9304 #define pid_t int
9305 _ACEOF
9306
9307 fi
9308
9309 for ac_header in vfork.h
9310 do :
9311   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9312 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9313   cat >>confdefs.h <<_ACEOF
9314 #define HAVE_VFORK_H 1
9315 _ACEOF
9316
9317 fi
9318 done
9319
9320 for ac_func in fork vfork
9321 do :
9322   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9324 eval as_val=\$$as_ac_var
9325    if test "x$as_val" = x""yes; then :
9326   cat >>confdefs.h <<_ACEOF
9327 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9328 _ACEOF
9329
9330 fi
9331 done
9332
9333 if test "x$ac_cv_func_fork" = xyes; then
9334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9335 $as_echo_n "checking for working fork... " >&6; }
9336 if test "${ac_cv_func_fork_works+set}" = set; then :
9337   $as_echo_n "(cached) " >&6
9338 else
9339   if test "$cross_compiling" = yes; then :
9340   ac_cv_func_fork_works=cross
9341 else
9342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h.  */
9344 $ac_includes_default
9345 int
9346 main ()
9347 {
9348
9349           /* By Ruediger Kuhlmann. */
9350           return fork () < 0;
9351
9352   ;
9353   return 0;
9354 }
9355 _ACEOF
9356 if ac_fn_c_try_run "$LINENO"; then :
9357   ac_cv_func_fork_works=yes
9358 else
9359   ac_cv_func_fork_works=no
9360 fi
9361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9362   conftest.$ac_objext conftest.beam conftest.$ac_ext
9363 fi
9364
9365 fi
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9367 $as_echo "$ac_cv_func_fork_works" >&6; }
9368
9369 else
9370   ac_cv_func_fork_works=$ac_cv_func_fork
9371 fi
9372 if test "x$ac_cv_func_fork_works" = xcross; then
9373   case $host in
9374     *-*-amigaos* | *-*-msdosdjgpp*)
9375       # Override, as these systems have only a dummy fork() stub
9376       ac_cv_func_fork_works=no
9377       ;;
9378     *)
9379       ac_cv_func_fork_works=yes
9380       ;;
9381   esac
9382   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9383 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9384 fi
9385 ac_cv_func_vfork_works=$ac_cv_func_vfork
9386 if test "x$ac_cv_func_vfork" = xyes; then
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9388 $as_echo_n "checking for working vfork... " >&6; }
9389 if test "${ac_cv_func_vfork_works+set}" = set; then :
9390   $as_echo_n "(cached) " >&6
9391 else
9392   if test "$cross_compiling" = yes; then :
9393   ac_cv_func_vfork_works=cross
9394 else
9395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h.  */
9397 /* Thanks to Paul Eggert for this test.  */
9398 $ac_includes_default
9399 #include <sys/wait.h>
9400 #ifdef HAVE_VFORK_H
9401 # include <vfork.h>
9402 #endif
9403 /* On some sparc systems, changes by the child to local and incoming
9404    argument registers are propagated back to the parent.  The compiler
9405    is told about this with #include <vfork.h>, but some compilers
9406    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9407    static variable whose address is put into a register that is
9408    clobbered by the vfork.  */
9409 static void
9410 #ifdef __cplusplus
9411 sparc_address_test (int arg)
9412 # else
9413 sparc_address_test (arg) int arg;
9414 #endif
9415 {
9416   static pid_t child;
9417   if (!child) {
9418     child = vfork ();
9419     if (child < 0) {
9420       perror ("vfork");
9421       _exit(2);
9422     }
9423     if (!child) {
9424       arg = getpid();
9425       write(-1, "", 0);
9426       _exit (arg);
9427     }
9428   }
9429 }
9430
9431 int
9432 main ()
9433 {
9434   pid_t parent = getpid ();
9435   pid_t child;
9436
9437   sparc_address_test (0);
9438
9439   child = vfork ();
9440
9441   if (child == 0) {
9442     /* Here is another test for sparc vfork register problems.  This
9443        test uses lots of local variables, at least as many local
9444        variables as main has allocated so far including compiler
9445        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9446        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9447        reuse the register of parent for one of the local variables,
9448        since it will think that parent can't possibly be used any more
9449        in this routine.  Assigning to the local variable will thus
9450        munge parent in the parent process.  */
9451     pid_t
9452       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9453       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9454     /* Convince the compiler that p..p7 are live; otherwise, it might
9455        use the same hardware register for all 8 local variables.  */
9456     if (p != p1 || p != p2 || p != p3 || p != p4
9457         || p != p5 || p != p6 || p != p7)
9458       _exit(1);
9459
9460     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9461        from child file descriptors.  If the child closes a descriptor
9462        before it execs or exits, this munges the parent's descriptor
9463        as well.  Test for this by closing stdout in the child.  */
9464     _exit(close(fileno(stdout)) != 0);
9465   } else {
9466     int status;
9467     struct stat st;
9468
9469     while (wait(&status) != child)
9470       ;
9471     return (
9472          /* Was there some problem with vforking?  */
9473          child < 0
9474
9475          /* Did the child fail?  (This shouldn't happen.)  */
9476          || status
9477
9478          /* Did the vfork/compiler bug occur?  */
9479          || parent != getpid()
9480
9481          /* Did the file descriptor bug occur?  */
9482          || fstat(fileno(stdout), &st) != 0
9483          );
9484   }
9485 }
9486 _ACEOF
9487 if ac_fn_c_try_run "$LINENO"; then :
9488   ac_cv_func_vfork_works=yes
9489 else
9490   ac_cv_func_vfork_works=no
9491 fi
9492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9493   conftest.$ac_objext conftest.beam conftest.$ac_ext
9494 fi
9495
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9498 $as_echo "$ac_cv_func_vfork_works" >&6; }
9499
9500 fi;
9501 if test "x$ac_cv_func_fork_works" = xcross; then
9502   ac_cv_func_vfork_works=$ac_cv_func_vfork
9503   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9504 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9505 fi
9506
9507 if test "x$ac_cv_func_vfork_works" = xyes; then
9508
9509 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9510
9511 else
9512
9513 $as_echo "#define vfork fork" >>confdefs.h
9514
9515 fi
9516 if test "x$ac_cv_func_fork_works" = xyes; then
9517
9518 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9519
9520 fi
9521
9522
9523 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9524 # iconv() prototype.
9525
9526       if test "X$prefix" = "XNONE"; then
9527     acl_final_prefix="$ac_default_prefix"
9528   else
9529     acl_final_prefix="$prefix"
9530   fi
9531   if test "X$exec_prefix" = "XNONE"; then
9532     acl_final_exec_prefix='${prefix}'
9533   else
9534     acl_final_exec_prefix="$exec_prefix"
9535   fi
9536   acl_save_prefix="$prefix"
9537   prefix="$acl_final_prefix"
9538   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9539   prefix="$acl_save_prefix"
9540
9541
9542 # Check whether --with-gnu-ld was given.
9543 if test "${with_gnu_ld+set}" = set; then :
9544   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9545 else
9546   with_gnu_ld=no
9547 fi
9548
9549 # Prepare PATH_SEPARATOR.
9550 # The user is always right.
9551 if test "${PATH_SEPARATOR+set}" != set; then
9552   echo "#! /bin/sh" >conf$$.sh
9553   echo  "exit 0"   >>conf$$.sh
9554   chmod +x conf$$.sh
9555   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9556     PATH_SEPARATOR=';'
9557   else
9558     PATH_SEPARATOR=:
9559   fi
9560   rm -f conf$$.sh
9561 fi
9562 ac_prog=ld
9563 if test "$GCC" = yes; then
9564   # Check if gcc -print-prog-name=ld gives a path.
9565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9566 $as_echo_n "checking for ld used by GCC... " >&6; }
9567   case $host in
9568   *-*-mingw*)
9569     # gcc leaves a trailing carriage return which upsets mingw
9570     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9571   *)
9572     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9573   esac
9574   case $ac_prog in
9575     # Accept absolute paths.
9576     [\\/]* | [A-Za-z]:[\\/]*)
9577       re_direlt='/[^/][^/]*/\.\./'
9578       # Canonicalize the path of ld
9579       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9580       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9581         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9582       done
9583       test -z "$LD" && LD="$ac_prog"
9584       ;;
9585   "")
9586     # If it fails, then pretend we aren't using GCC.
9587     ac_prog=ld
9588     ;;
9589   *)
9590     # If it is relative, then search for the first ld in PATH.
9591     with_gnu_ld=unknown
9592     ;;
9593   esac
9594 elif test "$with_gnu_ld" = yes; then
9595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9596 $as_echo_n "checking for GNU ld... " >&6; }
9597 else
9598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9599 $as_echo_n "checking for non-GNU ld... " >&6; }
9600 fi
9601 if test "${acl_cv_path_LD+set}" = set; then :
9602   $as_echo_n "(cached) " >&6
9603 else
9604   if test -z "$LD"; then
9605   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9606   for ac_dir in $PATH; do
9607     test -z "$ac_dir" && ac_dir=.
9608     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9609       acl_cv_path_LD="$ac_dir/$ac_prog"
9610       # Check to see if the program is GNU ld.  I'd rather use --version,
9611       # but apparently some GNU ld's only accept -v.
9612       # Break only if it was the GNU/non-GNU ld that we prefer.
9613       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9614         test "$with_gnu_ld" != no && break
9615       else
9616         test "$with_gnu_ld" != yes && break
9617       fi
9618     fi
9619   done
9620   IFS="$ac_save_ifs"
9621 else
9622   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9623 fi
9624 fi
9625
9626 LD="$acl_cv_path_LD"
9627 if test -n "$LD"; then
9628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9629 $as_echo "$LD" >&6; }
9630 else
9631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9633 fi
9634 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9636 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9637 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9638   $as_echo_n "(cached) " >&6
9639 else
9640   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9641 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9642   acl_cv_prog_gnu_ld=yes
9643 else
9644   acl_cv_prog_gnu_ld=no
9645 fi
9646 fi
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9648 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9649 with_gnu_ld=$acl_cv_prog_gnu_ld
9650
9651
9652
9653                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9654 $as_echo_n "checking for shared library run path origin... " >&6; }
9655 if test "${acl_cv_rpath+set}" = set; then :
9656   $as_echo_n "(cached) " >&6
9657 else
9658
9659     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9660     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9661     . ./conftest.sh
9662     rm -f ./conftest.sh
9663     acl_cv_rpath=done
9664
9665 fi
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9667 $as_echo "$acl_cv_rpath" >&6; }
9668   wl="$acl_cv_wl"
9669   libext="$acl_cv_libext"
9670   shlibext="$acl_cv_shlibext"
9671   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9672   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9673   hardcode_direct="$acl_cv_hardcode_direct"
9674   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9675     # Check whether --enable-rpath was given.
9676 if test "${enable_rpath+set}" = set; then :
9677   enableval=$enable_rpath; :
9678 else
9679   enable_rpath=yes
9680 fi
9681
9682
9683
9684
9685
9686
9687
9688
9689     use_additional=yes
9690
9691   acl_save_prefix="$prefix"
9692   prefix="$acl_final_prefix"
9693   acl_save_exec_prefix="$exec_prefix"
9694   exec_prefix="$acl_final_exec_prefix"
9695
9696     eval additional_includedir=\"$includedir\"
9697     eval additional_libdir=\"$libdir\"
9698
9699   exec_prefix="$acl_save_exec_prefix"
9700   prefix="$acl_save_prefix"
9701
9702
9703 # Check whether --with-libiconv-prefix was given.
9704 if test "${with_libiconv_prefix+set}" = set; then :
9705   withval=$with_libiconv_prefix;
9706     if test "X$withval" = "Xno"; then
9707       use_additional=no
9708     else
9709       if test "X$withval" = "X"; then
9710
9711   acl_save_prefix="$prefix"
9712   prefix="$acl_final_prefix"
9713   acl_save_exec_prefix="$exec_prefix"
9714   exec_prefix="$acl_final_exec_prefix"
9715
9716           eval additional_includedir=\"$includedir\"
9717           eval additional_libdir=\"$libdir\"
9718
9719   exec_prefix="$acl_save_exec_prefix"
9720   prefix="$acl_save_prefix"
9721
9722       else
9723         additional_includedir="$withval/include"
9724         additional_libdir="$withval/lib"
9725       fi
9726     fi
9727
9728 fi
9729
9730       LIBICONV=
9731   LTLIBICONV=
9732   INCICONV=
9733   rpathdirs=
9734   ltrpathdirs=
9735   names_already_handled=
9736   names_next_round='iconv '
9737   while test -n "$names_next_round"; do
9738     names_this_round="$names_next_round"
9739     names_next_round=
9740     for name in $names_this_round; do
9741       already_handled=
9742       for n in $names_already_handled; do
9743         if test "$n" = "$name"; then
9744           already_handled=yes
9745           break
9746         fi
9747       done
9748       if test -z "$already_handled"; then
9749         names_already_handled="$names_already_handled $name"
9750                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9751         eval value=\"\$HAVE_LIB$uppername\"
9752         if test -n "$value"; then
9753           if test "$value" = yes; then
9754             eval value=\"\$LIB$uppername\"
9755             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9756             eval value=\"\$LTLIB$uppername\"
9757             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9758           else
9759                                     :
9760           fi
9761         else
9762                               found_dir=
9763           found_la=
9764           found_so=
9765           found_a=
9766           if test $use_additional = yes; then
9767             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9768               found_dir="$additional_libdir"
9769               found_so="$additional_libdir/lib$name.$shlibext"
9770               if test -f "$additional_libdir/lib$name.la"; then
9771                 found_la="$additional_libdir/lib$name.la"
9772               fi
9773             else
9774               if test -f "$additional_libdir/lib$name.$libext"; then
9775                 found_dir="$additional_libdir"
9776                 found_a="$additional_libdir/lib$name.$libext"
9777                 if test -f "$additional_libdir/lib$name.la"; then
9778                   found_la="$additional_libdir/lib$name.la"
9779                 fi
9780               fi
9781             fi
9782           fi
9783           if test "X$found_dir" = "X"; then
9784             for x in $LDFLAGS $LTLIBICONV; do
9785
9786   acl_save_prefix="$prefix"
9787   prefix="$acl_final_prefix"
9788   acl_save_exec_prefix="$exec_prefix"
9789   exec_prefix="$acl_final_exec_prefix"
9790   eval x=\"$x\"
9791   exec_prefix="$acl_save_exec_prefix"
9792   prefix="$acl_save_prefix"
9793
9794               case "$x" in
9795                 -L*)
9796                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9797                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9798                     found_dir="$dir"
9799                     found_so="$dir/lib$name.$shlibext"
9800                     if test -f "$dir/lib$name.la"; then
9801                       found_la="$dir/lib$name.la"
9802                     fi
9803                   else
9804                     if test -f "$dir/lib$name.$libext"; then
9805                       found_dir="$dir"
9806                       found_a="$dir/lib$name.$libext"
9807                       if test -f "$dir/lib$name.la"; then
9808                         found_la="$dir/lib$name.la"
9809                       fi
9810                     fi
9811                   fi
9812                   ;;
9813               esac
9814               if test "X$found_dir" != "X"; then
9815                 break
9816               fi
9817             done
9818           fi
9819           if test "X$found_dir" != "X"; then
9820                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9821             if test "X$found_so" != "X"; then
9822                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9823                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9824               else
9825                                                                                 haveit=
9826                 for x in $ltrpathdirs; do
9827                   if test "X$x" = "X$found_dir"; then
9828                     haveit=yes
9829                     break
9830                   fi
9831                 done
9832                 if test -z "$haveit"; then
9833                   ltrpathdirs="$ltrpathdirs $found_dir"
9834                 fi
9835                                 if test "$hardcode_direct" = yes; then
9836                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9837                 else
9838                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9839                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9840                                                             haveit=
9841                     for x in $rpathdirs; do
9842                       if test "X$x" = "X$found_dir"; then
9843                         haveit=yes
9844                         break
9845                       fi
9846                     done
9847                     if test -z "$haveit"; then
9848                       rpathdirs="$rpathdirs $found_dir"
9849                     fi
9850                   else
9851                                                                                 haveit=
9852                     for x in $LDFLAGS $LIBICONV; do
9853
9854   acl_save_prefix="$prefix"
9855   prefix="$acl_final_prefix"
9856   acl_save_exec_prefix="$exec_prefix"
9857   exec_prefix="$acl_final_exec_prefix"
9858   eval x=\"$x\"
9859   exec_prefix="$acl_save_exec_prefix"
9860   prefix="$acl_save_prefix"
9861
9862                       if test "X$x" = "X-L$found_dir"; then
9863                         haveit=yes
9864                         break
9865                       fi
9866                     done
9867                     if test -z "$haveit"; then
9868                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9869                     fi
9870                     if test "$hardcode_minus_L" != no; then
9871                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9872                     else
9873                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9874                     fi
9875                   fi
9876                 fi
9877               fi
9878             else
9879               if test "X$found_a" != "X"; then
9880                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9881               else
9882                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9883               fi
9884             fi
9885                         additional_includedir=
9886             case "$found_dir" in
9887               */lib | */lib/)
9888                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9889                 additional_includedir="$basedir/include"
9890                 ;;
9891             esac
9892             if test "X$additional_includedir" != "X"; then
9893                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9894                 haveit=
9895                 if test "X$additional_includedir" = "X/usr/local/include"; then
9896                   if test -n "$GCC"; then
9897                     case $host_os in
9898                       linux*) haveit=yes;;
9899                     esac
9900                   fi
9901                 fi
9902                 if test -z "$haveit"; then
9903                   for x in $CPPFLAGS $INCICONV; do
9904
9905   acl_save_prefix="$prefix"
9906   prefix="$acl_final_prefix"
9907   acl_save_exec_prefix="$exec_prefix"
9908   exec_prefix="$acl_final_exec_prefix"
9909   eval x=\"$x\"
9910   exec_prefix="$acl_save_exec_prefix"
9911   prefix="$acl_save_prefix"
9912
9913                     if test "X$x" = "X-I$additional_includedir"; then
9914                       haveit=yes
9915                       break
9916                     fi
9917                   done
9918                   if test -z "$haveit"; then
9919                     if test -d "$additional_includedir"; then
9920                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9921                     fi
9922                   fi
9923                 fi
9924               fi
9925             fi
9926                         if test -n "$found_la"; then
9927                                                         save_libdir="$libdir"
9928               case "$found_la" in
9929                 */* | *\\*) . "$found_la" ;;
9930                 *) . "./$found_la" ;;
9931               esac
9932               libdir="$save_libdir"
9933                             for dep in $dependency_libs; do
9934                 case "$dep" in
9935                   -L*)
9936                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9937                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9938                       haveit=
9939                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9940                         if test -n "$GCC"; then
9941                           case $host_os in
9942                             linux*) haveit=yes;;
9943                           esac
9944                         fi
9945                       fi
9946                       if test -z "$haveit"; then
9947                         haveit=
9948                         for x in $LDFLAGS $LIBICONV; do
9949
9950   acl_save_prefix="$prefix"
9951   prefix="$acl_final_prefix"
9952   acl_save_exec_prefix="$exec_prefix"
9953   exec_prefix="$acl_final_exec_prefix"
9954   eval x=\"$x\"
9955   exec_prefix="$acl_save_exec_prefix"
9956   prefix="$acl_save_prefix"
9957
9958                           if test "X$x" = "X-L$additional_libdir"; then
9959                             haveit=yes
9960                             break
9961                           fi
9962                         done
9963                         if test -z "$haveit"; then
9964                           if test -d "$additional_libdir"; then
9965                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9966                           fi
9967                         fi
9968                         haveit=
9969                         for x in $LDFLAGS $LTLIBICONV; do
9970
9971   acl_save_prefix="$prefix"
9972   prefix="$acl_final_prefix"
9973   acl_save_exec_prefix="$exec_prefix"
9974   exec_prefix="$acl_final_exec_prefix"
9975   eval x=\"$x\"
9976   exec_prefix="$acl_save_exec_prefix"
9977   prefix="$acl_save_prefix"
9978
9979                           if test "X$x" = "X-L$additional_libdir"; then
9980                             haveit=yes
9981                             break
9982                           fi
9983                         done
9984                         if test -z "$haveit"; then
9985                           if test -d "$additional_libdir"; then
9986                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9987                           fi
9988                         fi
9989                       fi
9990                     fi
9991                     ;;
9992                   -R*)
9993                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9994                     if test "$enable_rpath" != no; then
9995                                                                   haveit=
9996                       for x in $rpathdirs; do
9997                         if test "X$x" = "X$dir"; then
9998                           haveit=yes
9999                           break
10000                         fi
10001                       done
10002                       if test -z "$haveit"; then
10003                         rpathdirs="$rpathdirs $dir"
10004                       fi
10005                                                                   haveit=
10006                       for x in $ltrpathdirs; do
10007                         if test "X$x" = "X$dir"; then
10008                           haveit=yes
10009                           break
10010                         fi
10011                       done
10012                       if test -z "$haveit"; then
10013                         ltrpathdirs="$ltrpathdirs $dir"
10014                       fi
10015                     fi
10016                     ;;
10017                   -l*)
10018                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10019                     ;;
10020                   *.la)
10021                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10022                     ;;
10023                   *)
10024                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10025                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10026                     ;;
10027                 esac
10028               done
10029             fi
10030           else
10031                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10032             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10033           fi
10034         fi
10035       fi
10036     done
10037   done
10038   if test "X$rpathdirs" != "X"; then
10039     if test -n "$hardcode_libdir_separator"; then
10040                         alldirs=
10041       for found_dir in $rpathdirs; do
10042         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10043       done
10044             acl_save_libdir="$libdir"
10045       libdir="$alldirs"
10046       eval flag=\"$hardcode_libdir_flag_spec\"
10047       libdir="$acl_save_libdir"
10048       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10049     else
10050             for found_dir in $rpathdirs; do
10051         acl_save_libdir="$libdir"
10052         libdir="$found_dir"
10053         eval flag=\"$hardcode_libdir_flag_spec\"
10054         libdir="$acl_save_libdir"
10055         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10056       done
10057     fi
10058   fi
10059   if test "X$ltrpathdirs" != "X"; then
10060             for found_dir in $ltrpathdirs; do
10061       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10062     done
10063   fi
10064
10065
10066 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10067   ac_ext=cpp
10068 ac_cpp='$CXXCPP $CPPFLAGS'
10069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10072
10073
10074
10075
10076
10077
10078           am_save_CPPFLAGS="$CPPFLAGS"
10079
10080   for element in $INCICONV; do
10081     haveit=
10082     for x in $CPPFLAGS; do
10083
10084   acl_save_prefix="$prefix"
10085   prefix="$acl_final_prefix"
10086   acl_save_exec_prefix="$exec_prefix"
10087   exec_prefix="$acl_final_exec_prefix"
10088   eval x=\"$x\"
10089   exec_prefix="$acl_save_exec_prefix"
10090   prefix="$acl_save_prefix"
10091
10092       if test "X$x" = "X$element"; then
10093         haveit=yes
10094         break
10095       fi
10096     done
10097     if test -z "$haveit"; then
10098       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10099     fi
10100   done
10101
10102
10103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10104 $as_echo_n "checking for iconv... " >&6; }
10105 if test "${am_cv_func_iconv+set}" = set; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108
10109     am_cv_func_iconv="no, consider installing GNU libiconv"
10110     am_cv_lib_iconv=no
10111     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h.  */
10113 #include <stdlib.h>
10114 #include <iconv.h>
10115 int
10116 main ()
10117 {
10118 iconv_t cd = iconv_open("","");
10119        iconv(cd,NULL,NULL,NULL,NULL);
10120        iconv_close(cd);
10121   ;
10122   return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_cxx_try_link "$LINENO"; then :
10126   am_cv_func_iconv=yes
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext \
10129     conftest$ac_exeext conftest.$ac_ext
10130     if test "$am_cv_func_iconv" != yes; then
10131       am_save_LIBS="$LIBS"
10132       LIBS="$LIBS $LIBICONV"
10133       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h.  */
10135 #include <stdlib.h>
10136 #include <iconv.h>
10137 int
10138 main ()
10139 {
10140 iconv_t cd = iconv_open("","");
10141          iconv(cd,NULL,NULL,NULL,NULL);
10142          iconv_close(cd);
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 if ac_fn_cxx_try_link "$LINENO"; then :
10148   am_cv_lib_iconv=yes
10149         am_cv_func_iconv=yes
10150 fi
10151 rm -f core conftest.err conftest.$ac_objext \
10152     conftest$ac_exeext conftest.$ac_ext
10153       LIBS="$am_save_LIBS"
10154     fi
10155
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10158 $as_echo "$am_cv_func_iconv" >&6; }
10159   if test "$am_cv_func_iconv" = yes; then
10160
10161 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10162
10163   fi
10164   if test "$am_cv_lib_iconv" = yes; then
10165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10166 $as_echo_n "checking how to link with libiconv... " >&6; }
10167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10168 $as_echo "$LIBICONV" >&6; }
10169   else
10170             CPPFLAGS="$am_save_CPPFLAGS"
10171     LIBICONV=
10172     LTLIBICONV=
10173   fi
10174
10175
10176
10177   if test "$am_cv_func_iconv" = yes; then
10178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10179 $as_echo_n "checking for iconv declaration... " >&6; }
10180     if test "${am_cv_proto_iconv+set}" = set; then :
10181   $as_echo_n "(cached) " >&6
10182 else
10183
10184       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h.  */
10186
10187 #include <stdlib.h>
10188 #include <iconv.h>
10189 extern
10190 #ifdef __cplusplus
10191 "C"
10192 #endif
10193 #if defined(__STDC__) || defined(__cplusplus)
10194 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10195 #else
10196 size_t iconv();
10197 #endif
10198
10199 int
10200 main ()
10201 {
10202
10203   ;
10204   return 0;
10205 }
10206 _ACEOF
10207 if ac_fn_cxx_try_compile "$LINENO"; then :
10208   am_cv_proto_iconv_arg1=""
10209 else
10210   am_cv_proto_iconv_arg1="const"
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213       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);"
10214 fi
10215
10216     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10218          }$am_cv_proto_iconv" >&5
10219 $as_echo "${ac_t:-
10220          }$am_cv_proto_iconv" >&6; }
10221
10222 cat >>confdefs.h <<_ACEOF
10223 #define ICONV_CONST $am_cv_proto_iconv_arg1
10224 _ACEOF
10225
10226   fi
10227
10228    ac_ext=c
10229 ac_cpp='$CPP $CPPFLAGS'
10230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10233
10234 else
10235
10236
10237
10238
10239
10240           am_save_CPPFLAGS="$CPPFLAGS"
10241
10242   for element in $INCICONV; do
10243     haveit=
10244     for x in $CPPFLAGS; do
10245
10246   acl_save_prefix="$prefix"
10247   prefix="$acl_final_prefix"
10248   acl_save_exec_prefix="$exec_prefix"
10249   exec_prefix="$acl_final_exec_prefix"
10250   eval x=\"$x\"
10251   exec_prefix="$acl_save_exec_prefix"
10252   prefix="$acl_save_prefix"
10253
10254       if test "X$x" = "X$element"; then
10255         haveit=yes
10256         break
10257       fi
10258     done
10259     if test -z "$haveit"; then
10260       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10261     fi
10262   done
10263
10264
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10266 $as_echo_n "checking for iconv... " >&6; }
10267 if test "${am_cv_func_iconv+set}" = set; then :
10268   $as_echo_n "(cached) " >&6
10269 else
10270
10271     am_cv_func_iconv="no, consider installing GNU libiconv"
10272     am_cv_lib_iconv=no
10273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h.  */
10275 #include <stdlib.h>
10276 #include <iconv.h>
10277 int
10278 main ()
10279 {
10280 iconv_t cd = iconv_open("","");
10281        iconv(cd,NULL,NULL,NULL,NULL);
10282        iconv_close(cd);
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 if ac_fn_c_try_link "$LINENO"; then :
10288   am_cv_func_iconv=yes
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext \
10291     conftest$ac_exeext conftest.$ac_ext
10292     if test "$am_cv_func_iconv" != yes; then
10293       am_save_LIBS="$LIBS"
10294       LIBS="$LIBS $LIBICONV"
10295       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h.  */
10297 #include <stdlib.h>
10298 #include <iconv.h>
10299 int
10300 main ()
10301 {
10302 iconv_t cd = iconv_open("","");
10303          iconv(cd,NULL,NULL,NULL,NULL);
10304          iconv_close(cd);
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
10309 if ac_fn_c_try_link "$LINENO"; then :
10310   am_cv_lib_iconv=yes
10311         am_cv_func_iconv=yes
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext \
10314     conftest$ac_exeext conftest.$ac_ext
10315       LIBS="$am_save_LIBS"
10316     fi
10317
10318 fi
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10320 $as_echo "$am_cv_func_iconv" >&6; }
10321   if test "$am_cv_func_iconv" = yes; then
10322
10323 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10324
10325   fi
10326   if test "$am_cv_lib_iconv" = yes; then
10327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10328 $as_echo_n "checking how to link with libiconv... " >&6; }
10329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10330 $as_echo "$LIBICONV" >&6; }
10331   else
10332             CPPFLAGS="$am_save_CPPFLAGS"
10333     LIBICONV=
10334     LTLIBICONV=
10335   fi
10336
10337
10338
10339   if test "$am_cv_func_iconv" = yes; then
10340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10341 $as_echo_n "checking for iconv declaration... " >&6; }
10342     if test "${am_cv_proto_iconv+set}" = set; then :
10343   $as_echo_n "(cached) " >&6
10344 else
10345
10346       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h.  */
10348
10349 #include <stdlib.h>
10350 #include <iconv.h>
10351 extern
10352 #ifdef __cplusplus
10353 "C"
10354 #endif
10355 #if defined(__STDC__) || defined(__cplusplus)
10356 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10357 #else
10358 size_t iconv();
10359 #endif
10360
10361 int
10362 main ()
10363 {
10364
10365   ;
10366   return 0;
10367 }
10368 _ACEOF
10369 if ac_fn_c_try_compile "$LINENO"; then :
10370   am_cv_proto_iconv_arg1=""
10371 else
10372   am_cv_proto_iconv_arg1="const"
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375       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);"
10376 fi
10377
10378     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10380          }$am_cv_proto_iconv" >&5
10381 $as_echo "${ac_t:-
10382          }$am_cv_proto_iconv" >&6; }
10383
10384 cat >>confdefs.h <<_ACEOF
10385 #define ICONV_CONST $am_cv_proto_iconv_arg1
10386 _ACEOF
10387
10388   fi
10389
10390 fi
10391
10392 # Until we have in-tree GNU iconv:
10393 LIBICONV_DEP=
10394
10395
10396
10397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10398 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10399 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10400   $as_echo_n "(cached) " >&6
10401 else
10402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h.  */
10404 #include <locale.h>
10405 int
10406 main ()
10407 {
10408 return LC_MESSAGES
10409   ;
10410   return 0;
10411 }
10412 _ACEOF
10413 if ac_fn_c_try_link "$LINENO"; then :
10414   am_cv_val_LC_MESSAGES=yes
10415 else
10416   am_cv_val_LC_MESSAGES=no
10417 fi
10418 rm -f core conftest.err conftest.$ac_objext \
10419     conftest$ac_exeext conftest.$ac_ext
10420 fi
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10422 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10423   if test $am_cv_val_LC_MESSAGES = yes; then
10424
10425 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10426
10427   fi
10428
10429
10430
10431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10432 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10433 if test "${am_cv_langinfo_codeset+set}" = set; then :
10434   $as_echo_n "(cached) " >&6
10435 else
10436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h.  */
10438 #include <langinfo.h>
10439 int
10440 main ()
10441 {
10442 char* cs = nl_langinfo(CODESET);
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 if ac_fn_c_try_link "$LINENO"; then :
10448   am_cv_langinfo_codeset=yes
10449 else
10450   am_cv_langinfo_codeset=no
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext \
10453     conftest$ac_exeext conftest.$ac_ext
10454
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10457 $as_echo "$am_cv_langinfo_codeset" >&6; }
10458   if test $am_cv_langinfo_codeset = yes; then
10459
10460 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10461
10462   fi
10463
10464
10465 # We will need to find libiberty.h and ansidecl.h
10466 saved_CFLAGS="$CFLAGS"
10467 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10468 saved_CXXFLAGS="$CXXFLAGS"
10469 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10470 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10471         strsignal strstr stpcpy strverscmp \
10472         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10473         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
10474 do
10475   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10477 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10478 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10479   $as_echo_n "(cached) " >&6
10480 else
10481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h.  */
10483 #undef $ac_tr_decl
10484 #define $ac_tr_decl 1
10485
10486 #include "ansidecl.h"
10487 #include "system.h"
10488
10489 int
10490 main ()
10491 {
10492 #ifndef $ac_func
10493 char *(*pfn) = (char *(*)) $ac_func ;
10494 #endif
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 if ac_fn_c_try_compile "$LINENO"; then :
10500   eval "gcc_cv_have_decl_$ac_func=yes"
10501 else
10502   eval "gcc_cv_have_decl_$ac_func=no"
10503 fi
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 fi
10506
10507 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10510 #define $ac_tr_decl 1
10511 _ACEOF
10512
10513 else
10514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10516 #define $ac_tr_decl 0
10517 _ACEOF
10518
10519 fi
10520
10521 done
10522
10523
10524 for ac_func in getrlimit setrlimit getrusage
10525 do
10526   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10528 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10529 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10530   $as_echo_n "(cached) " >&6
10531 else
10532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h.  */
10534 #undef $ac_tr_decl
10535 #define $ac_tr_decl 1
10536
10537 #include "ansidecl.h"
10538 #include "system.h"
10539 #ifdef HAVE_SYS_RESOURCE_H
10540 #include <sys/resource.h>
10541 #endif
10542
10543
10544 int
10545 main ()
10546 {
10547 #ifndef $ac_func
10548 char *(*pfn) = (char *(*)) $ac_func ;
10549 #endif
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 if ac_fn_c_try_compile "$LINENO"; then :
10555   eval "gcc_cv_have_decl_$ac_func=yes"
10556 else
10557   eval "gcc_cv_have_decl_$ac_func=no"
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 fi
10561
10562 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10564 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10565 #define $ac_tr_decl 1
10566 _ACEOF
10567
10568 else
10569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10571 #define $ac_tr_decl 0
10572 _ACEOF
10573
10574 fi
10575
10576 done
10577
10578
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h.  */
10581
10582 #include "ansidecl.h"
10583 #include "system.h"
10584 #ifdef HAVE_SYS_RESOURCE_H
10585 #include <sys/resource.h>
10586 #endif
10587
10588 int
10589 main ()
10590 {
10591 rlim_t l = 0;
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 if ac_fn_c_try_compile "$LINENO"; then :
10597
10598 else
10599
10600 $as_echo "#define rlim_t long" >>confdefs.h
10601
10602 fi
10603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10604
10605 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10606 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10607 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10608 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10609 for ac_func in ldgetname
10610 do
10611   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10613 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10614 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10615   $as_echo_n "(cached) " >&6
10616 else
10617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h.  */
10619 #undef $ac_tr_decl
10620 #define $ac_tr_decl 1
10621
10622 #include "ansidecl.h"
10623 #include "system.h"
10624 #ifdef HAVE_LDFCN_H
10625 #undef FREAD
10626 #undef FWRITE
10627 #include <ldfcn.h>
10628 #endif
10629
10630
10631 int
10632 main ()
10633 {
10634 #ifndef $ac_func
10635 char *(*pfn) = (char *(*)) $ac_func ;
10636 #endif
10637   ;
10638   return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_compile "$LINENO"; then :
10642   eval "gcc_cv_have_decl_$ac_func=yes"
10643 else
10644   eval "gcc_cv_have_decl_$ac_func=no"
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647 fi
10648
10649 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10652 #define $ac_tr_decl 1
10653 _ACEOF
10654
10655 else
10656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10658 #define $ac_tr_decl 0
10659 _ACEOF
10660
10661 fi
10662
10663 done
10664
10665
10666 for ac_func in times
10667 do
10668   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10670 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10671 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10672   $as_echo_n "(cached) " >&6
10673 else
10674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h.  */
10676 #undef $ac_tr_decl
10677 #define $ac_tr_decl 1
10678
10679 #include "ansidecl.h"
10680 #include "system.h"
10681 #ifdef HAVE_SYS_TIMES_H
10682 #include <sys/times.h>
10683 #endif
10684
10685
10686 int
10687 main ()
10688 {
10689 #ifndef $ac_func
10690 char *(*pfn) = (char *(*)) $ac_func ;
10691 #endif
10692   ;
10693   return 0;
10694 }
10695 _ACEOF
10696 if ac_fn_c_try_compile "$LINENO"; then :
10697   eval "gcc_cv_have_decl_$ac_func=yes"
10698 else
10699   eval "gcc_cv_have_decl_$ac_func=no"
10700 fi
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 fi
10703
10704 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10706 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10707 #define $ac_tr_decl 1
10708 _ACEOF
10709
10710 else
10711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10713 #define $ac_tr_decl 0
10714 _ACEOF
10715
10716 fi
10717
10718 done
10719
10720
10721 for ac_func in sigaltstack
10722 do
10723   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10725 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10726 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10727   $as_echo_n "(cached) " >&6
10728 else
10729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h.  */
10731 #undef $ac_tr_decl
10732 #define $ac_tr_decl 1
10733
10734 #include "ansidecl.h"
10735 #include "system.h"
10736 #include <signal.h>
10737
10738
10739 int
10740 main ()
10741 {
10742 #ifndef $ac_func
10743 char *(*pfn) = (char *(*)) $ac_func ;
10744 #endif
10745   ;
10746   return 0;
10747 }
10748 _ACEOF
10749 if ac_fn_c_try_compile "$LINENO"; then :
10750   eval "gcc_cv_have_decl_$ac_func=yes"
10751 else
10752   eval "gcc_cv_have_decl_$ac_func=no"
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 fi
10756
10757 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10759 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10760 #define $ac_tr_decl 1
10761 _ACEOF
10762
10763 else
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10766 #define $ac_tr_decl 0
10767 _ACEOF
10768
10769 fi
10770
10771 done
10772
10773
10774 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10775 # prototype.
10776 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10777   ac_ext=cpp
10778 ac_cpp='$CXXCPP $CPPFLAGS'
10779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10782
10783    for ac_func in madvise
10784 do
10785   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10787 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10788 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10789   $as_echo_n "(cached) " >&6
10790 else
10791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h.  */
10793 #undef $ac_tr_decl
10794 #define $ac_tr_decl 1
10795
10796      #include "ansidecl.h"
10797      #include "system.h"
10798
10799
10800 int
10801 main ()
10802 {
10803 #ifndef $ac_func
10804 char *(*pfn) = (char *(*)) $ac_func ;
10805 #endif
10806   ;
10807   return 0;
10808 }
10809 _ACEOF
10810 if ac_fn_cxx_try_compile "$LINENO"; then :
10811   eval "gcc_cv_have_decl_$ac_func=yes"
10812 else
10813   eval "gcc_cv_have_decl_$ac_func=no"
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 fi
10817
10818 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10820 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10821 #define $ac_tr_decl 1
10822 _ACEOF
10823
10824 else
10825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10827 #define $ac_tr_decl 0
10828 _ACEOF
10829
10830 fi
10831
10832 done
10833
10834    ac_ext=c
10835 ac_cpp='$CPP $CPPFLAGS'
10836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839
10840 else
10841   for ac_func in madvise
10842 do
10843   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10845 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10846 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10847   $as_echo_n "(cached) " >&6
10848 else
10849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h.  */
10851 #undef $ac_tr_decl
10852 #define $ac_tr_decl 1
10853
10854      #include "ansidecl.h"
10855      #include "system.h"
10856
10857
10858 int
10859 main ()
10860 {
10861 #ifndef $ac_func
10862 char *(*pfn) = (char *(*)) $ac_func ;
10863 #endif
10864   ;
10865   return 0;
10866 }
10867 _ACEOF
10868 if ac_fn_c_try_compile "$LINENO"; then :
10869   eval "gcc_cv_have_decl_$ac_func=yes"
10870 else
10871   eval "gcc_cv_have_decl_$ac_func=no"
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 fi
10875
10876 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10878 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10879 #define $ac_tr_decl 1
10880 _ACEOF
10881
10882 else
10883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10885 #define $ac_tr_decl 0
10886 _ACEOF
10887
10888 fi
10889
10890 done
10891
10892
10893 fi
10894
10895 # More time-related stuff.
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10897 $as_echo_n "checking for struct tms... " >&6; }
10898 if test "${ac_cv_struct_tms+set}" = set; then :
10899   $as_echo_n "(cached) " >&6
10900 else
10901
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h.  */
10904
10905 #include "ansidecl.h"
10906 #include "system.h"
10907 #ifdef HAVE_SYS_TIMES_H
10908 #include <sys/times.h>
10909 #endif
10910
10911 int
10912 main ()
10913 {
10914 struct tms tms;
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_compile "$LINENO"; then :
10920   ac_cv_struct_tms=yes
10921 else
10922   ac_cv_struct_tms=no
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925 fi
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10927 $as_echo "$ac_cv_struct_tms" >&6; }
10928 if test $ac_cv_struct_tms = yes; then
10929
10930 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10931
10932 fi
10933
10934 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10935 # revisit after autoconf 2.50.
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10937 $as_echo_n "checking for clock_t... " >&6; }
10938 if test "${gcc_cv_type_clock_t+set}" = set; then :
10939   $as_echo_n "(cached) " >&6
10940 else
10941
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h.  */
10944
10945 #include "ansidecl.h"
10946 #include "system.h"
10947
10948 int
10949 main ()
10950 {
10951 clock_t x;
10952   ;
10953   return 0;
10954 }
10955 _ACEOF
10956 if ac_fn_c_try_compile "$LINENO"; then :
10957   gcc_cv_type_clock_t=yes
10958 else
10959   gcc_cv_type_clock_t=no
10960 fi
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 fi
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10964 $as_echo "$gcc_cv_type_clock_t" >&6; }
10965 if test $gcc_cv_type_clock_t = yes; then
10966
10967 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10968
10969 fi
10970
10971 # Check if F_SETLKW is supported by fcntl.
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10973 $as_echo_n "checking for F_SETLKW... " >&6; }
10974 if test "${ac_cv_f_setlkw+set}" = set; then :
10975   $as_echo_n "(cached) " >&6
10976 else
10977
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h.  */
10980
10981 #include <fcntl.h>
10982 int
10983 main ()
10984 {
10985
10986 struct flock fl;
10987 fl.l_whence = 0;
10988 fl.l_start = 0;
10989 fl.l_len = 0;
10990 fl.l_pid = 0;
10991 return fcntl (1, F_SETLKW, &fl);
10992   ;
10993   return 0;
10994 }
10995 _ACEOF
10996 if ac_fn_c_try_compile "$LINENO"; then :
10997   ac_cv_f_setlkw=yes
10998 else
10999   ac_cv_f_setlkw=no
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 fi
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11004 $as_echo "$ac_cv_f_setlkw" >&6; }
11005 if test $ac_cv_f_setlkw = yes; then
11006
11007 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11008
11009 fi
11010
11011 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11012 CFLAGS="$saved_CFLAGS"
11013 CXXFLAGS="$saved_CXXFLAGS"
11014
11015 # mkdir takes a single argument on some systems.
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11017 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11018 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h.  */
11023
11024 #include <sys/types.h>
11025 #ifdef HAVE_SYS_STAT_H
11026 # include <sys/stat.h>
11027 #endif
11028 #ifdef HAVE_UNISTD_H
11029 # include <unistd.h>
11030 #endif
11031 #ifdef HAVE_DIRECT_H
11032 # include <direct.h>
11033 #endif
11034 int
11035 main ()
11036 {
11037 mkdir ("foo", 0);
11038   ;
11039   return 0;
11040 }
11041 _ACEOF
11042 if ac_fn_c_try_compile "$LINENO"; then :
11043   gcc_cv_mkdir_takes_one_arg=no
11044 else
11045   gcc_cv_mkdir_takes_one_arg=yes
11046 fi
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11050 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11051 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11052
11053 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11054
11055 fi
11056
11057
11058 # File extensions
11059 manext='.1'
11060 objext='.o'
11061
11062
11063
11064 # With Setjmp/Longjmp based exception handling.
11065 # Check whether --enable-sjlj-exceptions was given.
11066 if test "${enable_sjlj_exceptions+set}" = set; then :
11067   enableval=$enable_sjlj_exceptions; case $target in
11068   *-*-hpux10*)
11069     if test $enableval != yes; then
11070       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11071 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11072       enableval=yes
11073     fi
11074     ;;
11075 esac
11076 force_sjlj_exceptions=yes
11077 else
11078   case $target in
11079   *-*-hpux10*)
11080     force_sjlj_exceptions=yes
11081     enableval=yes
11082     ;;
11083   *)
11084     force_sjlj_exceptions=no
11085     ;;
11086 esac
11087 fi
11088
11089 if test $force_sjlj_exceptions = yes; then
11090   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11091
11092 cat >>confdefs.h <<_ACEOF
11093 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11094 _ACEOF
11095
11096 fi
11097
11098 # --------------------------------------------------------
11099 # Build, host, and target specific configuration fragments
11100 # --------------------------------------------------------
11101
11102 # Collect build-machine-specific information.
11103 . ${srcdir}/config.build
11104
11105 # Collect host-machine-specific information.
11106 . ${srcdir}/config.host
11107
11108 target_gtfiles=
11109
11110 # Collect target-machine-specific information.
11111 . ${srcdir}/config.gcc
11112
11113 extra_objs="${host_extra_objs} ${extra_objs}"
11114 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11115
11116 # Default the target-machine variables that were not explicitly set.
11117 if test x"$tm_file" = x
11118 then tm_file=$cpu_type/$cpu_type.h; fi
11119
11120 if test x"$extra_headers" = x
11121 then extra_headers=; fi
11122
11123 if test x$md_file = x
11124 then md_file=$cpu_type/$cpu_type.md; fi
11125
11126 if test x$out_file = x
11127 then out_file=$cpu_type/$cpu_type.c; fi
11128
11129 if test x"$tmake_file" = x
11130 then tmake_file=$cpu_type/t-$cpu_type
11131 fi
11132
11133 # Support --enable-initfini-array.
11134 if test x$enable_initfini_array != xno; then
11135   tm_file="${tm_file} initfini-array.h"
11136 fi
11137
11138 if test x"$dwarf2" = xyes
11139 then tm_file="$tm_file tm-dwarf2.h"
11140 fi
11141
11142 # Say what files are being used for the output code and MD file.
11143 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11144 echo "Using \`$srcdir/config/$md_file' as machine description file."
11145
11146 # If any of the xm_file variables contain nonexistent files, warn
11147 # about them and drop them.
11148
11149 bx=
11150 for x in $build_xm_file; do
11151   if    test -f $srcdir/config/$x
11152   then      bx="$bx $x"
11153   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11154 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11155   fi
11156 done
11157 build_xm_file="$bx"
11158
11159 hx=
11160 for x in $host_xm_file; do
11161   if    test -f $srcdir/config/$x
11162   then      hx="$hx $x"
11163   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11164 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11165   fi
11166 done
11167 host_xm_file="$hx"
11168
11169 tx=
11170 for x in $xm_file; do
11171   if    test -f $srcdir/config/$x
11172   then      tx="$tx $x"
11173   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11174 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11175   fi
11176 done
11177 xm_file="$tx"
11178
11179 count=a
11180 for f in $tm_file; do
11181         count=${count}x
11182 done
11183 if test $count = ax; then
11184         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11185 else
11186         echo "Using the following target machine macro files:"
11187         for f in $tm_file; do
11188                 echo "  $srcdir/config/$f"
11189         done
11190 fi
11191
11192 if test x$need_64bit_hwint = xyes; then
11193
11194 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11195
11196 fi
11197
11198 if test x$use_long_long_for_widest_fast_int = xyes; then
11199
11200 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11201
11202 fi
11203
11204 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11205
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_GNU_LD $gnu_ld_bool
11208 _ACEOF
11209
11210
11211 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11212
11213 cat >>confdefs.h <<_ACEOF
11214 #define HAVE_GNU_AS $gnu_as_bool
11215 _ACEOF
11216
11217
11218 count=a
11219 for f in $host_xm_file; do
11220         count=${count}x
11221 done
11222 if test $count = a; then
11223         :
11224 elif test $count = ax; then
11225         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11226 else
11227         echo "Using the following host machine macro files:"
11228         for f in $host_xm_file; do
11229                 echo "  $srcdir/config/$f"
11230         done
11231 fi
11232 echo "Using ${out_host_hook_obj} for host machine hooks."
11233
11234 if test "$host_xm_file" != "$build_xm_file"; then
11235         count=a
11236         for f in $build_xm_file; do
11237                 count=${count}x
11238         done
11239         if test $count = a; then
11240                 :
11241         elif test $count = ax; then
11242                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11243         else
11244                 echo "Using the following build machine macro files:"
11245                 for f in $build_xm_file; do
11246                         echo "  $srcdir/config/$f"
11247                 done
11248         fi
11249 fi
11250
11251 if test -n "$configured_native_system_header_dir"; then
11252   native_system_header_dir=$configured_native_system_header_dir
11253 fi
11254 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11255
11256
11257 case ${host} in
11258   powerpc*-*-darwin*)
11259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11260 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11261 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11262   $as_echo_n "(cached) " >&6
11263 else
11264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h.  */
11266
11267 #include <sys/cdefs.h>
11268 #include <sys/signal.h>
11269 #include <ucontext.h>
11270 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11271
11272 _ACEOF
11273 if ac_fn_c_try_compile "$LINENO"; then :
11274   gcc_cv_mcontext_underscores=no
11275 else
11276   gcc_cv_mcontext_underscores=yes
11277 fi
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11281 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11282       if test $gcc_cv_mcontext_underscores = yes; then
11283
11284 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11285
11286       fi
11287     ;;
11288 esac
11289
11290 # ---------
11291 # Threading
11292 # ---------
11293
11294 # Check if a valid thread package
11295 case ${enable_threads} in
11296   "" | no)
11297     # No threads
11298     target_thread_file='single'
11299     ;;
11300   yes)
11301     # default
11302     target_thread_file='single'
11303     ;;
11304   aix | dce | lynx | mipssde | posix | rtems | \
11305   single | tpf | vxworks | win32)
11306     target_thread_file=${enable_threads}
11307     ;;
11308   *)
11309     echo "${enable_threads} is an unknown thread package" 1>&2
11310     exit 1
11311     ;;
11312 esac
11313
11314 if test x${thread_file} = x; then
11315   # No thread file set by target-specific clauses in config.gcc,
11316   # so use file chosen by default logic above
11317   thread_file=${target_thread_file}
11318 fi
11319
11320 # --------
11321 # UNSORTED
11322 # --------
11323
11324 use_cxa_atexit=no
11325 if test x$enable___cxa_atexit = xyes || \
11326    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11327   if test x$host = x$target; then
11328     case $host in
11329       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11330       # keyed to flag_use_cxa_atexit
11331       *-*-mingw32*)
11332         use_cxa_atexit=yes
11333         ;;
11334       *)
11335         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11336 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11337   use_cxa_atexit=yes
11338 else
11339   echo "__cxa_atexit can't be enabled on this target"
11340 fi
11341
11342         ;;
11343     esac
11344   else
11345     # We can't check for __cxa_atexit when building a cross, so assume
11346     # it is available
11347     use_cxa_atexit=yes
11348   fi
11349   if test x$use_cxa_atexit = xyes; then
11350
11351 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11352
11353   fi
11354 fi
11355
11356 # Look for a file containing extra machine modes.
11357 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11358   extra_modes_file='$(srcdir)'/config/${extra_modes}
11359
11360
11361 cat >>confdefs.h <<_ACEOF
11362 #define EXTRA_MODES_FILE "config/$extra_modes"
11363 _ACEOF
11364
11365 fi
11366
11367 # Convert extra_options into a form suitable for Makefile use.
11368 extra_opt_files=
11369 all_opt_files=
11370 for f in $extra_options; do
11371   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11372   all_opt_files="$all_opt_files $srcdir/config/$f"
11373 done
11374
11375
11376 # auto-host.h is the file containing items generated by autoconf and is
11377 # the first file included by config.h.
11378 # If host=build, it is correct to have bconfig include auto-host.h
11379 # as well.  If host!=build, we are in error and need to do more
11380 # work to find out the build config parameters.
11381 if test x$host = x$build
11382 then
11383         build_auto=auto-host.h
11384 else
11385         # We create a subdir, then run autoconf in the subdir.
11386         # To prevent recursion we set host and build for the new
11387         # invocation of configure to the build for this invocation
11388         # of configure.
11389         tempdir=build.$$
11390         rm -rf $tempdir
11391         mkdir $tempdir
11392         cd $tempdir
11393         case ${srcdir} in
11394         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11395         *) realsrcdir=../${srcdir};;
11396         esac
11397         saved_CFLAGS="${CFLAGS}"
11398         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11399         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11400         ${realsrcdir}/configure \
11401                 --enable-languages=${enable_languages-all} \
11402                 --target=$target_alias --host=$build_alias --build=$build_alias
11403         CFLAGS="${saved_CFLAGS}"
11404
11405         # We just finished tests for the build machine, so rename
11406         # the file auto-build.h in the gcc directory.
11407         mv auto-host.h ../auto-build.h
11408         cd ..
11409         rm -rf $tempdir
11410         build_auto=auto-build.h
11411 fi
11412
11413
11414 tm_file="${tm_file} defaults.h"
11415 tm_p_file="${tm_p_file} tm-preds.h"
11416 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11417 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11418 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11419 # put this back in temporarily.
11420 xm_file="auto-host.h ansidecl.h ${xm_file}"
11421
11422 # --------
11423 # UNSORTED
11424 # --------
11425
11426 # Compile in configure arguments.
11427 if test -f configargs.h ; then
11428         # Being re-configured.
11429         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11430         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11431 else
11432         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11433 fi
11434
11435 # Double all backslashes and backslash all quotes to turn
11436 # gcc_config_arguments into a C string.
11437 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11438 $gcc_config_arguments
11439 EOF
11440 gcc_config_arguments_str=`cat conftest.out`
11441 rm -f conftest.out
11442
11443 cat > configargs.h <<EOF
11444 /* Generated automatically. */
11445 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11446 static const char thread_model[] = "$thread_file";
11447
11448 static const struct {
11449   const char *name, *value;
11450 } configure_default_options[] = $configure_default_options;
11451 EOF
11452
11453 gcc_BASEVER=`cat $srcdir/BASE-VER`
11454 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11455 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11456 if test -f $srcdir/REVISION ; then
11457         gcc_REVISION=`cat $srcdir/REVISION`
11458 else
11459         gcc_REVISION=""
11460 fi
11461 cat > plugin-version.h <<EOF
11462 #include "configargs.h"
11463
11464 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11465 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11466 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11467 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11468
11469 static char basever[] = "$gcc_BASEVER";
11470 static char datestamp[] = "$gcc_DATESTAMP";
11471 static char devphase[] = "$gcc_DEVPHASE";
11472 static char revision[] = "$gcc_REVISION";
11473
11474 /* FIXME plugins: We should make the version information more precise.
11475    One way to do is to add a checksum. */
11476
11477 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11478                                                 devphase, revision,
11479                                                 configuration_arguments};
11480 EOF
11481
11482 # Internationalization
11483 # If we haven't got the data from the intl directory,
11484 # assume NLS is disabled.
11485 USE_NLS=no
11486 LIBINTL=
11487 LIBINTL_DEP=
11488 INCINTL=
11489 XGETTEXT=
11490 GMSGFMT=
11491 POSUB=
11492
11493 if test -f  ../intl/config.intl; then
11494   .  ../intl/config.intl
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11497 $as_echo_n "checking whether NLS is requested... " >&6; }
11498 if test x"$USE_NLS" != xyes; then
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11501 else
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11503 $as_echo "yes" >&6; }
11504
11505 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11506
11507
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11509 $as_echo_n "checking for catalogs to be installed... " >&6; }
11510   # Look for .po and .gmo files in the source directory.
11511   CATALOGS=
11512   XLINGUAS=
11513   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11514     # If there aren't any .gmo files the shell will give us the
11515     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11516     # weeded out.
11517     case "$cat" in *\**)
11518       continue;;
11519     esac
11520     # The quadruple backslash is collapsed to a double backslash
11521     # by the backticks, then collapsed again by the double quotes,
11522     # leaving us with one backslash in the sed expression (right
11523     # before the dot that mustn't act as a wildcard).
11524     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11525     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11526     # The user is allowed to set LINGUAS to a list of languages to
11527     # install catalogs for.  If it's empty that means "all of them."
11528     if test "x$LINGUAS" = x; then
11529       CATALOGS="$CATALOGS $cat"
11530       XLINGUAS="$XLINGUAS $lang"
11531     else
11532       case "$LINGUAS" in *$lang*)
11533         CATALOGS="$CATALOGS $cat"
11534         XLINGUAS="$XLINGUAS $lang"
11535         ;;
11536       esac
11537     fi
11538   done
11539   LINGUAS="$XLINGUAS"
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11541 $as_echo "$LINGUAS" >&6; }
11542
11543
11544     DATADIRNAME=share
11545
11546   INSTOBJEXT=.mo
11547
11548   GENCAT=gencat
11549
11550   CATOBJEXT=.gmo
11551
11552 fi
11553
11554 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11555 # -liconv on the link line twice.
11556 case "$LIBINTL" in *$LIBICONV*)
11557         LIBICONV= ;;
11558 esac
11559
11560 # Check whether --enable-secureplt was given.
11561 if test "${enable_secureplt+set}" = set; then :
11562   enableval=$enable_secureplt;
11563 fi
11564
11565
11566 # Check whether --enable-leading-mingw64-underscores was given.
11567 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11568   enableval=$enable_leading_mingw64_underscores;
11569 fi
11570
11571 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11572
11573 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11574
11575 fi
11576
11577 # Check whether --enable-cld was given.
11578 if test "${enable_cld+set}" = set; then :
11579   enableval=$enable_cld;
11580 else
11581   enable_cld=no
11582 fi
11583
11584
11585 # Check whether --enable-frame-pointer was given.
11586 if test "${enable_frame_pointer+set}" = set; then :
11587   enableval=$enable_frame_pointer;
11588 else
11589
11590 case $target_os in
11591 linux* | darwin[8912]*)
11592   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11593   # DWARF2.
11594   enable_frame_pointer=no
11595   ;;
11596 *)
11597   enable_frame_pointer=yes
11598   ;;
11599 esac
11600
11601 fi
11602
11603
11604 # Windows32 Registry support for specifying GCC installation paths.
11605 # Check whether --enable-win32-registry was given.
11606 if test "${enable_win32_registry+set}" = set; then :
11607   enableval=$enable_win32_registry;
11608 fi
11609
11610
11611 case $host_os in
11612   win32 | pe | cygwin* | mingw32* | uwin*)
11613     if test "x$enable_win32_registry" != xno; then
11614       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11615 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11616 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619   ac_func_search_save_LIBS=$LIBS
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h.  */
11622
11623 /* Override any GCC internal prototype to avoid an error.
11624    Use char because int might match the return type of a GCC
11625    builtin and then its argument prototype would still apply.  */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char RegOpenKeyExA ();
11630 int
11631 main ()
11632 {
11633 return RegOpenKeyExA ();
11634   ;
11635   return 0;
11636 }
11637 _ACEOF
11638 for ac_lib in '' advapi32; do
11639   if test -z "$ac_lib"; then
11640     ac_res="none required"
11641   else
11642     ac_res=-l$ac_lib
11643     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11644   fi
11645   if ac_fn_c_try_link "$LINENO"; then :
11646   ac_cv_search_RegOpenKeyExA=$ac_res
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext \
11649     conftest$ac_exeext
11650   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11651   break
11652 fi
11653 done
11654 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11655
11656 else
11657   ac_cv_search_RegOpenKeyExA=no
11658 fi
11659 rm conftest.$ac_ext
11660 LIBS=$ac_func_search_save_LIBS
11661 fi
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11663 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11664 ac_res=$ac_cv_search_RegOpenKeyExA
11665 if test "$ac_res" != no; then :
11666   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11667
11668 else
11669   enable_win32_registry=no
11670 fi
11671
11672     fi
11673
11674     if test "x$enable_win32_registry" != xno; then
11675
11676 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11677
11678
11679       if test "x$enable_win32_registry" != xyes \
11680          && test "x$enable_win32_registry" != x; then
11681
11682 cat >>confdefs.h <<_ACEOF
11683 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11684 _ACEOF
11685
11686       fi
11687     fi
11688   ;;
11689 esac
11690
11691 # Get an absolute path to the GCC top-level source directory
11692 holddir=`${PWDCMD-pwd}`
11693 cd $srcdir
11694 topdir=`${PWDCMD-pwd}`
11695 cd $holddir
11696
11697 # Conditionalize the makefile for this host machine.
11698 xmake_file=
11699 for f in ${host_xmake_file}
11700 do
11701         if test -f ${srcdir}/config/$f
11702         then
11703                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11704         fi
11705 done
11706
11707 # Conditionalize the makefile for this target machine.
11708 tmake_file_=
11709 for f in ${tmake_file}
11710 do
11711         if test -f ${srcdir}/config/$f
11712         then
11713                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11714         fi
11715 done
11716 tmake_file="${tmake_file_}"
11717
11718 out_object_file=`basename $out_file .c`.o
11719 common_out_object_file=`basename $common_out_file .c`.o
11720
11721 tm_file_list="options.h"
11722 tm_include_list="options.h insn-constants.h"
11723 for f in $tm_file; do
11724   case $f in
11725     ./* )
11726        f=`echo $f | sed 's/^..//'`
11727        tm_file_list="${tm_file_list} $f"
11728        tm_include_list="${tm_include_list} $f"
11729        ;;
11730     defaults.h )
11731        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11732        tm_include_list="${tm_include_list} $f"
11733        ;;
11734     * )
11735        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11736        tm_include_list="${tm_include_list} config/$f"
11737        ;;
11738   esac
11739 done
11740
11741 tm_p_file_list=
11742 tm_p_include_list=
11743 for f in $tm_p_file; do
11744   case $f in
11745     tm-preds.h )
11746        tm_p_file_list="${tm_p_file_list} $f"
11747        tm_p_include_list="${tm_p_include_list} $f"
11748        ;;
11749     * )
11750        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11751        tm_p_include_list="${tm_p_include_list} config/$f"
11752   esac
11753 done
11754
11755 xm_file_list=
11756 xm_include_list=
11757 for f in $xm_file; do
11758   case $f in
11759     ansidecl.h )
11760        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11761        xm_include_list="${xm_include_list} $f"
11762        ;;
11763     auto-host.h )
11764        xm_file_list="${xm_file_list} $f"
11765        xm_include_list="${xm_include_list} $f"
11766        ;;
11767     * )
11768        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11769        xm_include_list="${xm_include_list} config/$f"
11770        ;;
11771   esac
11772 done
11773
11774 host_xm_file_list=
11775 host_xm_include_list=
11776 for f in $host_xm_file; do
11777   case $f in
11778     ansidecl.h )
11779        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11780        host_xm_include_list="${host_xm_include_list} $f"
11781        ;;
11782     auto-host.h )
11783        host_xm_file_list="${host_xm_file_list} $f"
11784        host_xm_include_list="${host_xm_include_list} $f"
11785        ;;
11786     * )
11787        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11788        host_xm_include_list="${host_xm_include_list} config/$f"
11789        ;;
11790   esac
11791 done
11792
11793 build_xm_file_list=
11794 for f in $build_xm_file; do
11795   case $f in
11796     ansidecl.h )
11797        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11798        build_xm_include_list="${build_xm_include_list} $f"
11799        ;;
11800     auto-build.h | auto-host.h )
11801        build_xm_file_list="${build_xm_file_list} $f"
11802        build_xm_include_list="${build_xm_include_list} $f"
11803        ;;
11804     * )
11805        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11806        build_xm_include_list="${build_xm_include_list} config/$f"
11807        ;;
11808   esac
11809 done
11810
11811 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11812 # cross-compiler which does not use the native headers and libraries.
11813 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11814 CROSS=
11815 ALL=all.internal
11816 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11817
11818 if test "x$with_build_sysroot" != x; then
11819   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11820 else
11821   # This value is used, even on a native system, because
11822   # CROSS_SYSTEM_HEADER_DIR is just
11823   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11824   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11825 fi
11826
11827 if test x$host != x$target
11828 then
11829         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11830         ALL=all.cross
11831         SYSTEM_HEADER_DIR=$build_system_header_dir
11832         case "$host","$target" in
11833         # Darwin crosses can use the host system's libraries and headers,
11834         # because of the fat library support.  Of course, it must be the
11835         # same version of Darwin on both sides.  Allow the user to
11836         # just say --target=foo-darwin without a version number to mean
11837         # "the version on this system".
11838             *-*-darwin*,*-*-darwin*)
11839                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11840                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11841                 if test $hostos = $targetos -o $targetos = darwin ; then
11842                     CROSS=
11843                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11844                     with_headers=yes
11845                 fi
11846                 ;;
11847
11848             i?86-*-*,x86_64-*-* \
11849             | powerpc*-*-*,powerpc64*-*-*)
11850                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11851         esac
11852
11853         case $target in
11854                 *-*-mingw*)
11855                         if test "x$with_headers" = x; then
11856                                 with_headers=yes
11857                         fi
11858                         ;;
11859                 *)
11860                         ;;
11861         esac
11862 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11863         SYSTEM_HEADER_DIR=$build_system_header_dir
11864 fi
11865
11866 # If this is a cross-compiler that does not
11867 # have its own set of headers then define
11868 # inhibit_libc
11869
11870 # If this is using newlib, without having the headers available now,
11871 # then define inhibit_libc in LIBGCC2_CFLAGS.
11872 # This prevents libgcc2 from containing any code which requires libc
11873 # support.
11874 : ${inhibit_libc=false}
11875 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11876        test x$with_newlib = xyes ; } &&
11877      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11878        inhibit_libc=true
11879 fi
11880
11881
11882 # When building gcc with a cross-compiler, we need to adjust things so
11883 # that the generator programs are still built with the native compiler.
11884 # Also, we cannot run fixincludes.
11885
11886 # These are the normal (build=host) settings:
11887 CC_FOR_BUILD='$(CC)'
11888 BUILD_CFLAGS='$(ALL_CFLAGS)'
11889 BUILD_LDFLAGS='$(LDFLAGS)'
11890 STMP_FIXINC=stmp-fixinc
11891
11892 # And these apply if build != host, or we are generating coverage data
11893 if test x$build != x$host || test "x$coverage_flags" != x
11894 then
11895     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11896     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11897 fi
11898
11899 # Expand extra_headers to include complete path.
11900 # This substitutes for lots of t-* files.
11901 extra_headers_list=
11902 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11903 for file in ${extra_headers} ; do
11904   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11905 done
11906
11907 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11908 if test x"$use_gcc_tgmath" = xyes
11909 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11910 fi
11911
11912 # Define collect2 in Makefile.
11913 case $host_can_use_collect2 in
11914   no) collect2= ;;
11915   *) collect2='collect2$(exeext)' ;;
11916 esac
11917
11918
11919 # Add a definition of USE_COLLECT2 if system wants one.
11920 case $use_collect2 in
11921   no) use_collect2= ;;
11922   "") ;;
11923   *)
11924     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11925     xm_defines="${xm_defines} USE_COLLECT2"
11926     case $host_can_use_collect2 in
11927       no)
11928         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11929         ;;
11930     esac
11931     ;;
11932 esac
11933
11934
11935 cat >>confdefs.h <<_ACEOF
11936 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11937 _ACEOF
11938
11939
11940 # ---------------------------
11941 # Assembler & linker features
11942 # ---------------------------
11943
11944 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11945 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11946 # However when ld-new is first executed from the build tree, libtool will
11947 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11948 # to the build tree.  While doing this we need to use the previous-stage
11949 # linker, or we have an infinite loop.  The presence of a shell script as
11950 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11951 # the gcc/collect-ld script.  So we need to know how libtool works, or
11952 # exec-tool will fail.
11953
11954
11955 case `pwd` in
11956   *\ * | *\     *)
11957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11958 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11959 esac
11960
11961
11962
11963 macro_version='2.2.7a'
11964 macro_revision='1.3134'
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978 ltmain="$ac_aux_dir/ltmain.sh"
11979
11980 # Backslashify metacharacters that are still active within
11981 # double-quoted strings.
11982 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11983
11984 # Same as above, but do not quote variable references.
11985 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11986
11987 # Sed substitution to delay expansion of an escaped shell variable in a
11988 # double_quote_subst'ed string.
11989 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11990
11991 # Sed substitution to delay expansion of an escaped single quote.
11992 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11993
11994 # Sed substitution to avoid accidental globbing in evaled expressions
11995 no_glob_subst='s/\*/\\\*/g'
11996
11997 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12000
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12002 $as_echo_n "checking how to print strings... " >&6; }
12003 # Test print first, because it will be a builtin if present.
12004 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12005    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12006   ECHO='print -r --'
12007 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12008   ECHO='printf %s\n'
12009 else
12010   # Use this function as a fallback that always works.
12011   func_fallback_echo ()
12012   {
12013     eval 'cat <<_LTECHO_EOF
12014 $1
12015 _LTECHO_EOF'
12016   }
12017   ECHO='func_fallback_echo'
12018 fi
12019
12020 # func_echo_all arg...
12021 # Invoke $ECHO with all args, space-separated.
12022 func_echo_all ()
12023 {
12024     $ECHO ""
12025 }
12026
12027 case "$ECHO" in
12028   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12029 $as_echo "printf" >&6; } ;;
12030   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12031 $as_echo "print -r" >&6; } ;;
12032   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12033 $as_echo "cat" >&6; } ;;
12034 esac
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12050 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12051 if test "${ac_cv_path_SED+set}" = set; then :
12052   $as_echo_n "(cached) " >&6
12053 else
12054             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12055      for ac_i in 1 2 3 4 5 6 7; do
12056        ac_script="$ac_script$as_nl$ac_script"
12057      done
12058      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12059      { ac_script=; unset ac_script;}
12060      if test -z "$SED"; then
12061   ac_path_SED_found=false
12062   # Loop through the user's path and test for each of PROGNAME-LIST
12063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12065 do
12066   IFS=$as_save_IFS
12067   test -z "$as_dir" && as_dir=.
12068     for ac_prog in sed gsed; do
12069     for ac_exec_ext in '' $ac_executable_extensions; do
12070       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12071       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12072 # Check for GNU ac_path_SED and select it if it is found.
12073   # Check for GNU $ac_path_SED
12074 case `"$ac_path_SED" --version 2>&1` in
12075 *GNU*)
12076   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12077 *)
12078   ac_count=0
12079   $as_echo_n 0123456789 >"conftest.in"
12080   while :
12081   do
12082     cat "conftest.in" "conftest.in" >"conftest.tmp"
12083     mv "conftest.tmp" "conftest.in"
12084     cp "conftest.in" "conftest.nl"
12085     $as_echo '' >> "conftest.nl"
12086     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12087     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12088     as_fn_arith $ac_count + 1 && ac_count=$as_val
12089     if test $ac_count -gt ${ac_path_SED_max-0}; then
12090       # Best one so far, save it but keep looking for a better one
12091       ac_cv_path_SED="$ac_path_SED"
12092       ac_path_SED_max=$ac_count
12093     fi
12094     # 10*(2^10) chars as input seems more than enough
12095     test $ac_count -gt 10 && break
12096   done
12097   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12098 esac
12099
12100       $ac_path_SED_found && break 3
12101     done
12102   done
12103   done
12104 IFS=$as_save_IFS
12105   if test -z "$ac_cv_path_SED"; then
12106     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12107   fi
12108 else
12109   ac_cv_path_SED=$SED
12110 fi
12111
12112 fi
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12114 $as_echo "$ac_cv_path_SED" >&6; }
12115  SED="$ac_cv_path_SED"
12116   rm -f conftest.sed
12117
12118 test -z "$SED" && SED=sed
12119 Xsed="$SED -e 1s/^X//"
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12132 $as_echo_n "checking for fgrep... " >&6; }
12133 if test "${ac_cv_path_FGREP+set}" = set; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12137    then ac_cv_path_FGREP="$GREP -F"
12138    else
12139      if test -z "$FGREP"; then
12140   ac_path_FGREP_found=false
12141   # Loop through the user's path and test for each of PROGNAME-LIST
12142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12144 do
12145   IFS=$as_save_IFS
12146   test -z "$as_dir" && as_dir=.
12147     for ac_prog in fgrep; do
12148     for ac_exec_ext in '' $ac_executable_extensions; do
12149       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12150       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12151 # Check for GNU ac_path_FGREP and select it if it is found.
12152   # Check for GNU $ac_path_FGREP
12153 case `"$ac_path_FGREP" --version 2>&1` in
12154 *GNU*)
12155   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12156 *)
12157   ac_count=0
12158   $as_echo_n 0123456789 >"conftest.in"
12159   while :
12160   do
12161     cat "conftest.in" "conftest.in" >"conftest.tmp"
12162     mv "conftest.tmp" "conftest.in"
12163     cp "conftest.in" "conftest.nl"
12164     $as_echo 'FGREP' >> "conftest.nl"
12165     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12166     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12167     as_fn_arith $ac_count + 1 && ac_count=$as_val
12168     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12169       # Best one so far, save it but keep looking for a better one
12170       ac_cv_path_FGREP="$ac_path_FGREP"
12171       ac_path_FGREP_max=$ac_count
12172     fi
12173     # 10*(2^10) chars as input seems more than enough
12174     test $ac_count -gt 10 && break
12175   done
12176   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12177 esac
12178
12179       $ac_path_FGREP_found && break 3
12180     done
12181   done
12182   done
12183 IFS=$as_save_IFS
12184   if test -z "$ac_cv_path_FGREP"; then
12185     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12186   fi
12187 else
12188   ac_cv_path_FGREP=$FGREP
12189 fi
12190
12191    fi
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12194 $as_echo "$ac_cv_path_FGREP" >&6; }
12195  FGREP="$ac_cv_path_FGREP"
12196
12197
12198 test -z "$GREP" && GREP=grep
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218 # Check whether --with-gnu-ld was given.
12219 if test "${with_gnu_ld+set}" = set; then :
12220   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12221 else
12222   with_gnu_ld=no
12223 fi
12224
12225 ac_prog=ld
12226 if test "$GCC" = yes; then
12227   # Check if gcc -print-prog-name=ld gives a path.
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12229 $as_echo_n "checking for ld used by $CC... " >&6; }
12230   case $host in
12231   *-*-mingw*)
12232     # gcc leaves a trailing carriage return which upsets mingw
12233     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12234   *)
12235     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12236   esac
12237   case $ac_prog in
12238     # Accept absolute paths.
12239     [\\/]* | ?:[\\/]*)
12240       re_direlt='/[^/][^/]*/\.\./'
12241       # Canonicalize the pathname of ld
12242       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12243       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12244         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12245       done
12246       test -z "$LD" && LD="$ac_prog"
12247       ;;
12248   "")
12249     # If it fails, then pretend we aren't using GCC.
12250     ac_prog=ld
12251     ;;
12252   *)
12253     # If it is relative, then search for the first ld in PATH.
12254     with_gnu_ld=unknown
12255     ;;
12256   esac
12257 elif test "$with_gnu_ld" = yes; then
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12259 $as_echo_n "checking for GNU ld... " >&6; }
12260 else
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12262 $as_echo_n "checking for non-GNU ld... " >&6; }
12263 fi
12264 if test "${lt_cv_path_LD+set}" = set; then :
12265   $as_echo_n "(cached) " >&6
12266 else
12267   if test -z "$LD"; then
12268   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12269   for ac_dir in $PATH; do
12270     IFS="$lt_save_ifs"
12271     test -z "$ac_dir" && ac_dir=.
12272     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12273       lt_cv_path_LD="$ac_dir/$ac_prog"
12274       # Check to see if the program is GNU ld.  I'd rather use --version,
12275       # but apparently some variants of GNU ld only accept -v.
12276       # Break only if it was the GNU/non-GNU ld that we prefer.
12277       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12278       *GNU* | *'with BFD'*)
12279         test "$with_gnu_ld" != no && break
12280         ;;
12281       *)
12282         test "$with_gnu_ld" != yes && break
12283         ;;
12284       esac
12285     fi
12286   done
12287   IFS="$lt_save_ifs"
12288 else
12289   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12290 fi
12291 fi
12292
12293 LD="$lt_cv_path_LD"
12294 if test -n "$LD"; then
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12296 $as_echo "$LD" >&6; }
12297 else
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12303 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12304 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12305   $as_echo_n "(cached) " >&6
12306 else
12307   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12308 case `$LD -v 2>&1 </dev/null` in
12309 *GNU* | *'with BFD'*)
12310   lt_cv_prog_gnu_ld=yes
12311   ;;
12312 *)
12313   lt_cv_prog_gnu_ld=no
12314   ;;
12315 esac
12316 fi
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12318 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12319 with_gnu_ld=$lt_cv_prog_gnu_ld
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12330 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12331 if test "${lt_cv_path_NM+set}" = set; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   if test -n "$NM"; then
12335   # Let the user override the test.
12336   lt_cv_path_NM="$NM"
12337 else
12338   lt_nm_to_check="${ac_tool_prefix}nm"
12339   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12340     lt_nm_to_check="$lt_nm_to_check nm"
12341   fi
12342   for lt_tmp_nm in $lt_nm_to_check; do
12343     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12344     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12345       IFS="$lt_save_ifs"
12346       test -z "$ac_dir" && ac_dir=.
12347       tmp_nm="$ac_dir/$lt_tmp_nm"
12348       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12349         # Check to see if the nm accepts a BSD-compat flag.
12350         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12351         #   nm: unknown option "B" ignored
12352         # Tru64's nm complains that /dev/null is an invalid object file
12353         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12354         */dev/null* | *'Invalid file or object type'*)
12355           lt_cv_path_NM="$tmp_nm -B"
12356           break
12357           ;;
12358         *)
12359           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12360           */dev/null*)
12361             lt_cv_path_NM="$tmp_nm -p"
12362             break
12363             ;;
12364           *)
12365             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12366             continue # so that we can try to find one that supports BSD flags
12367             ;;
12368           esac
12369           ;;
12370         esac
12371       fi
12372     done
12373     IFS="$lt_save_ifs"
12374   done
12375   : ${lt_cv_path_NM=no}
12376 fi
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12379 $as_echo "$lt_cv_path_NM" >&6; }
12380 if test "$lt_cv_path_NM" != "no"; then
12381   NM="$lt_cv_path_NM"
12382 else
12383   # Didn't find any BSD compatible name lister, look for dumpbin.
12384   if test -n "$DUMPBIN"; then :
12385     # Let the user override the test.
12386   else
12387     if test -n "$ac_tool_prefix"; then
12388   for ac_prog in dumpbin "link -dump"
12389   do
12390     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12395   $as_echo_n "(cached) " >&6
12396 else
12397   if test -n "$DUMPBIN"; then
12398   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12399 else
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12402 do
12403   IFS=$as_save_IFS
12404   test -z "$as_dir" && as_dir=.
12405     for ac_exec_ext in '' $ac_executable_extensions; do
12406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12407     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409     break 2
12410   fi
12411 done
12412   done
12413 IFS=$as_save_IFS
12414
12415 fi
12416 fi
12417 DUMPBIN=$ac_cv_prog_DUMPBIN
12418 if test -n "$DUMPBIN"; then
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12420 $as_echo "$DUMPBIN" >&6; }
12421 else
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425
12426
12427     test -n "$DUMPBIN" && break
12428   done
12429 fi
12430 if test -z "$DUMPBIN"; then
12431   ac_ct_DUMPBIN=$DUMPBIN
12432   for ac_prog in dumpbin "link -dump"
12433 do
12434   # Extract the first word of "$ac_prog", so it can be a program name with args.
12435 set dummy $ac_prog; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12439   $as_echo_n "(cached) " >&6
12440 else
12441   if test -n "$ac_ct_DUMPBIN"; then
12442   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447   IFS=$as_save_IFS
12448   test -z "$as_dir" && as_dir=.
12449     for ac_exec_ext in '' $ac_executable_extensions; do
12450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12451     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453     break 2
12454   fi
12455 done
12456   done
12457 IFS=$as_save_IFS
12458
12459 fi
12460 fi
12461 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12462 if test -n "$ac_ct_DUMPBIN"; then
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12464 $as_echo "$ac_ct_DUMPBIN" >&6; }
12465 else
12466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471   test -n "$ac_ct_DUMPBIN" && break
12472 done
12473
12474   if test "x$ac_ct_DUMPBIN" = x; then
12475     DUMPBIN=":"
12476   else
12477     case $cross_compiling:$ac_tool_warned in
12478 yes:)
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12481 ac_tool_warned=yes ;;
12482 esac
12483     DUMPBIN=$ac_ct_DUMPBIN
12484   fi
12485 fi
12486
12487     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12488     *COFF*)
12489       DUMPBIN="$DUMPBIN -symbols"
12490       ;;
12491     *)
12492       DUMPBIN=:
12493       ;;
12494     esac
12495   fi
12496
12497   if test "$DUMPBIN" != ":"; then
12498     NM="$DUMPBIN"
12499   fi
12500 fi
12501 test -z "$NM" && NM=nm
12502
12503
12504
12505
12506
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12509 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12510 if test "${lt_cv_nm_interface+set}" = set; then :
12511   $as_echo_n "(cached) " >&6
12512 else
12513   lt_cv_nm_interface="BSD nm"
12514   echo "int some_variable = 0;" > conftest.$ac_ext
12515   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12516   (eval "$ac_compile" 2>conftest.err)
12517   cat conftest.err >&5
12518   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12519   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12520   cat conftest.err >&5
12521   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12522   cat conftest.out >&5
12523   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12524     lt_cv_nm_interface="MS dumpbin"
12525   fi
12526   rm -f conftest*
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12529 $as_echo "$lt_cv_nm_interface" >&6; }
12530
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12532 $as_echo_n "checking whether ln -s works... " >&6; }
12533 LN_S=$as_ln_s
12534 if test "$LN_S" = "ln -s"; then
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 $as_echo "yes" >&6; }
12537 else
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12539 $as_echo "no, using $LN_S" >&6; }
12540 fi
12541
12542 # find the maximum length of command line arguments
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12544 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12545 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12546   $as_echo_n "(cached) " >&6
12547 else
12548     i=0
12549   teststring="ABCD"
12550
12551   case $build_os in
12552   msdosdjgpp*)
12553     # On DJGPP, this test can blow up pretty badly due to problems in libc
12554     # (any single argument exceeding 2000 bytes causes a buffer overrun
12555     # during glob expansion).  Even if it were fixed, the result of this
12556     # check would be larger than it should be.
12557     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12558     ;;
12559
12560   gnu*)
12561     # Under GNU Hurd, this test is not required because there is
12562     # no limit to the length of command line arguments.
12563     # Libtool will interpret -1 as no limit whatsoever
12564     lt_cv_sys_max_cmd_len=-1;
12565     ;;
12566
12567   cygwin* | mingw* | cegcc*)
12568     # On Win9x/ME, this test blows up -- it succeeds, but takes
12569     # about 5 minutes as the teststring grows exponentially.
12570     # Worse, since 9x/ME are not pre-emptively multitasking,
12571     # you end up with a "frozen" computer, even though with patience
12572     # the test eventually succeeds (with a max line length of 256k).
12573     # Instead, let's just punt: use the minimum linelength reported by
12574     # all of the supported platforms: 8192 (on NT/2K/XP).
12575     lt_cv_sys_max_cmd_len=8192;
12576     ;;
12577
12578   mint*)
12579     # On MiNT this can take a long time and run out of memory.
12580     lt_cv_sys_max_cmd_len=8192;
12581     ;;
12582
12583   amigaos*)
12584     # On AmigaOS with pdksh, this test takes hours, literally.
12585     # So we just punt and use a minimum line length of 8192.
12586     lt_cv_sys_max_cmd_len=8192;
12587     ;;
12588
12589   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12590     # This has been around since 386BSD, at least.  Likely further.
12591     if test -x /sbin/sysctl; then
12592       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12593     elif test -x /usr/sbin/sysctl; then
12594       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12595     else
12596       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12597     fi
12598     # And add a safety zone
12599     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12600     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12601     ;;
12602
12603   interix*)
12604     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12605     lt_cv_sys_max_cmd_len=196608
12606     ;;
12607
12608   osf*)
12609     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12610     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12611     # nice to cause kernel panics so lets avoid the loop below.
12612     # First set a reasonable default.
12613     lt_cv_sys_max_cmd_len=16384
12614     #
12615     if test -x /sbin/sysconfig; then
12616       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12617         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12618       esac
12619     fi
12620     ;;
12621   sco3.2v5*)
12622     lt_cv_sys_max_cmd_len=102400
12623     ;;
12624   sysv5* | sco5v6* | sysv4.2uw2*)
12625     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12626     if test -n "$kargmax"; then
12627       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12628     else
12629       lt_cv_sys_max_cmd_len=32768
12630     fi
12631     ;;
12632   *)
12633     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12634     if test -n "$lt_cv_sys_max_cmd_len"; then
12635       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12636       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12637     else
12638       # Make teststring a little bigger before we do anything with it.
12639       # a 1K string should be a reasonable start.
12640       for i in 1 2 3 4 5 6 7 8 ; do
12641         teststring=$teststring$teststring
12642       done
12643       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12644       # If test is not a shell built-in, we'll probably end up computing a
12645       # maximum length that is only half of the actual maximum length, but
12646       # we can't tell.
12647       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12648                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12649               test $i != 17 # 1/2 MB should be enough
12650       do
12651         i=`expr $i + 1`
12652         teststring=$teststring$teststring
12653       done
12654       # Only check the string length outside the loop.
12655       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12656       teststring=
12657       # Add a significant safety factor because C++ compilers can tack on
12658       # massive amounts of additional arguments before passing them to the
12659       # linker.  It appears as though 1/2 is a usable value.
12660       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12661     fi
12662     ;;
12663   esac
12664
12665 fi
12666
12667 if test -n $lt_cv_sys_max_cmd_len ; then
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12670 else
12671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12672 $as_echo "none" >&6; }
12673 fi
12674 max_cmd_len=$lt_cv_sys_max_cmd_len
12675
12676
12677
12678
12679
12680
12681 : ${CP="cp -f"}
12682 : ${MV="mv -f"}
12683 : ${RM="rm -f"}
12684
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12687 # Try some XSI features
12688 xsi_shell=no
12689 ( _lt_dummy="a/b/c"
12690   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12691       = c,a/b,, \
12692     && eval 'test $(( 1 + 1 )) -eq 2 \
12693     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12694   && xsi_shell=yes
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12696 $as_echo "$xsi_shell" >&6; }
12697
12698
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12700 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12701 lt_shell_append=no
12702 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12703     >/dev/null 2>&1 \
12704   && lt_shell_append=yes
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12706 $as_echo "$lt_shell_append" >&6; }
12707
12708
12709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12710   lt_unset=unset
12711 else
12712   lt_unset=false
12713 fi
12714
12715
12716
12717
12718
12719 # test EBCDIC or ASCII
12720 case `echo X|tr X '\101'` in
12721  A) # ASCII based system
12722     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12723   lt_SP2NL='tr \040 \012'
12724   lt_NL2SP='tr \015\012 \040\040'
12725   ;;
12726  *) # EBCDIC based system
12727   lt_SP2NL='tr \100 \n'
12728   lt_NL2SP='tr \r\n \100\100'
12729   ;;
12730 esac
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12741 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12742 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12743   $as_echo_n "(cached) " >&6
12744 else
12745   lt_cv_ld_reload_flag='-r'
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12748 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12749 reload_flag=$lt_cv_ld_reload_flag
12750 case $reload_flag in
12751 "" | " "*) ;;
12752 *) reload_flag=" $reload_flag" ;;
12753 esac
12754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12755 case $host_os in
12756   darwin*)
12757     if test "$GCC" = yes; then
12758       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12759     else
12760       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12761     fi
12762     ;;
12763 esac
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773 if test -n "$ac_tool_prefix"; then
12774   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12779   $as_echo_n "(cached) " >&6
12780 else
12781   if test -n "$OBJDUMP"; then
12782   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12783 else
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787   IFS=$as_save_IFS
12788   test -z "$as_dir" && as_dir=.
12789     for ac_exec_ext in '' $ac_executable_extensions; do
12790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793     break 2
12794   fi
12795 done
12796   done
12797 IFS=$as_save_IFS
12798
12799 fi
12800 fi
12801 OBJDUMP=$ac_cv_prog_OBJDUMP
12802 if test -n "$OBJDUMP"; then
12803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12804 $as_echo "$OBJDUMP" >&6; }
12805 else
12806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809
12810
12811 fi
12812 if test -z "$ac_cv_prog_OBJDUMP"; then
12813   ac_ct_OBJDUMP=$OBJDUMP
12814   # Extract the first word of "objdump", so it can be a program name with args.
12815 set dummy objdump; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817 $as_echo_n "checking for $ac_word... " >&6; }
12818 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12819   $as_echo_n "(cached) " >&6
12820 else
12821   if test -n "$ac_ct_OBJDUMP"; then
12822   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12823 else
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12826 do
12827   IFS=$as_save_IFS
12828   test -z "$as_dir" && as_dir=.
12829     for ac_exec_ext in '' $ac_executable_extensions; do
12830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12831     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833     break 2
12834   fi
12835 done
12836   done
12837 IFS=$as_save_IFS
12838
12839 fi
12840 fi
12841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12842 if test -n "$ac_ct_OBJDUMP"; then
12843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12844 $as_echo "$ac_ct_OBJDUMP" >&6; }
12845 else
12846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12848 fi
12849
12850   if test "x$ac_ct_OBJDUMP" = x; then
12851     OBJDUMP="false"
12852   else
12853     case $cross_compiling:$ac_tool_warned in
12854 yes:)
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12857 ac_tool_warned=yes ;;
12858 esac
12859     OBJDUMP=$ac_ct_OBJDUMP
12860   fi
12861 else
12862   OBJDUMP="$ac_cv_prog_OBJDUMP"
12863 fi
12864
12865 test -z "$OBJDUMP" && OBJDUMP=objdump
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12877 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12878   $as_echo_n "(cached) " >&6
12879 else
12880   lt_cv_file_magic_cmd='$MAGIC_CMD'
12881 lt_cv_file_magic_test_file=
12882 lt_cv_deplibs_check_method='unknown'
12883 # Need to set the preceding variable on all platforms that support
12884 # interlibrary dependencies.
12885 # 'none' -- dependencies not supported.
12886 # `unknown' -- same as none, but documents that we really don't know.
12887 # 'pass_all' -- all dependencies passed with no checks.
12888 # 'test_compile' -- check by making test program.
12889 # 'file_magic [[regex]]' -- check by looking for files in library path
12890 # which responds to the $file_magic_cmd with a given extended regex.
12891 # If you have `file' or equivalent on your system and you're not sure
12892 # whether `pass_all' will *always* work, you probably want this one.
12893
12894 case $host_os in
12895 aix[4-9]*)
12896   lt_cv_deplibs_check_method=pass_all
12897   ;;
12898
12899 beos*)
12900   lt_cv_deplibs_check_method=pass_all
12901   ;;
12902
12903 bsdi[45]*)
12904   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12905   lt_cv_file_magic_cmd='/usr/bin/file -L'
12906   lt_cv_file_magic_test_file=/shlib/libc.so
12907   ;;
12908
12909 cygwin*)
12910   # func_win32_libid is a shell function defined in ltmain.sh
12911   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12912   lt_cv_file_magic_cmd='func_win32_libid'
12913   ;;
12914
12915 mingw* | pw32*)
12916   # Base MSYS/MinGW do not provide the 'file' command needed by
12917   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12918   # unless we find 'file', for example because we are cross-compiling.
12919   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12920   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12921     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12922     lt_cv_file_magic_cmd='func_win32_libid'
12923   else
12924     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12925     lt_cv_file_magic_cmd='$OBJDUMP -f'
12926   fi
12927   ;;
12928
12929 cegcc*)
12930   # use the weaker test based on 'objdump'. See mingw*.
12931   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12932   lt_cv_file_magic_cmd='$OBJDUMP -f'
12933   ;;
12934
12935 darwin* | rhapsody*)
12936   lt_cv_deplibs_check_method=pass_all
12937   ;;
12938
12939 freebsd* | dragonfly*)
12940   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12941     case $host_cpu in
12942     i*86 )
12943       # Not sure whether the presence of OpenBSD here was a mistake.
12944       # Let's accept both of them until this is cleared up.
12945       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12946       lt_cv_file_magic_cmd=/usr/bin/file
12947       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12948       ;;
12949     esac
12950   else
12951     lt_cv_deplibs_check_method=pass_all
12952   fi
12953   ;;
12954
12955 gnu*)
12956   lt_cv_deplibs_check_method=pass_all
12957   ;;
12958
12959 haiku*)
12960   lt_cv_deplibs_check_method=pass_all
12961   ;;
12962
12963 hpux10.20* | hpux11*)
12964   lt_cv_file_magic_cmd=/usr/bin/file
12965   case $host_cpu in
12966   ia64*)
12967     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12968     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12969     ;;
12970   hppa*64*)
12971     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]'
12972     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12973     ;;
12974   *)
12975     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12976     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12977     ;;
12978   esac
12979   ;;
12980
12981 interix[3-9]*)
12982   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12983   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12984   ;;
12985
12986 irix5* | irix6* | nonstopux*)
12987   case $LD in
12988   *-32|*"-32 ") libmagic=32-bit;;
12989   *-n32|*"-n32 ") libmagic=N32;;
12990   *-64|*"-64 ") libmagic=64-bit;;
12991   *) libmagic=never-match;;
12992   esac
12993   lt_cv_deplibs_check_method=pass_all
12994   ;;
12995
12996 # This must be Linux ELF.
12997 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12998   lt_cv_deplibs_check_method=pass_all
12999   ;;
13000
13001 netbsd*)
13002   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13003     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13004   else
13005     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13006   fi
13007   ;;
13008
13009 newos6*)
13010   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13011   lt_cv_file_magic_cmd=/usr/bin/file
13012   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13013   ;;
13014
13015 *nto* | *qnx*)
13016   lt_cv_deplibs_check_method=pass_all
13017   ;;
13018
13019 openbsd*)
13020   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13021     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13022   else
13023     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13024   fi
13025   ;;
13026
13027 osf3* | osf4* | osf5*)
13028   lt_cv_deplibs_check_method=pass_all
13029   ;;
13030
13031 rdos*)
13032   lt_cv_deplibs_check_method=pass_all
13033   ;;
13034
13035 solaris*)
13036   lt_cv_deplibs_check_method=pass_all
13037   ;;
13038
13039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13040   lt_cv_deplibs_check_method=pass_all
13041   ;;
13042
13043 sysv4 | sysv4.3*)
13044   case $host_vendor in
13045   motorola)
13046     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]'
13047     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13048     ;;
13049   ncr)
13050     lt_cv_deplibs_check_method=pass_all
13051     ;;
13052   sequent)
13053     lt_cv_file_magic_cmd='/bin/file'
13054     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13055     ;;
13056   sni)
13057     lt_cv_file_magic_cmd='/bin/file'
13058     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13059     lt_cv_file_magic_test_file=/lib/libc.so
13060     ;;
13061   siemens)
13062     lt_cv_deplibs_check_method=pass_all
13063     ;;
13064   pc)
13065     lt_cv_deplibs_check_method=pass_all
13066     ;;
13067   esac
13068   ;;
13069
13070 tpf*)
13071   lt_cv_deplibs_check_method=pass_all
13072   ;;
13073 esac
13074
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13077 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13078 file_magic_cmd=$lt_cv_file_magic_cmd
13079 deplibs_check_method=$lt_cv_deplibs_check_method
13080 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093 if test -n "$ac_tool_prefix"; then
13094   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13095 set dummy ${ac_tool_prefix}ar; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if test "${ac_cv_prog_AR+set}" = set; then :
13099   $as_echo_n "(cached) " >&6
13100 else
13101   if test -n "$AR"; then
13102   ac_cv_prog_AR="$AR" # Let the user override the test.
13103 else
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13106 do
13107   IFS=$as_save_IFS
13108   test -z "$as_dir" && as_dir=.
13109     for ac_exec_ext in '' $ac_executable_extensions; do
13110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111     ac_cv_prog_AR="${ac_tool_prefix}ar"
13112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113     break 2
13114   fi
13115 done
13116   done
13117 IFS=$as_save_IFS
13118
13119 fi
13120 fi
13121 AR=$ac_cv_prog_AR
13122 if test -n "$AR"; then
13123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13124 $as_echo "$AR" >&6; }
13125 else
13126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128 fi
13129
13130
13131 fi
13132 if test -z "$ac_cv_prog_AR"; then
13133   ac_ct_AR=$AR
13134   # Extract the first word of "ar", so it can be a program name with args.
13135 set dummy ar; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13139   $as_echo_n "(cached) " >&6
13140 else
13141   if test -n "$ac_ct_AR"; then
13142   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147   IFS=$as_save_IFS
13148   test -z "$as_dir" && as_dir=.
13149     for ac_exec_ext in '' $ac_executable_extensions; do
13150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151     ac_cv_prog_ac_ct_AR="ar"
13152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153     break 2
13154   fi
13155 done
13156   done
13157 IFS=$as_save_IFS
13158
13159 fi
13160 fi
13161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13162 if test -n "$ac_ct_AR"; then
13163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13164 $as_echo "$ac_ct_AR" >&6; }
13165 else
13166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13168 fi
13169
13170   if test "x$ac_ct_AR" = x; then
13171     AR="false"
13172   else
13173     case $cross_compiling:$ac_tool_warned in
13174 yes:)
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13177 ac_tool_warned=yes ;;
13178 esac
13179     AR=$ac_ct_AR
13180   fi
13181 else
13182   AR="$ac_cv_prog_AR"
13183 fi
13184
13185 test -z "$AR" && AR=ar
13186 test -z "$AR_FLAGS" && AR_FLAGS=cru
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198 if test -n "$ac_tool_prefix"; then
13199   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13200 set dummy ${ac_tool_prefix}strip; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if test "${ac_cv_prog_STRIP+set}" = set; then :
13204   $as_echo_n "(cached) " >&6
13205 else
13206   if test -n "$STRIP"; then
13207   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13208 else
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13211 do
13212   IFS=$as_save_IFS
13213   test -z "$as_dir" && as_dir=.
13214     for ac_exec_ext in '' $ac_executable_extensions; do
13215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13216     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13218     break 2
13219   fi
13220 done
13221   done
13222 IFS=$as_save_IFS
13223
13224 fi
13225 fi
13226 STRIP=$ac_cv_prog_STRIP
13227 if test -n "$STRIP"; then
13228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13229 $as_echo "$STRIP" >&6; }
13230 else
13231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13233 fi
13234
13235
13236 fi
13237 if test -z "$ac_cv_prog_STRIP"; then
13238   ac_ct_STRIP=$STRIP
13239   # Extract the first word of "strip", so it can be a program name with args.
13240 set dummy strip; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13244   $as_echo_n "(cached) " >&6
13245 else
13246   if test -n "$ac_ct_STRIP"; then
13247   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13248 else
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13251 do
13252   IFS=$as_save_IFS
13253   test -z "$as_dir" && as_dir=.
13254     for ac_exec_ext in '' $ac_executable_extensions; do
13255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13256     ac_cv_prog_ac_ct_STRIP="strip"
13257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13258     break 2
13259   fi
13260 done
13261   done
13262 IFS=$as_save_IFS
13263
13264 fi
13265 fi
13266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13267 if test -n "$ac_ct_STRIP"; then
13268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13269 $as_echo "$ac_ct_STRIP" >&6; }
13270 else
13271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13273 fi
13274
13275   if test "x$ac_ct_STRIP" = x; then
13276     STRIP=":"
13277   else
13278     case $cross_compiling:$ac_tool_warned in
13279 yes:)
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13282 ac_tool_warned=yes ;;
13283 esac
13284     STRIP=$ac_ct_STRIP
13285   fi
13286 else
13287   STRIP="$ac_cv_prog_STRIP"
13288 fi
13289
13290 test -z "$STRIP" && STRIP=:
13291
13292
13293
13294
13295
13296
13297 if test -n "$ac_tool_prefix"; then
13298   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301 $as_echo_n "checking for $ac_word... " >&6; }
13302 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13303   $as_echo_n "(cached) " >&6
13304 else
13305   if test -n "$RANLIB"; then
13306   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13307 else
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13310 do
13311   IFS=$as_save_IFS
13312   test -z "$as_dir" && as_dir=.
13313     for ac_exec_ext in '' $ac_executable_extensions; do
13314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13315     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13317     break 2
13318   fi
13319 done
13320   done
13321 IFS=$as_save_IFS
13322
13323 fi
13324 fi
13325 RANLIB=$ac_cv_prog_RANLIB
13326 if test -n "$RANLIB"; then
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13328 $as_echo "$RANLIB" >&6; }
13329 else
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332 fi
13333
13334
13335 fi
13336 if test -z "$ac_cv_prog_RANLIB"; then
13337   ac_ct_RANLIB=$RANLIB
13338   # Extract the first word of "ranlib", so it can be a program name with args.
13339 set dummy ranlib; ac_word=$2
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341 $as_echo_n "checking for $ac_word... " >&6; }
13342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   if test -n "$ac_ct_RANLIB"; then
13346   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13347 else
13348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349 for as_dir in $PATH
13350 do
13351   IFS=$as_save_IFS
13352   test -z "$as_dir" && as_dir=.
13353     for ac_exec_ext in '' $ac_executable_extensions; do
13354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13355     ac_cv_prog_ac_ct_RANLIB="ranlib"
13356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357     break 2
13358   fi
13359 done
13360   done
13361 IFS=$as_save_IFS
13362
13363 fi
13364 fi
13365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13366 if test -n "$ac_ct_RANLIB"; then
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13368 $as_echo "$ac_ct_RANLIB" >&6; }
13369 else
13370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371 $as_echo "no" >&6; }
13372 fi
13373
13374   if test "x$ac_ct_RANLIB" = x; then
13375     RANLIB=":"
13376   else
13377     case $cross_compiling:$ac_tool_warned in
13378 yes:)
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13381 ac_tool_warned=yes ;;
13382 esac
13383     RANLIB=$ac_ct_RANLIB
13384   fi
13385 else
13386   RANLIB="$ac_cv_prog_RANLIB"
13387 fi
13388
13389 test -z "$RANLIB" && RANLIB=:
13390
13391
13392
13393
13394
13395
13396 # Determine commands to create old-style static archives.
13397 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13398 old_postinstall_cmds='chmod 644 $oldlib'
13399 old_postuninstall_cmds=
13400
13401 if test -n "$RANLIB"; then
13402   case $host_os in
13403   openbsd*)
13404     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13405     ;;
13406   *)
13407     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13408     ;;
13409   esac
13410   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13411 fi
13412
13413 case $host_os in
13414   darwin*)
13415     lock_old_archive_extraction=yes ;;
13416   *)
13417     lock_old_archive_extraction=no ;;
13418 esac
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458 # If no C compiler was specified, use CC.
13459 LTCC=${LTCC-"$CC"}
13460
13461 # If no C compiler flags were specified, use CFLAGS.
13462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13463
13464 # Allow CC to be a program name with arguments.
13465 compiler=$CC
13466
13467
13468 # Check for command to grab the raw symbol name followed by C symbol from nm.
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13470 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13471 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13472   $as_echo_n "(cached) " >&6
13473 else
13474
13475 # These are sane defaults that work on at least a few old systems.
13476 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13477
13478 # Character class describing NM global symbol codes.
13479 symcode='[BCDEGRST]'
13480
13481 # Regexp to match symbols that can be accessed directly from C.
13482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13483
13484 # Define system-specific variables.
13485 case $host_os in
13486 aix*)
13487   symcode='[BCDT]'
13488   ;;
13489 cygwin* | mingw* | pw32* | cegcc*)
13490   symcode='[ABCDGISTW]'
13491   ;;
13492 hpux*)
13493   if test "$host_cpu" = ia64; then
13494     symcode='[ABCDEGRST]'
13495   fi
13496   ;;
13497 irix* | nonstopux*)
13498   symcode='[BCDEGRST]'
13499   ;;
13500 osf*)
13501   symcode='[BCDEGQRST]'
13502   ;;
13503 solaris*)
13504   symcode='[BDRT]'
13505   ;;
13506 sco3.2v5*)
13507   symcode='[DT]'
13508   ;;
13509 sysv4.2uw2*)
13510   symcode='[DT]'
13511   ;;
13512 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13513   symcode='[ABDT]'
13514   ;;
13515 sysv4)
13516   symcode='[DFNSTU]'
13517   ;;
13518 esac
13519
13520 # If we're using GNU nm, then use its standard symbol codes.
13521 case `$NM -V 2>&1` in
13522 *GNU* | *'with BFD'*)
13523   symcode='[ABCDGIRSTW]' ;;
13524 esac
13525
13526 # Transform an extracted symbol line into a proper C declaration.
13527 # Some systems (esp. on ia64) link data and code symbols differently,
13528 # so use this general approach.
13529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13530
13531 # Transform an extracted symbol line into symbol name and symbol address
13532 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13533 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'"
13534
13535 # Handle CRLF in mingw tool chain
13536 opt_cr=
13537 case $build_os in
13538 mingw*)
13539   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13540   ;;
13541 esac
13542
13543 # Try without a prefix underscore, then with it.
13544 for ac_symprfx in "" "_"; do
13545
13546   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13547   symxfrm="\\1 $ac_symprfx\\2 \\2"
13548
13549   # Write the raw and C identifiers.
13550   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13551     # Fake it for dumpbin and say T for any non-static function
13552     # and D for any global variable.
13553     # Also find C++ and __fastcall symbols from MSVC++,
13554     # which start with @ or ?.
13555     lt_cv_sys_global_symbol_pipe="$AWK '"\
13556 "     {last_section=section; section=\$ 3};"\
13557 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13558 "     \$ 0!~/External *\|/{next};"\
13559 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13560 "     {if(hide[section]) next};"\
13561 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13562 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13563 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13564 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13565 "     ' prfx=^$ac_symprfx"
13566   else
13567     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13568   fi
13569
13570   # Check to see that the pipe works correctly.
13571   pipe_works=no
13572
13573   rm -f conftest*
13574   cat > conftest.$ac_ext <<_LT_EOF
13575 #ifdef __cplusplus
13576 extern "C" {
13577 #endif
13578 char nm_test_var;
13579 void nm_test_func(void);
13580 void nm_test_func(void){}
13581 #ifdef __cplusplus
13582 }
13583 #endif
13584 int main(){nm_test_var='a';nm_test_func();return(0);}
13585 _LT_EOF
13586
13587   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13588   (eval $ac_compile) 2>&5
13589   ac_status=$?
13590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13591   test $ac_status = 0; }; then
13592     # Now try to grab the symbols.
13593     nlist=conftest.nm
13594     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13595   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13596   ac_status=$?
13597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598   test $ac_status = 0; } && test -s "$nlist"; then
13599       # Try sorting and uniquifying the output.
13600       if sort "$nlist" | uniq > "$nlist"T; then
13601         mv -f "$nlist"T "$nlist"
13602       else
13603         rm -f "$nlist"T
13604       fi
13605
13606       # Make sure that we snagged all the symbols we need.
13607       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13608         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13609           cat <<_LT_EOF > conftest.$ac_ext
13610 #ifdef __cplusplus
13611 extern "C" {
13612 #endif
13613
13614 _LT_EOF
13615           # Now generate the symbol file.
13616           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13617
13618           cat <<_LT_EOF >> conftest.$ac_ext
13619
13620 /* The mapping between symbol names and symbols.  */
13621 const struct {
13622   const char *name;
13623   void       *address;
13624 }
13625 lt__PROGRAM__LTX_preloaded_symbols[] =
13626 {
13627   { "@PROGRAM@", (void *) 0 },
13628 _LT_EOF
13629           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13630           cat <<\_LT_EOF >> conftest.$ac_ext
13631   {0, (void *) 0}
13632 };
13633
13634 /* This works around a problem in FreeBSD linker */
13635 #ifdef FREEBSD_WORKAROUND
13636 static const void *lt_preloaded_setup() {
13637   return lt__PROGRAM__LTX_preloaded_symbols;
13638 }
13639 #endif
13640
13641 #ifdef __cplusplus
13642 }
13643 #endif
13644 _LT_EOF
13645           # Now try linking the two files.
13646           mv conftest.$ac_objext conftstm.$ac_objext
13647           lt_save_LIBS="$LIBS"
13648           lt_save_CFLAGS="$CFLAGS"
13649           LIBS="conftstm.$ac_objext"
13650           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13651           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13652   (eval $ac_link) 2>&5
13653   ac_status=$?
13654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13656             pipe_works=yes
13657           fi
13658           LIBS="$lt_save_LIBS"
13659           CFLAGS="$lt_save_CFLAGS"
13660         else
13661           echo "cannot find nm_test_func in $nlist" >&5
13662         fi
13663       else
13664         echo "cannot find nm_test_var in $nlist" >&5
13665       fi
13666     else
13667       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13668     fi
13669   else
13670     echo "$progname: failed program was:" >&5
13671     cat conftest.$ac_ext >&5
13672   fi
13673   rm -rf conftest* conftst*
13674
13675   # Do not use the global_symbol_pipe unless it works.
13676   if test "$pipe_works" = yes; then
13677     break
13678   else
13679     lt_cv_sys_global_symbol_pipe=
13680   fi
13681 done
13682
13683 fi
13684
13685 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13686   lt_cv_sys_global_symbol_to_cdecl=
13687 fi
13688 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13690 $as_echo "failed" >&6; }
13691 else
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13693 $as_echo "ok" >&6; }
13694 fi
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717 # Check whether --enable-libtool-lock was given.
13718 if test "${enable_libtool_lock+set}" = set; then :
13719   enableval=$enable_libtool_lock;
13720 fi
13721
13722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13723
13724 # Some flags need to be propagated to the compiler or linker for good
13725 # libtool support.
13726 case $host in
13727 ia64-*-hpux*)
13728   # Find out which ABI we are using.
13729   echo 'int i;' > conftest.$ac_ext
13730   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13731   (eval $ac_compile) 2>&5
13732   ac_status=$?
13733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734   test $ac_status = 0; }; then
13735     case `/usr/bin/file conftest.$ac_objext` in
13736       *ELF-32*)
13737         HPUX_IA64_MODE="32"
13738         ;;
13739       *ELF-64*)
13740         HPUX_IA64_MODE="64"
13741         ;;
13742     esac
13743   fi
13744   rm -rf conftest*
13745   ;;
13746 *-*-irix6*)
13747   # Find out which ABI we are using.
13748   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13749   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13750   (eval $ac_compile) 2>&5
13751   ac_status=$?
13752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753   test $ac_status = 0; }; then
13754     if test "$lt_cv_prog_gnu_ld" = yes; then
13755       case `/usr/bin/file conftest.$ac_objext` in
13756         *32-bit*)
13757           LD="${LD-ld} -melf32bsmip"
13758           ;;
13759         *N32*)
13760           LD="${LD-ld} -melf32bmipn32"
13761           ;;
13762         *64-bit*)
13763           LD="${LD-ld} -melf64bmip"
13764         ;;
13765       esac
13766     else
13767       case `/usr/bin/file conftest.$ac_objext` in
13768         *32-bit*)
13769           LD="${LD-ld} -32"
13770           ;;
13771         *N32*)
13772           LD="${LD-ld} -n32"
13773           ;;
13774         *64-bit*)
13775           LD="${LD-ld} -64"
13776           ;;
13777       esac
13778     fi
13779   fi
13780   rm -rf conftest*
13781   ;;
13782
13783 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13784 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13785   # Find out which ABI we are using.
13786   echo 'int i;' > conftest.$ac_ext
13787   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13788   (eval $ac_compile) 2>&5
13789   ac_status=$?
13790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13791   test $ac_status = 0; }; then
13792     case `/usr/bin/file conftest.o` in
13793       *32-bit*)
13794         case $host in
13795           x86_64-*kfreebsd*-gnu)
13796             LD="${LD-ld} -m elf_i386_fbsd"
13797             ;;
13798           x86_64-*linux*)
13799             LD="${LD-ld} -m elf_i386"
13800             ;;
13801           ppc64-*linux*|powerpc64-*linux*)
13802             LD="${LD-ld} -m elf32ppclinux"
13803             ;;
13804           s390x-*linux*)
13805             LD="${LD-ld} -m elf_s390"
13806             ;;
13807           sparc64-*linux*)
13808             LD="${LD-ld} -m elf32_sparc"
13809             ;;
13810         esac
13811         ;;
13812       *64-bit*)
13813         case $host in
13814           x86_64-*kfreebsd*-gnu)
13815             LD="${LD-ld} -m elf_x86_64_fbsd"
13816             ;;
13817           x86_64-*linux*)
13818             LD="${LD-ld} -m elf_x86_64"
13819             ;;
13820           ppc*-*linux*|powerpc*-*linux*)
13821             LD="${LD-ld} -m elf64ppc"
13822             ;;
13823           s390*-*linux*|s390*-*tpf*)
13824             LD="${LD-ld} -m elf64_s390"
13825             ;;
13826           sparc*-*linux*)
13827             LD="${LD-ld} -m elf64_sparc"
13828             ;;
13829         esac
13830         ;;
13831     esac
13832   fi
13833   rm -rf conftest*
13834   ;;
13835
13836 *-*-sco3.2v5*)
13837   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13838   SAVE_CFLAGS="$CFLAGS"
13839   CFLAGS="$CFLAGS -belf"
13840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13841 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13842 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13843   $as_echo_n "(cached) " >&6
13844 else
13845   ac_ext=c
13846 ac_cpp='$CPP $CPPFLAGS'
13847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13850
13851      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h.  */
13853
13854 int
13855 main ()
13856 {
13857
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 if ac_fn_c_try_link "$LINENO"; then :
13863   lt_cv_cc_needs_belf=yes
13864 else
13865   lt_cv_cc_needs_belf=no
13866 fi
13867 rm -f core conftest.err conftest.$ac_objext \
13868     conftest$ac_exeext conftest.$ac_ext
13869      ac_ext=c
13870 ac_cpp='$CPP $CPPFLAGS'
13871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13874
13875 fi
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13877 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13878   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13879     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13880     CFLAGS="$SAVE_CFLAGS"
13881   fi
13882   ;;
13883 sparc*-*solaris*)
13884   # Find out which ABI we are using.
13885   echo 'int i;' > conftest.$ac_ext
13886   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13887   (eval $ac_compile) 2>&5
13888   ac_status=$?
13889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890   test $ac_status = 0; }; then
13891     case `/usr/bin/file conftest.o` in
13892     *64-bit*)
13893       case $lt_cv_prog_gnu_ld in
13894       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13895       *)
13896         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13897           LD="${LD-ld} -64"
13898         fi
13899         ;;
13900       esac
13901       ;;
13902     esac
13903   fi
13904   rm -rf conftest*
13905   ;;
13906 esac
13907
13908 need_locks="$enable_libtool_lock"
13909
13910
13911   case $host_os in
13912     rhapsody* | darwin*)
13913     if test -n "$ac_tool_prefix"; then
13914   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13915 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13919   $as_echo_n "(cached) " >&6
13920 else
13921   if test -n "$DSYMUTIL"; then
13922   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13926 do
13927   IFS=$as_save_IFS
13928   test -z "$as_dir" && as_dir=.
13929     for ac_exec_ext in '' $ac_executable_extensions; do
13930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13931     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933     break 2
13934   fi
13935 done
13936   done
13937 IFS=$as_save_IFS
13938
13939 fi
13940 fi
13941 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13942 if test -n "$DSYMUTIL"; then
13943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13944 $as_echo "$DSYMUTIL" >&6; }
13945 else
13946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13948 fi
13949
13950
13951 fi
13952 if test -z "$ac_cv_prog_DSYMUTIL"; then
13953   ac_ct_DSYMUTIL=$DSYMUTIL
13954   # Extract the first word of "dsymutil", so it can be a program name with args.
13955 set dummy dsymutil; ac_word=$2
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13957 $as_echo_n "checking for $ac_word... " >&6; }
13958 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13959   $as_echo_n "(cached) " >&6
13960 else
13961   if test -n "$ac_ct_DSYMUTIL"; then
13962   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13963 else
13964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13965 for as_dir in $PATH
13966 do
13967   IFS=$as_save_IFS
13968   test -z "$as_dir" && as_dir=.
13969     for ac_exec_ext in '' $ac_executable_extensions; do
13970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13971     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13973     break 2
13974   fi
13975 done
13976   done
13977 IFS=$as_save_IFS
13978
13979 fi
13980 fi
13981 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13982 if test -n "$ac_ct_DSYMUTIL"; then
13983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13984 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13985 else
13986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13987 $as_echo "no" >&6; }
13988 fi
13989
13990   if test "x$ac_ct_DSYMUTIL" = x; then
13991     DSYMUTIL=":"
13992   else
13993     case $cross_compiling:$ac_tool_warned in
13994 yes:)
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13997 ac_tool_warned=yes ;;
13998 esac
13999     DSYMUTIL=$ac_ct_DSYMUTIL
14000   fi
14001 else
14002   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14003 fi
14004
14005     if test -n "$ac_tool_prefix"; then
14006   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14007 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14009 $as_echo_n "checking for $ac_word... " >&6; }
14010 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14011   $as_echo_n "(cached) " >&6
14012 else
14013   if test -n "$NMEDIT"; then
14014   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14015 else
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14018 do
14019   IFS=$as_save_IFS
14020   test -z "$as_dir" && as_dir=.
14021     for ac_exec_ext in '' $ac_executable_extensions; do
14022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14023     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14025     break 2
14026   fi
14027 done
14028   done
14029 IFS=$as_save_IFS
14030
14031 fi
14032 fi
14033 NMEDIT=$ac_cv_prog_NMEDIT
14034 if test -n "$NMEDIT"; then
14035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14036 $as_echo "$NMEDIT" >&6; }
14037 else
14038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14040 fi
14041
14042
14043 fi
14044 if test -z "$ac_cv_prog_NMEDIT"; then
14045   ac_ct_NMEDIT=$NMEDIT
14046   # Extract the first word of "nmedit", so it can be a program name with args.
14047 set dummy nmedit; ac_word=$2
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14049 $as_echo_n "checking for $ac_word... " >&6; }
14050 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14051   $as_echo_n "(cached) " >&6
14052 else
14053   if test -n "$ac_ct_NMEDIT"; then
14054   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14055 else
14056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057 for as_dir in $PATH
14058 do
14059   IFS=$as_save_IFS
14060   test -z "$as_dir" && as_dir=.
14061     for ac_exec_ext in '' $ac_executable_extensions; do
14062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14063     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14065     break 2
14066   fi
14067 done
14068   done
14069 IFS=$as_save_IFS
14070
14071 fi
14072 fi
14073 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14074 if test -n "$ac_ct_NMEDIT"; then
14075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14076 $as_echo "$ac_ct_NMEDIT" >&6; }
14077 else
14078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14080 fi
14081
14082   if test "x$ac_ct_NMEDIT" = x; then
14083     NMEDIT=":"
14084   else
14085     case $cross_compiling:$ac_tool_warned in
14086 yes:)
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14089 ac_tool_warned=yes ;;
14090 esac
14091     NMEDIT=$ac_ct_NMEDIT
14092   fi
14093 else
14094   NMEDIT="$ac_cv_prog_NMEDIT"
14095 fi
14096
14097     if test -n "$ac_tool_prefix"; then
14098   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14099 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14101 $as_echo_n "checking for $ac_word... " >&6; }
14102 if test "${ac_cv_prog_LIPO+set}" = set; then :
14103   $as_echo_n "(cached) " >&6
14104 else
14105   if test -n "$LIPO"; then
14106   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14107 else
14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14110 do
14111   IFS=$as_save_IFS
14112   test -z "$as_dir" && as_dir=.
14113     for ac_exec_ext in '' $ac_executable_extensions; do
14114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14115     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14117     break 2
14118   fi
14119 done
14120   done
14121 IFS=$as_save_IFS
14122
14123 fi
14124 fi
14125 LIPO=$ac_cv_prog_LIPO
14126 if test -n "$LIPO"; then
14127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14128 $as_echo "$LIPO" >&6; }
14129 else
14130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14132 fi
14133
14134
14135 fi
14136 if test -z "$ac_cv_prog_LIPO"; then
14137   ac_ct_LIPO=$LIPO
14138   # Extract the first word of "lipo", so it can be a program name with args.
14139 set dummy lipo; ac_word=$2
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14141 $as_echo_n "checking for $ac_word... " >&6; }
14142 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14143   $as_echo_n "(cached) " >&6
14144 else
14145   if test -n "$ac_ct_LIPO"; then
14146   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14147 else
14148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14149 for as_dir in $PATH
14150 do
14151   IFS=$as_save_IFS
14152   test -z "$as_dir" && as_dir=.
14153     for ac_exec_ext in '' $ac_executable_extensions; do
14154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14155     ac_cv_prog_ac_ct_LIPO="lipo"
14156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14157     break 2
14158   fi
14159 done
14160   done
14161 IFS=$as_save_IFS
14162
14163 fi
14164 fi
14165 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14166 if test -n "$ac_ct_LIPO"; then
14167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14168 $as_echo "$ac_ct_LIPO" >&6; }
14169 else
14170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 $as_echo "no" >&6; }
14172 fi
14173
14174   if test "x$ac_ct_LIPO" = x; then
14175     LIPO=":"
14176   else
14177     case $cross_compiling:$ac_tool_warned in
14178 yes:)
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14181 ac_tool_warned=yes ;;
14182 esac
14183     LIPO=$ac_ct_LIPO
14184   fi
14185 else
14186   LIPO="$ac_cv_prog_LIPO"
14187 fi
14188
14189     if test -n "$ac_tool_prefix"; then
14190   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14191 set dummy ${ac_tool_prefix}otool; ac_word=$2
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193 $as_echo_n "checking for $ac_word... " >&6; }
14194 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14195   $as_echo_n "(cached) " >&6
14196 else
14197   if test -n "$OTOOL"; then
14198   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14199 else
14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201 for as_dir in $PATH
14202 do
14203   IFS=$as_save_IFS
14204   test -z "$as_dir" && as_dir=.
14205     for ac_exec_ext in '' $ac_executable_extensions; do
14206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14207     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14209     break 2
14210   fi
14211 done
14212   done
14213 IFS=$as_save_IFS
14214
14215 fi
14216 fi
14217 OTOOL=$ac_cv_prog_OTOOL
14218 if test -n "$OTOOL"; then
14219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14220 $as_echo "$OTOOL" >&6; }
14221 else
14222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14224 fi
14225
14226
14227 fi
14228 if test -z "$ac_cv_prog_OTOOL"; then
14229   ac_ct_OTOOL=$OTOOL
14230   # Extract the first word of "otool", so it can be a program name with args.
14231 set dummy otool; ac_word=$2
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14233 $as_echo_n "checking for $ac_word... " >&6; }
14234 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14235   $as_echo_n "(cached) " >&6
14236 else
14237   if test -n "$ac_ct_OTOOL"; then
14238   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14239 else
14240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14241 for as_dir in $PATH
14242 do
14243   IFS=$as_save_IFS
14244   test -z "$as_dir" && as_dir=.
14245     for ac_exec_ext in '' $ac_executable_extensions; do
14246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14247     ac_cv_prog_ac_ct_OTOOL="otool"
14248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14249     break 2
14250   fi
14251 done
14252   done
14253 IFS=$as_save_IFS
14254
14255 fi
14256 fi
14257 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14258 if test -n "$ac_ct_OTOOL"; then
14259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14260 $as_echo "$ac_ct_OTOOL" >&6; }
14261 else
14262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14263 $as_echo "no" >&6; }
14264 fi
14265
14266   if test "x$ac_ct_OTOOL" = x; then
14267     OTOOL=":"
14268   else
14269     case $cross_compiling:$ac_tool_warned in
14270 yes:)
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14273 ac_tool_warned=yes ;;
14274 esac
14275     OTOOL=$ac_ct_OTOOL
14276   fi
14277 else
14278   OTOOL="$ac_cv_prog_OTOOL"
14279 fi
14280
14281     if test -n "$ac_tool_prefix"; then
14282   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14283 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14287   $as_echo_n "(cached) " >&6
14288 else
14289   if test -n "$OTOOL64"; then
14290   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14291 else
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14294 do
14295   IFS=$as_save_IFS
14296   test -z "$as_dir" && as_dir=.
14297     for ac_exec_ext in '' $ac_executable_extensions; do
14298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14299     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14301     break 2
14302   fi
14303 done
14304   done
14305 IFS=$as_save_IFS
14306
14307 fi
14308 fi
14309 OTOOL64=$ac_cv_prog_OTOOL64
14310 if test -n "$OTOOL64"; then
14311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14312 $as_echo "$OTOOL64" >&6; }
14313 else
14314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316 fi
14317
14318
14319 fi
14320 if test -z "$ac_cv_prog_OTOOL64"; then
14321   ac_ct_OTOOL64=$OTOOL64
14322   # Extract the first word of "otool64", so it can be a program name with args.
14323 set dummy otool64; ac_word=$2
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14325 $as_echo_n "checking for $ac_word... " >&6; }
14326 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14327   $as_echo_n "(cached) " >&6
14328 else
14329   if test -n "$ac_ct_OTOOL64"; then
14330   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14331 else
14332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14333 for as_dir in $PATH
14334 do
14335   IFS=$as_save_IFS
14336   test -z "$as_dir" && as_dir=.
14337     for ac_exec_ext in '' $ac_executable_extensions; do
14338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14339     ac_cv_prog_ac_ct_OTOOL64="otool64"
14340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14341     break 2
14342   fi
14343 done
14344   done
14345 IFS=$as_save_IFS
14346
14347 fi
14348 fi
14349 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14350 if test -n "$ac_ct_OTOOL64"; then
14351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14352 $as_echo "$ac_ct_OTOOL64" >&6; }
14353 else
14354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14356 fi
14357
14358   if test "x$ac_ct_OTOOL64" = x; then
14359     OTOOL64=":"
14360   else
14361     case $cross_compiling:$ac_tool_warned in
14362 yes:)
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14365 ac_tool_warned=yes ;;
14366 esac
14367     OTOOL64=$ac_ct_OTOOL64
14368   fi
14369 else
14370   OTOOL64="$ac_cv_prog_OTOOL64"
14371 fi
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14400 $as_echo_n "checking for -single_module linker flag... " >&6; }
14401 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14402   $as_echo_n "(cached) " >&6
14403 else
14404   lt_cv_apple_cc_single_mod=no
14405       if test -z "${LT_MULTI_MODULE}"; then
14406         # By default we will add the -single_module flag. You can override
14407         # by either setting the environment variable LT_MULTI_MODULE
14408         # non-empty at configure time, or by adding -multi_module to the
14409         # link flags.
14410         rm -rf libconftest.dylib*
14411         echo "int foo(void){return 1;}" > conftest.c
14412         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14413 -dynamiclib -Wl,-single_module conftest.c" >&5
14414         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14415           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14416         _lt_result=$?
14417         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14418           lt_cv_apple_cc_single_mod=yes
14419         else
14420           cat conftest.err >&5
14421         fi
14422         rm -rf libconftest.dylib*
14423         rm -f conftest.*
14424       fi
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14427 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14429 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14430 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14431   $as_echo_n "(cached) " >&6
14432 else
14433   lt_cv_ld_exported_symbols_list=no
14434       save_LDFLAGS=$LDFLAGS
14435       echo "_main" > conftest.sym
14436       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14437       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h.  */
14439
14440 int
14441 main ()
14442 {
14443
14444   ;
14445   return 0;
14446 }
14447 _ACEOF
14448 if ac_fn_c_try_link "$LINENO"; then :
14449   lt_cv_ld_exported_symbols_list=yes
14450 else
14451   lt_cv_ld_exported_symbols_list=no
14452 fi
14453 rm -f core conftest.err conftest.$ac_objext \
14454     conftest$ac_exeext conftest.$ac_ext
14455         LDFLAGS="$save_LDFLAGS"
14456
14457 fi
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14459 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14461 $as_echo_n "checking for -force_load linker flag... " >&6; }
14462 if test "${lt_cv_ld_force_load+set}" = set; then :
14463   $as_echo_n "(cached) " >&6
14464 else
14465   lt_cv_ld_force_load=no
14466       cat > conftest.c << _LT_EOF
14467 int forced_loaded() { return 2;}
14468 _LT_EOF
14469       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14470       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14471       echo "$AR cru libconftest.a conftest.o" >&5
14472       $AR cru libconftest.a conftest.o 2>&5
14473       cat > conftest.c << _LT_EOF
14474 int main() { return 0;}
14475 _LT_EOF
14476       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14477       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14478       _lt_result=$?
14479       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14480         lt_cv_ld_force_load=yes
14481       else
14482         cat conftest.err >&5
14483       fi
14484         rm -f conftest.err libconftest.a conftest conftest.c
14485         rm -rf conftest.dSYM
14486
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14489 $as_echo "$lt_cv_ld_force_load" >&6; }
14490     case $host_os in
14491     rhapsody* | darwin1.[012])
14492       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14493     darwin1.*)
14494       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14495     darwin*) # darwin 5.x on
14496       # if running on 10.5 or later, the deployment target defaults
14497       # to the OS version, if on x86, and 10.4, the deployment
14498       # target defaults to 10.4. Don't you love it?
14499       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14500         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14501           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14502         10.[012]*)
14503           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14504         10.*)
14505           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14506       esac
14507     ;;
14508   esac
14509     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14510       _lt_dar_single_mod='$single_module'
14511     fi
14512     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14513       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14514     else
14515       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14516     fi
14517     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14518       _lt_dsymutil='~$DSYMUTIL $lib || :'
14519     else
14520       _lt_dsymutil=
14521     fi
14522     ;;
14523   esac
14524
14525 for ac_header in dlfcn.h
14526 do :
14527   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14528 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14529   cat >>confdefs.h <<_ACEOF
14530 #define HAVE_DLFCN_H 1
14531 _ACEOF
14532
14533 fi
14534 done
14535
14536
14537
14538
14539
14540 # Set options
14541
14542
14543
14544         enable_dlopen=no
14545
14546
14547   enable_win32_dll=no
14548
14549
14550             # Check whether --enable-shared was given.
14551 if test "${enable_shared+set}" = set; then :
14552   enableval=$enable_shared; p=${PACKAGE-default}
14553     case $enableval in
14554     yes) enable_shared=yes ;;
14555     no) enable_shared=no ;;
14556     *)
14557       enable_shared=no
14558       # Look at the argument we got.  We use all the common list separators.
14559       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14560       for pkg in $enableval; do
14561         IFS="$lt_save_ifs"
14562         if test "X$pkg" = "X$p"; then
14563           enable_shared=yes
14564         fi
14565       done
14566       IFS="$lt_save_ifs"
14567       ;;
14568     esac
14569 else
14570   enable_shared=yes
14571 fi
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581   # Check whether --enable-static was given.
14582 if test "${enable_static+set}" = set; then :
14583   enableval=$enable_static; p=${PACKAGE-default}
14584     case $enableval in
14585     yes) enable_static=yes ;;
14586     no) enable_static=no ;;
14587     *)
14588      enable_static=no
14589       # Look at the argument we got.  We use all the common list separators.
14590       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14591       for pkg in $enableval; do
14592         IFS="$lt_save_ifs"
14593         if test "X$pkg" = "X$p"; then
14594           enable_static=yes
14595         fi
14596       done
14597       IFS="$lt_save_ifs"
14598       ;;
14599     esac
14600 else
14601   enable_static=yes
14602 fi
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613 # Check whether --with-pic was given.
14614 if test "${with_pic+set}" = set; then :
14615   withval=$with_pic; pic_mode="$withval"
14616 else
14617   pic_mode=default
14618 fi
14619
14620
14621 test -z "$pic_mode" && pic_mode=default
14622
14623
14624
14625
14626
14627
14628
14629   # Check whether --enable-fast-install was given.
14630 if test "${enable_fast_install+set}" = set; then :
14631   enableval=$enable_fast_install; p=${PACKAGE-default}
14632     case $enableval in
14633     yes) enable_fast_install=yes ;;
14634     no) enable_fast_install=no ;;
14635     *)
14636       enable_fast_install=no
14637       # Look at the argument we got.  We use all the common list separators.
14638       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14639       for pkg in $enableval; do
14640         IFS="$lt_save_ifs"
14641         if test "X$pkg" = "X$p"; then
14642           enable_fast_install=yes
14643         fi
14644       done
14645       IFS="$lt_save_ifs"
14646       ;;
14647     esac
14648 else
14649   enable_fast_install=yes
14650 fi
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662 # This can be used to rebuild libtool when needed
14663 LIBTOOL_DEPS="$ltmain"
14664
14665 # Always use our own libtool.
14666 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693 test -z "$LN_S" && LN_S="ln -s"
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708 if test -n "${ZSH_VERSION+set}" ; then
14709    setopt NO_GLOB_SUBST
14710 fi
14711
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14713 $as_echo_n "checking for objdir... " >&6; }
14714 if test "${lt_cv_objdir+set}" = set; then :
14715   $as_echo_n "(cached) " >&6
14716 else
14717   rm -f .libs 2>/dev/null
14718 mkdir .libs 2>/dev/null
14719 if test -d .libs; then
14720   lt_cv_objdir=.libs
14721 else
14722   # MS-DOS does not allow filenames that begin with a dot.
14723   lt_cv_objdir=_libs
14724 fi
14725 rmdir .libs 2>/dev/null
14726 fi
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14728 $as_echo "$lt_cv_objdir" >&6; }
14729 objdir=$lt_cv_objdir
14730
14731
14732
14733
14734
14735 cat >>confdefs.h <<_ACEOF
14736 #define LT_OBJDIR "$lt_cv_objdir/"
14737 _ACEOF
14738
14739
14740
14741
14742 case $host_os in
14743 aix3*)
14744   # AIX sometimes has problems with the GCC collect2 program.  For some
14745   # reason, if we set the COLLECT_NAMES environment variable, the problems
14746   # vanish in a puff of smoke.
14747   if test "X${COLLECT_NAMES+set}" != Xset; then
14748     COLLECT_NAMES=
14749     export COLLECT_NAMES
14750   fi
14751   ;;
14752 esac
14753
14754 # Global variables:
14755 ofile=libtool
14756 can_build_shared=yes
14757
14758 # All known linkers require a `.a' archive for static linking (except MSVC,
14759 # which needs '.lib').
14760 libext=a
14761
14762 with_gnu_ld="$lt_cv_prog_gnu_ld"
14763
14764 old_CC="$CC"
14765 old_CFLAGS="$CFLAGS"
14766
14767 # Set sane defaults for various variables
14768 test -z "$CC" && CC=cc
14769 test -z "$LTCC" && LTCC=$CC
14770 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14771 test -z "$LD" && LD=ld
14772 test -z "$ac_objext" && ac_objext=o
14773
14774 for cc_temp in $compiler""; do
14775   case $cc_temp in
14776     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14777     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14778     \-*) ;;
14779     *) break;;
14780   esac
14781 done
14782 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14783
14784
14785 # Only perform the check for file, if the check method requires it
14786 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14787 case $deplibs_check_method in
14788 file_magic*)
14789   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14791 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14792 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14793   $as_echo_n "(cached) " >&6
14794 else
14795   case $MAGIC_CMD in
14796 [\\/*] |  ?:[\\/]*)
14797   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14798   ;;
14799 *)
14800   lt_save_MAGIC_CMD="$MAGIC_CMD"
14801   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14802   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14803   for ac_dir in $ac_dummy; do
14804     IFS="$lt_save_ifs"
14805     test -z "$ac_dir" && ac_dir=.
14806     if test -f $ac_dir/${ac_tool_prefix}file; then
14807       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14808       if test -n "$file_magic_test_file"; then
14809         case $deplibs_check_method in
14810         "file_magic "*)
14811           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14812           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14814             $EGREP "$file_magic_regex" > /dev/null; then
14815             :
14816           else
14817             cat <<_LT_EOF 1>&2
14818
14819 *** Warning: the command libtool uses to detect shared libraries,
14820 *** $file_magic_cmd, produces output that libtool cannot recognize.
14821 *** The result is that libtool may fail to recognize shared libraries
14822 *** as such.  This will affect the creation of libtool libraries that
14823 *** depend on shared libraries, but programs linked with such libtool
14824 *** libraries will work regardless of this problem.  Nevertheless, you
14825 *** may want to report the problem to your system manager and/or to
14826 *** bug-libtool@gnu.org
14827
14828 _LT_EOF
14829           fi ;;
14830         esac
14831       fi
14832       break
14833     fi
14834   done
14835   IFS="$lt_save_ifs"
14836   MAGIC_CMD="$lt_save_MAGIC_CMD"
14837   ;;
14838 esac
14839 fi
14840
14841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14842 if test -n "$MAGIC_CMD"; then
14843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14844 $as_echo "$MAGIC_CMD" >&6; }
14845 else
14846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14847 $as_echo "no" >&6; }
14848 fi
14849
14850
14851
14852
14853
14854 if test -z "$lt_cv_path_MAGIC_CMD"; then
14855   if test -n "$ac_tool_prefix"; then
14856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14857 $as_echo_n "checking for file... " >&6; }
14858 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14859   $as_echo_n "(cached) " >&6
14860 else
14861   case $MAGIC_CMD in
14862 [\\/*] |  ?:[\\/]*)
14863   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14864   ;;
14865 *)
14866   lt_save_MAGIC_CMD="$MAGIC_CMD"
14867   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14868   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14869   for ac_dir in $ac_dummy; do
14870     IFS="$lt_save_ifs"
14871     test -z "$ac_dir" && ac_dir=.
14872     if test -f $ac_dir/file; then
14873       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14874       if test -n "$file_magic_test_file"; then
14875         case $deplibs_check_method in
14876         "file_magic "*)
14877           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14878           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14879           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14880             $EGREP "$file_magic_regex" > /dev/null; then
14881             :
14882           else
14883             cat <<_LT_EOF 1>&2
14884
14885 *** Warning: the command libtool uses to detect shared libraries,
14886 *** $file_magic_cmd, produces output that libtool cannot recognize.
14887 *** The result is that libtool may fail to recognize shared libraries
14888 *** as such.  This will affect the creation of libtool libraries that
14889 *** depend on shared libraries, but programs linked with such libtool
14890 *** libraries will work regardless of this problem.  Nevertheless, you
14891 *** may want to report the problem to your system manager and/or to
14892 *** bug-libtool@gnu.org
14893
14894 _LT_EOF
14895           fi ;;
14896         esac
14897       fi
14898       break
14899     fi
14900   done
14901   IFS="$lt_save_ifs"
14902   MAGIC_CMD="$lt_save_MAGIC_CMD"
14903   ;;
14904 esac
14905 fi
14906
14907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14908 if test -n "$MAGIC_CMD"; then
14909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14910 $as_echo "$MAGIC_CMD" >&6; }
14911 else
14912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14913 $as_echo "no" >&6; }
14914 fi
14915
14916
14917   else
14918     MAGIC_CMD=:
14919   fi
14920 fi
14921
14922   fi
14923   ;;
14924 esac
14925
14926 # Use C for the default configuration in the libtool script
14927
14928 lt_save_CC="$CC"
14929 ac_ext=c
14930 ac_cpp='$CPP $CPPFLAGS'
14931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14934
14935
14936 # Source file extension for C test sources.
14937 ac_ext=c
14938
14939 # Object file extension for compiled C test sources.
14940 objext=o
14941 objext=$objext
14942
14943 # Code to be used in simple compile tests
14944 lt_simple_compile_test_code="int some_variable = 0;"
14945
14946 # Code to be used in simple link tests
14947 lt_simple_link_test_code='int main(){return(0);}'
14948
14949
14950
14951
14952
14953
14954
14955 # If no C compiler was specified, use CC.
14956 LTCC=${LTCC-"$CC"}
14957
14958 # If no C compiler flags were specified, use CFLAGS.
14959 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14960
14961 # Allow CC to be a program name with arguments.
14962 compiler=$CC
14963
14964 # Save the default compiler, since it gets overwritten when the other
14965 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14966 compiler_DEFAULT=$CC
14967
14968 # save warnings/boilerplate of simple test code
14969 ac_outfile=conftest.$ac_objext
14970 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14971 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14972 _lt_compiler_boilerplate=`cat conftest.err`
14973 $RM conftest*
14974
14975 ac_outfile=conftest.$ac_objext
14976 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14977 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14978 _lt_linker_boilerplate=`cat conftest.err`
14979 $RM -r conftest*
14980
14981
14982 ## CAVEAT EMPTOR:
14983 ## There is no encapsulation within the following macros, do not change
14984 ## the running order or otherwise move them around unless you know exactly
14985 ## what you are doing...
14986 if test -n "$compiler"; then
14987
14988 lt_prog_compiler_no_builtin_flag=
14989
14990 if test "$GCC" = yes; then
14991   case $cc_basename in
14992   nvcc*)
14993     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14994   *)
14995     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14996   esac
14997
14998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14999 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15000 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15001   $as_echo_n "(cached) " >&6
15002 else
15003   lt_cv_prog_compiler_rtti_exceptions=no
15004    ac_outfile=conftest.$ac_objext
15005    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15006    lt_compiler_flag="-fno-rtti -fno-exceptions"
15007    # Insert the option either (1) after the last *FLAGS variable, or
15008    # (2) before a word containing "conftest.", or (3) at the end.
15009    # Note that $ac_compile itself does not contain backslashes and begins
15010    # with a dollar sign (not a hyphen), so the echo should work correctly.
15011    # The option is referenced via a variable to avoid confusing sed.
15012    lt_compile=`echo "$ac_compile" | $SED \
15013    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15015    -e 's:$: $lt_compiler_flag:'`
15016    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15017    (eval "$lt_compile" 2>conftest.err)
15018    ac_status=$?
15019    cat conftest.err >&5
15020    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021    if (exit $ac_status) && test -s "$ac_outfile"; then
15022      # The compiler can only warn and ignore the option if not recognized
15023      # So say no if there are warnings other than the usual output.
15024      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15025      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15026      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15027        lt_cv_prog_compiler_rtti_exceptions=yes
15028      fi
15029    fi
15030    $RM conftest*
15031
15032 fi
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15034 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15035
15036 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15037     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15038 else
15039     :
15040 fi
15041
15042 fi
15043
15044
15045
15046
15047
15048
15049   lt_prog_compiler_wl=
15050 lt_prog_compiler_pic=
15051 lt_prog_compiler_static=
15052
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15054 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15055
15056   if test "$GCC" = yes; then
15057     lt_prog_compiler_wl='-Wl,'
15058     lt_prog_compiler_static='-static'
15059
15060     case $host_os in
15061       aix*)
15062       # All AIX code is PIC.
15063       if test "$host_cpu" = ia64; then
15064         # AIX 5 now supports IA64 processor
15065         lt_prog_compiler_static='-Bstatic'
15066       fi
15067       ;;
15068
15069     amigaos*)
15070       case $host_cpu in
15071       powerpc)
15072             # see comment about AmigaOS4 .so support
15073             lt_prog_compiler_pic='-fPIC'
15074         ;;
15075       m68k)
15076             # FIXME: we need at least 68020 code to build shared libraries, but
15077             # adding the `-m68020' flag to GCC prevents building anything better,
15078             # like `-m68040'.
15079             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15080         ;;
15081       esac
15082       ;;
15083
15084     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15085       # PIC is the default for these OSes.
15086       ;;
15087
15088     mingw* | cygwin* | pw32* | os2* | cegcc*)
15089       # This hack is so that the source file can tell whether it is being
15090       # built for inclusion in a dll (and should export symbols for example).
15091       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15092       # (--disable-auto-import) libraries
15093       lt_prog_compiler_pic='-DDLL_EXPORT'
15094       ;;
15095
15096     darwin* | rhapsody*)
15097       # PIC is the default on this platform
15098       # Common symbols not allowed in MH_DYLIB files
15099       lt_prog_compiler_pic='-fno-common'
15100       ;;
15101
15102     haiku*)
15103       # PIC is the default for Haiku.
15104       # The "-static" flag exists, but is broken.
15105       lt_prog_compiler_static=
15106       ;;
15107
15108     hpux*)
15109       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15110       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15111       # sets the default TLS model and affects inlining.
15112       case $host_cpu in
15113       hppa*64*)
15114         # +Z the default
15115         ;;
15116       *)
15117         lt_prog_compiler_pic='-fPIC'
15118         ;;
15119       esac
15120       ;;
15121
15122     interix[3-9]*)
15123       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15124       # Instead, we relocate shared libraries at runtime.
15125       ;;
15126
15127     msdosdjgpp*)
15128       # Just because we use GCC doesn't mean we suddenly get shared libraries
15129       # on systems that don't support them.
15130       lt_prog_compiler_can_build_shared=no
15131       enable_shared=no
15132       ;;
15133
15134     *nto* | *qnx*)
15135       # QNX uses GNU C++, but need to define -shared option too, otherwise
15136       # it will coredump.
15137       lt_prog_compiler_pic='-fPIC -shared'
15138       ;;
15139
15140     sysv4*MP*)
15141       if test -d /usr/nec; then
15142         lt_prog_compiler_pic=-Kconform_pic
15143       fi
15144       ;;
15145
15146     *)
15147       lt_prog_compiler_pic='-fPIC'
15148       ;;
15149     esac
15150
15151     case $cc_basename in
15152     nvcc*) # Cuda Compiler Driver 2.2
15153       lt_prog_compiler_wl='-Xlinker '
15154       lt_prog_compiler_pic='-Xcompiler -fPIC'
15155       ;;
15156     esac
15157   else
15158     # PORTME Check for flag to pass linker flags through the system compiler.
15159     case $host_os in
15160     aix*)
15161       lt_prog_compiler_wl='-Wl,'
15162       if test "$host_cpu" = ia64; then
15163         # AIX 5 now supports IA64 processor
15164         lt_prog_compiler_static='-Bstatic'
15165       else
15166         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15167       fi
15168       ;;
15169
15170     mingw* | cygwin* | pw32* | os2* | cegcc*)
15171       # This hack is so that the source file can tell whether it is being
15172       # built for inclusion in a dll (and should export symbols for example).
15173       lt_prog_compiler_pic='-DDLL_EXPORT'
15174       ;;
15175
15176     hpux9* | hpux10* | hpux11*)
15177       lt_prog_compiler_wl='-Wl,'
15178       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15179       # not for PA HP-UX.
15180       case $host_cpu in
15181       hppa*64*|ia64*)
15182         # +Z the default
15183         ;;
15184       *)
15185         lt_prog_compiler_pic='+Z'
15186         ;;
15187       esac
15188       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15189       lt_prog_compiler_static='${wl}-a ${wl}archive'
15190       ;;
15191
15192     irix5* | irix6* | nonstopux*)
15193       lt_prog_compiler_wl='-Wl,'
15194       # PIC (with -KPIC) is the default.
15195       lt_prog_compiler_static='-non_shared'
15196       ;;
15197
15198     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15199       case $cc_basename in
15200       # old Intel for x86_64 which still supported -KPIC.
15201       ecc*)
15202         lt_prog_compiler_wl='-Wl,'
15203         lt_prog_compiler_pic='-KPIC'
15204         lt_prog_compiler_static='-static'
15205         ;;
15206       # icc used to be incompatible with GCC.
15207       # ICC 10 doesn't accept -KPIC any more.
15208       icc* | ifort*)
15209         lt_prog_compiler_wl='-Wl,'
15210         lt_prog_compiler_pic='-fPIC'
15211         lt_prog_compiler_static='-static'
15212         ;;
15213       # Lahey Fortran 8.1.
15214       lf95*)
15215         lt_prog_compiler_wl='-Wl,'
15216         lt_prog_compiler_pic='--shared'
15217         lt_prog_compiler_static='--static'
15218         ;;
15219       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15220         # Portland Group compilers (*not* the Pentium gcc compiler,
15221         # which looks to be a dead project)
15222         lt_prog_compiler_wl='-Wl,'
15223         lt_prog_compiler_pic='-fpic'
15224         lt_prog_compiler_static='-Bstatic'
15225         ;;
15226       ccc*)
15227         lt_prog_compiler_wl='-Wl,'
15228         # All Alpha code is PIC.
15229         lt_prog_compiler_static='-non_shared'
15230         ;;
15231       xl* | bgxl* | bgf* | mpixl*)
15232         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15233         lt_prog_compiler_wl='-Wl,'
15234         lt_prog_compiler_pic='-qpic'
15235         lt_prog_compiler_static='-qstaticlink'
15236         ;;
15237       *)
15238         case `$CC -V 2>&1 | sed 5q` in
15239         *Sun\ F* | *Sun*Fortran*)
15240           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15241           lt_prog_compiler_pic='-KPIC'
15242           lt_prog_compiler_static='-Bstatic'
15243           lt_prog_compiler_wl=''
15244           ;;
15245         *Sun\ C*)
15246           # Sun C 5.9
15247           lt_prog_compiler_pic='-KPIC'
15248           lt_prog_compiler_static='-Bstatic'
15249           lt_prog_compiler_wl='-Wl,'
15250           ;;
15251         esac
15252         ;;
15253       esac
15254       ;;
15255
15256     newsos6)
15257       lt_prog_compiler_pic='-KPIC'
15258       lt_prog_compiler_static='-Bstatic'
15259       ;;
15260
15261     *nto* | *qnx*)
15262       # QNX uses GNU C++, but need to define -shared option too, otherwise
15263       # it will coredump.
15264       lt_prog_compiler_pic='-fPIC -shared'
15265       ;;
15266
15267     osf3* | osf4* | osf5*)
15268       lt_prog_compiler_wl='-Wl,'
15269       # All OSF/1 code is PIC.
15270       lt_prog_compiler_static='-non_shared'
15271       ;;
15272
15273     rdos*)
15274       lt_prog_compiler_static='-non_shared'
15275       ;;
15276
15277     solaris*)
15278       lt_prog_compiler_pic='-KPIC'
15279       lt_prog_compiler_static='-Bstatic'
15280       case $cc_basename in
15281       f77* | f90* | f95*)
15282         lt_prog_compiler_wl='-Qoption ld ';;
15283       *)
15284         lt_prog_compiler_wl='-Wl,';;
15285       esac
15286       ;;
15287
15288     sunos4*)
15289       lt_prog_compiler_wl='-Qoption ld '
15290       lt_prog_compiler_pic='-PIC'
15291       lt_prog_compiler_static='-Bstatic'
15292       ;;
15293
15294     sysv4 | sysv4.2uw2* | sysv4.3*)
15295       lt_prog_compiler_wl='-Wl,'
15296       lt_prog_compiler_pic='-KPIC'
15297       lt_prog_compiler_static='-Bstatic'
15298       ;;
15299
15300     sysv4*MP*)
15301       if test -d /usr/nec ;then
15302         lt_prog_compiler_pic='-Kconform_pic'
15303         lt_prog_compiler_static='-Bstatic'
15304       fi
15305       ;;
15306
15307     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15308       lt_prog_compiler_wl='-Wl,'
15309       lt_prog_compiler_pic='-KPIC'
15310       lt_prog_compiler_static='-Bstatic'
15311       ;;
15312
15313     unicos*)
15314       lt_prog_compiler_wl='-Wl,'
15315       lt_prog_compiler_can_build_shared=no
15316       ;;
15317
15318     uts4*)
15319       lt_prog_compiler_pic='-pic'
15320       lt_prog_compiler_static='-Bstatic'
15321       ;;
15322
15323     *)
15324       lt_prog_compiler_can_build_shared=no
15325       ;;
15326     esac
15327   fi
15328
15329 case $host_os in
15330   # For platforms which do not support PIC, -DPIC is meaningless:
15331   *djgpp*)
15332     lt_prog_compiler_pic=
15333     ;;
15334   *)
15335     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15336     ;;
15337 esac
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15339 $as_echo "$lt_prog_compiler_pic" >&6; }
15340
15341
15342
15343
15344
15345
15346 #
15347 # Check to make sure the PIC flag actually works.
15348 #
15349 if test -n "$lt_prog_compiler_pic"; then
15350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15351 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15352 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15353   $as_echo_n "(cached) " >&6
15354 else
15355   lt_cv_prog_compiler_pic_works=no
15356    ac_outfile=conftest.$ac_objext
15357    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15358    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15359    # Insert the option either (1) after the last *FLAGS variable, or
15360    # (2) before a word containing "conftest.", or (3) at the end.
15361    # Note that $ac_compile itself does not contain backslashes and begins
15362    # with a dollar sign (not a hyphen), so the echo should work correctly.
15363    # The option is referenced via a variable to avoid confusing sed.
15364    lt_compile=`echo "$ac_compile" | $SED \
15365    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15366    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15367    -e 's:$: $lt_compiler_flag:'`
15368    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15369    (eval "$lt_compile" 2>conftest.err)
15370    ac_status=$?
15371    cat conftest.err >&5
15372    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373    if (exit $ac_status) && test -s "$ac_outfile"; then
15374      # The compiler can only warn and ignore the option if not recognized
15375      # So say no if there are warnings other than the usual output.
15376      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15377      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15378      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15379        lt_cv_prog_compiler_pic_works=yes
15380      fi
15381    fi
15382    $RM conftest*
15383
15384 fi
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15386 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15387
15388 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15389     case $lt_prog_compiler_pic in
15390      "" | " "*) ;;
15391      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15392      esac
15393 else
15394     lt_prog_compiler_pic=
15395      lt_prog_compiler_can_build_shared=no
15396 fi
15397
15398 fi
15399
15400
15401
15402
15403
15404
15405 #
15406 # Check to make sure the static flag actually works.
15407 #
15408 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15410 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15411 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15412   $as_echo_n "(cached) " >&6
15413 else
15414   lt_cv_prog_compiler_static_works=no
15415    save_LDFLAGS="$LDFLAGS"
15416    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15417    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15418    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15419      # The linker can only warn and ignore the option if not recognized
15420      # So say no if there are warnings
15421      if test -s conftest.err; then
15422        # Append any errors to the config.log.
15423        cat conftest.err 1>&5
15424        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15425        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15426        if diff conftest.exp conftest.er2 >/dev/null; then
15427          lt_cv_prog_compiler_static_works=yes
15428        fi
15429      else
15430        lt_cv_prog_compiler_static_works=yes
15431      fi
15432    fi
15433    $RM -r conftest*
15434    LDFLAGS="$save_LDFLAGS"
15435
15436 fi
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15438 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15439
15440 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15441     :
15442 else
15443     lt_prog_compiler_static=
15444 fi
15445
15446
15447
15448
15449
15450
15451
15452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15454 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15455   $as_echo_n "(cached) " >&6
15456 else
15457   lt_cv_prog_compiler_c_o=no
15458    $RM -r conftest 2>/dev/null
15459    mkdir conftest
15460    cd conftest
15461    mkdir out
15462    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15463
15464    lt_compiler_flag="-o out/conftest2.$ac_objext"
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    lt_compile=`echo "$ac_compile" | $SED \
15470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15472    -e 's:$: $lt_compiler_flag:'`
15473    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15474    (eval "$lt_compile" 2>out/conftest.err)
15475    ac_status=$?
15476    cat out/conftest.err >&5
15477    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15479    then
15480      # The compiler can only warn and ignore the option if not recognized
15481      # So say no if there are warnings
15482      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15483      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15484      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15485        lt_cv_prog_compiler_c_o=yes
15486      fi
15487    fi
15488    chmod u+w . 2>&5
15489    $RM conftest*
15490    # SGI C++ compiler will create directory out/ii_files/ for
15491    # template instantiation
15492    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15493    $RM out/* && rmdir out
15494    cd ..
15495    $RM -r conftest
15496    $RM conftest*
15497
15498 fi
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15500 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15501
15502
15503
15504
15505
15506
15507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15509 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15510   $as_echo_n "(cached) " >&6
15511 else
15512   lt_cv_prog_compiler_c_o=no
15513    $RM -r conftest 2>/dev/null
15514    mkdir conftest
15515    cd conftest
15516    mkdir out
15517    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15518
15519    lt_compiler_flag="-o out/conftest2.$ac_objext"
15520    # Insert the option either (1) after the last *FLAGS variable, or
15521    # (2) before a word containing "conftest.", or (3) at the end.
15522    # Note that $ac_compile itself does not contain backslashes and begins
15523    # with a dollar sign (not a hyphen), so the echo should work correctly.
15524    lt_compile=`echo "$ac_compile" | $SED \
15525    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15526    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15527    -e 's:$: $lt_compiler_flag:'`
15528    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15529    (eval "$lt_compile" 2>out/conftest.err)
15530    ac_status=$?
15531    cat out/conftest.err >&5
15532    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15534    then
15535      # The compiler can only warn and ignore the option if not recognized
15536      # So say no if there are warnings
15537      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15538      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15539      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15540        lt_cv_prog_compiler_c_o=yes
15541      fi
15542    fi
15543    chmod u+w . 2>&5
15544    $RM conftest*
15545    # SGI C++ compiler will create directory out/ii_files/ for
15546    # template instantiation
15547    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15548    $RM out/* && rmdir out
15549    cd ..
15550    $RM -r conftest
15551    $RM conftest*
15552
15553 fi
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15555 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15556
15557
15558
15559
15560 hard_links="nottested"
15561 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15562   # do not overwrite the value of need_locks provided by the user
15563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15564 $as_echo_n "checking if we can lock with hard links... " >&6; }
15565   hard_links=yes
15566   $RM conftest*
15567   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15568   touch conftest.a
15569   ln conftest.a conftest.b 2>&5 || hard_links=no
15570   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15572 $as_echo "$hard_links" >&6; }
15573   if test "$hard_links" = no; then
15574     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15575 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15576     need_locks=warn
15577   fi
15578 else
15579   need_locks=no
15580 fi
15581
15582
15583
15584
15585
15586
15587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15588 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15589
15590   runpath_var=
15591   allow_undefined_flag=
15592   always_export_symbols=no
15593   archive_cmds=
15594   archive_expsym_cmds=
15595   compiler_needs_object=no
15596   enable_shared_with_static_runtimes=no
15597   export_dynamic_flag_spec=
15598   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15599   hardcode_automatic=no
15600   hardcode_direct=no
15601   hardcode_direct_absolute=no
15602   hardcode_libdir_flag_spec=
15603   hardcode_libdir_flag_spec_ld=
15604   hardcode_libdir_separator=
15605   hardcode_minus_L=no
15606   hardcode_shlibpath_var=unsupported
15607   inherit_rpath=no
15608   link_all_deplibs=unknown
15609   module_cmds=
15610   module_expsym_cmds=
15611   old_archive_from_new_cmds=
15612   old_archive_from_expsyms_cmds=
15613   thread_safe_flag_spec=
15614   whole_archive_flag_spec=
15615   # include_expsyms should be a list of space-separated symbols to be *always*
15616   # included in the symbol list
15617   include_expsyms=
15618   # exclude_expsyms can be an extended regexp of symbols to exclude
15619   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15620   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15621   # as well as any symbol that contains `d'.
15622   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15623   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15624   # platforms (ab)use it in PIC code, but their linkers get confused if
15625   # the symbol is explicitly referenced.  Since portable code cannot
15626   # rely on this symbol name, it's probably fine to never include it in
15627   # preloaded symbol tables.
15628   # Exclude shared library initialization/finalization symbols.
15629   extract_expsyms_cmds=
15630
15631   case $host_os in
15632   cygwin* | mingw* | pw32* | cegcc*)
15633     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15634     # When not using gcc, we currently assume that we are using
15635     # Microsoft Visual C++.
15636     if test "$GCC" != yes; then
15637       with_gnu_ld=no
15638     fi
15639     ;;
15640   interix*)
15641     # we just hope/assume this is gcc and not c89 (= MSVC++)
15642     with_gnu_ld=yes
15643     ;;
15644   openbsd*)
15645     with_gnu_ld=no
15646     ;;
15647   esac
15648
15649   ld_shlibs=yes
15650
15651   # On some targets, GNU ld is compatible enough with the native linker
15652   # that we're better off using the native interface for both.
15653   lt_use_gnu_ld_interface=no
15654   if test "$with_gnu_ld" = yes; then
15655     case $host_os in
15656       aix*)
15657         # The AIX port of GNU ld has always aspired to compatibility
15658         # with the native linker.  However, as the warning in the GNU ld
15659         # block says, versions before 2.19.5* couldn't really create working
15660         # shared libraries, regardless of the interface used.
15661         case `$LD -v 2>&1` in
15662           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15663           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15664           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15665           *)
15666             lt_use_gnu_ld_interface=yes
15667             ;;
15668         esac
15669         ;;
15670       *)
15671         lt_use_gnu_ld_interface=yes
15672         ;;
15673     esac
15674   fi
15675
15676   if test "$lt_use_gnu_ld_interface" = yes; then
15677     # If archive_cmds runs LD, not CC, wlarc should be empty
15678     wlarc='${wl}'
15679
15680     # Set some defaults for GNU ld with shared library support. These
15681     # are reset later if shared libraries are not supported. Putting them
15682     # here allows them to be overridden if necessary.
15683     runpath_var=LD_RUN_PATH
15684     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15685     export_dynamic_flag_spec='${wl}--export-dynamic'
15686     # ancient GNU ld didn't support --whole-archive et. al.
15687     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15688       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15689     else
15690       whole_archive_flag_spec=
15691     fi
15692     supports_anon_versioning=no
15693     case `$LD -v 2>&1` in
15694       *GNU\ gold*) supports_anon_versioning=yes ;;
15695       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15696       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15697       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15698       *\ 2.11.*) ;; # other 2.11 versions
15699       *) supports_anon_versioning=yes ;;
15700     esac
15701
15702     # See if GNU ld supports shared libraries.
15703     case $host_os in
15704     aix[3-9]*)
15705       # On AIX/PPC, the GNU linker is very broken
15706       if test "$host_cpu" != ia64; then
15707         ld_shlibs=no
15708         cat <<_LT_EOF 1>&2
15709
15710 *** Warning: the GNU linker, at least up to release 2.19, is reported
15711 *** to be unable to reliably create shared libraries on AIX.
15712 *** Therefore, libtool is disabling shared libraries support.  If you
15713 *** really care for shared libraries, you may want to install binutils
15714 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15715 *** You will then need to restart the configuration process.
15716
15717 _LT_EOF
15718       fi
15719       ;;
15720
15721     amigaos*)
15722       case $host_cpu in
15723       powerpc)
15724             # see comment about AmigaOS4 .so support
15725             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15726             archive_expsym_cmds=''
15727         ;;
15728       m68k)
15729             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)'
15730             hardcode_libdir_flag_spec='-L$libdir'
15731             hardcode_minus_L=yes
15732         ;;
15733       esac
15734       ;;
15735
15736     beos*)
15737       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15738         allow_undefined_flag=unsupported
15739         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15740         # support --undefined.  This deserves some investigation.  FIXME
15741         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15742       else
15743         ld_shlibs=no
15744       fi
15745       ;;
15746
15747     cygwin* | mingw* | pw32* | cegcc*)
15748       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15749       # as there is no search path for DLLs.
15750       hardcode_libdir_flag_spec='-L$libdir'
15751       export_dynamic_flag_spec='${wl}--export-all-symbols'
15752       allow_undefined_flag=unsupported
15753       always_export_symbols=no
15754       enable_shared_with_static_runtimes=yes
15755       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15756
15757       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15759         # If the export-symbols file already is a .def file (1st line
15760         # is EXPORTS), use it as is; otherwise, prepend...
15761         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15762           cp $export_symbols $output_objdir/$soname.def;
15763         else
15764           echo EXPORTS > $output_objdir/$soname.def;
15765           cat $export_symbols >> $output_objdir/$soname.def;
15766         fi~
15767         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15768       else
15769         ld_shlibs=no
15770       fi
15771       ;;
15772
15773     haiku*)
15774       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15775       link_all_deplibs=yes
15776       ;;
15777
15778     interix[3-9]*)
15779       hardcode_direct=no
15780       hardcode_shlibpath_var=no
15781       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15782       export_dynamic_flag_spec='${wl}-E'
15783       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15784       # Instead, shared libraries are loaded at an image base (0x10000000 by
15785       # default) and relocated if they conflict, which is a slow very memory
15786       # consuming and fragmenting process.  To avoid this, we pick a random,
15787       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15788       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15789       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15790       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'
15791       ;;
15792
15793     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15794       tmp_diet=no
15795       if test "$host_os" = linux-dietlibc; then
15796         case $cc_basename in
15797           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15798         esac
15799       fi
15800       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15801          && test "$tmp_diet" = no
15802       then
15803         tmp_addflag=
15804         tmp_sharedflag='-shared'
15805         case $cc_basename,$host_cpu in
15806         pgcc*)                          # Portland Group C compiler
15807           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'
15808           tmp_addflag=' $pic_flag'
15809           ;;
15810         pgf77* | pgf90* | pgf95* | pgfortran*)
15811                                         # Portland Group f77 and f90 compilers
15812           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'
15813           tmp_addflag=' $pic_flag -Mnomain' ;;
15814         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15815           tmp_addflag=' -i_dynamic' ;;
15816         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15817           tmp_addflag=' -i_dynamic -nofor_main' ;;
15818         ifc* | ifort*)                  # Intel Fortran compiler
15819           tmp_addflag=' -nofor_main' ;;
15820         lf95*)                          # Lahey Fortran 8.1
15821           whole_archive_flag_spec=
15822           tmp_sharedflag='--shared' ;;
15823         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15824           tmp_sharedflag='-qmkshrobj'
15825           tmp_addflag= ;;
15826         nvcc*)  # Cuda Compiler Driver 2.2
15827           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'
15828           compiler_needs_object=yes
15829           ;;
15830         esac
15831         case `$CC -V 2>&1 | sed 5q` in
15832         *Sun\ C*)                       # Sun C 5.9
15833           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'
15834           compiler_needs_object=yes
15835           tmp_sharedflag='-G' ;;
15836         *Sun\ F*)                       # Sun Fortran 8.3
15837           tmp_sharedflag='-G' ;;
15838         esac
15839         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15840
15841         if test "x$supports_anon_versioning" = xyes; then
15842           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15843             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15844             echo "local: *; };" >> $output_objdir/$libname.ver~
15845             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15846         fi
15847
15848         case $cc_basename in
15849         xlf* | bgf* | bgxlf* | mpixlf*)
15850           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15851           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15852           hardcode_libdir_flag_spec=
15853           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15854           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15855           if test "x$supports_anon_versioning" = xyes; then
15856             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15857               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15858               echo "local: *; };" >> $output_objdir/$libname.ver~
15859               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15860           fi
15861           ;;
15862         esac
15863       else
15864         ld_shlibs=no
15865       fi
15866       ;;
15867
15868     netbsd*)
15869       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15870         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15871         wlarc=
15872       else
15873         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15874         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15875       fi
15876       ;;
15877
15878     solaris*)
15879       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15880         ld_shlibs=no
15881         cat <<_LT_EOF 1>&2
15882
15883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15884 *** create shared libraries on Solaris systems.  Therefore, libtool
15885 *** is disabling shared libraries support.  We urge you to upgrade GNU
15886 *** binutils to release 2.9.1 or newer.  Another option is to modify
15887 *** your PATH or compiler configuration so that the native linker is
15888 *** used, and then restart.
15889
15890 _LT_EOF
15891       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15892         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15893         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15894       else
15895         ld_shlibs=no
15896       fi
15897       ;;
15898
15899     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15900       case `$LD -v 2>&1` in
15901         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15902         ld_shlibs=no
15903         cat <<_LT_EOF 1>&2
15904
15905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15906 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15907 *** is disabling shared libraries support.  We urge you to upgrade GNU
15908 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15909 *** your PATH or compiler configuration so that the native linker is
15910 *** used, and then restart.
15911
15912 _LT_EOF
15913         ;;
15914         *)
15915           # For security reasons, it is highly recommended that you always
15916           # use absolute paths for naming shared libraries, and exclude the
15917           # DT_RUNPATH tag from executables and libraries.  But doing so
15918           # requires that you compile everything twice, which is a pain.
15919           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15920             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15921             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15922             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15923           else
15924             ld_shlibs=no
15925           fi
15926         ;;
15927       esac
15928       ;;
15929
15930     sunos4*)
15931       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15932       wlarc=
15933       hardcode_direct=yes
15934       hardcode_shlibpath_var=no
15935       ;;
15936
15937     *)
15938       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15939         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15940         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15941       else
15942         ld_shlibs=no
15943       fi
15944       ;;
15945     esac
15946
15947     if test "$ld_shlibs" = no; then
15948       runpath_var=
15949       hardcode_libdir_flag_spec=
15950       export_dynamic_flag_spec=
15951       whole_archive_flag_spec=
15952     fi
15953   else
15954     # PORTME fill in a description of your system's linker (not GNU ld)
15955     case $host_os in
15956     aix3*)
15957       allow_undefined_flag=unsupported
15958       always_export_symbols=yes
15959       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'
15960       # Note: this linker hardcodes the directories in LIBPATH if there
15961       # are no directories specified by -L.
15962       hardcode_minus_L=yes
15963       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15964         # Neither direct hardcoding nor static linking is supported with a
15965         # broken collect2.
15966         hardcode_direct=unsupported
15967       fi
15968       ;;
15969
15970     aix[4-9]*)
15971       if test "$host_cpu" = ia64; then
15972         # On IA64, the linker does run time linking by default, so we don't
15973         # have to do anything special.
15974         aix_use_runtimelinking=no
15975         exp_sym_flag='-Bexport'
15976         no_entry_flag=""
15977       else
15978         # If we're using GNU nm, then we don't want the "-C" option.
15979         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15980         # Also, AIX nm treats weak defined symbols like other global
15981         # defined symbols, whereas GNU nm marks them as "W".
15982         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15983           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'
15984         else
15985           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'
15986         fi
15987         aix_use_runtimelinking=no
15988
15989         # Test if we are trying to use run time linking or normal
15990         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15991         # need to do runtime linking.
15992         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15993           for ld_flag in $LDFLAGS; do
15994           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15995             aix_use_runtimelinking=yes
15996             break
15997           fi
15998           done
15999           ;;
16000         esac
16001
16002         exp_sym_flag='-bexport'
16003         no_entry_flag='-bnoentry'
16004       fi
16005
16006       # When large executables or shared objects are built, AIX ld can
16007       # have problems creating the table of contents.  If linking a library
16008       # or program results in "error TOC overflow" add -mminimal-toc to
16009       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16010       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16011
16012       archive_cmds=''
16013       hardcode_direct=yes
16014       hardcode_direct_absolute=yes
16015       hardcode_libdir_separator=':'
16016       link_all_deplibs=yes
16017       file_list_spec='${wl}-f,'
16018
16019       if test "$GCC" = yes; then
16020         case $host_os in aix4.[012]|aix4.[012].*)
16021         # We only want to do this on AIX 4.2 and lower, the check
16022         # below for broken collect2 doesn't work under 4.3+
16023           collect2name=`${CC} -print-prog-name=collect2`
16024           if test -f "$collect2name" &&
16025            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16026           then
16027           # We have reworked collect2
16028           :
16029           else
16030           # We have old collect2
16031           hardcode_direct=unsupported
16032           # It fails to find uninstalled libraries when the uninstalled
16033           # path is not listed in the libpath.  Setting hardcode_minus_L
16034           # to unsupported forces relinking
16035           hardcode_minus_L=yes
16036           hardcode_libdir_flag_spec='-L$libdir'
16037           hardcode_libdir_separator=
16038           fi
16039           ;;
16040         esac
16041         shared_flag='-shared'
16042         if test "$aix_use_runtimelinking" = yes; then
16043           shared_flag="$shared_flag "'${wl}-G'
16044         fi
16045       else
16046         # not using gcc
16047         if test "$host_cpu" = ia64; then
16048         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16049         # chokes on -Wl,-G. The following line is correct:
16050           shared_flag='-G'
16051         else
16052           if test "$aix_use_runtimelinking" = yes; then
16053             shared_flag='${wl}-G'
16054           else
16055             shared_flag='${wl}-bM:SRE'
16056           fi
16057         fi
16058       fi
16059
16060       export_dynamic_flag_spec='${wl}-bexpall'
16061       # It seems that -bexpall does not export symbols beginning with
16062       # underscore (_), so it is better to generate a list of symbols to export.
16063       always_export_symbols=yes
16064       if test "$aix_use_runtimelinking" = yes; then
16065         # Warning - without using the other runtime loading flags (-brtl),
16066         # -berok will link without error, but may produce a broken library.
16067         allow_undefined_flag='-berok'
16068         # Determine the default libpath from the value encoded in an
16069         # empty executable.
16070         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h.  */
16072
16073 int
16074 main ()
16075 {
16076
16077   ;
16078   return 0;
16079 }
16080 _ACEOF
16081 if ac_fn_c_try_link "$LINENO"; then :
16082
16083 lt_aix_libpath_sed='
16084     /Import File Strings/,/^$/ {
16085         /^0/ {
16086             s/^0  *\(.*\)$/\1/
16087             p
16088         }
16089     }'
16090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16091 # Check for a 64-bit object if we didn't find anything.
16092 if test -z "$aix_libpath"; then
16093   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16094 fi
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext \
16097     conftest$ac_exeext conftest.$ac_ext
16098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16099
16100         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16101         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"
16102       else
16103         if test "$host_cpu" = ia64; then
16104           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16105           allow_undefined_flag="-z nodefs"
16106           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"
16107         else
16108          # Determine the default libpath from the value encoded in an
16109          # empty executable.
16110          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h.  */
16112
16113 int
16114 main ()
16115 {
16116
16117   ;
16118   return 0;
16119 }
16120 _ACEOF
16121 if ac_fn_c_try_link "$LINENO"; then :
16122
16123 lt_aix_libpath_sed='
16124     /Import File Strings/,/^$/ {
16125         /^0/ {
16126             s/^0  *\(.*\)$/\1/
16127             p
16128         }
16129     }'
16130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16131 # Check for a 64-bit object if we didn't find anything.
16132 if test -z "$aix_libpath"; then
16133   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16134 fi
16135 fi
16136 rm -f core conftest.err conftest.$ac_objext \
16137     conftest$ac_exeext conftest.$ac_ext
16138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16139
16140          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16141           # Warning - without using the other run time loading flags,
16142           # -berok will link without error, but may produce a broken library.
16143           no_undefined_flag=' ${wl}-bernotok'
16144           allow_undefined_flag=' ${wl}-berok'
16145           if test "$with_gnu_ld" = yes; then
16146             # We only use this code for GNU lds that support --whole-archive.
16147             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16148           else
16149             # Exported symbols can be pulled into shared objects from archives
16150             whole_archive_flag_spec='$convenience'
16151           fi
16152           archive_cmds_need_lc=yes
16153           # This is similar to how AIX traditionally builds its shared libraries.
16154           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'
16155         fi
16156       fi
16157       ;;
16158
16159     amigaos*)
16160       case $host_cpu in
16161       powerpc)
16162             # see comment about AmigaOS4 .so support
16163             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16164             archive_expsym_cmds=''
16165         ;;
16166       m68k)
16167             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)'
16168             hardcode_libdir_flag_spec='-L$libdir'
16169             hardcode_minus_L=yes
16170         ;;
16171       esac
16172       ;;
16173
16174     bsdi[45]*)
16175       export_dynamic_flag_spec=-rdynamic
16176       ;;
16177
16178     cygwin* | mingw* | pw32* | cegcc*)
16179       # When not using gcc, we currently assume that we are using
16180       # Microsoft Visual C++.
16181       # hardcode_libdir_flag_spec is actually meaningless, as there is
16182       # no search path for DLLs.
16183       hardcode_libdir_flag_spec=' '
16184       allow_undefined_flag=unsupported
16185       # Tell ltmain to make .lib files, not .a files.
16186       libext=lib
16187       # Tell ltmain to make .dll files, not .so files.
16188       shrext_cmds=".dll"
16189       # FIXME: Setting linknames here is a bad hack.
16190       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16191       # The linker will automatically build a .lib file if we build a DLL.
16192       old_archive_from_new_cmds='true'
16193       # FIXME: Should let the user specify the lib program.
16194       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16195       fix_srcfile_path='`cygpath -w "$srcfile"`'
16196       enable_shared_with_static_runtimes=yes
16197       ;;
16198
16199     darwin* | rhapsody*)
16200
16201
16202   archive_cmds_need_lc=no
16203   hardcode_direct=no
16204   hardcode_automatic=yes
16205   hardcode_shlibpath_var=unsupported
16206   if test "$lt_cv_ld_force_load" = "yes"; then
16207     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\"`'
16208   else
16209     whole_archive_flag_spec=''
16210   fi
16211   link_all_deplibs=yes
16212   allow_undefined_flag="$_lt_dar_allow_undefined"
16213   case $cc_basename in
16214      ifort*) _lt_dar_can_shared=yes ;;
16215      *) _lt_dar_can_shared=$GCC ;;
16216   esac
16217   if test "$_lt_dar_can_shared" = "yes"; then
16218     output_verbose_link_cmd=func_echo_all
16219     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16220     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16221     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}"
16222     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}"
16223
16224   else
16225   ld_shlibs=no
16226   fi
16227
16228       ;;
16229
16230     dgux*)
16231       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16232       hardcode_libdir_flag_spec='-L$libdir'
16233       hardcode_shlibpath_var=no
16234       ;;
16235
16236     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16237     # support.  Future versions do this automatically, but an explicit c++rt0.o
16238     # does not break anything, and helps significantly (at the cost of a little
16239     # extra space).
16240     freebsd2.2*)
16241       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16242       hardcode_libdir_flag_spec='-R$libdir'
16243       hardcode_direct=yes
16244       hardcode_shlibpath_var=no
16245       ;;
16246
16247     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16248     freebsd2.*)
16249       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16250       hardcode_direct=yes
16251       hardcode_minus_L=yes
16252       hardcode_shlibpath_var=no
16253       ;;
16254
16255     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16256     freebsd* | dragonfly*)
16257       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16258       hardcode_libdir_flag_spec='-R$libdir'
16259       hardcode_direct=yes
16260       hardcode_shlibpath_var=no
16261       ;;
16262
16263     hpux9*)
16264       if test "$GCC" = yes; then
16265         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'
16266       else
16267         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'
16268       fi
16269       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16270       hardcode_libdir_separator=:
16271       hardcode_direct=yes
16272
16273       # hardcode_minus_L: Not really in the search PATH,
16274       # but as the default location of the library.
16275       hardcode_minus_L=yes
16276       export_dynamic_flag_spec='${wl}-E'
16277       ;;
16278
16279     hpux10*)
16280       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16281         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16282       else
16283         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16284       fi
16285       if test "$with_gnu_ld" = no; then
16286         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16287         hardcode_libdir_flag_spec_ld='+b $libdir'
16288         hardcode_libdir_separator=:
16289         hardcode_direct=yes
16290         hardcode_direct_absolute=yes
16291         export_dynamic_flag_spec='${wl}-E'
16292         # hardcode_minus_L: Not really in the search PATH,
16293         # but as the default location of the library.
16294         hardcode_minus_L=yes
16295       fi
16296       ;;
16297
16298     hpux11*)
16299       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16300         case $host_cpu in
16301         hppa*64*)
16302           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16303           ;;
16304         ia64*)
16305           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16306           ;;
16307         *)
16308           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16309           ;;
16310         esac
16311       else
16312         case $host_cpu in
16313         hppa*64*)
16314           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16315           ;;
16316         ia64*)
16317           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16318           ;;
16319         *)
16320
16321           # Older versions of the 11.00 compiler do not understand -b yet
16322           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16323           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16324 $as_echo_n "checking if $CC understands -b... " >&6; }
16325 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16326   $as_echo_n "(cached) " >&6
16327 else
16328   lt_cv_prog_compiler__b=no
16329    save_LDFLAGS="$LDFLAGS"
16330    LDFLAGS="$LDFLAGS -b"
16331    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16332    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16333      # The linker can only warn and ignore the option if not recognized
16334      # So say no if there are warnings
16335      if test -s conftest.err; then
16336        # Append any errors to the config.log.
16337        cat conftest.err 1>&5
16338        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16339        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16340        if diff conftest.exp conftest.er2 >/dev/null; then
16341          lt_cv_prog_compiler__b=yes
16342        fi
16343      else
16344        lt_cv_prog_compiler__b=yes
16345      fi
16346    fi
16347    $RM -r conftest*
16348    LDFLAGS="$save_LDFLAGS"
16349
16350 fi
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16352 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16353
16354 if test x"$lt_cv_prog_compiler__b" = xyes; then
16355     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16356 else
16357     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16358 fi
16359
16360           ;;
16361         esac
16362       fi
16363       if test "$with_gnu_ld" = no; then
16364         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16365         hardcode_libdir_separator=:
16366
16367         case $host_cpu in
16368         hppa*64*|ia64*)
16369           hardcode_direct=no
16370           hardcode_shlibpath_var=no
16371           ;;
16372         *)
16373           hardcode_direct=yes
16374           hardcode_direct_absolute=yes
16375           export_dynamic_flag_spec='${wl}-E'
16376
16377           # hardcode_minus_L: Not really in the search PATH,
16378           # but as the default location of the library.
16379           hardcode_minus_L=yes
16380           ;;
16381         esac
16382       fi
16383       ;;
16384
16385     irix5* | irix6* | nonstopux*)
16386       if test "$GCC" = yes; then
16387         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'
16388         # Try to use the -exported_symbol ld option, if it does not
16389         # work, assume that -exports_file does not work either and
16390         # implicitly export all symbols.
16391         save_LDFLAGS="$LDFLAGS"
16392         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16393         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394 /* end confdefs.h.  */
16395 int foo(void) {}
16396 _ACEOF
16397 if ac_fn_c_try_link "$LINENO"; then :
16398   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'
16399
16400 fi
16401 rm -f core conftest.err conftest.$ac_objext \
16402     conftest$ac_exeext conftest.$ac_ext
16403         LDFLAGS="$save_LDFLAGS"
16404       else
16405         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'
16406         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'
16407       fi
16408       archive_cmds_need_lc='no'
16409       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16410       hardcode_libdir_separator=:
16411       inherit_rpath=yes
16412       link_all_deplibs=yes
16413       ;;
16414
16415     netbsd*)
16416       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16417         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16418       else
16419         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16420       fi
16421       hardcode_libdir_flag_spec='-R$libdir'
16422       hardcode_direct=yes
16423       hardcode_shlibpath_var=no
16424       ;;
16425
16426     newsos6)
16427       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16428       hardcode_direct=yes
16429       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16430       hardcode_libdir_separator=:
16431       hardcode_shlibpath_var=no
16432       ;;
16433
16434     *nto* | *qnx*)
16435       ;;
16436
16437     openbsd*)
16438       if test -f /usr/libexec/ld.so; then
16439         hardcode_direct=yes
16440         hardcode_shlibpath_var=no
16441         hardcode_direct_absolute=yes
16442         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16443           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16444           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16445           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16446           export_dynamic_flag_spec='${wl}-E'
16447         else
16448           case $host_os in
16449            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16450              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16451              hardcode_libdir_flag_spec='-R$libdir'
16452              ;;
16453            *)
16454              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16455              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16456              ;;
16457           esac
16458         fi
16459       else
16460         ld_shlibs=no
16461       fi
16462       ;;
16463
16464     os2*)
16465       hardcode_libdir_flag_spec='-L$libdir'
16466       hardcode_minus_L=yes
16467       allow_undefined_flag=unsupported
16468       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'
16469       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16470       ;;
16471
16472     osf3*)
16473       if test "$GCC" = yes; then
16474         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16475         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'
16476       else
16477         allow_undefined_flag=' -expect_unresolved \*'
16478         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'
16479       fi
16480       archive_cmds_need_lc='no'
16481       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16482       hardcode_libdir_separator=:
16483       ;;
16484
16485     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16486       if test "$GCC" = yes; then
16487         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16488         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'
16489         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16490       else
16491         allow_undefined_flag=' -expect_unresolved \*'
16492         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'
16493         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~
16494         $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'
16495
16496         # Both c and cxx compiler support -rpath directly
16497         hardcode_libdir_flag_spec='-rpath $libdir'
16498       fi
16499       archive_cmds_need_lc='no'
16500       hardcode_libdir_separator=:
16501       ;;
16502
16503     solaris*)
16504       no_undefined_flag=' -z defs'
16505       if test "$GCC" = yes; then
16506         wlarc='${wl}'
16507         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16508         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16509           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16510       else
16511         case `$CC -V 2>&1` in
16512         *"Compilers 5.0"*)
16513           wlarc=''
16514           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16515           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16516           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16517           ;;
16518         *)
16519           wlarc='${wl}'
16520           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16521           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16522           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16523           ;;
16524         esac
16525       fi
16526       hardcode_libdir_flag_spec='-R$libdir'
16527       hardcode_shlibpath_var=no
16528       case $host_os in
16529       solaris2.[0-5] | solaris2.[0-5].*) ;;
16530       *)
16531         # The compiler driver will combine and reorder linker options,
16532         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16533         # but is careful enough not to reorder.
16534         # Supported since Solaris 2.6 (maybe 2.5.1?)
16535         if test "$GCC" = yes; then
16536           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16537         else
16538           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16539         fi
16540         ;;
16541       esac
16542       link_all_deplibs=yes
16543       ;;
16544
16545     sunos4*)
16546       if test "x$host_vendor" = xsequent; then
16547         # Use $CC to link under sequent, because it throws in some extra .o
16548         # files that make .init and .fini sections work.
16549         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16550       else
16551         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16552       fi
16553       hardcode_libdir_flag_spec='-L$libdir'
16554       hardcode_direct=yes
16555       hardcode_minus_L=yes
16556       hardcode_shlibpath_var=no
16557       ;;
16558
16559     sysv4)
16560       case $host_vendor in
16561         sni)
16562           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563           hardcode_direct=yes # is this really true???
16564         ;;
16565         siemens)
16566           ## LD is ld it makes a PLAMLIB
16567           ## CC just makes a GrossModule.
16568           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16569           reload_cmds='$CC -r -o $output$reload_objs'
16570           hardcode_direct=no
16571         ;;
16572         motorola)
16573           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16575         ;;
16576       esac
16577       runpath_var='LD_RUN_PATH'
16578       hardcode_shlibpath_var=no
16579       ;;
16580
16581     sysv4.3*)
16582       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16583       hardcode_shlibpath_var=no
16584       export_dynamic_flag_spec='-Bexport'
16585       ;;
16586
16587     sysv4*MP*)
16588       if test -d /usr/nec; then
16589         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590         hardcode_shlibpath_var=no
16591         runpath_var=LD_RUN_PATH
16592         hardcode_runpath_var=yes
16593         ld_shlibs=yes
16594       fi
16595       ;;
16596
16597     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16598       no_undefined_flag='${wl}-z,text'
16599       archive_cmds_need_lc=no
16600       hardcode_shlibpath_var=no
16601       runpath_var='LD_RUN_PATH'
16602
16603       if test "$GCC" = yes; then
16604         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16605         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16606       else
16607         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16608         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16609       fi
16610       ;;
16611
16612     sysv5* | sco3.2v5* | sco5v6*)
16613       # Note: We can NOT use -z defs as we might desire, because we do not
16614       # link with -lc, and that would cause any symbols used from libc to
16615       # always be unresolved, which means just about no library would
16616       # ever link correctly.  If we're not using GNU ld we use -z text
16617       # though, which does catch some bad symbols but isn't as heavy-handed
16618       # as -z defs.
16619       no_undefined_flag='${wl}-z,text'
16620       allow_undefined_flag='${wl}-z,nodefs'
16621       archive_cmds_need_lc=no
16622       hardcode_shlibpath_var=no
16623       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16624       hardcode_libdir_separator=':'
16625       link_all_deplibs=yes
16626       export_dynamic_flag_spec='${wl}-Bexport'
16627       runpath_var='LD_RUN_PATH'
16628
16629       if test "$GCC" = yes; then
16630         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16631         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16632       else
16633         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16634         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16635       fi
16636       ;;
16637
16638     uts4*)
16639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16640       hardcode_libdir_flag_spec='-L$libdir'
16641       hardcode_shlibpath_var=no
16642       ;;
16643
16644     *)
16645       ld_shlibs=no
16646       ;;
16647     esac
16648
16649     if test x$host_vendor = xsni; then
16650       case $host in
16651       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16652         export_dynamic_flag_spec='${wl}-Blargedynsym'
16653         ;;
16654       esac
16655     fi
16656   fi
16657
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16659 $as_echo "$ld_shlibs" >&6; }
16660 test "$ld_shlibs" = no && can_build_shared=no
16661
16662 with_gnu_ld=$with_gnu_ld
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678 #
16679 # Do we need to explicitly link libc?
16680 #
16681 case "x$archive_cmds_need_lc" in
16682 x|xyes)
16683   # Assume -lc should be added
16684   archive_cmds_need_lc=yes
16685
16686   if test "$enable_shared" = yes && test "$GCC" = yes; then
16687     case $archive_cmds in
16688     *'~'*)
16689       # FIXME: we may have to deal with multi-command sequences.
16690       ;;
16691     '$CC '*)
16692       # Test whether the compiler implicitly links with -lc since on some
16693       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16694       # to ld, don't add -lc before -lgcc.
16695       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16696 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16697 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16698   $as_echo_n "(cached) " >&6
16699 else
16700   $RM conftest*
16701         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16702
16703         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16704   (eval $ac_compile) 2>&5
16705   ac_status=$?
16706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16707   test $ac_status = 0; } 2>conftest.err; then
16708           soname=conftest
16709           lib=conftest
16710           libobjs=conftest.$ac_objext
16711           deplibs=
16712           wl=$lt_prog_compiler_wl
16713           pic_flag=$lt_prog_compiler_pic
16714           compiler_flags=-v
16715           linker_flags=-v
16716           verstring=
16717           output_objdir=.
16718           libname=conftest
16719           lt_save_allow_undefined_flag=$allow_undefined_flag
16720           allow_undefined_flag=
16721           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16722   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16723   ac_status=$?
16724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16725   test $ac_status = 0; }
16726           then
16727             lt_cv_archive_cmds_need_lc=no
16728           else
16729             lt_cv_archive_cmds_need_lc=yes
16730           fi
16731           allow_undefined_flag=$lt_save_allow_undefined_flag
16732         else
16733           cat conftest.err 1>&5
16734         fi
16735         $RM conftest*
16736
16737 fi
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16739 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16740       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16741       ;;
16742     esac
16743   fi
16744   ;;
16745 esac
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16904 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16905
16906 if test "$GCC" = yes; then
16907   case $host_os in
16908     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16909     *) lt_awk_arg="/^libraries:/" ;;
16910   esac
16911   case $host_os in
16912     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16913     *) lt_sed_strip_eq="s,=/,/,g" ;;
16914   esac
16915   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16916   case $lt_search_path_spec in
16917   *\;*)
16918     # if the path contains ";" then we assume it to be the separator
16919     # otherwise default to the standard path separator (i.e. ":") - it is
16920     # assumed that no part of a normal pathname contains ";" but that should
16921     # okay in the real world where ";" in dirpaths is itself problematic.
16922     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16923     ;;
16924   *)
16925     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16926     ;;
16927   esac
16928   # Ok, now we have the path, separated by spaces, we can step through it
16929   # and add multilib dir if necessary.
16930   lt_tmp_lt_search_path_spec=
16931   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16932   for lt_sys_path in $lt_search_path_spec; do
16933     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16934       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16935     else
16936       test -d "$lt_sys_path" && \
16937         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16938     fi
16939   done
16940   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16941 BEGIN {RS=" "; FS="/|\n";} {
16942   lt_foo="";
16943   lt_count=0;
16944   for (lt_i = NF; lt_i > 0; lt_i--) {
16945     if ($lt_i != "" && $lt_i != ".") {
16946       if ($lt_i == "..") {
16947         lt_count++;
16948       } else {
16949         if (lt_count == 0) {
16950           lt_foo="/" $lt_i lt_foo;
16951         } else {
16952           lt_count--;
16953         }
16954       }
16955     }
16956   }
16957   if (lt_foo != "") { lt_freq[lt_foo]++; }
16958   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16959 }'`
16960   # AWK program above erroneously prepends '/' to C:/dos/paths
16961   # for these hosts.
16962   case $host_os in
16963     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16964       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16965   esac
16966   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16967 else
16968   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16969 fi
16970 library_names_spec=
16971 libname_spec='lib$name'
16972 soname_spec=
16973 shrext_cmds=".so"
16974 postinstall_cmds=
16975 postuninstall_cmds=
16976 finish_cmds=
16977 finish_eval=
16978 shlibpath_var=
16979 shlibpath_overrides_runpath=unknown
16980 version_type=none
16981 dynamic_linker="$host_os ld.so"
16982 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16983 need_lib_prefix=unknown
16984 hardcode_into_libs=no
16985
16986 # when you set need_version to no, make sure it does not cause -set_version
16987 # flags to be left without arguments
16988 need_version=unknown
16989
16990 case $host_os in
16991 aix3*)
16992   version_type=linux
16993   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16994   shlibpath_var=LIBPATH
16995
16996   # AIX 3 has no versioning support, so we append a major version to the name.
16997   soname_spec='${libname}${release}${shared_ext}$major'
16998   ;;
16999
17000 aix[4-9]*)
17001   version_type=linux
17002   need_lib_prefix=no
17003   need_version=no
17004   hardcode_into_libs=yes
17005   if test "$host_cpu" = ia64; then
17006     # AIX 5 supports IA64
17007     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17008     shlibpath_var=LD_LIBRARY_PATH
17009   else
17010     # With GCC up to 2.95.x, collect2 would create an import file
17011     # for dependence libraries.  The import file would start with
17012     # the line `#! .'.  This would cause the generated library to
17013     # depend on `.', always an invalid library.  This was fixed in
17014     # development snapshots of GCC prior to 3.0.
17015     case $host_os in
17016       aix4 | aix4.[01] | aix4.[01].*)
17017       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17018            echo ' yes '
17019            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17020         :
17021       else
17022         can_build_shared=no
17023       fi
17024       ;;
17025     esac
17026     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17027     # soname into executable. Probably we can add versioning support to
17028     # collect2, so additional links can be useful in future.
17029     if test "$aix_use_runtimelinking" = yes; then
17030       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17031       # instead of lib<name>.a to let people know that these are not
17032       # typical AIX shared libraries.
17033       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034     else
17035       # We preserve .a as extension for shared libraries through AIX4.2
17036       # and later when we are not doing run time linking.
17037       library_names_spec='${libname}${release}.a $libname.a'
17038       soname_spec='${libname}${release}${shared_ext}$major'
17039     fi
17040     shlibpath_var=LIBPATH
17041   fi
17042   ;;
17043
17044 amigaos*)
17045   case $host_cpu in
17046   powerpc)
17047     # Since July 2007 AmigaOS4 officially supports .so libraries.
17048     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050     ;;
17051   m68k)
17052     library_names_spec='$libname.ixlibrary $libname.a'
17053     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17054     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'
17055     ;;
17056   esac
17057   ;;
17058
17059 beos*)
17060   library_names_spec='${libname}${shared_ext}'
17061   dynamic_linker="$host_os ld.so"
17062   shlibpath_var=LIBRARY_PATH
17063   ;;
17064
17065 bsdi[45]*)
17066   version_type=linux
17067   need_version=no
17068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069   soname_spec='${libname}${release}${shared_ext}$major'
17070   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17071   shlibpath_var=LD_LIBRARY_PATH
17072   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17073   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17074   # the default ld.so.conf also contains /usr/contrib/lib and
17075   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17076   # libtool to hard-code these into programs
17077   ;;
17078
17079 cygwin* | mingw* | pw32* | cegcc*)
17080   version_type=windows
17081   shrext_cmds=".dll"
17082   need_version=no
17083   need_lib_prefix=no
17084
17085   case $GCC,$host_os in
17086   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17087     library_names_spec='$libname.dll.a'
17088     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17089     postinstall_cmds='base_file=`basename \${file}`~
17090       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17091       dldir=$destdir/`dirname \$dlpath`~
17092       test -d \$dldir || mkdir -p \$dldir~
17093       $install_prog $dir/$dlname \$dldir/$dlname~
17094       chmod a+x \$dldir/$dlname~
17095       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17096         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17097       fi'
17098     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17099       dlpath=$dir/\$dldll~
17100        $RM \$dlpath'
17101     shlibpath_overrides_runpath=yes
17102
17103     case $host_os in
17104     cygwin*)
17105       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17106       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17107
17108       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17109       ;;
17110     mingw* | cegcc*)
17111       # MinGW DLLs use traditional 'lib' prefix
17112       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17113       ;;
17114     pw32*)
17115       # pw32 DLLs use 'pw' prefix rather than 'lib'
17116       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17117       ;;
17118     esac
17119     ;;
17120
17121   *)
17122     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17123     ;;
17124   esac
17125   dynamic_linker='Win32 ld.exe'
17126   # FIXME: first we should search . and the directory the executable is in
17127   shlibpath_var=PATH
17128   ;;
17129
17130 darwin* | rhapsody*)
17131   dynamic_linker="$host_os dyld"
17132   version_type=darwin
17133   need_lib_prefix=no
17134   need_version=no
17135   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17136   soname_spec='${libname}${release}${major}$shared_ext'
17137   shlibpath_overrides_runpath=yes
17138   shlibpath_var=DYLD_LIBRARY_PATH
17139   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17140
17141   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17142   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17143   ;;
17144
17145 dgux*)
17146   version_type=linux
17147   need_lib_prefix=no
17148   need_version=no
17149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17150   soname_spec='${libname}${release}${shared_ext}$major'
17151   shlibpath_var=LD_LIBRARY_PATH
17152   ;;
17153
17154 freebsd* | dragonfly*)
17155   # DragonFly does not have aout.  When/if they implement a new
17156   # versioning mechanism, adjust this.
17157   if test -x /usr/bin/objformat; then
17158     objformat=`/usr/bin/objformat`
17159   else
17160     case $host_os in
17161     freebsd[23].*) objformat=aout ;;
17162     *) objformat=elf ;;
17163     esac
17164   fi
17165   version_type=freebsd-$objformat
17166   case $version_type in
17167     freebsd-elf*)
17168       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17169       need_version=no
17170       need_lib_prefix=no
17171       ;;
17172     freebsd-*)
17173       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17174       need_version=yes
17175       ;;
17176   esac
17177   shlibpath_var=LD_LIBRARY_PATH
17178   case $host_os in
17179   freebsd2.*)
17180     shlibpath_overrides_runpath=yes
17181     ;;
17182   freebsd3.[01]* | freebsdelf3.[01]*)
17183     shlibpath_overrides_runpath=yes
17184     hardcode_into_libs=yes
17185     ;;
17186   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17187   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17188     shlibpath_overrides_runpath=no
17189     hardcode_into_libs=yes
17190     ;;
17191   *) # from 4.6 on, and DragonFly
17192     shlibpath_overrides_runpath=yes
17193     hardcode_into_libs=yes
17194     ;;
17195   esac
17196   ;;
17197
17198 gnu*)
17199   version_type=linux
17200   need_lib_prefix=no
17201   need_version=no
17202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17203   soname_spec='${libname}${release}${shared_ext}$major'
17204   shlibpath_var=LD_LIBRARY_PATH
17205   hardcode_into_libs=yes
17206   ;;
17207
17208 haiku*)
17209   version_type=linux
17210   need_lib_prefix=no
17211   need_version=no
17212   dynamic_linker="$host_os runtime_loader"
17213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17214   soname_spec='${libname}${release}${shared_ext}$major'
17215   shlibpath_var=LIBRARY_PATH
17216   shlibpath_overrides_runpath=yes
17217   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17218   hardcode_into_libs=yes
17219   ;;
17220
17221 hpux9* | hpux10* | hpux11*)
17222   # Give a soname corresponding to the major version so that dld.sl refuses to
17223   # link against other versions.
17224   version_type=sunos
17225   need_lib_prefix=no
17226   need_version=no
17227   case $host_cpu in
17228   ia64*)
17229     shrext_cmds='.so'
17230     hardcode_into_libs=yes
17231     dynamic_linker="$host_os dld.so"
17232     shlibpath_var=LD_LIBRARY_PATH
17233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235     soname_spec='${libname}${release}${shared_ext}$major'
17236     if test "X$HPUX_IA64_MODE" = X32; then
17237       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17238     else
17239       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17240     fi
17241     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17242     ;;
17243   hppa*64*)
17244     shrext_cmds='.sl'
17245     hardcode_into_libs=yes
17246     dynamic_linker="$host_os dld.sl"
17247     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17248     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250     soname_spec='${libname}${release}${shared_ext}$major'
17251     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17252     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17253     ;;
17254   *)
17255     shrext_cmds='.sl'
17256     dynamic_linker="$host_os dld.sl"
17257     shlibpath_var=SHLIB_PATH
17258     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260     soname_spec='${libname}${release}${shared_ext}$major'
17261     ;;
17262   esac
17263   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17264   postinstall_cmds='chmod 555 $lib'
17265   # or fails outright, so override atomically:
17266   install_override_mode=555
17267   ;;
17268
17269 interix[3-9]*)
17270   version_type=linux
17271   need_lib_prefix=no
17272   need_version=no
17273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17274   soname_spec='${libname}${release}${shared_ext}$major'
17275   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17276   shlibpath_var=LD_LIBRARY_PATH
17277   shlibpath_overrides_runpath=no
17278   hardcode_into_libs=yes
17279   ;;
17280
17281 irix5* | irix6* | nonstopux*)
17282   case $host_os in
17283     nonstopux*) version_type=nonstopux ;;
17284     *)
17285         if test "$lt_cv_prog_gnu_ld" = yes; then
17286                 version_type=linux
17287         else
17288                 version_type=irix
17289         fi ;;
17290   esac
17291   need_lib_prefix=no
17292   need_version=no
17293   soname_spec='${libname}${release}${shared_ext}$major'
17294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17295   case $host_os in
17296   irix5* | nonstopux*)
17297     libsuff= shlibsuff=
17298     ;;
17299   *)
17300     case $LD in # libtool.m4 will add one of these switches to LD
17301     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17302       libsuff= shlibsuff= libmagic=32-bit;;
17303     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17304       libsuff=32 shlibsuff=N32 libmagic=N32;;
17305     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17306       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17307     *) libsuff= shlibsuff= libmagic=never-match;;
17308     esac
17309     ;;
17310   esac
17311   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17312   shlibpath_overrides_runpath=no
17313   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17314   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17315   hardcode_into_libs=yes
17316   ;;
17317
17318 # No shared lib support for Linux oldld, aout, or coff.
17319 linux*oldld* | linux*aout* | linux*coff*)
17320   dynamic_linker=no
17321   ;;
17322
17323 # This must be Linux ELF.
17324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17325   version_type=linux
17326   need_lib_prefix=no
17327   need_version=no
17328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329   soname_spec='${libname}${release}${shared_ext}$major'
17330   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17331   shlibpath_var=LD_LIBRARY_PATH
17332   shlibpath_overrides_runpath=no
17333
17334   # Some binutils ld are patched to set DT_RUNPATH
17335   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17336   $as_echo_n "(cached) " >&6
17337 else
17338   lt_cv_shlibpath_overrides_runpath=no
17339     save_LDFLAGS=$LDFLAGS
17340     save_libdir=$libdir
17341     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17342          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17343     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h.  */
17345
17346 int
17347 main ()
17348 {
17349
17350   ;
17351   return 0;
17352 }
17353 _ACEOF
17354 if ac_fn_c_try_link "$LINENO"; then :
17355   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17356   lt_cv_shlibpath_overrides_runpath=yes
17357 fi
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext \
17360     conftest$ac_exeext conftest.$ac_ext
17361     LDFLAGS=$save_LDFLAGS
17362     libdir=$save_libdir
17363
17364 fi
17365
17366   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17367
17368   # This implies no fast_install, which is unacceptable.
17369   # Some rework will be needed to allow for fast_install
17370   # before this can be enabled.
17371   hardcode_into_libs=yes
17372
17373   # Append ld.so.conf contents to the search path
17374   if test -f /etc/ld.so.conf; then
17375     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' ' '`
17376     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17377   fi
17378
17379   # We used to test for /lib/ld.so.1 and disable shared libraries on
17380   # powerpc, because MkLinux only supported shared libraries with the
17381   # GNU dynamic linker.  Since this was broken with cross compilers,
17382   # most powerpc-linux boxes support dynamic linking these days and
17383   # people can always --disable-shared, the test was removed, and we
17384   # assume the GNU/Linux dynamic linker is in use.
17385   dynamic_linker='GNU/Linux ld.so'
17386   ;;
17387
17388 netbsd*)
17389   version_type=sunos
17390   need_lib_prefix=no
17391   need_version=no
17392   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17395     dynamic_linker='NetBSD (a.out) ld.so'
17396   else
17397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17398     soname_spec='${libname}${release}${shared_ext}$major'
17399     dynamic_linker='NetBSD ld.elf_so'
17400   fi
17401   shlibpath_var=LD_LIBRARY_PATH
17402   shlibpath_overrides_runpath=yes
17403   hardcode_into_libs=yes
17404   ;;
17405
17406 newsos6)
17407   version_type=linux
17408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409   shlibpath_var=LD_LIBRARY_PATH
17410   shlibpath_overrides_runpath=yes
17411   ;;
17412
17413 *nto* | *qnx*)
17414   version_type=qnx
17415   need_lib_prefix=no
17416   need_version=no
17417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418   soname_spec='${libname}${release}${shared_ext}$major'
17419   shlibpath_var=LD_LIBRARY_PATH
17420   shlibpath_overrides_runpath=no
17421   hardcode_into_libs=yes
17422   dynamic_linker='ldqnx.so'
17423   ;;
17424
17425 openbsd*)
17426   version_type=sunos
17427   sys_lib_dlsearch_path_spec="/usr/lib"
17428   need_lib_prefix=no
17429   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17430   case $host_os in
17431     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17432     *)                          need_version=no  ;;
17433   esac
17434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17435   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17436   shlibpath_var=LD_LIBRARY_PATH
17437   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17438     case $host_os in
17439       openbsd2.[89] | openbsd2.[89].*)
17440         shlibpath_overrides_runpath=no
17441         ;;
17442       *)
17443         shlibpath_overrides_runpath=yes
17444         ;;
17445       esac
17446   else
17447     shlibpath_overrides_runpath=yes
17448   fi
17449   ;;
17450
17451 os2*)
17452   libname_spec='$name'
17453   shrext_cmds=".dll"
17454   need_lib_prefix=no
17455   library_names_spec='$libname${shared_ext} $libname.a'
17456   dynamic_linker='OS/2 ld.exe'
17457   shlibpath_var=LIBPATH
17458   ;;
17459
17460 osf3* | osf4* | osf5*)
17461   version_type=osf
17462   need_lib_prefix=no
17463   need_version=no
17464   soname_spec='${libname}${release}${shared_ext}$major'
17465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466   shlibpath_var=LD_LIBRARY_PATH
17467   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17468   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17469   ;;
17470
17471 rdos*)
17472   dynamic_linker=no
17473   ;;
17474
17475 solaris*)
17476   version_type=linux
17477   need_lib_prefix=no
17478   need_version=no
17479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480   soname_spec='${libname}${release}${shared_ext}$major'
17481   shlibpath_var=LD_LIBRARY_PATH
17482   shlibpath_overrides_runpath=yes
17483   hardcode_into_libs=yes
17484   # ldd complains unless libraries are executable
17485   postinstall_cmds='chmod +x $lib'
17486   ;;
17487
17488 sunos4*)
17489   version_type=sunos
17490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17491   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17492   shlibpath_var=LD_LIBRARY_PATH
17493   shlibpath_overrides_runpath=yes
17494   if test "$with_gnu_ld" = yes; then
17495     need_lib_prefix=no
17496   fi
17497   need_version=yes
17498   ;;
17499
17500 sysv4 | sysv4.3*)
17501   version_type=linux
17502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503   soname_spec='${libname}${release}${shared_ext}$major'
17504   shlibpath_var=LD_LIBRARY_PATH
17505   case $host_vendor in
17506     sni)
17507       shlibpath_overrides_runpath=no
17508       need_lib_prefix=no
17509       runpath_var=LD_RUN_PATH
17510       ;;
17511     siemens)
17512       need_lib_prefix=no
17513       ;;
17514     motorola)
17515       need_lib_prefix=no
17516       need_version=no
17517       shlibpath_overrides_runpath=no
17518       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17519       ;;
17520   esac
17521   ;;
17522
17523 sysv4*MP*)
17524   if test -d /usr/nec ;then
17525     version_type=linux
17526     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17527     soname_spec='$libname${shared_ext}.$major'
17528     shlibpath_var=LD_LIBRARY_PATH
17529   fi
17530   ;;
17531
17532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17533   version_type=freebsd-elf
17534   need_lib_prefix=no
17535   need_version=no
17536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17537   soname_spec='${libname}${release}${shared_ext}$major'
17538   shlibpath_var=LD_LIBRARY_PATH
17539   shlibpath_overrides_runpath=yes
17540   hardcode_into_libs=yes
17541   if test "$with_gnu_ld" = yes; then
17542     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17543   else
17544     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17545     case $host_os in
17546       sco3.2v5*)
17547         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17548         ;;
17549     esac
17550   fi
17551   sys_lib_dlsearch_path_spec='/usr/lib'
17552   ;;
17553
17554 tpf*)
17555   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17556   version_type=linux
17557   need_lib_prefix=no
17558   need_version=no
17559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560   shlibpath_var=LD_LIBRARY_PATH
17561   shlibpath_overrides_runpath=no
17562   hardcode_into_libs=yes
17563   ;;
17564
17565 uts4*)
17566   version_type=linux
17567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568   soname_spec='${libname}${release}${shared_ext}$major'
17569   shlibpath_var=LD_LIBRARY_PATH
17570   ;;
17571
17572 *)
17573   dynamic_linker=no
17574   ;;
17575 esac
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17577 $as_echo "$dynamic_linker" >&6; }
17578 test "$dynamic_linker" = no && can_build_shared=no
17579
17580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17581 if test "$GCC" = yes; then
17582   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17583 fi
17584
17585 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17586   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17587 fi
17588 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17589   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17590 fi
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17684 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17685 hardcode_action=
17686 if test -n "$hardcode_libdir_flag_spec" ||
17687    test -n "$runpath_var" ||
17688    test "X$hardcode_automatic" = "Xyes" ; then
17689
17690   # We can hardcode non-existent directories.
17691   if test "$hardcode_direct" != no &&
17692      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17693      # have to relink, otherwise we might link with an installed library
17694      # when we should be linking with a yet-to-be-installed one
17695      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17696      test "$hardcode_minus_L" != no; then
17697     # Linking always hardcodes the temporary library directory.
17698     hardcode_action=relink
17699   else
17700     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17701     hardcode_action=immediate
17702   fi
17703 else
17704   # We cannot hardcode anything, or else we can only hardcode existing
17705   # directories.
17706   hardcode_action=unsupported
17707 fi
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17709 $as_echo "$hardcode_action" >&6; }
17710
17711 if test "$hardcode_action" = relink ||
17712    test "$inherit_rpath" = yes; then
17713   # Fast installation is not supported
17714   enable_fast_install=no
17715 elif test "$shlibpath_overrides_runpath" = yes ||
17716      test "$enable_shared" = no; then
17717   # Fast installation is not necessary
17718   enable_fast_install=needless
17719 fi
17720
17721
17722
17723
17724
17725
17726   if test "x$enable_dlopen" != xyes; then
17727   enable_dlopen=unknown
17728   enable_dlopen_self=unknown
17729   enable_dlopen_self_static=unknown
17730 else
17731   lt_cv_dlopen=no
17732   lt_cv_dlopen_libs=
17733
17734   case $host_os in
17735   beos*)
17736     lt_cv_dlopen="load_add_on"
17737     lt_cv_dlopen_libs=
17738     lt_cv_dlopen_self=yes
17739     ;;
17740
17741   mingw* | pw32* | cegcc*)
17742     lt_cv_dlopen="LoadLibrary"
17743     lt_cv_dlopen_libs=
17744     ;;
17745
17746   cygwin*)
17747     lt_cv_dlopen="dlopen"
17748     lt_cv_dlopen_libs=
17749     ;;
17750
17751   darwin*)
17752   # if libdl is installed we need to link against it
17753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17754 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17755 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17756   $as_echo_n "(cached) " >&6
17757 else
17758   ac_check_lib_save_LIBS=$LIBS
17759 LIBS="-ldl  $LIBS"
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h.  */
17762
17763 /* Override any GCC internal prototype to avoid an error.
17764    Use char because int might match the return type of a GCC
17765    builtin and then its argument prototype would still apply.  */
17766 #ifdef __cplusplus
17767 extern "C"
17768 #endif
17769 char dlopen ();
17770 int
17771 main ()
17772 {
17773 return dlopen ();
17774   ;
17775   return 0;
17776 }
17777 _ACEOF
17778 if ac_fn_c_try_link "$LINENO"; then :
17779   ac_cv_lib_dl_dlopen=yes
17780 else
17781   ac_cv_lib_dl_dlopen=no
17782 fi
17783 rm -f core conftest.err conftest.$ac_objext \
17784     conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17786 fi
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17788 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17789 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17790   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17791 else
17792
17793     lt_cv_dlopen="dyld"
17794     lt_cv_dlopen_libs=
17795     lt_cv_dlopen_self=yes
17796
17797 fi
17798
17799     ;;
17800
17801   *)
17802     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17803 if test "x$ac_cv_func_shl_load" = x""yes; then :
17804   lt_cv_dlopen="shl_load"
17805 else
17806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17807 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17808 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17809   $as_echo_n "(cached) " >&6
17810 else
17811   ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-ldld  $LIBS"
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h.  */
17815
17816 /* Override any GCC internal prototype to avoid an error.
17817    Use char because int might match the return type of a GCC
17818    builtin and then its argument prototype would still apply.  */
17819 #ifdef __cplusplus
17820 extern "C"
17821 #endif
17822 char shl_load ();
17823 int
17824 main ()
17825 {
17826 return shl_load ();
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 if ac_fn_c_try_link "$LINENO"; then :
17832   ac_cv_lib_dld_shl_load=yes
17833 else
17834   ac_cv_lib_dld_shl_load=no
17835 fi
17836 rm -f core conftest.err conftest.$ac_objext \
17837     conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17839 fi
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17841 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17842 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17843   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17844 else
17845   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17846 if test "x$ac_cv_func_dlopen" = x""yes; then :
17847   lt_cv_dlopen="dlopen"
17848 else
17849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17852   $as_echo_n "(cached) " >&6
17853 else
17854   ac_check_lib_save_LIBS=$LIBS
17855 LIBS="-ldl  $LIBS"
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h.  */
17858
17859 /* Override any GCC internal prototype to avoid an error.
17860    Use char because int might match the return type of a GCC
17861    builtin and then its argument prototype would still apply.  */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 char dlopen ();
17866 int
17867 main ()
17868 {
17869 return dlopen ();
17870   ;
17871   return 0;
17872 }
17873 _ACEOF
17874 if ac_fn_c_try_link "$LINENO"; then :
17875   ac_cv_lib_dl_dlopen=yes
17876 else
17877   ac_cv_lib_dl_dlopen=no
17878 fi
17879 rm -f core conftest.err conftest.$ac_objext \
17880     conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17882 fi
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17885 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17886   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17887 else
17888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17889 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17890 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17891   $as_echo_n "(cached) " >&6
17892 else
17893   ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-lsvld  $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h.  */
17897
17898 /* Override any GCC internal prototype to avoid an error.
17899    Use char because int might match the return type of a GCC
17900    builtin and then its argument prototype would still apply.  */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char dlopen ();
17905 int
17906 main ()
17907 {
17908 return dlopen ();
17909   ;
17910   return 0;
17911 }
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914   ac_cv_lib_svld_dlopen=yes
17915 else
17916   ac_cv_lib_svld_dlopen=no
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext \
17919     conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17921 fi
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17923 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17924 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17925   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17926 else
17927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17928 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17929 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17930   $as_echo_n "(cached) " >&6
17931 else
17932   ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-ldld  $LIBS"
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h.  */
17936
17937 /* Override any GCC internal prototype to avoid an error.
17938    Use char because int might match the return type of a GCC
17939    builtin and then its argument prototype would still apply.  */
17940 #ifdef __cplusplus
17941 extern "C"
17942 #endif
17943 char dld_link ();
17944 int
17945 main ()
17946 {
17947 return dld_link ();
17948   ;
17949   return 0;
17950 }
17951 _ACEOF
17952 if ac_fn_c_try_link "$LINENO"; then :
17953   ac_cv_lib_dld_dld_link=yes
17954 else
17955   ac_cv_lib_dld_dld_link=no
17956 fi
17957 rm -f core conftest.err conftest.$ac_objext \
17958     conftest$ac_exeext conftest.$ac_ext
17959 LIBS=$ac_check_lib_save_LIBS
17960 fi
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17962 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17963 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17964   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17965 fi
17966
17967
17968 fi
17969
17970
17971 fi
17972
17973
17974 fi
17975
17976
17977 fi
17978
17979
17980 fi
17981
17982     ;;
17983   esac
17984
17985   if test "x$lt_cv_dlopen" != xno; then
17986     enable_dlopen=yes
17987   else
17988     enable_dlopen=no
17989   fi
17990
17991   case $lt_cv_dlopen in
17992   dlopen)
17993     save_CPPFLAGS="$CPPFLAGS"
17994     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17995
17996     save_LDFLAGS="$LDFLAGS"
17997     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17998
17999     save_LIBS="$LIBS"
18000     LIBS="$lt_cv_dlopen_libs $LIBS"
18001
18002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18003 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18004 if test "${lt_cv_dlopen_self+set}" = set; then :
18005   $as_echo_n "(cached) " >&6
18006 else
18007           if test "$cross_compiling" = yes; then :
18008   lt_cv_dlopen_self=cross
18009 else
18010   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18011   lt_status=$lt_dlunknown
18012   cat > conftest.$ac_ext <<_LT_EOF
18013 #line 18013 "configure"
18014 #include "confdefs.h"
18015
18016 #if HAVE_DLFCN_H
18017 #include <dlfcn.h>
18018 #endif
18019
18020 #include <stdio.h>
18021
18022 #ifdef RTLD_GLOBAL
18023 #  define LT_DLGLOBAL           RTLD_GLOBAL
18024 #else
18025 #  ifdef DL_GLOBAL
18026 #    define LT_DLGLOBAL         DL_GLOBAL
18027 #  else
18028 #    define LT_DLGLOBAL         0
18029 #  endif
18030 #endif
18031
18032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18033    find out it does not work in some platform. */
18034 #ifndef LT_DLLAZY_OR_NOW
18035 #  ifdef RTLD_LAZY
18036 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18037 #  else
18038 #    ifdef DL_LAZY
18039 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18040 #    else
18041 #      ifdef RTLD_NOW
18042 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18043 #      else
18044 #        ifdef DL_NOW
18045 #          define LT_DLLAZY_OR_NOW      DL_NOW
18046 #        else
18047 #          define LT_DLLAZY_OR_NOW      0
18048 #        endif
18049 #      endif
18050 #    endif
18051 #  endif
18052 #endif
18053
18054 /* When -fvisbility=hidden is used, assume the code has been annotated
18055    correspondingly for the symbols needed.  */
18056 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18057 void fnord () __attribute__((visibility("default")));
18058 #endif
18059
18060 void fnord () { int i=42; }
18061 int main ()
18062 {
18063   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18064   int status = $lt_dlunknown;
18065
18066   if (self)
18067     {
18068       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18069       else
18070         {
18071           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18072           else puts (dlerror ());
18073         }
18074       /* dlclose (self); */
18075     }
18076   else
18077     puts (dlerror ());
18078
18079   return status;
18080 }
18081 _LT_EOF
18082   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18083   (eval $ac_link) 2>&5
18084   ac_status=$?
18085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18086   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18087     (./conftest; exit; ) >&5 2>/dev/null
18088     lt_status=$?
18089     case x$lt_status in
18090       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18091       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18092       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18093     esac
18094   else :
18095     # compilation failed
18096     lt_cv_dlopen_self=no
18097   fi
18098 fi
18099 rm -fr conftest*
18100
18101
18102 fi
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18104 $as_echo "$lt_cv_dlopen_self" >&6; }
18105
18106     if test "x$lt_cv_dlopen_self" = xyes; then
18107       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18108       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18109 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18110 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18111   $as_echo_n "(cached) " >&6
18112 else
18113           if test "$cross_compiling" = yes; then :
18114   lt_cv_dlopen_self_static=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_static=yes ;;
18197       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18198       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18199     esac
18200   else :
18201     # compilation failed
18202     lt_cv_dlopen_self_static=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_static" >&5
18210 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18211     fi
18212
18213     CPPFLAGS="$save_CPPFLAGS"
18214     LDFLAGS="$save_LDFLAGS"
18215     LIBS="$save_LIBS"
18216     ;;
18217   esac
18218
18219   case $lt_cv_dlopen_self in
18220   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18221   *) enable_dlopen_self=unknown ;;
18222   esac
18223
18224   case $lt_cv_dlopen_self_static in
18225   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18226   *) enable_dlopen_self_static=unknown ;;
18227   esac
18228 fi
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246 striplib=
18247 old_striplib=
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18249 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18250 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18251   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18252   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18254 $as_echo "yes" >&6; }
18255 else
18256 # FIXME - insert some real tests, host_os isn't really good enough
18257   case $host_os in
18258   darwin*)
18259     if test -n "$STRIP" ; then
18260       striplib="$STRIP -x"
18261       old_striplib="$STRIP -S"
18262       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18263 $as_echo "yes" >&6; }
18264     else
18265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18266 $as_echo "no" >&6; }
18267     fi
18268     ;;
18269   *)
18270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18271 $as_echo "no" >&6; }
18272     ;;
18273   esac
18274 fi
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287   # Report which library types will actually be built
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18289 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18291 $as_echo "$can_build_shared" >&6; }
18292
18293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18294 $as_echo_n "checking whether to build shared libraries... " >&6; }
18295   test "$can_build_shared" = "no" && enable_shared=no
18296
18297   # On AIX, shared libraries and static libraries use the same namespace, and
18298   # are all built from PIC.
18299   case $host_os in
18300   aix3*)
18301     test "$enable_shared" = yes && enable_static=no
18302     if test -n "$RANLIB"; then
18303       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18304       postinstall_cmds='$RANLIB $lib'
18305     fi
18306     ;;
18307
18308   aix[4-9]*)
18309     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18310       test "$enable_shared" = yes && enable_static=no
18311     fi
18312     ;;
18313   esac
18314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18315 $as_echo "$enable_shared" >&6; }
18316
18317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18318 $as_echo_n "checking whether to build static libraries... " >&6; }
18319   # Make sure either enable_shared or enable_static is yes.
18320   test "$enable_shared" = yes || enable_static=yes
18321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18322 $as_echo "$enable_static" >&6; }
18323
18324
18325
18326
18327 fi
18328 ac_ext=c
18329 ac_cpp='$CPP $CPPFLAGS'
18330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18333
18334 CC="$lt_save_CC"
18335
18336       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18337     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18338     (test "X$CXX" != "Xg++"))) ; then
18339   ac_ext=cpp
18340 ac_cpp='$CXXCPP $CPPFLAGS'
18341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18345 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18346 if test -z "$CXXCPP"; then
18347   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18348   $as_echo_n "(cached) " >&6
18349 else
18350       # Double quotes because CXXCPP needs to be expanded
18351     for CXXCPP in "$CXX -E" "/lib/cpp"
18352     do
18353       ac_preproc_ok=false
18354 for ac_cxx_preproc_warn_flag in '' yes
18355 do
18356   # Use a header file that comes with gcc, so configuring glibc
18357   # with a fresh cross-compiler works.
18358   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18359   # <limits.h> exists even on freestanding compilers.
18360   # On the NeXT, cc -E runs the code through the compiler's parser,
18361   # not just through cpp. "Syntax error" is here to catch this case.
18362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h.  */
18364 #ifdef __STDC__
18365 # include <limits.h>
18366 #else
18367 # include <assert.h>
18368 #endif
18369                      Syntax error
18370 _ACEOF
18371 if ac_fn_cxx_try_cpp "$LINENO"; then :
18372
18373 else
18374   # Broken: fails on valid input.
18375 continue
18376 fi
18377 rm -f conftest.err conftest.$ac_ext
18378
18379   # OK, works on sane cases.  Now check whether nonexistent headers
18380   # can be detected and how.
18381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18382 /* end confdefs.h.  */
18383 #include <ac_nonexistent.h>
18384 _ACEOF
18385 if ac_fn_cxx_try_cpp "$LINENO"; then :
18386   # Broken: success on invalid input.
18387 continue
18388 else
18389   # Passes both tests.
18390 ac_preproc_ok=:
18391 break
18392 fi
18393 rm -f conftest.err conftest.$ac_ext
18394
18395 done
18396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18397 rm -f conftest.err conftest.$ac_ext
18398 if $ac_preproc_ok; then :
18399   break
18400 fi
18401
18402     done
18403     ac_cv_prog_CXXCPP=$CXXCPP
18404
18405 fi
18406   CXXCPP=$ac_cv_prog_CXXCPP
18407 else
18408   ac_cv_prog_CXXCPP=$CXXCPP
18409 fi
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18411 $as_echo "$CXXCPP" >&6; }
18412 ac_preproc_ok=false
18413 for ac_cxx_preproc_warn_flag in '' yes
18414 do
18415   # Use a header file that comes with gcc, so configuring glibc
18416   # with a fresh cross-compiler works.
18417   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18418   # <limits.h> exists even on freestanding compilers.
18419   # On the NeXT, cc -E runs the code through the compiler's parser,
18420   # not just through cpp. "Syntax error" is here to catch this case.
18421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h.  */
18423 #ifdef __STDC__
18424 # include <limits.h>
18425 #else
18426 # include <assert.h>
18427 #endif
18428                      Syntax error
18429 _ACEOF
18430 if ac_fn_cxx_try_cpp "$LINENO"; then :
18431
18432 else
18433   # Broken: fails on valid input.
18434 continue
18435 fi
18436 rm -f conftest.err conftest.$ac_ext
18437
18438   # OK, works on sane cases.  Now check whether nonexistent headers
18439   # can be detected and how.
18440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h.  */
18442 #include <ac_nonexistent.h>
18443 _ACEOF
18444 if ac_fn_cxx_try_cpp "$LINENO"; then :
18445   # Broken: success on invalid input.
18446 continue
18447 else
18448   # Passes both tests.
18449 ac_preproc_ok=:
18450 break
18451 fi
18452 rm -f conftest.err conftest.$ac_ext
18453
18454 done
18455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18456 rm -f conftest.err conftest.$ac_ext
18457 if $ac_preproc_ok; then :
18458
18459 else
18460   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18462 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18463 See \`config.log' for more details." "$LINENO" 5; }
18464 fi
18465
18466 ac_ext=c
18467 ac_cpp='$CPP $CPPFLAGS'
18468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18471
18472 else
18473   _lt_caught_CXX_error=yes
18474 fi
18475
18476 ac_ext=cpp
18477 ac_cpp='$CXXCPP $CPPFLAGS'
18478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18481
18482 archive_cmds_need_lc_CXX=no
18483 allow_undefined_flag_CXX=
18484 always_export_symbols_CXX=no
18485 archive_expsym_cmds_CXX=
18486 compiler_needs_object_CXX=no
18487 export_dynamic_flag_spec_CXX=
18488 hardcode_direct_CXX=no
18489 hardcode_direct_absolute_CXX=no
18490 hardcode_libdir_flag_spec_CXX=
18491 hardcode_libdir_flag_spec_ld_CXX=
18492 hardcode_libdir_separator_CXX=
18493 hardcode_minus_L_CXX=no
18494 hardcode_shlibpath_var_CXX=unsupported
18495 hardcode_automatic_CXX=no
18496 inherit_rpath_CXX=no
18497 module_cmds_CXX=
18498 module_expsym_cmds_CXX=
18499 link_all_deplibs_CXX=unknown
18500 old_archive_cmds_CXX=$old_archive_cmds
18501 reload_flag_CXX=$reload_flag
18502 reload_cmds_CXX=$reload_cmds
18503 no_undefined_flag_CXX=
18504 whole_archive_flag_spec_CXX=
18505 enable_shared_with_static_runtimes_CXX=no
18506
18507 # Source file extension for C++ test sources.
18508 ac_ext=cpp
18509
18510 # Object file extension for compiled C++ test sources.
18511 objext=o
18512 objext_CXX=$objext
18513
18514 # No sense in running all these tests if we already determined that
18515 # the CXX compiler isn't working.  Some variables (like enable_shared)
18516 # are currently assumed to apply to all compilers on this platform,
18517 # and will be corrupted by setting them based on a non-working compiler.
18518 if test "$_lt_caught_CXX_error" != yes; then
18519   # Code to be used in simple compile tests
18520   lt_simple_compile_test_code="int some_variable = 0;"
18521
18522   # Code to be used in simple link tests
18523   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18524
18525   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18526
18527
18528
18529
18530
18531
18532 # If no C compiler was specified, use CC.
18533 LTCC=${LTCC-"$CC"}
18534
18535 # If no C compiler flags were specified, use CFLAGS.
18536 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18537
18538 # Allow CC to be a program name with arguments.
18539 compiler=$CC
18540
18541
18542   # save warnings/boilerplate of simple test code
18543   ac_outfile=conftest.$ac_objext
18544 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18546 _lt_compiler_boilerplate=`cat conftest.err`
18547 $RM conftest*
18548
18549   ac_outfile=conftest.$ac_objext
18550 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18552 _lt_linker_boilerplate=`cat conftest.err`
18553 $RM -r conftest*
18554
18555
18556   # Allow CC to be a program name with arguments.
18557   lt_save_CC=$CC
18558   lt_save_LD=$LD
18559   lt_save_GCC=$GCC
18560   GCC=$GXX
18561   lt_save_with_gnu_ld=$with_gnu_ld
18562   lt_save_path_LD=$lt_cv_path_LD
18563   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18564     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18565   else
18566     $as_unset lt_cv_prog_gnu_ld
18567   fi
18568   if test -n "${lt_cv_path_LDCXX+set}"; then
18569     lt_cv_path_LD=$lt_cv_path_LDCXX
18570   else
18571     $as_unset lt_cv_path_LD
18572   fi
18573   test -z "${LDCXX+set}" || LD=$LDCXX
18574   CC=${CXX-"c++"}
18575   compiler=$CC
18576   compiler_CXX=$CC
18577   for cc_temp in $compiler""; do
18578   case $cc_temp in
18579     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18580     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18581     \-*) ;;
18582     *) break;;
18583   esac
18584 done
18585 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18586
18587
18588   if test -n "$compiler"; then
18589     # We don't want -fno-exception when compiling C++ code, so set the
18590     # no_builtin_flag separately
18591     if test "$GXX" = yes; then
18592       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18593     else
18594       lt_prog_compiler_no_builtin_flag_CXX=
18595     fi
18596
18597     if test "$GXX" = yes; then
18598       # Set up default GNU C++ configuration
18599
18600
18601
18602 # Check whether --with-gnu-ld was given.
18603 if test "${with_gnu_ld+set}" = set; then :
18604   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18605 else
18606   with_gnu_ld=no
18607 fi
18608
18609 ac_prog=ld
18610 if test "$GCC" = yes; then
18611   # Check if gcc -print-prog-name=ld gives a path.
18612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18613 $as_echo_n "checking for ld used by $CC... " >&6; }
18614   case $host in
18615   *-*-mingw*)
18616     # gcc leaves a trailing carriage return which upsets mingw
18617     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18618   *)
18619     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18620   esac
18621   case $ac_prog in
18622     # Accept absolute paths.
18623     [\\/]* | ?:[\\/]*)
18624       re_direlt='/[^/][^/]*/\.\./'
18625       # Canonicalize the pathname of ld
18626       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18627       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18628         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18629       done
18630       test -z "$LD" && LD="$ac_prog"
18631       ;;
18632   "")
18633     # If it fails, then pretend we aren't using GCC.
18634     ac_prog=ld
18635     ;;
18636   *)
18637     # If it is relative, then search for the first ld in PATH.
18638     with_gnu_ld=unknown
18639     ;;
18640   esac
18641 elif test "$with_gnu_ld" = yes; then
18642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18643 $as_echo_n "checking for GNU ld... " >&6; }
18644 else
18645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18646 $as_echo_n "checking for non-GNU ld... " >&6; }
18647 fi
18648 if test "${lt_cv_path_LD+set}" = set; then :
18649   $as_echo_n "(cached) " >&6
18650 else
18651   if test -z "$LD"; then
18652   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18653   for ac_dir in $PATH; do
18654     IFS="$lt_save_ifs"
18655     test -z "$ac_dir" && ac_dir=.
18656     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18657       lt_cv_path_LD="$ac_dir/$ac_prog"
18658       # Check to see if the program is GNU ld.  I'd rather use --version,
18659       # but apparently some variants of GNU ld only accept -v.
18660       # Break only if it was the GNU/non-GNU ld that we prefer.
18661       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18662       *GNU* | *'with BFD'*)
18663         test "$with_gnu_ld" != no && break
18664         ;;
18665       *)
18666         test "$with_gnu_ld" != yes && break
18667         ;;
18668       esac
18669     fi
18670   done
18671   IFS="$lt_save_ifs"
18672 else
18673   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18674 fi
18675 fi
18676
18677 LD="$lt_cv_path_LD"
18678 if test -n "$LD"; then
18679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18680 $as_echo "$LD" >&6; }
18681 else
18682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18683 $as_echo "no" >&6; }
18684 fi
18685 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18687 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18688 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18689   $as_echo_n "(cached) " >&6
18690 else
18691   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18692 case `$LD -v 2>&1 </dev/null` in
18693 *GNU* | *'with BFD'*)
18694   lt_cv_prog_gnu_ld=yes
18695   ;;
18696 *)
18697   lt_cv_prog_gnu_ld=no
18698   ;;
18699 esac
18700 fi
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18702 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18703 with_gnu_ld=$lt_cv_prog_gnu_ld
18704
18705
18706
18707
18708
18709
18710
18711       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18712       # archiving commands below assume that GNU ld is being used.
18713       if test "$with_gnu_ld" = yes; then
18714         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18715         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'
18716
18717         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18718         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18719
18720         # If archive_cmds runs LD, not CC, wlarc should be empty
18721         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18722         #     investigate it a little bit more. (MM)
18723         wlarc='${wl}'
18724
18725         # ancient GNU ld didn't support --whole-archive et. al.
18726         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18727           $GREP 'no-whole-archive' > /dev/null; then
18728           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18729         else
18730           whole_archive_flag_spec_CXX=
18731         fi
18732       else
18733         with_gnu_ld=no
18734         wlarc=
18735
18736         # A generic and very simple default shared library creation
18737         # command for GNU C++ for the case where it uses the native
18738         # linker, instead of GNU ld.  If possible, this setting should
18739         # overridden to take advantage of the native linker features on
18740         # the platform it is being used on.
18741         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18742       fi
18743
18744       # Commands to make compiler produce verbose output that lists
18745       # what "hidden" libraries, object files and flags are used when
18746       # linking a shared library.
18747       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18748
18749     else
18750       GXX=no
18751       with_gnu_ld=no
18752       wlarc=
18753     fi
18754
18755     # PORTME: fill in a description of your system's C++ link characteristics
18756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18758     ld_shlibs_CXX=yes
18759     case $host_os in
18760       aix3*)
18761         # FIXME: insert proper C++ library support
18762         ld_shlibs_CXX=no
18763         ;;
18764       aix[4-9]*)
18765         if test "$host_cpu" = ia64; then
18766           # On IA64, the linker does run time linking by default, so we don't
18767           # have to do anything special.
18768           aix_use_runtimelinking=no
18769           exp_sym_flag='-Bexport'
18770           no_entry_flag=""
18771         else
18772           aix_use_runtimelinking=no
18773
18774           # Test if we are trying to use run time linking or normal
18775           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18776           # need to do runtime linking.
18777           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18778             for ld_flag in $LDFLAGS; do
18779               case $ld_flag in
18780               *-brtl*)
18781                 aix_use_runtimelinking=yes
18782                 break
18783                 ;;
18784               esac
18785             done
18786             ;;
18787           esac
18788
18789           exp_sym_flag='-bexport'
18790           no_entry_flag='-bnoentry'
18791         fi
18792
18793         # When large executables or shared objects are built, AIX ld can
18794         # have problems creating the table of contents.  If linking a library
18795         # or program results in "error TOC overflow" add -mminimal-toc to
18796         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18797         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18798
18799         archive_cmds_CXX=''
18800         hardcode_direct_CXX=yes
18801         hardcode_direct_absolute_CXX=yes
18802         hardcode_libdir_separator_CXX=':'
18803         link_all_deplibs_CXX=yes
18804         file_list_spec_CXX='${wl}-f,'
18805
18806         if test "$GXX" = yes; then
18807           case $host_os in aix4.[012]|aix4.[012].*)
18808           # We only want to do this on AIX 4.2 and lower, the check
18809           # below for broken collect2 doesn't work under 4.3+
18810           collect2name=`${CC} -print-prog-name=collect2`
18811           if test -f "$collect2name" &&
18812              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18813           then
18814             # We have reworked collect2
18815             :
18816           else
18817             # We have old collect2
18818             hardcode_direct_CXX=unsupported
18819             # It fails to find uninstalled libraries when the uninstalled
18820             # path is not listed in the libpath.  Setting hardcode_minus_L
18821             # to unsupported forces relinking
18822             hardcode_minus_L_CXX=yes
18823             hardcode_libdir_flag_spec_CXX='-L$libdir'
18824             hardcode_libdir_separator_CXX=
18825           fi
18826           esac
18827           shared_flag='-shared'
18828           if test "$aix_use_runtimelinking" = yes; then
18829             shared_flag="$shared_flag "'${wl}-G'
18830           fi
18831         else
18832           # not using gcc
18833           if test "$host_cpu" = ia64; then
18834           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18835           # chokes on -Wl,-G. The following line is correct:
18836           shared_flag='-G'
18837           else
18838             if test "$aix_use_runtimelinking" = yes; then
18839               shared_flag='${wl}-G'
18840             else
18841               shared_flag='${wl}-bM:SRE'
18842             fi
18843           fi
18844         fi
18845
18846         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18847         # It seems that -bexpall does not export symbols beginning with
18848         # underscore (_), so it is better to generate a list of symbols to
18849         # export.
18850         always_export_symbols_CXX=yes
18851         if test "$aix_use_runtimelinking" = yes; then
18852           # Warning - without using the other runtime loading flags (-brtl),
18853           # -berok will link without error, but may produce a broken library.
18854           allow_undefined_flag_CXX='-berok'
18855           # Determine the default libpath from the value encoded in an empty
18856           # executable.
18857           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h.  */
18859
18860 int
18861 main ()
18862 {
18863
18864   ;
18865   return 0;
18866 }
18867 _ACEOF
18868 if ac_fn_cxx_try_link "$LINENO"; then :
18869
18870 lt_aix_libpath_sed='
18871     /Import File Strings/,/^$/ {
18872         /^0/ {
18873             s/^0  *\(.*\)$/\1/
18874             p
18875         }
18876     }'
18877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18878 # Check for a 64-bit object if we didn't find anything.
18879 if test -z "$aix_libpath"; then
18880   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18881 fi
18882 fi
18883 rm -f core conftest.err conftest.$ac_objext \
18884     conftest$ac_exeext conftest.$ac_ext
18885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18886
18887           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18888
18889           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"
18890         else
18891           if test "$host_cpu" = ia64; then
18892             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18893             allow_undefined_flag_CXX="-z nodefs"
18894             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"
18895           else
18896             # Determine the default libpath from the value encoded in an
18897             # empty executable.
18898             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h.  */
18900
18901 int
18902 main ()
18903 {
18904
18905   ;
18906   return 0;
18907 }
18908 _ACEOF
18909 if ac_fn_cxx_try_link "$LINENO"; then :
18910
18911 lt_aix_libpath_sed='
18912     /Import File Strings/,/^$/ {
18913         /^0/ {
18914             s/^0  *\(.*\)$/\1/
18915             p
18916         }
18917     }'
18918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18919 # Check for a 64-bit object if we didn't find anything.
18920 if test -z "$aix_libpath"; then
18921   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18922 fi
18923 fi
18924 rm -f core conftest.err conftest.$ac_objext \
18925     conftest$ac_exeext conftest.$ac_ext
18926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18927
18928             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18929             # Warning - without using the other run time loading flags,
18930             # -berok will link without error, but may produce a broken library.
18931             no_undefined_flag_CXX=' ${wl}-bernotok'
18932             allow_undefined_flag_CXX=' ${wl}-berok'
18933             if test "$with_gnu_ld" = yes; then
18934               # We only use this code for GNU lds that support --whole-archive.
18935               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18936             else
18937               # Exported symbols can be pulled into shared objects from archives
18938               whole_archive_flag_spec_CXX='$convenience'
18939             fi
18940             archive_cmds_need_lc_CXX=yes
18941             # This is similar to how AIX traditionally builds its shared
18942             # libraries.
18943             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'
18944           fi
18945         fi
18946         ;;
18947
18948       beos*)
18949         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18950           allow_undefined_flag_CXX=unsupported
18951           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18952           # support --undefined.  This deserves some investigation.  FIXME
18953           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18954         else
18955           ld_shlibs_CXX=no
18956         fi
18957         ;;
18958
18959       chorus*)
18960         case $cc_basename in
18961           *)
18962           # FIXME: insert proper C++ library support
18963           ld_shlibs_CXX=no
18964           ;;
18965         esac
18966         ;;
18967
18968       cygwin* | mingw* | pw32* | cegcc*)
18969         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18970         # as there is no search path for DLLs.
18971         hardcode_libdir_flag_spec_CXX='-L$libdir'
18972         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18973         allow_undefined_flag_CXX=unsupported
18974         always_export_symbols_CXX=no
18975         enable_shared_with_static_runtimes_CXX=yes
18976
18977         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18978           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'
18979           # If the export-symbols file already is a .def file (1st line
18980           # is EXPORTS), use it as is; otherwise, prepend...
18981           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18982             cp $export_symbols $output_objdir/$soname.def;
18983           else
18984             echo EXPORTS > $output_objdir/$soname.def;
18985             cat $export_symbols >> $output_objdir/$soname.def;
18986           fi~
18987           $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'
18988         else
18989           ld_shlibs_CXX=no
18990         fi
18991         ;;
18992       darwin* | rhapsody*)
18993
18994
18995   archive_cmds_need_lc_CXX=no
18996   hardcode_direct_CXX=no
18997   hardcode_automatic_CXX=yes
18998   hardcode_shlibpath_var_CXX=unsupported
18999   if test "$lt_cv_ld_force_load" = "yes"; then
19000     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\"`'
19001   else
19002     whole_archive_flag_spec_CXX=''
19003   fi
19004   link_all_deplibs_CXX=yes
19005   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19006   case $cc_basename in
19007      ifort*) _lt_dar_can_shared=yes ;;
19008      *) _lt_dar_can_shared=$GCC ;;
19009   esac
19010   if test "$_lt_dar_can_shared" = "yes"; then
19011     output_verbose_link_cmd=func_echo_all
19012     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}"
19013     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19014     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}"
19015     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}"
19016        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19017       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}"
19018       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}"
19019     fi
19020
19021   else
19022   ld_shlibs_CXX=no
19023   fi
19024
19025         ;;
19026
19027       dgux*)
19028         case $cc_basename in
19029           ec++*)
19030             # FIXME: insert proper C++ library support
19031             ld_shlibs_CXX=no
19032             ;;
19033           ghcx*)
19034             # Green Hills C++ Compiler
19035             # FIXME: insert proper C++ library support
19036             ld_shlibs_CXX=no
19037             ;;
19038           *)
19039             # FIXME: insert proper C++ library support
19040             ld_shlibs_CXX=no
19041             ;;
19042         esac
19043         ;;
19044
19045       freebsd2.*)
19046         # C++ shared libraries reported to be fairly broken before
19047         # switch to ELF
19048         ld_shlibs_CXX=no
19049         ;;
19050
19051       freebsd-elf*)
19052         archive_cmds_need_lc_CXX=no
19053         ;;
19054
19055       freebsd* | dragonfly*)
19056         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19057         # conventions
19058         ld_shlibs_CXX=yes
19059         ;;
19060
19061       gnu*)
19062         ;;
19063
19064       haiku*)
19065         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19066         link_all_deplibs_CXX=yes
19067         ;;
19068
19069       hpux9*)
19070         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19071         hardcode_libdir_separator_CXX=:
19072         export_dynamic_flag_spec_CXX='${wl}-E'
19073         hardcode_direct_CXX=yes
19074         hardcode_minus_L_CXX=yes # Not in the search PATH,
19075                                              # but as the default
19076                                              # location of the library.
19077
19078         case $cc_basename in
19079           CC*)
19080             # FIXME: insert proper C++ library support
19081             ld_shlibs_CXX=no
19082             ;;
19083           aCC*)
19084             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'
19085             # Commands to make compiler produce verbose output that lists
19086             # what "hidden" libraries, object files and flags are used when
19087             # linking a shared library.
19088             #
19089             # There doesn't appear to be a way to prevent this compiler from
19090             # explicitly linking system object files so we need to strip them
19091             # from the output so that they don't get included in the library
19092             # dependencies.
19093             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"'
19094             ;;
19095           *)
19096             if test "$GXX" = yes; then
19097               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'
19098             else
19099               # FIXME: insert proper C++ library support
19100               ld_shlibs_CXX=no
19101             fi
19102             ;;
19103         esac
19104         ;;
19105
19106       hpux10*|hpux11*)
19107         if test $with_gnu_ld = no; then
19108           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19109           hardcode_libdir_separator_CXX=:
19110
19111           case $host_cpu in
19112             hppa*64*|ia64*)
19113               ;;
19114             *)
19115               export_dynamic_flag_spec_CXX='${wl}-E'
19116               ;;
19117           esac
19118         fi
19119         case $host_cpu in
19120           hppa*64*|ia64*)
19121             hardcode_direct_CXX=no
19122             hardcode_shlibpath_var_CXX=no
19123             ;;
19124           *)
19125             hardcode_direct_CXX=yes
19126             hardcode_direct_absolute_CXX=yes
19127             hardcode_minus_L_CXX=yes # Not in the search PATH,
19128                                                  # but as the default
19129                                                  # location of the library.
19130             ;;
19131         esac
19132
19133         case $cc_basename in
19134           CC*)
19135             # FIXME: insert proper C++ library support
19136             ld_shlibs_CXX=no
19137             ;;
19138           aCC*)
19139             case $host_cpu in
19140               hppa*64*)
19141                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19142                 ;;
19143               ia64*)
19144                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19145                 ;;
19146               *)
19147                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19148                 ;;
19149             esac
19150             # Commands to make compiler produce verbose output that lists
19151             # what "hidden" libraries, object files and flags are used when
19152             # linking a shared library.
19153             #
19154             # There doesn't appear to be a way to prevent this compiler from
19155             # explicitly linking system object files so we need to strip them
19156             # from the output so that they don't get included in the library
19157             # dependencies.
19158             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"'
19159             ;;
19160           *)
19161             if test "$GXX" = yes; then
19162               if test $with_gnu_ld = no; then
19163                 case $host_cpu in
19164                   hppa*64*)
19165                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19166                     ;;
19167                   ia64*)
19168                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19169                     ;;
19170                   *)
19171                     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'
19172                     ;;
19173                 esac
19174               fi
19175             else
19176               # FIXME: insert proper C++ library support
19177               ld_shlibs_CXX=no
19178             fi
19179             ;;
19180         esac
19181         ;;
19182
19183       interix[3-9]*)
19184         hardcode_direct_CXX=no
19185         hardcode_shlibpath_var_CXX=no
19186         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19187         export_dynamic_flag_spec_CXX='${wl}-E'
19188         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19189         # Instead, shared libraries are loaded at an image base (0x10000000 by
19190         # default) and relocated if they conflict, which is a slow very memory
19191         # consuming and fragmenting process.  To avoid this, we pick a random,
19192         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19193         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19194         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'
19195         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'
19196         ;;
19197       irix5* | irix6*)
19198         case $cc_basename in
19199           CC*)
19200             # SGI C++
19201             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'
19202
19203             # Archives containing C++ object files must be created using
19204             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19205             # necessary to make sure instantiated templates are included
19206             # in the archive.
19207             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19208             ;;
19209           *)
19210             if test "$GXX" = yes; then
19211               if test "$with_gnu_ld" = no; then
19212                 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'
19213               else
19214                 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'
19215               fi
19216             fi
19217             link_all_deplibs_CXX=yes
19218             ;;
19219         esac
19220         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19221         hardcode_libdir_separator_CXX=:
19222         inherit_rpath_CXX=yes
19223         ;;
19224
19225       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19226         case $cc_basename in
19227           KCC*)
19228             # Kuck and Associates, Inc. (KAI) C++ Compiler
19229
19230             # KCC will only create a shared library if the output file
19231             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19232             # to its proper name (with version) after linking.
19233             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'
19234             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'
19235             # Commands to make compiler produce verbose output that lists
19236             # what "hidden" libraries, object files and flags are used when
19237             # linking a shared library.
19238             #
19239             # There doesn't appear to be a way to prevent this compiler from
19240             # explicitly linking system object files so we need to strip them
19241             # from the output so that they don't get included in the library
19242             # dependencies.
19243             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"'
19244
19245             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19246             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19247
19248             # Archives containing C++ object files must be created using
19249             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19250             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19251             ;;
19252           icpc* | ecpc* )
19253             # Intel C++
19254             with_gnu_ld=yes
19255             # version 8.0 and above of icpc choke on multiply defined symbols
19256             # if we add $predep_objects and $postdep_objects, however 7.1 and
19257             # earlier do not add the objects themselves.
19258             case `$CC -V 2>&1` in
19259               *"Version 7."*)
19260                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19261                 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'
19262                 ;;
19263               *)  # Version 8.0 or newer
19264                 tmp_idyn=
19265                 case $host_cpu in
19266                   ia64*) tmp_idyn=' -i_dynamic';;
19267                 esac
19268                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19269                 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'
19270                 ;;
19271             esac
19272             archive_cmds_need_lc_CXX=no
19273             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19274             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19275             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19276             ;;
19277           pgCC* | pgcpp*)
19278             # Portland Group C++ compiler
19279             case `$CC -V` in
19280             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19281               prelink_cmds_CXX='tpldir=Template.dir~
19282                 rm -rf $tpldir~
19283                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19284                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19285               old_archive_cmds_CXX='tpldir=Template.dir~
19286                 rm -rf $tpldir~
19287                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19288                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19289                 $RANLIB $oldlib'
19290               archive_cmds_CXX='tpldir=Template.dir~
19291                 rm -rf $tpldir~
19292                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19293                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19294               archive_expsym_cmds_CXX='tpldir=Template.dir~
19295                 rm -rf $tpldir~
19296                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19297                 $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'
19298               ;;
19299             *) # Version 6 and above use weak symbols
19300               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19301               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'
19302               ;;
19303             esac
19304
19305             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19306             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19307             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'
19308             ;;
19309           cxx*)
19310             # Compaq C++
19311             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19312             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'
19313
19314             runpath_var=LD_RUN_PATH
19315             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19316             hardcode_libdir_separator_CXX=:
19317
19318             # Commands to make compiler produce verbose output that lists
19319             # what "hidden" libraries, object files and flags are used when
19320             # linking a shared library.
19321             #
19322             # There doesn't appear to be a way to prevent this compiler from
19323             # explicitly linking system object files so we need to strip them
19324             # from the output so that they don't get included in the library
19325             # dependencies.
19326             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'
19327             ;;
19328           xl* | mpixl* | bgxl*)
19329             # IBM XL 8.0 on PPC, with GNU ld
19330             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19331             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19332             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19333             if test "x$supports_anon_versioning" = xyes; then
19334               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19335                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19336                 echo "local: *; };" >> $output_objdir/$libname.ver~
19337                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19338             fi
19339             ;;
19340           *)
19341             case `$CC -V 2>&1 | sed 5q` in
19342             *Sun\ C*)
19343               # Sun C++ 5.9
19344               no_undefined_flag_CXX=' -zdefs'
19345               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19346               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'
19347               hardcode_libdir_flag_spec_CXX='-R$libdir'
19348               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'
19349               compiler_needs_object_CXX=yes
19350
19351               # Not sure whether something based on
19352               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19353               # would be better.
19354               output_verbose_link_cmd='func_echo_all'
19355
19356               # Archives containing C++ object files must be created using
19357               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19358               # necessary to make sure instantiated templates are included
19359               # in the archive.
19360               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19361               ;;
19362             esac
19363             ;;
19364         esac
19365         ;;
19366
19367       lynxos*)
19368         # FIXME: insert proper C++ library support
19369         ld_shlibs_CXX=no
19370         ;;
19371
19372       m88k*)
19373         # FIXME: insert proper C++ library support
19374         ld_shlibs_CXX=no
19375         ;;
19376
19377       mvs*)
19378         case $cc_basename in
19379           cxx*)
19380             # FIXME: insert proper C++ library support
19381             ld_shlibs_CXX=no
19382             ;;
19383           *)
19384             # FIXME: insert proper C++ library support
19385             ld_shlibs_CXX=no
19386             ;;
19387         esac
19388         ;;
19389
19390       netbsd*)
19391         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19392           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19393           wlarc=
19394           hardcode_libdir_flag_spec_CXX='-R$libdir'
19395           hardcode_direct_CXX=yes
19396           hardcode_shlibpath_var_CXX=no
19397         fi
19398         # Workaround some broken pre-1.5 toolchains
19399         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19400         ;;
19401
19402       *nto* | *qnx*)
19403         ld_shlibs_CXX=yes
19404         ;;
19405
19406       openbsd2*)
19407         # C++ shared libraries are fairly broken
19408         ld_shlibs_CXX=no
19409         ;;
19410
19411       openbsd*)
19412         if test -f /usr/libexec/ld.so; then
19413           hardcode_direct_CXX=yes
19414           hardcode_shlibpath_var_CXX=no
19415           hardcode_direct_absolute_CXX=yes
19416           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19417           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19418           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19419             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19420             export_dynamic_flag_spec_CXX='${wl}-E'
19421             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19422           fi
19423           output_verbose_link_cmd=func_echo_all
19424         else
19425           ld_shlibs_CXX=no
19426         fi
19427         ;;
19428
19429       osf3* | osf4* | osf5*)
19430         case $cc_basename in
19431           KCC*)
19432             # Kuck and Associates, Inc. (KAI) C++ Compiler
19433
19434             # KCC will only create a shared library if the output file
19435             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19436             # to its proper name (with version) after linking.
19437             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'
19438
19439             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19440             hardcode_libdir_separator_CXX=:
19441
19442             # Archives containing C++ object files must be created using
19443             # the KAI C++ compiler.
19444             case $host in
19445               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19446               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19447             esac
19448             ;;
19449           RCC*)
19450             # Rational C++ 2.4.1
19451             # FIXME: insert proper C++ library support
19452             ld_shlibs_CXX=no
19453             ;;
19454           cxx*)
19455             case $host in
19456               osf3*)
19457                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19458                 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'
19459                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19460                 ;;
19461               *)
19462                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19463                 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'
19464                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19465                   echo "-hidden">> $lib.exp~
19466                   $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~
19467                   $RM $lib.exp'
19468                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19469                 ;;
19470             esac
19471
19472             hardcode_libdir_separator_CXX=:
19473
19474             # Commands to make compiler produce verbose output that lists
19475             # what "hidden" libraries, object files and flags are used when
19476             # linking a shared library.
19477             #
19478             # There doesn't appear to be a way to prevent this compiler from
19479             # explicitly linking system object files so we need to strip them
19480             # from the output so that they don't get included in the library
19481             # dependencies.
19482             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"'
19483             ;;
19484           *)
19485             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19486               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19487               case $host in
19488                 osf3*)
19489                   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'
19490                   ;;
19491                 *)
19492                   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'
19493                   ;;
19494               esac
19495
19496               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19497               hardcode_libdir_separator_CXX=:
19498
19499               # Commands to make compiler produce verbose output that lists
19500               # what "hidden" libraries, object files and flags are used when
19501               # linking a shared library.
19502               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19503
19504             else
19505               # FIXME: insert proper C++ library support
19506               ld_shlibs_CXX=no
19507             fi
19508             ;;
19509         esac
19510         ;;
19511
19512       psos*)
19513         # FIXME: insert proper C++ library support
19514         ld_shlibs_CXX=no
19515         ;;
19516
19517       sunos4*)
19518         case $cc_basename in
19519           CC*)
19520             # Sun C++ 4.x
19521             # FIXME: insert proper C++ library support
19522             ld_shlibs_CXX=no
19523             ;;
19524           lcc*)
19525             # Lucid
19526             # FIXME: insert proper C++ library support
19527             ld_shlibs_CXX=no
19528             ;;
19529           *)
19530             # FIXME: insert proper C++ library support
19531             ld_shlibs_CXX=no
19532             ;;
19533         esac
19534         ;;
19535
19536       solaris*)
19537         case $cc_basename in
19538           CC*)
19539             # Sun C++ 4.2, 5.x and Centerline C++
19540             archive_cmds_need_lc_CXX=yes
19541             no_undefined_flag_CXX=' -zdefs'
19542             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19543             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19544               $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'
19545
19546             hardcode_libdir_flag_spec_CXX='-R$libdir'
19547             hardcode_shlibpath_var_CXX=no
19548             case $host_os in
19549               solaris2.[0-5] | solaris2.[0-5].*) ;;
19550               *)
19551                 # The compiler driver will combine and reorder linker options,
19552                 # but understands `-z linker_flag'.
19553                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19554                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19555                 ;;
19556             esac
19557             link_all_deplibs_CXX=yes
19558
19559             output_verbose_link_cmd='func_echo_all'
19560
19561             # Archives containing C++ object files must be created using
19562             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19563             # necessary to make sure instantiated templates are included
19564             # in the archive.
19565             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19566             ;;
19567           gcx*)
19568             # Green Hills C++ Compiler
19569             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19570
19571             # The C++ compiler must be used to create the archive.
19572             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19573             ;;
19574           *)
19575             # GNU C++ compiler with Solaris linker
19576             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19577               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19578               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19579                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19580                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19581                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19582
19583                 # Commands to make compiler produce verbose output that lists
19584                 # what "hidden" libraries, object files and flags are used when
19585                 # linking a shared library.
19586                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19587               else
19588                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19589                 # platform.
19590                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19591                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19592                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19593
19594                 # Commands to make compiler produce verbose output that lists
19595                 # what "hidden" libraries, object files and flags are used when
19596                 # linking a shared library.
19597                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19598               fi
19599
19600               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19601               case $host_os in
19602                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19603                 *)
19604                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19605                   ;;
19606               esac
19607             fi
19608             ;;
19609         esac
19610         ;;
19611
19612     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19613       no_undefined_flag_CXX='${wl}-z,text'
19614       archive_cmds_need_lc_CXX=no
19615       hardcode_shlibpath_var_CXX=no
19616       runpath_var='LD_RUN_PATH'
19617
19618       case $cc_basename in
19619         CC*)
19620           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19621           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19622           ;;
19623         *)
19624           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19625           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19626           ;;
19627       esac
19628       ;;
19629
19630       sysv5* | sco3.2v5* | sco5v6*)
19631         # Note: We can NOT use -z defs as we might desire, because we do not
19632         # link with -lc, and that would cause any symbols used from libc to
19633         # always be unresolved, which means just about no library would
19634         # ever link correctly.  If we're not using GNU ld we use -z text
19635         # though, which does catch some bad symbols but isn't as heavy-handed
19636         # as -z defs.
19637         no_undefined_flag_CXX='${wl}-z,text'
19638         allow_undefined_flag_CXX='${wl}-z,nodefs'
19639         archive_cmds_need_lc_CXX=no
19640         hardcode_shlibpath_var_CXX=no
19641         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19642         hardcode_libdir_separator_CXX=':'
19643         link_all_deplibs_CXX=yes
19644         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19645         runpath_var='LD_RUN_PATH'
19646
19647         case $cc_basename in
19648           CC*)
19649             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19650             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19651             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19652               '"$old_archive_cmds_CXX"
19653             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19654               '"$reload_cmds_CXX"
19655             ;;
19656           *)
19657             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19658             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19659             ;;
19660         esac
19661       ;;
19662
19663       tandem*)
19664         case $cc_basename in
19665           NCC*)
19666             # NonStop-UX NCC 3.20
19667             # FIXME: insert proper C++ library support
19668             ld_shlibs_CXX=no
19669             ;;
19670           *)
19671             # FIXME: insert proper C++ library support
19672             ld_shlibs_CXX=no
19673             ;;
19674         esac
19675         ;;
19676
19677       vxworks*)
19678         # FIXME: insert proper C++ library support
19679         ld_shlibs_CXX=no
19680         ;;
19681
19682       *)
19683         # FIXME: insert proper C++ library support
19684         ld_shlibs_CXX=no
19685         ;;
19686     esac
19687
19688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19689 $as_echo "$ld_shlibs_CXX" >&6; }
19690     test "$ld_shlibs_CXX" = no && can_build_shared=no
19691
19692     GCC_CXX="$GXX"
19693     LD_CXX="$LD"
19694
19695     ## CAVEAT EMPTOR:
19696     ## There is no encapsulation within the following macros, do not change
19697     ## the running order or otherwise move them around unless you know exactly
19698     ## what you are doing...
19699     # Dependencies to place before and after the object being linked:
19700 predep_objects_CXX=
19701 postdep_objects_CXX=
19702 predeps_CXX=
19703 postdeps_CXX=
19704 compiler_lib_search_path_CXX=
19705
19706 cat > conftest.$ac_ext <<_LT_EOF
19707 class Foo
19708 {
19709 public:
19710   Foo (void) { a = 0; }
19711 private:
19712   int a;
19713 };
19714 _LT_EOF
19715
19716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19717   (eval $ac_compile) 2>&5
19718   ac_status=$?
19719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19720   test $ac_status = 0; }; then
19721   # Parse the compiler output and extract the necessary
19722   # objects, libraries and library flags.
19723
19724   # Sentinel used to keep track of whether or not we are before
19725   # the conftest object file.
19726   pre_test_object_deps_done=no
19727
19728   for p in `eval "$output_verbose_link_cmd"`; do
19729     case $p in
19730
19731     -L* | -R* | -l*)
19732        # Some compilers place space between "-{L,R}" and the path.
19733        # Remove the space.
19734        if test $p = "-L" ||
19735           test $p = "-R"; then
19736          prev=$p
19737          continue
19738        else
19739          prev=
19740        fi
19741
19742        if test "$pre_test_object_deps_done" = no; then
19743          case $p in
19744          -L* | -R*)
19745            # Internal compiler library paths should come after those
19746            # provided the user.  The postdeps already come after the
19747            # user supplied libs so there is no need to process them.
19748            if test -z "$compiler_lib_search_path_CXX"; then
19749              compiler_lib_search_path_CXX="${prev}${p}"
19750            else
19751              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19752            fi
19753            ;;
19754          # The "-l" case would never come before the object being
19755          # linked, so don't bother handling this case.
19756          esac
19757        else
19758          if test -z "$postdeps_CXX"; then
19759            postdeps_CXX="${prev}${p}"
19760          else
19761            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19762          fi
19763        fi
19764        ;;
19765
19766     *.$objext)
19767        # This assumes that the test object file only shows up
19768        # once in the compiler output.
19769        if test "$p" = "conftest.$objext"; then
19770          pre_test_object_deps_done=yes
19771          continue
19772        fi
19773
19774        if test "$pre_test_object_deps_done" = no; then
19775          if test -z "$predep_objects_CXX"; then
19776            predep_objects_CXX="$p"
19777          else
19778            predep_objects_CXX="$predep_objects_CXX $p"
19779          fi
19780        else
19781          if test -z "$postdep_objects_CXX"; then
19782            postdep_objects_CXX="$p"
19783          else
19784            postdep_objects_CXX="$postdep_objects_CXX $p"
19785          fi
19786        fi
19787        ;;
19788
19789     *) ;; # Ignore the rest.
19790
19791     esac
19792   done
19793
19794   # Clean up.
19795   rm -f a.out a.exe
19796 else
19797   echo "libtool.m4: error: problem compiling CXX test program"
19798 fi
19799
19800 $RM -f confest.$objext
19801
19802 # PORTME: override above test on systems where it is broken
19803 case $host_os in
19804 interix[3-9]*)
19805   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19806   # hack all around it, let's just trust "g++" to DTRT.
19807   predep_objects_CXX=
19808   postdep_objects_CXX=
19809   postdeps_CXX=
19810   ;;
19811
19812 linux*)
19813   case `$CC -V 2>&1 | sed 5q` in
19814   *Sun\ C*)
19815     # Sun C++ 5.9
19816
19817     # The more standards-conforming stlport4 library is
19818     # incompatible with the Cstd library. Avoid specifying
19819     # it if it's in CXXFLAGS. Ignore libCrun as
19820     # -library=stlport4 depends on it.
19821     case " $CXX $CXXFLAGS " in
19822     *" -library=stlport4 "*)
19823       solaris_use_stlport4=yes
19824       ;;
19825     esac
19826
19827     if test "$solaris_use_stlport4" != yes; then
19828       postdeps_CXX='-library=Cstd -library=Crun'
19829     fi
19830     ;;
19831   esac
19832   ;;
19833
19834 solaris*)
19835   case $cc_basename in
19836   CC*)
19837     # The more standards-conforming stlport4 library is
19838     # incompatible with the Cstd library. Avoid specifying
19839     # it if it's in CXXFLAGS. Ignore libCrun as
19840     # -library=stlport4 depends on it.
19841     case " $CXX $CXXFLAGS " in
19842     *" -library=stlport4 "*)
19843       solaris_use_stlport4=yes
19844       ;;
19845     esac
19846
19847     # Adding this requires a known-good setup of shared libraries for
19848     # Sun compiler versions before 5.6, else PIC objects from an old
19849     # archive will be linked into the output, leading to subtle bugs.
19850     if test "$solaris_use_stlport4" != yes; then
19851       postdeps_CXX='-library=Cstd -library=Crun'
19852     fi
19853     ;;
19854   esac
19855   ;;
19856 esac
19857
19858
19859 case " $postdeps_CXX " in
19860 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19861 esac
19862  compiler_lib_search_dirs_CXX=
19863 if test -n "${compiler_lib_search_path_CXX}"; then
19864  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19865 fi
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897     lt_prog_compiler_wl_CXX=
19898 lt_prog_compiler_pic_CXX=
19899 lt_prog_compiler_static_CXX=
19900
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19902 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19903
19904   # C++ specific cases for pic, static, wl, etc.
19905   if test "$GXX" = yes; then
19906     lt_prog_compiler_wl_CXX='-Wl,'
19907     lt_prog_compiler_static_CXX='-static'
19908
19909     case $host_os in
19910     aix*)
19911       # All AIX code is PIC.
19912       if test "$host_cpu" = ia64; then
19913         # AIX 5 now supports IA64 processor
19914         lt_prog_compiler_static_CXX='-Bstatic'
19915       fi
19916       ;;
19917
19918     amigaos*)
19919       case $host_cpu in
19920       powerpc)
19921             # see comment about AmigaOS4 .so support
19922             lt_prog_compiler_pic_CXX='-fPIC'
19923         ;;
19924       m68k)
19925             # FIXME: we need at least 68020 code to build shared libraries, but
19926             # adding the `-m68020' flag to GCC prevents building anything better,
19927             # like `-m68040'.
19928             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19929         ;;
19930       esac
19931       ;;
19932
19933     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19934       # PIC is the default for these OSes.
19935       ;;
19936     mingw* | cygwin* | os2* | pw32* | cegcc*)
19937       # This hack is so that the source file can tell whether it is being
19938       # built for inclusion in a dll (and should export symbols for example).
19939       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19940       # (--disable-auto-import) libraries
19941       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19942       ;;
19943     darwin* | rhapsody*)
19944       # PIC is the default on this platform
19945       # Common symbols not allowed in MH_DYLIB files
19946       lt_prog_compiler_pic_CXX='-fno-common'
19947       ;;
19948     *djgpp*)
19949       # DJGPP does not support shared libraries at all
19950       lt_prog_compiler_pic_CXX=
19951       ;;
19952     haiku*)
19953       # PIC is the default for Haiku.
19954       # The "-static" flag exists, but is broken.
19955       lt_prog_compiler_static_CXX=
19956       ;;
19957     interix[3-9]*)
19958       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19959       # Instead, we relocate shared libraries at runtime.
19960       ;;
19961     sysv4*MP*)
19962       if test -d /usr/nec; then
19963         lt_prog_compiler_pic_CXX=-Kconform_pic
19964       fi
19965       ;;
19966     hpux*)
19967       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19968       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19969       # sets the default TLS model and affects inlining.
19970       case $host_cpu in
19971       hppa*64*)
19972         ;;
19973       *)
19974         lt_prog_compiler_pic_CXX='-fPIC'
19975         ;;
19976       esac
19977       ;;
19978     *qnx* | *nto*)
19979       # QNX uses GNU C++, but need to define -shared option too, otherwise
19980       # it will coredump.
19981       lt_prog_compiler_pic_CXX='-fPIC -shared'
19982       ;;
19983     *)
19984       lt_prog_compiler_pic_CXX='-fPIC'
19985       ;;
19986     esac
19987   else
19988     case $host_os in
19989       aix[4-9]*)
19990         # All AIX code is PIC.
19991         if test "$host_cpu" = ia64; then
19992           # AIX 5 now supports IA64 processor
19993           lt_prog_compiler_static_CXX='-Bstatic'
19994         else
19995           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19996         fi
19997         ;;
19998       chorus*)
19999         case $cc_basename in
20000         cxch68*)
20001           # Green Hills C++ Compiler
20002           # _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"
20003           ;;
20004         esac
20005         ;;
20006       dgux*)
20007         case $cc_basename in
20008           ec++*)
20009             lt_prog_compiler_pic_CXX='-KPIC'
20010             ;;
20011           ghcx*)
20012             # Green Hills C++ Compiler
20013             lt_prog_compiler_pic_CXX='-pic'
20014             ;;
20015           *)
20016             ;;
20017         esac
20018         ;;
20019       freebsd* | dragonfly*)
20020         # FreeBSD uses GNU C++
20021         ;;
20022       hpux9* | hpux10* | hpux11*)
20023         case $cc_basename in
20024           CC*)
20025             lt_prog_compiler_wl_CXX='-Wl,'
20026             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20027             if test "$host_cpu" != ia64; then
20028               lt_prog_compiler_pic_CXX='+Z'
20029             fi
20030             ;;
20031           aCC*)
20032             lt_prog_compiler_wl_CXX='-Wl,'
20033             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20034             case $host_cpu in
20035             hppa*64*|ia64*)
20036               # +Z the default
20037               ;;
20038             *)
20039               lt_prog_compiler_pic_CXX='+Z'
20040               ;;
20041             esac
20042             ;;
20043           *)
20044             ;;
20045         esac
20046         ;;
20047       interix*)
20048         # This is c89, which is MS Visual C++ (no shared libs)
20049         # Anyone wants to do a port?
20050         ;;
20051       irix5* | irix6* | nonstopux*)
20052         case $cc_basename in
20053           CC*)
20054             lt_prog_compiler_wl_CXX='-Wl,'
20055             lt_prog_compiler_static_CXX='-non_shared'
20056             # CC pic flag -KPIC is the default.
20057             ;;
20058           *)
20059             ;;
20060         esac
20061         ;;
20062       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20063         case $cc_basename in
20064           KCC*)
20065             # KAI C++ Compiler
20066             lt_prog_compiler_wl_CXX='--backend -Wl,'
20067             lt_prog_compiler_pic_CXX='-fPIC'
20068             ;;
20069           ecpc* )
20070             # old Intel C++ for x86_64 which still supported -KPIC.
20071             lt_prog_compiler_wl_CXX='-Wl,'
20072             lt_prog_compiler_pic_CXX='-KPIC'
20073             lt_prog_compiler_static_CXX='-static'
20074             ;;
20075           icpc* )
20076             # Intel C++, used to be incompatible with GCC.
20077             # ICC 10 doesn't accept -KPIC any more.
20078             lt_prog_compiler_wl_CXX='-Wl,'
20079             lt_prog_compiler_pic_CXX='-fPIC'
20080             lt_prog_compiler_static_CXX='-static'
20081             ;;
20082           pgCC* | pgcpp*)
20083             # Portland Group C++ compiler
20084             lt_prog_compiler_wl_CXX='-Wl,'
20085             lt_prog_compiler_pic_CXX='-fpic'
20086             lt_prog_compiler_static_CXX='-Bstatic'
20087             ;;
20088           cxx*)
20089             # Compaq C++
20090             # Make sure the PIC flag is empty.  It appears that all Alpha
20091             # Linux and Compaq Tru64 Unix objects are PIC.
20092             lt_prog_compiler_pic_CXX=
20093             lt_prog_compiler_static_CXX='-non_shared'
20094             ;;
20095           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20096             # IBM XL 8.0, 9.0 on PPC and BlueGene
20097             lt_prog_compiler_wl_CXX='-Wl,'
20098             lt_prog_compiler_pic_CXX='-qpic'
20099             lt_prog_compiler_static_CXX='-qstaticlink'
20100             ;;
20101           *)
20102             case `$CC -V 2>&1 | sed 5q` in
20103             *Sun\ C*)
20104               # Sun C++ 5.9
20105               lt_prog_compiler_pic_CXX='-KPIC'
20106               lt_prog_compiler_static_CXX='-Bstatic'
20107               lt_prog_compiler_wl_CXX='-Qoption ld '
20108               ;;
20109             esac
20110             ;;
20111         esac
20112         ;;
20113       lynxos*)
20114         ;;
20115       m88k*)
20116         ;;
20117       mvs*)
20118         case $cc_basename in
20119           cxx*)
20120             lt_prog_compiler_pic_CXX='-W c,exportall'
20121             ;;
20122           *)
20123             ;;
20124         esac
20125         ;;
20126       netbsd*)
20127         ;;
20128       *qnx* | *nto*)
20129         # QNX uses GNU C++, but need to define -shared option too, otherwise
20130         # it will coredump.
20131         lt_prog_compiler_pic_CXX='-fPIC -shared'
20132         ;;
20133       osf3* | osf4* | osf5*)
20134         case $cc_basename in
20135           KCC*)
20136             lt_prog_compiler_wl_CXX='--backend -Wl,'
20137             ;;
20138           RCC*)
20139             # Rational C++ 2.4.1
20140             lt_prog_compiler_pic_CXX='-pic'
20141             ;;
20142           cxx*)
20143             # Digital/Compaq C++
20144             lt_prog_compiler_wl_CXX='-Wl,'
20145             # Make sure the PIC flag is empty.  It appears that all Alpha
20146             # Linux and Compaq Tru64 Unix objects are PIC.
20147             lt_prog_compiler_pic_CXX=
20148             lt_prog_compiler_static_CXX='-non_shared'
20149             ;;
20150           *)
20151             ;;
20152         esac
20153         ;;
20154       psos*)
20155         ;;
20156       solaris*)
20157         case $cc_basename in
20158           CC*)
20159             # Sun C++ 4.2, 5.x and Centerline C++
20160             lt_prog_compiler_pic_CXX='-KPIC'
20161             lt_prog_compiler_static_CXX='-Bstatic'
20162             lt_prog_compiler_wl_CXX='-Qoption ld '
20163             ;;
20164           gcx*)
20165             # Green Hills C++ Compiler
20166             lt_prog_compiler_pic_CXX='-PIC'
20167             ;;
20168           *)
20169             ;;
20170         esac
20171         ;;
20172       sunos4*)
20173         case $cc_basename in
20174           CC*)
20175             # Sun C++ 4.x
20176             lt_prog_compiler_pic_CXX='-pic'
20177             lt_prog_compiler_static_CXX='-Bstatic'
20178             ;;
20179           lcc*)
20180             # Lucid
20181             lt_prog_compiler_pic_CXX='-pic'
20182             ;;
20183           *)
20184             ;;
20185         esac
20186         ;;
20187       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20188         case $cc_basename in
20189           CC*)
20190             lt_prog_compiler_wl_CXX='-Wl,'
20191             lt_prog_compiler_pic_CXX='-KPIC'
20192             lt_prog_compiler_static_CXX='-Bstatic'
20193             ;;
20194         esac
20195         ;;
20196       tandem*)
20197         case $cc_basename in
20198           NCC*)
20199             # NonStop-UX NCC 3.20
20200             lt_prog_compiler_pic_CXX='-KPIC'
20201             ;;
20202           *)
20203             ;;
20204         esac
20205         ;;
20206       vxworks*)
20207         ;;
20208       *)
20209         lt_prog_compiler_can_build_shared_CXX=no
20210         ;;
20211     esac
20212   fi
20213
20214 case $host_os in
20215   # For platforms which do not support PIC, -DPIC is meaningless:
20216   *djgpp*)
20217     lt_prog_compiler_pic_CXX=
20218     ;;
20219   *)
20220     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20221     ;;
20222 esac
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20224 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20225
20226
20227
20228 #
20229 # Check to make sure the PIC flag actually works.
20230 #
20231 if test -n "$lt_prog_compiler_pic_CXX"; then
20232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20233 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20234 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20235   $as_echo_n "(cached) " >&6
20236 else
20237   lt_cv_prog_compiler_pic_works_CXX=no
20238    ac_outfile=conftest.$ac_objext
20239    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20240    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20241    # Insert the option either (1) after the last *FLAGS variable, or
20242    # (2) before a word containing "conftest.", or (3) at the end.
20243    # Note that $ac_compile itself does not contain backslashes and begins
20244    # with a dollar sign (not a hyphen), so the echo should work correctly.
20245    # The option is referenced via a variable to avoid confusing sed.
20246    lt_compile=`echo "$ac_compile" | $SED \
20247    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20249    -e 's:$: $lt_compiler_flag:'`
20250    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20251    (eval "$lt_compile" 2>conftest.err)
20252    ac_status=$?
20253    cat conftest.err >&5
20254    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255    if (exit $ac_status) && test -s "$ac_outfile"; then
20256      # The compiler can only warn and ignore the option if not recognized
20257      # So say no if there are warnings other than the usual output.
20258      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20259      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20260      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20261        lt_cv_prog_compiler_pic_works_CXX=yes
20262      fi
20263    fi
20264    $RM conftest*
20265
20266 fi
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20268 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20269
20270 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20271     case $lt_prog_compiler_pic_CXX in
20272      "" | " "*) ;;
20273      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20274      esac
20275 else
20276     lt_prog_compiler_pic_CXX=
20277      lt_prog_compiler_can_build_shared_CXX=no
20278 fi
20279
20280 fi
20281
20282
20283
20284 #
20285 # Check to make sure the static flag actually works.
20286 #
20287 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20289 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20290 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20291   $as_echo_n "(cached) " >&6
20292 else
20293   lt_cv_prog_compiler_static_works_CXX=no
20294    save_LDFLAGS="$LDFLAGS"
20295    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20296    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20297    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20298      # The linker can only warn and ignore the option if not recognized
20299      # So say no if there are warnings
20300      if test -s conftest.err; then
20301        # Append any errors to the config.log.
20302        cat conftest.err 1>&5
20303        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20304        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20305        if diff conftest.exp conftest.er2 >/dev/null; then
20306          lt_cv_prog_compiler_static_works_CXX=yes
20307        fi
20308      else
20309        lt_cv_prog_compiler_static_works_CXX=yes
20310      fi
20311    fi
20312    $RM -r conftest*
20313    LDFLAGS="$save_LDFLAGS"
20314
20315 fi
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20317 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20318
20319 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20320     :
20321 else
20322     lt_prog_compiler_static_CXX=
20323 fi
20324
20325
20326
20327
20328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20330 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20331   $as_echo_n "(cached) " >&6
20332 else
20333   lt_cv_prog_compiler_c_o_CXX=no
20334    $RM -r conftest 2>/dev/null
20335    mkdir conftest
20336    cd conftest
20337    mkdir out
20338    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20339
20340    lt_compiler_flag="-o out/conftest2.$ac_objext"
20341    # Insert the option either (1) after the last *FLAGS variable, or
20342    # (2) before a word containing "conftest.", or (3) at the end.
20343    # Note that $ac_compile itself does not contain backslashes and begins
20344    # with a dollar sign (not a hyphen), so the echo should work correctly.
20345    lt_compile=`echo "$ac_compile" | $SED \
20346    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20347    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20348    -e 's:$: $lt_compiler_flag:'`
20349    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20350    (eval "$lt_compile" 2>out/conftest.err)
20351    ac_status=$?
20352    cat out/conftest.err >&5
20353    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20355    then
20356      # The compiler can only warn and ignore the option if not recognized
20357      # So say no if there are warnings
20358      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20359      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20360      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20361        lt_cv_prog_compiler_c_o_CXX=yes
20362      fi
20363    fi
20364    chmod u+w . 2>&5
20365    $RM conftest*
20366    # SGI C++ compiler will create directory out/ii_files/ for
20367    # template instantiation
20368    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20369    $RM out/* && rmdir out
20370    cd ..
20371    $RM -r conftest
20372    $RM conftest*
20373
20374 fi
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20376 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20377
20378
20379
20380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20381 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20382 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20383   $as_echo_n "(cached) " >&6
20384 else
20385   lt_cv_prog_compiler_c_o_CXX=no
20386    $RM -r conftest 2>/dev/null
20387    mkdir conftest
20388    cd conftest
20389    mkdir out
20390    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20391
20392    lt_compiler_flag="-o out/conftest2.$ac_objext"
20393    # Insert the option either (1) after the last *FLAGS variable, or
20394    # (2) before a word containing "conftest.", or (3) at the end.
20395    # Note that $ac_compile itself does not contain backslashes and begins
20396    # with a dollar sign (not a hyphen), so the echo should work correctly.
20397    lt_compile=`echo "$ac_compile" | $SED \
20398    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20399    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20400    -e 's:$: $lt_compiler_flag:'`
20401    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20402    (eval "$lt_compile" 2>out/conftest.err)
20403    ac_status=$?
20404    cat out/conftest.err >&5
20405    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20407    then
20408      # The compiler can only warn and ignore the option if not recognized
20409      # So say no if there are warnings
20410      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20411      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20412      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20413        lt_cv_prog_compiler_c_o_CXX=yes
20414      fi
20415    fi
20416    chmod u+w . 2>&5
20417    $RM conftest*
20418    # SGI C++ compiler will create directory out/ii_files/ for
20419    # template instantiation
20420    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20421    $RM out/* && rmdir out
20422    cd ..
20423    $RM -r conftest
20424    $RM conftest*
20425
20426 fi
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20428 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20429
20430
20431
20432
20433 hard_links="nottested"
20434 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20435   # do not overwrite the value of need_locks provided by the user
20436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20437 $as_echo_n "checking if we can lock with hard links... " >&6; }
20438   hard_links=yes
20439   $RM conftest*
20440   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20441   touch conftest.a
20442   ln conftest.a conftest.b 2>&5 || hard_links=no
20443   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20445 $as_echo "$hard_links" >&6; }
20446   if test "$hard_links" = no; then
20447     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20448 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20449     need_locks=warn
20450   fi
20451 else
20452   need_locks=no
20453 fi
20454
20455
20456
20457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20458 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20459
20460   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20461   case $host_os in
20462   aix[4-9]*)
20463     # If we're using GNU nm, then we don't want the "-C" option.
20464     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20465     # Also, AIX nm treats weak defined symbols like other global defined
20466     # symbols, whereas GNU nm marks them as "W".
20467     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20468       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'
20469     else
20470       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'
20471     fi
20472     ;;
20473   pw32*)
20474     export_symbols_cmds_CXX="$ltdll_cmds"
20475   ;;
20476   cygwin* | mingw* | cegcc*)
20477     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'
20478   ;;
20479   *)
20480     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20481   ;;
20482   esac
20483   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20484
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20486 $as_echo "$ld_shlibs_CXX" >&6; }
20487 test "$ld_shlibs_CXX" = no && can_build_shared=no
20488
20489 with_gnu_ld_CXX=$with_gnu_ld
20490
20491
20492
20493
20494
20495
20496 #
20497 # Do we need to explicitly link libc?
20498 #
20499 case "x$archive_cmds_need_lc_CXX" in
20500 x|xyes)
20501   # Assume -lc should be added
20502   archive_cmds_need_lc_CXX=yes
20503
20504   if test "$enable_shared" = yes && test "$GCC" = yes; then
20505     case $archive_cmds_CXX in
20506     *'~'*)
20507       # FIXME: we may have to deal with multi-command sequences.
20508       ;;
20509     '$CC '*)
20510       # Test whether the compiler implicitly links with -lc since on some
20511       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20512       # to ld, don't add -lc before -lgcc.
20513       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20514 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20515 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20516   $as_echo_n "(cached) " >&6
20517 else
20518   $RM conftest*
20519         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20520
20521         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20522   (eval $ac_compile) 2>&5
20523   ac_status=$?
20524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20525   test $ac_status = 0; } 2>conftest.err; then
20526           soname=conftest
20527           lib=conftest
20528           libobjs=conftest.$ac_objext
20529           deplibs=
20530           wl=$lt_prog_compiler_wl_CXX
20531           pic_flag=$lt_prog_compiler_pic_CXX
20532           compiler_flags=-v
20533           linker_flags=-v
20534           verstring=
20535           output_objdir=.
20536           libname=conftest
20537           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20538           allow_undefined_flag_CXX=
20539           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20540   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20541   ac_status=$?
20542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20543   test $ac_status = 0; }
20544           then
20545             lt_cv_archive_cmds_need_lc_CXX=no
20546           else
20547             lt_cv_archive_cmds_need_lc_CXX=yes
20548           fi
20549           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20550         else
20551           cat conftest.err 1>&5
20552         fi
20553         $RM conftest*
20554
20555 fi
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20557 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20558       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20559       ;;
20560     esac
20561   fi
20562   ;;
20563 esac
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20629 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20630
20631 library_names_spec=
20632 libname_spec='lib$name'
20633 soname_spec=
20634 shrext_cmds=".so"
20635 postinstall_cmds=
20636 postuninstall_cmds=
20637 finish_cmds=
20638 finish_eval=
20639 shlibpath_var=
20640 shlibpath_overrides_runpath=unknown
20641 version_type=none
20642 dynamic_linker="$host_os ld.so"
20643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20644 need_lib_prefix=unknown
20645 hardcode_into_libs=no
20646
20647 # when you set need_version to no, make sure it does not cause -set_version
20648 # flags to be left without arguments
20649 need_version=unknown
20650
20651 case $host_os in
20652 aix3*)
20653   version_type=linux
20654   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20655   shlibpath_var=LIBPATH
20656
20657   # AIX 3 has no versioning support, so we append a major version to the name.
20658   soname_spec='${libname}${release}${shared_ext}$major'
20659   ;;
20660
20661 aix[4-9]*)
20662   version_type=linux
20663   need_lib_prefix=no
20664   need_version=no
20665   hardcode_into_libs=yes
20666   if test "$host_cpu" = ia64; then
20667     # AIX 5 supports IA64
20668     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20669     shlibpath_var=LD_LIBRARY_PATH
20670   else
20671     # With GCC up to 2.95.x, collect2 would create an import file
20672     # for dependence libraries.  The import file would start with
20673     # the line `#! .'.  This would cause the generated library to
20674     # depend on `.', always an invalid library.  This was fixed in
20675     # development snapshots of GCC prior to 3.0.
20676     case $host_os in
20677       aix4 | aix4.[01] | aix4.[01].*)
20678       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20679            echo ' yes '
20680            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20681         :
20682       else
20683         can_build_shared=no
20684       fi
20685       ;;
20686     esac
20687     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20688     # soname into executable. Probably we can add versioning support to
20689     # collect2, so additional links can be useful in future.
20690     if test "$aix_use_runtimelinking" = yes; then
20691       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20692       # instead of lib<name>.a to let people know that these are not
20693       # typical AIX shared libraries.
20694       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695     else
20696       # We preserve .a as extension for shared libraries through AIX4.2
20697       # and later when we are not doing run time linking.
20698       library_names_spec='${libname}${release}.a $libname.a'
20699       soname_spec='${libname}${release}${shared_ext}$major'
20700     fi
20701     shlibpath_var=LIBPATH
20702   fi
20703   ;;
20704
20705 amigaos*)
20706   case $host_cpu in
20707   powerpc)
20708     # Since July 2007 AmigaOS4 officially supports .so libraries.
20709     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711     ;;
20712   m68k)
20713     library_names_spec='$libname.ixlibrary $libname.a'
20714     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20715     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'
20716     ;;
20717   esac
20718   ;;
20719
20720 beos*)
20721   library_names_spec='${libname}${shared_ext}'
20722   dynamic_linker="$host_os ld.so"
20723   shlibpath_var=LIBRARY_PATH
20724   ;;
20725
20726 bsdi[45]*)
20727   version_type=linux
20728   need_version=no
20729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730   soname_spec='${libname}${release}${shared_ext}$major'
20731   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20732   shlibpath_var=LD_LIBRARY_PATH
20733   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20734   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20735   # the default ld.so.conf also contains /usr/contrib/lib and
20736   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20737   # libtool to hard-code these into programs
20738   ;;
20739
20740 cygwin* | mingw* | pw32* | cegcc*)
20741   version_type=windows
20742   shrext_cmds=".dll"
20743   need_version=no
20744   need_lib_prefix=no
20745
20746   case $GCC,$host_os in
20747   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20748     library_names_spec='$libname.dll.a'
20749     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20750     postinstall_cmds='base_file=`basename \${file}`~
20751       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20752       dldir=$destdir/`dirname \$dlpath`~
20753       test -d \$dldir || mkdir -p \$dldir~
20754       $install_prog $dir/$dlname \$dldir/$dlname~
20755       chmod a+x \$dldir/$dlname~
20756       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20757         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20758       fi'
20759     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20760       dlpath=$dir/\$dldll~
20761        $RM \$dlpath'
20762     shlibpath_overrides_runpath=yes
20763
20764     case $host_os in
20765     cygwin*)
20766       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20767       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20768
20769       ;;
20770     mingw* | cegcc*)
20771       # MinGW DLLs use traditional 'lib' prefix
20772       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20773       ;;
20774     pw32*)
20775       # pw32 DLLs use 'pw' prefix rather than 'lib'
20776       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20777       ;;
20778     esac
20779     ;;
20780
20781   *)
20782     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20783     ;;
20784   esac
20785   dynamic_linker='Win32 ld.exe'
20786   # FIXME: first we should search . and the directory the executable is in
20787   shlibpath_var=PATH
20788   ;;
20789
20790 darwin* | rhapsody*)
20791   dynamic_linker="$host_os dyld"
20792   version_type=darwin
20793   need_lib_prefix=no
20794   need_version=no
20795   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20796   soname_spec='${libname}${release}${major}$shared_ext'
20797   shlibpath_overrides_runpath=yes
20798   shlibpath_var=DYLD_LIBRARY_PATH
20799   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20800
20801   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20802   ;;
20803
20804 dgux*)
20805   version_type=linux
20806   need_lib_prefix=no
20807   need_version=no
20808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20809   soname_spec='${libname}${release}${shared_ext}$major'
20810   shlibpath_var=LD_LIBRARY_PATH
20811   ;;
20812
20813 freebsd* | dragonfly*)
20814   # DragonFly does not have aout.  When/if they implement a new
20815   # versioning mechanism, adjust this.
20816   if test -x /usr/bin/objformat; then
20817     objformat=`/usr/bin/objformat`
20818   else
20819     case $host_os in
20820     freebsd[23].*) objformat=aout ;;
20821     *) objformat=elf ;;
20822     esac
20823   fi
20824   version_type=freebsd-$objformat
20825   case $version_type in
20826     freebsd-elf*)
20827       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20828       need_version=no
20829       need_lib_prefix=no
20830       ;;
20831     freebsd-*)
20832       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20833       need_version=yes
20834       ;;
20835   esac
20836   shlibpath_var=LD_LIBRARY_PATH
20837   case $host_os in
20838   freebsd2.*)
20839     shlibpath_overrides_runpath=yes
20840     ;;
20841   freebsd3.[01]* | freebsdelf3.[01]*)
20842     shlibpath_overrides_runpath=yes
20843     hardcode_into_libs=yes
20844     ;;
20845   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20846   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20847     shlibpath_overrides_runpath=no
20848     hardcode_into_libs=yes
20849     ;;
20850   *) # from 4.6 on, and DragonFly
20851     shlibpath_overrides_runpath=yes
20852     hardcode_into_libs=yes
20853     ;;
20854   esac
20855   ;;
20856
20857 gnu*)
20858   version_type=linux
20859   need_lib_prefix=no
20860   need_version=no
20861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20862   soname_spec='${libname}${release}${shared_ext}$major'
20863   shlibpath_var=LD_LIBRARY_PATH
20864   hardcode_into_libs=yes
20865   ;;
20866
20867 haiku*)
20868   version_type=linux
20869   need_lib_prefix=no
20870   need_version=no
20871   dynamic_linker="$host_os runtime_loader"
20872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20873   soname_spec='${libname}${release}${shared_ext}$major'
20874   shlibpath_var=LIBRARY_PATH
20875   shlibpath_overrides_runpath=yes
20876   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20877   hardcode_into_libs=yes
20878   ;;
20879
20880 hpux9* | hpux10* | hpux11*)
20881   # Give a soname corresponding to the major version so that dld.sl refuses to
20882   # link against other versions.
20883   version_type=sunos
20884   need_lib_prefix=no
20885   need_version=no
20886   case $host_cpu in
20887   ia64*)
20888     shrext_cmds='.so'
20889     hardcode_into_libs=yes
20890     dynamic_linker="$host_os dld.so"
20891     shlibpath_var=LD_LIBRARY_PATH
20892     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894     soname_spec='${libname}${release}${shared_ext}$major'
20895     if test "X$HPUX_IA64_MODE" = X32; then
20896       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20897     else
20898       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20899     fi
20900     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20901     ;;
20902   hppa*64*)
20903     shrext_cmds='.sl'
20904     hardcode_into_libs=yes
20905     dynamic_linker="$host_os dld.sl"
20906     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20907     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20909     soname_spec='${libname}${release}${shared_ext}$major'
20910     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20911     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20912     ;;
20913   *)
20914     shrext_cmds='.sl'
20915     dynamic_linker="$host_os dld.sl"
20916     shlibpath_var=SHLIB_PATH
20917     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20919     soname_spec='${libname}${release}${shared_ext}$major'
20920     ;;
20921   esac
20922   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20923   postinstall_cmds='chmod 555 $lib'
20924   # or fails outright, so override atomically:
20925   install_override_mode=555
20926   ;;
20927
20928 interix[3-9]*)
20929   version_type=linux
20930   need_lib_prefix=no
20931   need_version=no
20932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20933   soname_spec='${libname}${release}${shared_ext}$major'
20934   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20935   shlibpath_var=LD_LIBRARY_PATH
20936   shlibpath_overrides_runpath=no
20937   hardcode_into_libs=yes
20938   ;;
20939
20940 irix5* | irix6* | nonstopux*)
20941   case $host_os in
20942     nonstopux*) version_type=nonstopux ;;
20943     *)
20944         if test "$lt_cv_prog_gnu_ld" = yes; then
20945                 version_type=linux
20946         else
20947                 version_type=irix
20948         fi ;;
20949   esac
20950   need_lib_prefix=no
20951   need_version=no
20952   soname_spec='${libname}${release}${shared_ext}$major'
20953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20954   case $host_os in
20955   irix5* | nonstopux*)
20956     libsuff= shlibsuff=
20957     ;;
20958   *)
20959     case $LD in # libtool.m4 will add one of these switches to LD
20960     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20961       libsuff= shlibsuff= libmagic=32-bit;;
20962     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20963       libsuff=32 shlibsuff=N32 libmagic=N32;;
20964     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20965       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20966     *) libsuff= shlibsuff= libmagic=never-match;;
20967     esac
20968     ;;
20969   esac
20970   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20971   shlibpath_overrides_runpath=no
20972   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20973   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20974   hardcode_into_libs=yes
20975   ;;
20976
20977 # No shared lib support for Linux oldld, aout, or coff.
20978 linux*oldld* | linux*aout* | linux*coff*)
20979   dynamic_linker=no
20980   ;;
20981
20982 # This must be Linux ELF.
20983 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20984   version_type=linux
20985   need_lib_prefix=no
20986   need_version=no
20987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988   soname_spec='${libname}${release}${shared_ext}$major'
20989   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20990   shlibpath_var=LD_LIBRARY_PATH
20991   shlibpath_overrides_runpath=no
20992
20993   # Some binutils ld are patched to set DT_RUNPATH
20994   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20995   $as_echo_n "(cached) " >&6
20996 else
20997   lt_cv_shlibpath_overrides_runpath=no
20998     save_LDFLAGS=$LDFLAGS
20999     save_libdir=$libdir
21000     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21001          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21003 /* end confdefs.h.  */
21004
21005 int
21006 main ()
21007 {
21008
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 if ac_fn_cxx_try_link "$LINENO"; then :
21014   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21015   lt_cv_shlibpath_overrides_runpath=yes
21016 fi
21017 fi
21018 rm -f core conftest.err conftest.$ac_objext \
21019     conftest$ac_exeext conftest.$ac_ext
21020     LDFLAGS=$save_LDFLAGS
21021     libdir=$save_libdir
21022
21023 fi
21024
21025   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21026
21027   # This implies no fast_install, which is unacceptable.
21028   # Some rework will be needed to allow for fast_install
21029   # before this can be enabled.
21030   hardcode_into_libs=yes
21031
21032   # Append ld.so.conf contents to the search path
21033   if test -f /etc/ld.so.conf; then
21034     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' ' '`
21035     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21036   fi
21037
21038   # We used to test for /lib/ld.so.1 and disable shared libraries on
21039   # powerpc, because MkLinux only supported shared libraries with the
21040   # GNU dynamic linker.  Since this was broken with cross compilers,
21041   # most powerpc-linux boxes support dynamic linking these days and
21042   # people can always --disable-shared, the test was removed, and we
21043   # assume the GNU/Linux dynamic linker is in use.
21044   dynamic_linker='GNU/Linux ld.so'
21045   ;;
21046
21047 netbsd*)
21048   version_type=sunos
21049   need_lib_prefix=no
21050   need_version=no
21051   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21053     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21054     dynamic_linker='NetBSD (a.out) ld.so'
21055   else
21056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21057     soname_spec='${libname}${release}${shared_ext}$major'
21058     dynamic_linker='NetBSD ld.elf_so'
21059   fi
21060   shlibpath_var=LD_LIBRARY_PATH
21061   shlibpath_overrides_runpath=yes
21062   hardcode_into_libs=yes
21063   ;;
21064
21065 newsos6)
21066   version_type=linux
21067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21068   shlibpath_var=LD_LIBRARY_PATH
21069   shlibpath_overrides_runpath=yes
21070   ;;
21071
21072 *nto* | *qnx*)
21073   version_type=qnx
21074   need_lib_prefix=no
21075   need_version=no
21076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21077   soname_spec='${libname}${release}${shared_ext}$major'
21078   shlibpath_var=LD_LIBRARY_PATH
21079   shlibpath_overrides_runpath=no
21080   hardcode_into_libs=yes
21081   dynamic_linker='ldqnx.so'
21082   ;;
21083
21084 openbsd*)
21085   version_type=sunos
21086   sys_lib_dlsearch_path_spec="/usr/lib"
21087   need_lib_prefix=no
21088   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21089   case $host_os in
21090     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21091     *)                          need_version=no  ;;
21092   esac
21093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21095   shlibpath_var=LD_LIBRARY_PATH
21096   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21097     case $host_os in
21098       openbsd2.[89] | openbsd2.[89].*)
21099         shlibpath_overrides_runpath=no
21100         ;;
21101       *)
21102         shlibpath_overrides_runpath=yes
21103         ;;
21104       esac
21105   else
21106     shlibpath_overrides_runpath=yes
21107   fi
21108   ;;
21109
21110 os2*)
21111   libname_spec='$name'
21112   shrext_cmds=".dll"
21113   need_lib_prefix=no
21114   library_names_spec='$libname${shared_ext} $libname.a'
21115   dynamic_linker='OS/2 ld.exe'
21116   shlibpath_var=LIBPATH
21117   ;;
21118
21119 osf3* | osf4* | osf5*)
21120   version_type=osf
21121   need_lib_prefix=no
21122   need_version=no
21123   soname_spec='${libname}${release}${shared_ext}$major'
21124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21125   shlibpath_var=LD_LIBRARY_PATH
21126   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21127   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21128   ;;
21129
21130 rdos*)
21131   dynamic_linker=no
21132   ;;
21133
21134 solaris*)
21135   version_type=linux
21136   need_lib_prefix=no
21137   need_version=no
21138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21139   soname_spec='${libname}${release}${shared_ext}$major'
21140   shlibpath_var=LD_LIBRARY_PATH
21141   shlibpath_overrides_runpath=yes
21142   hardcode_into_libs=yes
21143   # ldd complains unless libraries are executable
21144   postinstall_cmds='chmod +x $lib'
21145   ;;
21146
21147 sunos4*)
21148   version_type=sunos
21149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21150   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21151   shlibpath_var=LD_LIBRARY_PATH
21152   shlibpath_overrides_runpath=yes
21153   if test "$with_gnu_ld" = yes; then
21154     need_lib_prefix=no
21155   fi
21156   need_version=yes
21157   ;;
21158
21159 sysv4 | sysv4.3*)
21160   version_type=linux
21161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21162   soname_spec='${libname}${release}${shared_ext}$major'
21163   shlibpath_var=LD_LIBRARY_PATH
21164   case $host_vendor in
21165     sni)
21166       shlibpath_overrides_runpath=no
21167       need_lib_prefix=no
21168       runpath_var=LD_RUN_PATH
21169       ;;
21170     siemens)
21171       need_lib_prefix=no
21172       ;;
21173     motorola)
21174       need_lib_prefix=no
21175       need_version=no
21176       shlibpath_overrides_runpath=no
21177       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21178       ;;
21179   esac
21180   ;;
21181
21182 sysv4*MP*)
21183   if test -d /usr/nec ;then
21184     version_type=linux
21185     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21186     soname_spec='$libname${shared_ext}.$major'
21187     shlibpath_var=LD_LIBRARY_PATH
21188   fi
21189   ;;
21190
21191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21192   version_type=freebsd-elf
21193   need_lib_prefix=no
21194   need_version=no
21195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21196   soname_spec='${libname}${release}${shared_ext}$major'
21197   shlibpath_var=LD_LIBRARY_PATH
21198   shlibpath_overrides_runpath=yes
21199   hardcode_into_libs=yes
21200   if test "$with_gnu_ld" = yes; then
21201     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21202   else
21203     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21204     case $host_os in
21205       sco3.2v5*)
21206         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21207         ;;
21208     esac
21209   fi
21210   sys_lib_dlsearch_path_spec='/usr/lib'
21211   ;;
21212
21213 tpf*)
21214   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21215   version_type=linux
21216   need_lib_prefix=no
21217   need_version=no
21218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21219   shlibpath_var=LD_LIBRARY_PATH
21220   shlibpath_overrides_runpath=no
21221   hardcode_into_libs=yes
21222   ;;
21223
21224 uts4*)
21225   version_type=linux
21226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21227   soname_spec='${libname}${release}${shared_ext}$major'
21228   shlibpath_var=LD_LIBRARY_PATH
21229   ;;
21230
21231 *)
21232   dynamic_linker=no
21233   ;;
21234 esac
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21236 $as_echo "$dynamic_linker" >&6; }
21237 test "$dynamic_linker" = no && can_build_shared=no
21238
21239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21240 if test "$GCC" = yes; then
21241   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21242 fi
21243
21244 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21245   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21246 fi
21247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21248   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21249 fi
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21289 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21290 hardcode_action_CXX=
21291 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21292    test -n "$runpath_var_CXX" ||
21293    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21294
21295   # We can hardcode non-existent directories.
21296   if test "$hardcode_direct_CXX" != no &&
21297      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21298      # have to relink, otherwise we might link with an installed library
21299      # when we should be linking with a yet-to-be-installed one
21300      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21301      test "$hardcode_minus_L_CXX" != no; then
21302     # Linking always hardcodes the temporary library directory.
21303     hardcode_action_CXX=relink
21304   else
21305     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21306     hardcode_action_CXX=immediate
21307   fi
21308 else
21309   # We cannot hardcode anything, or else we can only hardcode existing
21310   # directories.
21311   hardcode_action_CXX=unsupported
21312 fi
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21314 $as_echo "$hardcode_action_CXX" >&6; }
21315
21316 if test "$hardcode_action_CXX" = relink ||
21317    test "$inherit_rpath_CXX" = yes; then
21318   # Fast installation is not supported
21319   enable_fast_install=no
21320 elif test "$shlibpath_overrides_runpath" = yes ||
21321      test "$enable_shared" = no; then
21322   # Fast installation is not necessary
21323   enable_fast_install=needless
21324 fi
21325
21326
21327
21328
21329
21330
21331
21332   fi # test -n "$compiler"
21333
21334   CC=$lt_save_CC
21335   LDCXX=$LD
21336   LD=$lt_save_LD
21337   GCC=$lt_save_GCC
21338   with_gnu_ld=$lt_save_with_gnu_ld
21339   lt_cv_path_LDCXX=$lt_cv_path_LD
21340   lt_cv_path_LD=$lt_save_path_LD
21341   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21342   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21343 fi # test "$_lt_caught_CXX_error" != yes
21344
21345 ac_ext=c
21346 ac_cpp='$CPP $CPPFLAGS'
21347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366 # Only expand once:
21367
21368
21369
21370
21371
21372 # Identify the assembler which will work hand-in-glove with the newly
21373 # built GCC, so that we can examine its features.  This is the assembler
21374 # which will be driven by the driver program.
21375 #
21376 # If build != host, and we aren't building gas in-tree, we identify a
21377 # build->target assembler and hope that it will have the same features
21378 # as the host->target assembler we'll be using.
21379 gcc_cv_gas_major_version=
21380 gcc_cv_gas_minor_version=
21381 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21382
21383 if test "${gcc_cv_as+set}" = set; then :
21384
21385 else
21386
21387 if test -x "$DEFAULT_ASSEMBLER"; then
21388         gcc_cv_as="$DEFAULT_ASSEMBLER"
21389 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21390      && test -f ../gas/Makefile \
21391      && test x$build = x$host; then
21392         gcc_cv_as=../gas/as-new$build_exeext
21393 elif test -x as$build_exeext; then
21394         # Build using assembler in the current directory.
21395         gcc_cv_as=./as$build_exeext
21396 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21397         gcc_cv_as="$AS_FOR_TARGET"
21398 else
21399         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21400 set dummy $AS_FOR_TARGET; ac_word=$2
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21402 $as_echo_n "checking for $ac_word... " >&6; }
21403 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21404   $as_echo_n "(cached) " >&6
21405 else
21406   case $gcc_cv_as in
21407   [\\/]* | ?:[\\/]*)
21408   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21409   ;;
21410   *)
21411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21412 for as_dir in $PATH
21413 do
21414   IFS=$as_save_IFS
21415   test -z "$as_dir" && as_dir=.
21416     for ac_exec_ext in '' $ac_executable_extensions; do
21417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21418     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21420     break 2
21421   fi
21422 done
21423   done
21424 IFS=$as_save_IFS
21425
21426   ;;
21427 esac
21428 fi
21429 gcc_cv_as=$ac_cv_path_gcc_cv_as
21430 if test -n "$gcc_cv_as"; then
21431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21432 $as_echo "$gcc_cv_as" >&6; }
21433 else
21434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21435 $as_echo "no" >&6; }
21436 fi
21437
21438
21439 fi
21440 fi
21441
21442 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21443
21444 case "$ORIGINAL_AS_FOR_TARGET" in
21445   ./as | ./as$build_exeext) ;;
21446   *) ac_config_files="$ac_config_files as:exec-tool.in"
21447  ;;
21448 esac
21449
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21451 $as_echo_n "checking what assembler to use... " >&6; }
21452 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21453   # Single tree build which includes gas.  We want to prefer it
21454   # over whatever linker top-level may have detected, since
21455   # we'll use what we're building after installation anyway.
21456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21457 $as_echo "newly built gas" >&6; }
21458   in_tree_gas=yes
21459   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21460 for f in $gcc_cv_as_bfd_srcdir/configure \
21461          $gcc_cv_as_gas_srcdir/configure \
21462          $gcc_cv_as_gas_srcdir/configure.in \
21463          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21464   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21465   if test x$gcc_cv_gas_version != x; then
21466     break
21467   fi
21468 done
21469 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21470 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21471 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21472 case $gcc_cv_gas_patch_version in
21473   "") gcc_cv_gas_patch_version="0" ;;
21474 esac
21475 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21476                             + $gcc_cv_gas_minor_version \) \* 1000 \
21477                             + $gcc_cv_gas_patch_version`
21478
21479   in_tree_gas_is_elf=no
21480   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21481      || (grep 'obj_format = multi' ../gas/Makefile \
21482          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21483   then
21484     in_tree_gas_is_elf=yes
21485   fi
21486 else
21487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21488 $as_echo "$gcc_cv_as" >&6; }
21489   in_tree_gas=no
21490 fi
21491
21492 # Identify the linker which will work hand-in-glove with the newly
21493 # built GCC, so that we can examine its features.  This is the linker
21494 # which will be driven by the driver program.
21495 #
21496 # If build != host, and we aren't building gas in-tree, we identify a
21497 # build->target linker and hope that it will have the same features
21498 # as the host->target linker we'll be using.
21499 gcc_cv_gld_major_version=
21500 gcc_cv_gld_minor_version=
21501 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21502 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21503
21504 if test "${gcc_cv_ld+set}" = set; then :
21505
21506 else
21507
21508 if test -x "$DEFAULT_LINKER"; then
21509         gcc_cv_ld="$DEFAULT_LINKER"
21510 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21511      && test -f ../ld/Makefile \
21512      && test x$build = x$host; then
21513         gcc_cv_ld=../ld/ld-new$build_exeext
21514 elif test -x collect-ld$build_exeext; then
21515         # Build using linker in the current directory.
21516         gcc_cv_ld=./collect-ld$build_exeext
21517 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21518         gcc_cv_ld="$LD_FOR_TARGET"
21519 else
21520         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21521 set dummy $LD_FOR_TARGET; ac_word=$2
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21523 $as_echo_n "checking for $ac_word... " >&6; }
21524 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21525   $as_echo_n "(cached) " >&6
21526 else
21527   case $gcc_cv_ld in
21528   [\\/]* | ?:[\\/]*)
21529   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21530   ;;
21531   *)
21532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21533 for as_dir in $PATH
21534 do
21535   IFS=$as_save_IFS
21536   test -z "$as_dir" && as_dir=.
21537     for ac_exec_ext in '' $ac_executable_extensions; do
21538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21539     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21541     break 2
21542   fi
21543 done
21544   done
21545 IFS=$as_save_IFS
21546
21547   ;;
21548 esac
21549 fi
21550 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21551 if test -n "$gcc_cv_ld"; then
21552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21553 $as_echo "$gcc_cv_ld" >&6; }
21554 else
21555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21556 $as_echo "no" >&6; }
21557 fi
21558
21559
21560 fi
21561 fi
21562
21563 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21564 PLUGIN_LD=`basename $gcc_cv_ld`
21565
21566 # Check whether --with-plugin-ld was given.
21567 if test "${with_plugin_ld+set}" = set; then :
21568   withval=$with_plugin_ld; if test x"$withval" != x; then
21569    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21570    PLUGIN_LD="$withval"
21571  fi
21572 fi
21573
21574
21575
21576 cat >>confdefs.h <<_ACEOF
21577 #define PLUGIN_LD "$PLUGIN_LD"
21578 _ACEOF
21579
21580
21581 # Check to see if we are using gold instead of ld
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21583 $as_echo_n "checking whether we are using gold... " >&6; }
21584 ld_is_gold=no
21585 if test x$gcc_cv_ld != x; then
21586   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21587      | grep "GNU gold" > /dev/null; then
21588     ld_is_gold=yes
21589   fi
21590 fi
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21592 $as_echo "$ld_is_gold" >&6; }
21593
21594 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21595
21596 case "$ORIGINAL_LD_FOR_TARGET" in
21597   ./collect-ld | ./collect-ld$build_exeext) ;;
21598   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21599  ;;
21600 esac
21601
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21603 $as_echo_n "checking what linker to use... " >&6; }
21604 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21605    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21606         # Single tree build which includes ld.  We want to prefer it
21607         # over whatever linker top-level may have detected, since
21608         # we'll use what we're building after installation anyway.
21609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21610 $as_echo "newly built ld" >&6; }
21611         in_tree_ld=yes
21612         in_tree_ld_is_elf=no
21613         if (grep 'EMUL = .*elf' ../ld/Makefile \
21614             || grep 'EMUL = .*linux' ../ld/Makefile \
21615             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21616           in_tree_ld_is_elf=yes
21617         elif test "$ld_is_gold" = yes; then
21618           in_tree_ld_is_elf=yes
21619         fi
21620         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
21621         do
21622                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21623                 if test x$gcc_cv_gld_version != x; then
21624                         break
21625                 fi
21626         done
21627         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21628         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21629 else
21630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21631 $as_echo "$gcc_cv_ld" >&6; }
21632         in_tree_ld=no
21633 fi
21634
21635 # Figure out what nm we will be using.
21636 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21637 if test "${gcc_cv_nm+set}" = set; then :
21638
21639 else
21640
21641 if test -f $gcc_cv_binutils_srcdir/configure.in \
21642      && test -f ../binutils/Makefile \
21643      && test x$build = x$host; then
21644         gcc_cv_nm=../binutils/nm-new$build_exeext
21645 elif test -x nm$build_exeext; then
21646         gcc_cv_nm=./nm$build_exeext
21647 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21648         gcc_cv_nm="$NM_FOR_TARGET"
21649 else
21650         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21651 set dummy $NM_FOR_TARGET; ac_word=$2
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21653 $as_echo_n "checking for $ac_word... " >&6; }
21654 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21655   $as_echo_n "(cached) " >&6
21656 else
21657   case $gcc_cv_nm in
21658   [\\/]* | ?:[\\/]*)
21659   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21660   ;;
21661   *)
21662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21663 for as_dir in $PATH
21664 do
21665   IFS=$as_save_IFS
21666   test -z "$as_dir" && as_dir=.
21667     for ac_exec_ext in '' $ac_executable_extensions; do
21668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21669     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21671     break 2
21672   fi
21673 done
21674   done
21675 IFS=$as_save_IFS
21676
21677   ;;
21678 esac
21679 fi
21680 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21681 if test -n "$gcc_cv_nm"; then
21682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21683 $as_echo "$gcc_cv_nm" >&6; }
21684 else
21685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21686 $as_echo "no" >&6; }
21687 fi
21688
21689
21690 fi
21691 fi
21692
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21694 $as_echo_n "checking what nm to use... " >&6; }
21695 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21696         # Single tree build which includes binutils.
21697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21698 $as_echo "newly built nm" >&6; }
21699         in_tree_nm=yes
21700 else
21701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21702 $as_echo "$gcc_cv_nm" >&6; }
21703         in_tree_nm=no
21704 fi
21705
21706 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21707
21708 case "$ORIGINAL_NM_FOR_TARGET" in
21709   ./nm | ./nm$build_exeext) ;;
21710   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21711  ;;
21712 esac
21713
21714
21715 # Figure out what objdump we will be using.
21716 if test "${gcc_cv_objdump+set}" = set; then :
21717
21718 else
21719
21720 if test -f $gcc_cv_binutils_srcdir/configure.in \
21721      && test -f ../binutils/Makefile \
21722      && test x$build = x$host; then
21723         # Single tree build which includes binutils.
21724         gcc_cv_objdump=../binutils/objdump$build_exeext
21725 elif test -x objdump$build_exeext; then
21726         gcc_cv_objdump=./objdump$build_exeext
21727 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21728         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21729 else
21730         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21731 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21733 $as_echo_n "checking for $ac_word... " >&6; }
21734 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21735   $as_echo_n "(cached) " >&6
21736 else
21737   case $gcc_cv_objdump in
21738   [\\/]* | ?:[\\/]*)
21739   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21740   ;;
21741   *)
21742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21743 for as_dir in $PATH
21744 do
21745   IFS=$as_save_IFS
21746   test -z "$as_dir" && as_dir=.
21747     for ac_exec_ext in '' $ac_executable_extensions; do
21748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21749     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21751     break 2
21752   fi
21753 done
21754   done
21755 IFS=$as_save_IFS
21756
21757   ;;
21758 esac
21759 fi
21760 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21761 if test -n "$gcc_cv_objdump"; then
21762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21763 $as_echo "$gcc_cv_objdump" >&6; }
21764 else
21765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21766 $as_echo "no" >&6; }
21767 fi
21768
21769
21770 fi
21771 fi
21772
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21774 $as_echo_n "checking what objdump to use... " >&6; }
21775 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21776         # Single tree build which includes binutils.
21777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21778 $as_echo "newly built objdump" >&6; }
21779 elif test x$gcc_cv_objdump = x; then
21780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21781 $as_echo "not found" >&6; }
21782 else
21783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21784 $as_echo "$gcc_cv_objdump" >&6; }
21785 fi
21786
21787 # Figure out what readelf we will be using.
21788 if test "${gcc_cv_readelf+set}" = set; then :
21789
21790 else
21791
21792 if test -f $gcc_cv_binutils_srcdir/configure.in \
21793      && test -f ../binutils/Makefile \
21794      && test x$build = x$host; then
21795         # Single tree build which includes binutils.
21796         gcc_cv_readelf=../binutils/readelf$build_exeext
21797 elif test -x readelf$build_exeext; then
21798         gcc_cv_readelf=./readelf$build_exeext
21799 else
21800         # Extract the first word of "readelf", so it can be a program name with args.
21801 set dummy readelf; ac_word=$2
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21803 $as_echo_n "checking for $ac_word... " >&6; }
21804 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21805   $as_echo_n "(cached) " >&6
21806 else
21807   case $gcc_cv_readelf in
21808   [\\/]* | ?:[\\/]*)
21809   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21810   ;;
21811   *)
21812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21813 for as_dir in $PATH
21814 do
21815   IFS=$as_save_IFS
21816   test -z "$as_dir" && as_dir=.
21817     for ac_exec_ext in '' $ac_executable_extensions; do
21818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21819     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21821     break 2
21822   fi
21823 done
21824   done
21825 IFS=$as_save_IFS
21826
21827   ;;
21828 esac
21829 fi
21830 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21831 if test -n "$gcc_cv_readelf"; then
21832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21833 $as_echo "$gcc_cv_readelf" >&6; }
21834 else
21835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21836 $as_echo "no" >&6; }
21837 fi
21838
21839
21840 fi
21841 fi
21842
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21844 $as_echo_n "checking what readelf to use... " >&6; }
21845 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21846         # Single tree build which includes binutils.
21847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21848 $as_echo "newly built readelf" >&6; }
21849 elif test x$gcc_cv_readelf = x; then
21850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21851 $as_echo "not found" >&6; }
21852 else
21853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21854 $as_echo "$gcc_cv_readelf" >&6; }
21855 fi
21856
21857 # Figure out what assembler alignment features are present.
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21859 $as_echo_n "checking assembler flags... " >&6; }
21860 if test "${gcc_cv_as_flags+set}" = set; then :
21861   $as_echo_n "(cached) " >&6
21862 else
21863    case "$target" in
21864   i[34567]86-*-linux*)
21865         gcc_cv_as_flags="--32"
21866     ;;
21867   powerpc*-*-darwin*)
21868         gcc_cv_as_flags="-arch ppc"
21869     ;;
21870   *)
21871     gcc_cv_as_flags=" "
21872     ;;
21873   esac
21874 fi
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21876 $as_echo "$gcc_cv_as_flags" >&6; }
21877
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21879 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21880 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21881   $as_echo_n "(cached) " >&6
21882 else
21883   gcc_cv_as_balign_and_p2align=no
21884     if test $in_tree_gas = yes; then
21885     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21886   then gcc_cv_as_balign_and_p2align=yes
21887 fi
21888   elif test x$gcc_cv_as != x; then
21889     $as_echo '.balign 4
21890 .p2align 2' > conftest.s
21891     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21892   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21893   (eval $ac_try) 2>&5
21894   ac_status=$?
21895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21896   test $ac_status = 0; }; }
21897     then
21898         gcc_cv_as_balign_and_p2align=yes
21899     else
21900       echo "configure: failed program was" >&5
21901       cat conftest.s >&5
21902     fi
21903     rm -f conftest.o conftest.s
21904   fi
21905 fi
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21907 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21908 if test $gcc_cv_as_balign_and_p2align = yes; then
21909
21910 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21911
21912 fi
21913
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21915 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21916 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21917   $as_echo_n "(cached) " >&6
21918 else
21919   gcc_cv_as_max_skip_p2align=no
21920     if test $in_tree_gas = yes; then
21921     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21922   then gcc_cv_as_max_skip_p2align=yes
21923 fi
21924   elif test x$gcc_cv_as != x; then
21925     $as_echo '.p2align 4,,7' > conftest.s
21926     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21927   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21928   (eval $ac_try) 2>&5
21929   ac_status=$?
21930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21931   test $ac_status = 0; }; }
21932     then
21933         gcc_cv_as_max_skip_p2align=yes
21934     else
21935       echo "configure: failed program was" >&5
21936       cat conftest.s >&5
21937     fi
21938     rm -f conftest.o conftest.s
21939   fi
21940 fi
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21942 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21943 if test $gcc_cv_as_max_skip_p2align = yes; then
21944
21945 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21946
21947 fi
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21950 $as_echo_n "checking assembler for .literal16... " >&6; }
21951 if test "${gcc_cv_as_literal16+set}" = set; then :
21952   $as_echo_n "(cached) " >&6
21953 else
21954   gcc_cv_as_literal16=no
21955     if test $in_tree_gas = yes; then
21956     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21957   then gcc_cv_as_literal16=yes
21958 fi
21959   elif test x$gcc_cv_as != x; then
21960     $as_echo '.literal16' > conftest.s
21961     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21962   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21963   (eval $ac_try) 2>&5
21964   ac_status=$?
21965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21966   test $ac_status = 0; }; }
21967     then
21968         gcc_cv_as_literal16=yes
21969     else
21970       echo "configure: failed program was" >&5
21971       cat conftest.s >&5
21972     fi
21973     rm -f conftest.o conftest.s
21974   fi
21975 fi
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21977 $as_echo "$gcc_cv_as_literal16" >&6; }
21978 if test $gcc_cv_as_literal16 = yes; then
21979
21980 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21981
21982 fi
21983
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21985 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21986 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21987   $as_echo_n "(cached) " >&6
21988 else
21989   gcc_cv_as_subsection_m1=no
21990     if test $in_tree_gas = yes; then
21991     if test $in_tree_gas_is_elf = yes \
21992   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21993   then gcc_cv_as_subsection_m1=yes
21994 fi
21995   elif test x$gcc_cv_as != x; then
21996     $as_echo 'conftest_label1: .word 0
21997 .subsection -1
21998 conftest_label2: .word 0
21999 .previous' > conftest.s
22000     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22001   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22002   (eval $ac_try) 2>&5
22003   ac_status=$?
22004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22005   test $ac_status = 0; }; }
22006     then
22007         if test x$gcc_cv_nm != x; then
22008     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22009     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22010     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22011     then :
22012     else gcc_cv_as_subsection_m1=yes
22013     fi
22014     rm -f conftest.nm1 conftest.nm2
22015   fi
22016     else
22017       echo "configure: failed program was" >&5
22018       cat conftest.s >&5
22019     fi
22020     rm -f conftest.o conftest.s
22021   fi
22022 fi
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22024 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22025 if test $gcc_cv_as_subsection_m1 = yes; then
22026
22027 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22028
22029 fi
22030
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22032 $as_echo_n "checking assembler for .weak... " >&6; }
22033 if test "${gcc_cv_as_weak+set}" = set; then :
22034   $as_echo_n "(cached) " >&6
22035 else
22036   gcc_cv_as_weak=no
22037     if test $in_tree_gas = yes; then
22038     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22039   then gcc_cv_as_weak=yes
22040 fi
22041   elif test x$gcc_cv_as != x; then
22042     $as_echo '  .weak foobar' > conftest.s
22043     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22044   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22045   (eval $ac_try) 2>&5
22046   ac_status=$?
22047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22048   test $ac_status = 0; }; }
22049     then
22050         gcc_cv_as_weak=yes
22051     else
22052       echo "configure: failed program was" >&5
22053       cat conftest.s >&5
22054     fi
22055     rm -f conftest.o conftest.s
22056   fi
22057 fi
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22059 $as_echo "$gcc_cv_as_weak" >&6; }
22060 if test $gcc_cv_as_weak = yes; then
22061
22062 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22063
22064 fi
22065
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22067 $as_echo_n "checking assembler for .weakref... " >&6; }
22068 if test "${gcc_cv_as_weakref+set}" = set; then :
22069   $as_echo_n "(cached) " >&6
22070 else
22071   gcc_cv_as_weakref=no
22072     if test $in_tree_gas = yes; then
22073     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22074   then gcc_cv_as_weakref=yes
22075 fi
22076   elif test x$gcc_cv_as != x; then
22077     $as_echo '  .weakref foobar, barfnot' > conftest.s
22078     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22079   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22080   (eval $ac_try) 2>&5
22081   ac_status=$?
22082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083   test $ac_status = 0; }; }
22084     then
22085         gcc_cv_as_weakref=yes
22086     else
22087       echo "configure: failed program was" >&5
22088       cat conftest.s >&5
22089     fi
22090     rm -f conftest.o conftest.s
22091   fi
22092 fi
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22094 $as_echo "$gcc_cv_as_weakref" >&6; }
22095 if test $gcc_cv_as_weakref = yes; then
22096
22097 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22098
22099 fi
22100
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22102 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22103 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22104   $as_echo_n "(cached) " >&6
22105 else
22106   gcc_cv_as_nsubspa_comdat=no
22107     if test $in_tree_gas = yes; then
22108     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22109   then gcc_cv_as_nsubspa_comdat=yes
22110 fi
22111   elif test x$gcc_cv_as != x; then
22112     $as_echo '  .SPACE $TEXT$
22113         .NSUBSPA $CODE$,COMDAT' > conftest.s
22114     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22115   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22116   (eval $ac_try) 2>&5
22117   ac_status=$?
22118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22119   test $ac_status = 0; }; }
22120     then
22121         gcc_cv_as_nsubspa_comdat=yes
22122     else
22123       echo "configure: failed program was" >&5
22124       cat conftest.s >&5
22125     fi
22126     rm -f conftest.o conftest.s
22127   fi
22128 fi
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22130 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22131 if test $gcc_cv_as_nsubspa_comdat = yes; then
22132
22133 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22134
22135 fi
22136
22137 # .hidden needs to be supported in both the assembler and the linker,
22138 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22139 # This is irritatingly difficult to feature test for; we have to check the
22140 # date string after the version number.  If we've got an in-tree
22141 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22142 # to be safe.
22143 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22145 $as_echo_n "checking assembler for .hidden... " >&6; }
22146 if test "${gcc_cv_as_hidden+set}" = set; then :
22147   $as_echo_n "(cached) " >&6
22148 else
22149   gcc_cv_as_hidden=no
22150     if test $in_tree_gas = yes; then
22151     if test $in_tree_gas_is_elf = yes \
22152   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22153   then gcc_cv_as_hidden=yes
22154 fi
22155   elif test x$gcc_cv_as != x; then
22156     $as_echo '  .hidden foobar
22157 foobar:' > conftest.s
22158     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22159   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22160   (eval $ac_try) 2>&5
22161   ac_status=$?
22162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22163   test $ac_status = 0; }; }
22164     then
22165
22166 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22167 # STV_HIDDEN, so disable .hidden support if so.
22168 case "${target}" in
22169   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22170     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22171       cat > conftest.s <<EOF
22172 .globl hidden
22173         .hidden hidden
22174 hidden:
22175 .globl default
22176         .set    default,hidden
22177 EOF
22178       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22179         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22180         grep '\.hidden default' > /dev/null; then
22181         gcc_cv_as_hidden=no
22182       else
22183         gcc_cv_as_hidden=yes
22184       fi
22185     else
22186       # Assume bug is present if objdump is missing.
22187       gcc_cv_as_hidden=no
22188     fi
22189     ;;
22190   *)
22191     gcc_cv_as_hidden=yes
22192     ;;
22193 esac
22194     else
22195       echo "configure: failed program was" >&5
22196       cat conftest.s >&5
22197     fi
22198     rm -f conftest.o conftest.s
22199   fi
22200 fi
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22202 $as_echo "$gcc_cv_as_hidden" >&6; }
22203
22204 case "${target}" in
22205   *-*-darwin*)
22206     # Darwin as has some visibility support, though with a different syntax.
22207     gcc_cv_as_hidden=yes
22208     ;;
22209 esac
22210
22211 # gnu_indirect_function type is an extension proposed at
22212 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22213 # selection of function implementation
22214 # Check whether --enable-gnu-indirect-function was given.
22215 if test "${enable_gnu_indirect_function+set}" = set; then :
22216   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22217     yes | no) ;;
22218     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22219 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22220   esac
22221 else
22222   enable_gnu_indirect_function="$default_gnu_indirect_function"
22223 fi
22224
22225 if test x$enable_gnu_indirect_function = xyes; then
22226
22227 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22228
22229 fi
22230
22231 if test $in_tree_ld != yes ; then
22232   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22233   if echo "$ld_ver" | grep GNU > /dev/null; then
22234     if test x"$ld_is_gold" = xyes; then
22235       # GNU gold --version looks like this:
22236       #
22237       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22238       #
22239       # We extract the binutils version which is more familiar and specific
22240       # than the gold version.
22241       ld_vers=`echo $ld_ver | sed -n \
22242           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22243     else
22244       # GNU ld --version looks like this:
22245       #
22246       # GNU ld (GNU Binutils) 2.21.51.20110225
22247       ld_vers=`echo $ld_ver | sed -n \
22248           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22249     fi
22250     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'`
22251     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22252     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22253     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22254   else
22255     case "${target}" in
22256       *-*-solaris2*)
22257         # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22258         # format.
22259         #
22260         # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22261         # /usr/ccs/bin/ld has been configured.
22262         ld_ver=`$gcc_cv_ld -V 2>&1`
22263         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22264           ld_vers=`echo $ld_ver | sed -n \
22265             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22266           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22267           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22268         fi
22269         ;;
22270     esac
22271   fi
22272 fi
22273
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22275 $as_echo_n "checking linker for .hidden support... " >&6; }
22276 if test "${gcc_cv_ld_hidden+set}" = set; then :
22277   $as_echo_n "(cached) " >&6
22278 else
22279   if test $in_tree_ld = yes ; then
22280   gcc_cv_ld_hidden=no
22281   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 \
22282      && test $in_tree_ld_is_elf = yes; then
22283      gcc_cv_ld_hidden=yes
22284   fi
22285 else
22286   gcc_cv_ld_hidden=yes
22287   if test x"$ld_is_gold" = xyes; then
22288     :
22289   elif echo "$ld_ver" | grep GNU > /dev/null; then
22290     if test 0"$ld_date" -lt 20020404; then
22291       if test -n "$ld_date"; then
22292         # If there was date string, but was earlier than 2002-04-04, fail
22293         gcc_cv_ld_hidden=no
22294       elif test -z "$ld_vers"; then
22295         # If there was no date string nor ld version number, something is wrong
22296         gcc_cv_ld_hidden=no
22297       else
22298         test -z "$ld_vers_patch" && ld_vers_patch=0
22299         if test "$ld_vers_major" -lt 2; then
22300           gcc_cv_ld_hidden=no
22301         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22302           gcc_cv_ld_hidden="no"
22303         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22304           gcc_cv_ld_hidden=no
22305         fi
22306       fi
22307     fi
22308   else
22309     case "${target}" in
22310       *-*-darwin*)
22311         # Darwin ld has some visibility support.
22312         gcc_cv_ld_hidden=yes
22313         ;;
22314       hppa64*-*-hpux* | ia64*-*-hpux*)
22315         gcc_cv_ld_hidden=yes
22316         ;;
22317       *-*-solaris2.8*)
22318         # .hidden support was backported to Solaris 8, starting with ld
22319         # version 1.276.
22320         if test "$ld_vers_minor" -ge 276; then
22321           gcc_cv_ld_hidden=yes
22322         else
22323           gcc_cv_ld_hidden=no
22324         fi
22325         ;;
22326       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22327         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22328         # .symbolic was only added in Solaris 9 12/02.
22329         gcc_cv_ld_hidden=yes
22330         ;;
22331       *)
22332         gcc_cv_ld_hidden=no
22333         ;;
22334     esac
22335   fi
22336 fi
22337 fi
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22339 $as_echo "$gcc_cv_ld_hidden" >&6; }
22340 libgcc_visibility=no
22341
22342
22343 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22344   libgcc_visibility=yes
22345
22346 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22347
22348 fi
22349
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22351 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22352 gcc_cv_ld_ro_rw_mix=unknown
22353 if test $in_tree_ld = yes ; then
22354   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 \
22355      && test $in_tree_ld_is_elf = yes; then
22356     gcc_cv_ld_ro_rw_mix=read-write
22357   fi
22358 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22359   echo '.section myfoosect, "a"' > conftest1.s
22360   echo '.section myfoosect, "aw"' > conftest2.s
22361   echo '.byte 1' >> conftest2.s
22362   echo '.section myfoosect, "a"' > conftest3.s
22363   echo '.byte 0' >> conftest3.s
22364   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22365      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22366      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22367      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22368         conftest2.o conftest3.o > /dev/null 2>&1; then
22369     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22370                          | sed -e '/myfoosect/!d' -e N`
22371     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22372       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22373         gcc_cv_ld_ro_rw_mix=read-only
22374       else
22375         gcc_cv_ld_ro_rw_mix=read-write
22376       fi
22377     fi
22378   fi
22379   rm -f conftest.* conftest[123].*
22380 fi
22381 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22382
22383 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22384
22385 fi
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22387 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22388
22389 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22390   case "${target}" in
22391     *-*-solaris2*)
22392       #
22393       # Solaris 2 ld -V output looks like this for a regular version:
22394       #
22395       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22396       #
22397       # but test versions add stuff at the end:
22398       #
22399       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22400       #
22401       gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22402       if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22403         gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22404           -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22405         gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22406         gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22407       fi
22408       ;;
22409   esac
22410 fi
22411
22412 # Check whether --enable-initfini-array was given.
22413 if test "${enable_initfini_array+set}" = set; then :
22414   enableval=$enable_initfini_array;
22415 else
22416
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22418 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22419 if test "${gcc_cv_initfini_array+set}" = set; then :
22420   $as_echo_n "(cached) " >&6
22421 else
22422     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22423     case "${target}" in
22424       ia64-*)
22425         if test "$cross_compiling" = yes; then :
22426   gcc_cv_initfini_array=no
22427 else
22428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h.  */
22430
22431 #ifndef __ELF__
22432 #error Not an ELF OS
22433 #endif
22434 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22435    if it can be used.  */
22436 static int x = -1;
22437 int main (void) { return x; }
22438 int foo (void) { x = 0; }
22439 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22440
22441 _ACEOF
22442 if ac_fn_c_try_run "$LINENO"; then :
22443   gcc_cv_initfini_array=yes
22444 else
22445   gcc_cv_initfini_array=no
22446 fi
22447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22448   conftest.$ac_objext conftest.beam conftest.$ac_ext
22449 fi
22450 ;;
22451       *)
22452         gcc_cv_initfini_array=no
22453         if test $in_tree_ld = yes ; then
22454           if test "$gcc_cv_gld_major_version" -eq 2 \
22455              -a "$gcc_cv_gld_minor_version" -ge 22 \
22456              -o "$gcc_cv_gld_major_version" -gt 2 \
22457              && test $in_tree_ld_is_elf = yes; then
22458             gcc_cv_initfini_array=yes
22459           fi
22460         elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22461           cat > conftest.s <<\EOF
22462 .section .dtors,"a",%progbits
22463 .balign 4
22464 .byte 'A', 'A', 'A', 'A'
22465 .section .ctors,"a",%progbits
22466 .balign 4
22467 .byte 'B', 'B', 'B', 'B'
22468 .section .fini_array.65530,"a",%progbits
22469 .balign 4
22470 .byte 'C', 'C', 'C', 'C'
22471 .section .init_array.65530,"a",%progbits
22472 .balign 4
22473 .byte 'D', 'D', 'D', 'D'
22474 .section .dtors.64528,"a",%progbits
22475 .balign 4
22476 .byte 'E', 'E', 'E', 'E'
22477 .section .ctors.64528,"a",%progbits
22478 .balign 4
22479 .byte 'F', 'F', 'F', 'F'
22480 .section .fini_array.01005,"a",%progbits
22481 .balign 4
22482 .byte 'G', 'G', 'G', 'G'
22483 .section .init_array.01005,"a",%progbits
22484 .balign 4
22485 .byte 'H', 'H', 'H', 'H'
22486 .text
22487 .globl _start
22488 _start:
22489 EOF
22490           if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22491              && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22492              && $gcc_cv_objdump -s -j .init_array conftest \
22493                 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22494              && $gcc_cv_objdump -s -j .fini_array conftest \
22495                 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22496             gcc_cv_initfini_array=yes
22497           fi
22498           rm -f conftest conftest.*
22499         fi
22500         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22501 /* end confdefs.h.  */
22502
22503 #ifndef __ELF__
22504 # error Not an ELF OS
22505 #endif
22506 #include <stdlib.h>
22507 #if defined __GLIBC_PREREQ
22508 # if __GLIBC_PREREQ (2, 4)
22509 # else
22510 #  error GLIBC 2.4 required
22511 # endif
22512 #else
22513 # if defined __sun__ && defined __svr4__
22514    /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
22515 # else
22516 #  error The C library not known to support .init_array/.fini_array
22517 # endif
22518 #endif
22519
22520 _ACEOF
22521 if ac_fn_c_try_cpp "$LINENO"; then :
22522
22523     case "${target}" in
22524       *-*-solaris2.8*)
22525         # .init_array/.fini_array support was introduced in Solaris 8
22526         # patches 109147-08 (sparc) and 109148-08 (x86).  Since ld.so.1 and
22527         # ld are guaranteed to be updated in lockstep, we can check ld -V
22528         # instead.  Unfortunately, proper ld version numbers were only
22529         # introduced in rev. -14, so we check for that.
22530         if test "$gcc_cv_sun_ld_vers_minor" -lt 272; then
22531           gcc_cv_initfini_array=no
22532         fi
22533       ;;
22534       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22535         # .init_array/.fini_array support is present since Solaris 9 FCS.
22536         ;;
22537     esac
22538
22539 else
22540   gcc_cv_initfini_array=no
22541 fi
22542 rm -f conftest.err conftest.$ac_ext;;
22543     esac
22544   else
22545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22546 $as_echo_n "checking cross compile... guessing... " >&6; }
22547     gcc_cv_initfini_array=no
22548   fi
22549 fi
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22551 $as_echo "$gcc_cv_initfini_array" >&6; }
22552   enable_initfini_array=$gcc_cv_initfini_array
22553
22554 fi
22555
22556 if test $enable_initfini_array = yes; then
22557
22558 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22559
22560 fi
22561
22562 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22564 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22565 if test "${gcc_cv_as_leb128+set}" = set; then :
22566   $as_echo_n "(cached) " >&6
22567 else
22568   gcc_cv_as_leb128=no
22569     if test $in_tree_gas = yes; then
22570     if test $in_tree_gas_is_elf = yes \
22571   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22572   then gcc_cv_as_leb128=yes
22573 fi
22574   elif test x$gcc_cv_as != x; then
22575     $as_echo '  .data
22576         .uleb128 L2 - L1
22577 L1:
22578         .uleb128 1280
22579         .sleb128 -1010
22580 L2:' > conftest.s
22581     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22582   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22583   (eval $ac_try) 2>&5
22584   ac_status=$?
22585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22586   test $ac_status = 0; }; }
22587     then
22588         # GAS versions before 2.11 do not support uleb128,
22589   # despite appearing to.
22590   # ??? There exists an elf-specific test that will crash
22591   # the assembler.  Perhaps it's better to figure out whether
22592   # arbitrary sections are supported and try the test.
22593   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22594   if echo "$as_ver" | grep GNU > /dev/null; then
22595     as_vers=`echo $as_ver | sed -n \
22596         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22597     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22598     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22599     if test $as_major -eq 2 && test $as_minor -lt 11
22600     then :
22601     else gcc_cv_as_leb128=yes
22602     fi
22603   fi
22604     else
22605       echo "configure: failed program was" >&5
22606       cat conftest.s >&5
22607     fi
22608     rm -f conftest.o conftest.s
22609   fi
22610 fi
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22612 $as_echo "$gcc_cv_as_leb128" >&6; }
22613 if test $gcc_cv_as_leb128 = yes; then
22614
22615 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22616
22617 fi
22618
22619 # Check if we have assembler support for unwind directives.
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22621 $as_echo_n "checking assembler for cfi directives... " >&6; }
22622 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22623   $as_echo_n "(cached) " >&6
22624 else
22625   gcc_cv_as_cfi_directive=no
22626   if test x$gcc_cv_as != x; then
22627     $as_echo '  .text
22628         .cfi_startproc
22629         .cfi_offset 0, 0
22630         .cfi_same_value 1
22631         .cfi_def_cfa 1, 2
22632         .cfi_escape 1, 2, 3, 4, 5
22633         .cfi_endproc' > conftest.s
22634     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22635   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22636   (eval $ac_try) 2>&5
22637   ac_status=$?
22638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22639   test $ac_status = 0; }; }
22640     then
22641         case "$target" in
22642   *-*-solaris*)
22643     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22644     # read-only and read-write sections, we need to make sure that the
22645     # assembler used emits read-write .eh_frame sections.
22646     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22647       if test "x$gcc_cv_objdump" != x; then
22648         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22649                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22650           gcc_cv_as_cfi_directive=no
22651         else
22652           case "$target" in
22653             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22654               # On Solaris/x86, make sure that GCC and gas agree on using
22655               # read-only .eh_frame sections for 64-bit.
22656               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22657                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22658                         sed -e /.eh_frame/!d -e N | \
22659                         grep READONLY > /dev/null; then
22660                 gcc_cv_as_cfi_directive=yes
22661               else
22662                 gcc_cv_as_cfi_directive=no
22663               fi
22664               ;;
22665             *)
22666               gcc_cv_as_cfi_directive=yes
22667               ;;
22668           esac
22669         fi
22670       else
22671         # no objdump, err on the side of caution
22672         gcc_cv_as_cfi_directive=no
22673       fi
22674     else
22675       gcc_cv_as_cfi_directive=yes
22676     fi
22677     ;;
22678   *-*-*)
22679     gcc_cv_as_cfi_directive=yes
22680     ;;
22681 esac
22682     else
22683       echo "configure: failed program was" >&5
22684       cat conftest.s >&5
22685     fi
22686     rm -f conftest.o conftest.s
22687   fi
22688 fi
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22690 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22691
22692 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22694 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22695 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22696   $as_echo_n "(cached) " >&6
22697 else
22698   gcc_cv_as_cfi_advance_working=no
22699   if test x$gcc_cv_as != x; then
22700     $as_echo '  .text
22701         .cfi_startproc
22702         .cfi_adjust_cfa_offset 64
22703         .skip 75040, 0
22704         .cfi_adjust_cfa_offset 128
22705         .cfi_endproc' > conftest.s
22706     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22707   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22708   (eval $ac_try) 2>&5
22709   ac_status=$?
22710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22711   test $ac_status = 0; }; }
22712     then
22713
22714 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22715     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22716    gcc_cv_as_cfi_advance_working=yes
22717 fi
22718
22719     else
22720       echo "configure: failed program was" >&5
22721       cat conftest.s >&5
22722     fi
22723     rm -f conftest.o conftest.s
22724   fi
22725 fi
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22727 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22728
22729 else
22730   # no objdump, err on the side of caution
22731   gcc_cv_as_cfi_advance_working=no
22732 fi
22733
22734
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22737        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22738 _ACEOF
22739
22740
22741
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22743 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22744 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22745   $as_echo_n "(cached) " >&6
22746 else
22747   gcc_cv_as_cfi_personality_directive=no
22748   if test x$gcc_cv_as != x; then
22749     $as_echo '  .text
22750         .cfi_startproc
22751         .cfi_personality 0, symbol
22752         .cfi_endproc' > conftest.s
22753     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22754   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22755   (eval $ac_try) 2>&5
22756   ac_status=$?
22757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22758   test $ac_status = 0; }; }
22759     then
22760         gcc_cv_as_cfi_personality_directive=yes
22761     else
22762       echo "configure: failed program was" >&5
22763       cat conftest.s >&5
22764     fi
22765     rm -f conftest.o conftest.s
22766   fi
22767 fi
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22769 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22770
22771
22772 cat >>confdefs.h <<_ACEOF
22773 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22774     then echo 1; else echo 0; fi`
22775 _ACEOF
22776
22777
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22779 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22780 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22781   $as_echo_n "(cached) " >&6
22782 else
22783   gcc_cv_as_cfi_sections_directive=no
22784   if test x$gcc_cv_as != x; then
22785     $as_echo '  .text
22786         .cfi_sections .debug_frame, .eh_frame
22787         .cfi_startproc
22788         .cfi_endproc' > conftest.s
22789     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22790   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22791   (eval $ac_try) 2>&5
22792   ac_status=$?
22793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22794   test $ac_status = 0; }; }
22795     then
22796         case $target_os in
22797   win32 | pe | cygwin* | mingw32* | uwin*)
22798     # Need to check that we generated the correct relocation for the
22799     # .debug_frame section.  This was fixed for binutils 2.21.
22800     gcc_cv_as_cfi_sections_directive=no
22801     if test "x$gcc_cv_objdump" != x; then
22802      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22803         grep secrel > /dev/null; then
22804       gcc_cv_as_cfi_sections_directive=yes
22805      fi
22806     fi
22807     ;;
22808   *)
22809     gcc_cv_as_cfi_sections_directive=yes
22810     ;;
22811 esac
22812     else
22813       echo "configure: failed program was" >&5
22814       cat conftest.s >&5
22815     fi
22816     rm -f conftest.o conftest.s
22817   fi
22818 fi
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22820 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22821
22822
22823
22824 cat >>confdefs.h <<_ACEOF
22825 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22826     then echo 1; else echo 0; fi`
22827 _ACEOF
22828
22829
22830 # GAS versions up to and including 2.11.0 may mis-optimize
22831 # .eh_frame data.
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22833 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22834 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22835   $as_echo_n "(cached) " >&6
22836 else
22837   gcc_cv_as_eh_frame=no
22838     if test $in_tree_gas = yes; then
22839     if test $in_tree_gas_is_elf = yes \
22840   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22841   then gcc_cv_as_eh_frame=yes
22842 fi
22843   elif test x$gcc_cv_as != x; then
22844     $as_echo '  .text
22845 .LFB1:
22846         .4byte  0
22847 .L1:
22848         .4byte  0
22849 .LFE1:
22850         .section        .eh_frame,"aw",@progbits
22851 __FRAME_BEGIN__:
22852         .4byte  .LECIE1-.LSCIE1
22853 .LSCIE1:
22854         .4byte  0x0
22855         .byte   0x1
22856         .ascii "z\0"
22857         .byte   0x1
22858         .byte   0x78
22859         .byte   0x1a
22860         .byte   0x0
22861         .byte   0x4
22862         .4byte  1
22863         .p2align 1
22864 .LECIE1:
22865 .LSFDE1:
22866         .4byte  .LEFDE1-.LASFDE1
22867 .LASFDE1:
22868         .4byte  .LASFDE1-__FRAME_BEGIN__
22869         .4byte  .LFB1
22870         .4byte  .LFE1-.LFB1
22871         .byte   0x4
22872         .4byte  .LFE1-.LFB1
22873         .byte   0x4
22874         .4byte  .L1-.LFB1
22875 .LEFDE1:' > conftest.s
22876     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22877   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22878   (eval $ac_try) 2>&5
22879   ac_status=$?
22880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22881   test $ac_status = 0; }; }
22882     then
22883           cat > conftest.lit <<EOF
22884  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22885  0010 01000000 12000000 18000000 00000000  ................
22886  0020 08000000 04080000 0044               .........D      
22887 EOF
22888 cat > conftest.big <<EOF
22889  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22890  0010 00000001 00000012 00000018 00000000  ................
22891  0020 00000008 04000000 0844               .........D      
22892 EOF
22893   # If the assembler didn't choke, and we can objdump,
22894   # and we got the correct data, then succeed.
22895   # The text in the here-document typically retains its unix-style line
22896   # endings, while the output of objdump will use host line endings.
22897   # Therefore, use diff -b for the comparisons.
22898   if test x$gcc_cv_objdump != x \
22899   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22900      | tail -3 > conftest.got \
22901   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22902     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22903   then
22904     gcc_cv_as_eh_frame=yes
22905   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907   (eval $ac_try) 2>&5
22908   ac_status=$?
22909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910   test $ac_status = 0; }; }; then
22911     gcc_cv_as_eh_frame=buggy
22912   else
22913     # Uh oh, what do we do now?
22914     gcc_cv_as_eh_frame=no
22915   fi
22916     else
22917       echo "configure: failed program was" >&5
22918       cat conftest.s >&5
22919     fi
22920     rm -f conftest.o conftest.s
22921   fi
22922 fi
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22924 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22925
22926
22927 if test $gcc_cv_as_eh_frame = buggy; then
22928
22929 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22930
22931 fi
22932
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22934 $as_echo_n "checking assembler for section merging support... " >&6; }
22935 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22936   $as_echo_n "(cached) " >&6
22937 else
22938   gcc_cv_as_shf_merge=no
22939     if test $in_tree_gas = yes; then
22940     if test $in_tree_gas_is_elf = yes \
22941   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22942   then gcc_cv_as_shf_merge=yes
22943 fi
22944   elif test x$gcc_cv_as != x; then
22945     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22946     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22947   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22948   (eval $ac_try) 2>&5
22949   ac_status=$?
22950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22951   test $ac_status = 0; }; }
22952     then
22953         gcc_cv_as_shf_merge=yes
22954     else
22955       echo "configure: failed program was" >&5
22956       cat conftest.s >&5
22957     fi
22958     rm -f conftest.o conftest.s
22959   fi
22960 fi
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22962 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22963
22964 if test $gcc_cv_as_shf_merge = no; then
22965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22966 $as_echo_n "checking assembler for section merging support... " >&6; }
22967 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22968   $as_echo_n "(cached) " >&6
22969 else
22970   gcc_cv_as_shf_merge=no
22971     if test $in_tree_gas = yes; then
22972     if test $in_tree_gas_is_elf = yes \
22973   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22974   then gcc_cv_as_shf_merge=yes
22975 fi
22976   elif test x$gcc_cv_as != x; then
22977     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22978     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22979   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22980   (eval $ac_try) 2>&5
22981   ac_status=$?
22982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22983   test $ac_status = 0; }; }
22984     then
22985         gcc_cv_as_shf_merge=yes
22986     else
22987       echo "configure: failed program was" >&5
22988       cat conftest.s >&5
22989     fi
22990     rm -f conftest.o conftest.s
22991   fi
22992 fi
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22994 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22995
22996 fi
22997
22998 cat >>confdefs.h <<_ACEOF
22999 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23000 _ACEOF
23001
23002
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23004 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23005 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23006   $as_echo_n "(cached) " >&6
23007 else
23008   gcc_cv_as_comdat_group=no
23009     if test $in_tree_gas = yes; then
23010     if test $in_tree_gas_is_elf = yes \
23011   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23012   then gcc_cv_as_comdat_group=yes
23013 fi
23014   elif test x$gcc_cv_as != x; then
23015     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23016     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23017   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23018   (eval $ac_try) 2>&5
23019   ac_status=$?
23020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23021   test $ac_status = 0; }; }
23022     then
23023         gcc_cv_as_comdat_group=yes
23024     else
23025       echo "configure: failed program was" >&5
23026       cat conftest.s >&5
23027     fi
23028     rm -f conftest.o conftest.s
23029   fi
23030 fi
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23032 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23033
23034 if test $gcc_cv_as_comdat_group = yes; then
23035   gcc_cv_as_comdat_group_percent=no
23036   gcc_cv_as_comdat_group_group=no
23037 else
23038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23039 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23040 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23041   $as_echo_n "(cached) " >&6
23042 else
23043   gcc_cv_as_comdat_group_percent=no
23044     if test $in_tree_gas = yes; then
23045     if test $in_tree_gas_is_elf = yes \
23046   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23047   then gcc_cv_as_comdat_group_percent=yes
23048 fi
23049   elif test x$gcc_cv_as != x; then
23050     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23051     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23052   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23053   (eval $ac_try) 2>&5
23054   ac_status=$?
23055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23056   test $ac_status = 0; }; }
23057     then
23058         gcc_cv_as_comdat_group_percent=yes
23059     else
23060       echo "configure: failed program was" >&5
23061       cat conftest.s >&5
23062     fi
23063     rm -f conftest.o conftest.s
23064   fi
23065 fi
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23067 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23068
23069  if test $gcc_cv_as_comdat_group_percent = yes; then
23070    gcc_cv_as_comdat_group_group=no
23071  else
23072    case "${target}" in
23073      # Sun as uses a completely different syntax.
23074      *-*-solaris2*)
23075        case "${target}" in
23076          sparc*-*-solaris2*)
23077            conftest_s='
23078                .group foo,".text%foo",#comdat
23079                .section ".text%foo", #alloc,#execinstr,#progbits
23080                .globl foo
23081              foo:
23082              '
23083            ;;
23084          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23085            conftest_s='
23086                .group foo,.text%foo,#comdat
23087                .section .text%foo, "ax", @progbits
23088                .globl  foo
23089              foo:
23090              '
23091            ;;
23092        esac
23093        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23094 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23095 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23096   $as_echo_n "(cached) " >&6
23097 else
23098   gcc_cv_as_comdat_group_group=no
23099   if test x$gcc_cv_as != x; then
23100     $as_echo "$conftest_s" > conftest.s
23101     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23102   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23103   (eval $ac_try) 2>&5
23104   ac_status=$?
23105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23106   test $ac_status = 0; }; }
23107     then
23108         gcc_cv_as_comdat_group_group=yes
23109     else
23110       echo "configure: failed program was" >&5
23111       cat conftest.s >&5
23112     fi
23113     rm -f conftest.o conftest.s
23114   fi
23115 fi
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23117 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23118
23119        ;;
23120    esac
23121  fi
23122 fi
23123 if test x"$ld_is_gold" = xyes; then
23124   comdat_group=yes
23125 elif test $in_tree_ld = yes ; then
23126   comdat_group=no
23127   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 \
23128      && test $in_tree_ld_is_elf = yes; then
23129      comdat_group=yes
23130   fi
23131 elif echo "$ld_ver" | grep GNU > /dev/null; then
23132   comdat_group=yes
23133   if test 0"$ld_date" -lt 20050308; then
23134     if test -n "$ld_date"; then
23135       # If there was date string, but was earlier than 2005-03-08, fail
23136       comdat_group=no
23137     elif test "$ld_vers_major" -lt 2; then
23138       comdat_group=no
23139     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23140       comdat_group=no
23141     fi
23142   fi
23143 else
23144   case "${target}" in
23145     *-*-solaris2.1[1-9]*)
23146       comdat_group=no
23147       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23148       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23149       # version 1.688.
23150       #
23151       # If using Sun as for COMDAT group as emitted by GCC, one needs at
23152       # least ld version 1.2267.
23153       if test "$ld_vers_major" -gt 1; then
23154         comdat_group=yes
23155       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23156         comdat_group=yes
23157       elif test "$ld_vers_minor" -ge 2267; then
23158         comdat_group=yes
23159       fi
23160       ;;
23161     *)
23162       # Assume linkers other than GNU ld don't support COMDAT group.
23163       comdat_group=no
23164       ;;
23165   esac
23166 fi
23167 # Allow overriding the automatic COMDAT group tests above.
23168 # Check whether --enable-comdat was given.
23169 if test "${enable_comdat+set}" = set; then :
23170   enableval=$enable_comdat; comdat_group="$enable_comdat"
23171 fi
23172
23173 if test $comdat_group = no; then
23174   gcc_cv_as_comdat_group=no
23175   gcc_cv_as_comdat_group_percent=no
23176   gcc_cv_as_comdat_group_group=no
23177 fi
23178
23179 cat >>confdefs.h <<_ACEOF
23180 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23181     || test $gcc_cv_as_comdat_group_percent = yes \
23182     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23183 _ACEOF
23184
23185
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23187 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23188 if test "${gcc_cv_as_discriminator+set}" = set; then :
23189   $as_echo_n "(cached) " >&6
23190 else
23191   gcc_cv_as_discriminator=no
23192     if test $in_tree_gas = yes; then
23193     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23194   then gcc_cv_as_discriminator=yes
23195 fi
23196   elif test x$gcc_cv_as != x; then
23197     $as_echo '  .text
23198         .file 1 "conf.c"
23199         .loc 1 1 0 discriminator 1' > conftest.s
23200     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23201   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23202   (eval $ac_try) 2>&5
23203   ac_status=$?
23204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23205   test $ac_status = 0; }; }
23206     then
23207         gcc_cv_as_discriminator=yes
23208     else
23209       echo "configure: failed program was" >&5
23210       cat conftest.s >&5
23211     fi
23212     rm -f conftest.o conftest.s
23213   fi
23214 fi
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23216 $as_echo "$gcc_cv_as_discriminator" >&6; }
23217 if test $gcc_cv_as_discriminator = yes; then
23218
23219 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23220
23221 fi
23222
23223 # Thread-local storage - the check is heavily parameterized.
23224 conftest_s=
23225 tls_first_major=
23226 tls_first_minor=
23227 tls_as_opt=
23228 case "$target" in
23229   alpha*-*-*)
23230     conftest_s='
23231         .section ".tdata","awT",@progbits
23232 foo:    .long   25
23233         .text
23234         ldq     $27,__tls_get_addr($29)         !literal!1
23235         lda     $16,foo($29)                    !tlsgd!1
23236         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23237         ldq     $27,__tls_get_addr($29)         !literal!2
23238         lda     $16,foo($29)                    !tlsldm!2
23239         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23240         ldq     $1,foo($29)                     !gotdtprel
23241         ldah    $2,foo($29)                     !dtprelhi
23242         lda     $3,foo($2)                      !dtprello
23243         lda     $4,foo($29)                     !dtprel
23244         ldq     $1,foo($29)                     !gottprel
23245         ldah    $2,foo($29)                     !tprelhi
23246         lda     $3,foo($2)                      !tprello
23247         lda     $4,foo($29)                     !tprel'
23248         tls_first_major=2
23249         tls_first_minor=13
23250         tls_as_opt=--fatal-warnings
23251         ;;
23252   cris-*-*|crisv32-*-*)
23253     conftest_s='
23254         .section ".tdata","awT",@progbits
23255 x:      .long   25
23256         .text
23257         move.d x:IE,$r10
23258         nop'
23259         tls_first_major=2
23260         tls_first_minor=20
23261         tls_as_opt=--fatal-warnings
23262         ;;
23263   frv*-*-*)
23264     conftest_s='
23265         .section ".tdata","awT",@progbits
23266 x:      .long   25
23267         .text
23268         call    #gettlsoff(x)'
23269         tls_first_major=2
23270         tls_first_minor=14
23271         ;;
23272   hppa*-*-linux*)
23273     conftest_s='
23274 t1:     .reg    %r20
23275 t2:     .reg    %r21
23276 gp:     .reg    %r19
23277         .section ".tdata","awT",@progbits
23278 foo:    .long   25
23279         .text
23280         .align  4
23281         addil LT%foo-$tls_gdidx$,gp
23282         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23283         b __tls_get_addr
23284         nop
23285         addil LT%foo-$tls_ldidx$,gp
23286         b __tls_get_addr
23287         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23288         addil LR%foo-$tls_dtpoff$,%ret0
23289         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23290         mfctl %cr27,%t1
23291         addil LT%foo-$tls_ieoff$,gp
23292         ldw RT%foo-$tls_ieoff$(%r1),%t2
23293         add %t1,%t2,%t3
23294         mfctl %cr27,%t1
23295         addil LR%foo-$tls_leoff$,%t1
23296         ldo RR%foo-$tls_leoff$(%r1),%t2'
23297         tls_first_major=2
23298         tls_first_minor=15
23299         tls_as_opt=--fatal-warnings
23300         ;;
23301   arm*-*-*)
23302     conftest_s='
23303         .section ".tdata","awT",%progbits
23304 foo:    .long   25
23305         .text
23306 .word foo(gottpoff)
23307 .word foo(tpoff)
23308 .word foo(tlsgd)
23309 .word foo(tlsldm)
23310 .word foo(tlsldo)'
23311         tls_first_major=2
23312         tls_first_minor=17
23313         ;;
23314   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23315     case "$target" in
23316       i[34567]86-*-solaris2.*)
23317         on_solaris=yes
23318         tga_func=___tls_get_addr
23319         ;;
23320       x86_64-*-solaris2.1[0-9]*)
23321         on_solaris=yes
23322         tga_func=__tls_get_addr
23323         ;;
23324       *)
23325         on_solaris=no
23326         ;;
23327     esac
23328     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23329       conftest_s='
23330         .section .tdata,"awt",@progbits'
23331       tls_first_major=0
23332       tls_first_minor=0
23333
23334 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23335
23336     else
23337       conftest_s='
23338         .section ".tdata","awT",@progbits'
23339       tls_first_major=2
23340       tls_first_minor=14
23341       tls_as_opt="--fatal-warnings"
23342     fi
23343     conftest_s="$conftest_s
23344 foo:    .long   25
23345         .text
23346         movl    %gs:0, %eax
23347         leal    foo@tlsgd(,%ebx,1), %eax
23348         leal    foo@tlsldm(%ebx), %eax
23349         leal    foo@dtpoff(%eax), %edx
23350         movl    foo@gottpoff(%ebx), %eax
23351         subl    foo@gottpoff(%ebx), %eax
23352         addl    foo@gotntpoff(%ebx), %eax
23353         movl    foo@indntpoff, %eax
23354         movl    \$foo@tpoff, %eax
23355         subl    \$foo@tpoff, %eax
23356         leal    foo@ntpoff(%ecx), %eax"
23357     ;;
23358   x86_64-*-*)
23359     conftest_s='
23360         .section ".tdata","awT",@progbits
23361 foo:    .long   25
23362         .text
23363         movq    %fs:0, %rax
23364         leaq    foo@TLSGD(%rip), %rdi
23365         leaq    foo@TLSLD(%rip), %rdi
23366         leaq    foo@DTPOFF(%rax), %rdx
23367         movq    foo@GOTTPOFF(%rip), %rax
23368         movq    $foo@TPOFF, %rax'
23369         tls_first_major=2
23370         tls_first_minor=14
23371         tls_as_opt=--fatal-warnings
23372         ;;
23373   ia64-*-*)
23374     conftest_s='
23375         .section ".tdata","awT",@progbits
23376 foo:    data8   25
23377         .text
23378         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23379         addl    r17 = @ltoff(@dtprel(foo#)), gp
23380         addl    r18 = @ltoff(@tprel(foo#)), gp
23381         addl    r19 = @dtprel(foo#), gp
23382         adds    r21 = @dtprel(foo#), r13
23383         movl    r23 = @dtprel(foo#)
23384         addl    r20 = @tprel(foo#), gp
23385         adds    r22 = @tprel(foo#), r13
23386         movl    r24 = @tprel(foo#)'
23387         tls_first_major=2
23388         tls_first_minor=13
23389         tls_as_opt=--fatal-warnings
23390         ;;
23391   mips*-*-*)
23392     conftest_s='
23393         .section .tdata,"awT",@progbits
23394 x:
23395         .word 2
23396         .text
23397         addiu $4, $28, %tlsgd(x)
23398         addiu $4, $28, %tlsldm(x)
23399         lui $4, %dtprel_hi(x)
23400         addiu $4, $4, %dtprel_lo(x)
23401         lw $4, %gottprel(x)($28)
23402         lui $4, %tprel_hi(x)
23403         addiu $4, $4, %tprel_lo(x)'
23404         tls_first_major=2
23405         tls_first_minor=16
23406         tls_as_opt='-32 --fatal-warnings'
23407         ;;
23408   m68k-*-*)
23409     conftest_s='
23410         .section .tdata,"awT",@progbits
23411 x:
23412         .word 2
23413         .text
23414 foo:
23415         move.l x@TLSGD(%a5),%a0
23416         move.l x@TLSLDM(%a5),%a0
23417         move.l x@TLSLDO(%a5),%a0
23418         move.l x@TLSIE(%a5),%a0
23419         move.l x@TLSLE(%a5),%a0'
23420         tls_first_major=2
23421         tls_first_minor=19
23422         tls_as_opt='--fatal-warnings'
23423         ;;
23424   powerpc-*-*)
23425     conftest_s='
23426         .section ".tdata","awT",@progbits
23427         .align 2
23428 ld0:    .space 4
23429 ld1:    .space 4
23430 x1:     .space 4
23431 x2:     .space 4
23432 x3:     .space 4
23433         .text
23434         addi 3,31,ld0@got@tlsgd
23435         bl __tls_get_addr
23436         addi 3,31,x1@got@tlsld
23437         bl __tls_get_addr
23438         addi 9,3,x1@dtprel
23439         addis 9,3,x2@dtprel@ha
23440         addi 9,9,x2@dtprel@l
23441         lwz 9,x3@got@tprel(31)
23442         add 9,9,x@tls
23443         addi 9,2,x1@tprel
23444         addis 9,2,x2@tprel@ha
23445         addi 9,9,x2@tprel@l'
23446         tls_first_major=2
23447         tls_first_minor=14
23448         tls_as_opt="-a32 --fatal-warnings"
23449         ;;
23450   powerpc64-*-*)
23451     conftest_s='
23452         .section ".tdata","awT",@progbits
23453         .align 3
23454 ld0:    .space 8
23455 ld1:    .space 8
23456 x1:     .space 8
23457 x2:     .space 8
23458 x3:     .space 8
23459         .text
23460         addi 3,2,ld0@got@tlsgd
23461         bl .__tls_get_addr
23462         nop
23463         addi 3,2,ld1@toc
23464         bl .__tls_get_addr
23465         nop
23466         addi 3,2,x1@got@tlsld
23467         bl .__tls_get_addr
23468         nop
23469         addi 9,3,x1@dtprel
23470         bl .__tls_get_addr
23471         nop
23472         addis 9,3,x2@dtprel@ha
23473         addi 9,9,x2@dtprel@l
23474         bl .__tls_get_addr
23475         nop
23476         ld 9,x3@got@dtprel(2)
23477         add 9,9,3
23478         bl .__tls_get_addr
23479         nop'
23480         tls_first_major=2
23481         tls_first_minor=14
23482         tls_as_opt="-a64 --fatal-warnings"
23483         ;;
23484   s390-*-*)
23485     conftest_s='
23486         .section ".tdata","awT",@progbits
23487 foo:    .long   25
23488         .text
23489         .long   foo@TLSGD
23490         .long   foo@TLSLDM
23491         .long   foo@DTPOFF
23492         .long   foo@NTPOFF
23493         .long   foo@GOTNTPOFF
23494         .long   foo@INDNTPOFF
23495         l       %r1,foo@GOTNTPOFF(%r12)
23496         l       %r1,0(%r1):tls_load:foo
23497         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23498         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23499         tls_first_major=2
23500         tls_first_minor=14
23501         tls_as_opt="-m31 --fatal-warnings"
23502         ;;
23503   s390x-*-*)
23504     conftest_s='
23505         .section ".tdata","awT",@progbits
23506 foo:    .long   25
23507         .text
23508         .quad   foo@TLSGD
23509         .quad   foo@TLSLDM
23510         .quad   foo@DTPOFF
23511         .quad   foo@NTPOFF
23512         .quad   foo@GOTNTPOFF
23513         lg      %r1,foo@GOTNTPOFF(%r12)
23514         larl    %r1,foo@INDNTPOFF
23515         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23516         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23517         tls_first_major=2
23518         tls_first_minor=14
23519         tls_as_opt="-m64 -Aesame --fatal-warnings"
23520         ;;
23521   sh-*-* | sh[34]-*-*)
23522     conftest_s='
23523         .section ".tdata","awT",@progbits
23524 foo:    .long   25
23525         .text
23526         .long   foo@TLSGD
23527         .long   foo@TLSLDM
23528         .long   foo@DTPOFF
23529         .long   foo@GOTTPOFF
23530         .long   foo@TPOFF'
23531         tls_first_major=2
23532         tls_first_minor=13
23533         tls_as_opt=--fatal-warnings
23534         ;;
23535   sparc*-*-*)
23536     case "$target" in
23537       sparc*-sun-solaris2.*)
23538         on_solaris=yes
23539         tga_func=__tls_get_addr
23540         ;;
23541       *)
23542         on_solaris=no
23543         ;;
23544     esac
23545     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23546       conftest_s='
23547         .section ".tdata",#alloc,#write,#tls'
23548         tls_first_major=0
23549         tls_first_minor=0
23550     else
23551       conftest_s='
23552         .section ".tdata","awT",@progbits'
23553         tls_first_major=2
23554         tls_first_minor=14
23555         tls_as_opt="-32 --fatal-warnings"
23556     fi
23557     conftest_s="$conftest_s
23558 foo:    .long   25
23559         .text
23560         sethi   %tgd_hi22(foo), %o0
23561         add     %o0, %tgd_lo10(foo), %o1
23562         add     %l7, %o1, %o0, %tgd_add(foo)
23563         call    __tls_get_addr, %tgd_call(foo)
23564         sethi   %tldm_hi22(foo), %l1
23565         add     %l1, %tldm_lo10(foo), %l2
23566         add     %l7, %l2, %o0, %tldm_add(foo)
23567         call    __tls_get_addr, %tldm_call(foo)
23568         sethi   %tldo_hix22(foo), %l3
23569         xor     %l3, %tldo_lox10(foo), %l4
23570         add     %o0, %l4, %l5, %tldo_add(foo)
23571         sethi   %tie_hi22(foo), %o3
23572         add     %o3, %tie_lo10(foo), %o3
23573         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23574         add     %g7, %o2, %o4, %tie_add(foo)
23575         sethi   %tle_hix22(foo), %l1
23576         xor     %l1, %tle_lox10(foo), %o5
23577         ld      [%g7 + %o5], %o1"
23578         ;;
23579   tilepro*-*-*)
23580       conftest_s='
23581         .section ".tdata","awT",@progbits
23582 foo:    .long   25
23583         .text
23584         addli   r0, zero, tls_gd(foo)
23585         auli    r0, zero, tls_gd_ha16(foo)
23586         addli   r0, r0, tls_gd_lo16(foo)
23587         jal     __tls_get_addr
23588         addli   r0, zero, tls_ie(foo)
23589         auli    r0, r0, tls_ie_ha16(foo)
23590         addli   r0, r0, tls_ie_lo16(foo)'
23591         tls_first_major=2
23592         tls_first_minor=22
23593         tls_as_opt="--fatal-warnings"
23594         ;;
23595   tilegx*-*-*)
23596       conftest_s='
23597         .section ".tdata","awT",@progbits
23598 foo:    .long   25
23599         .text
23600         shl16insli r0, zero, hw0_last_tls_gd(foo)
23601         shl16insli r0, zero, hw1_last_tls_gd(foo)
23602         shl16insli r0, r0,   hw0_tls_gd(foo)
23603         jal        __tls_get_addr
23604         shl16insli r0, zero, hw1_last_tls_ie(foo)
23605         shl16insli r0, r0,   hw0_tls_ie(foo)'
23606         tls_first_major=2
23607         tls_first_minor=22
23608         tls_as_opt="--fatal-warnings"
23609         ;;
23610   xtensa*-*-*)
23611     conftest_s='
23612         .section ".tdata","awT",@progbits
23613 foo:    .long   25
23614         .text
23615         movi    a8, foo@TLSFUNC
23616         movi    a10, foo@TLSARG
23617         callx8.tls a8, foo@TLSCALL'
23618         tls_first_major=2
23619         tls_first_minor=19
23620         ;;
23621 esac
23622 set_have_as_tls=no
23623 if test "x$enable_tls" = xno ; then
23624   : # TLS explicitly disabled.
23625 elif test "x$enable_tls" = xyes ; then
23626   set_have_as_tls=yes # TLS explicitly enabled.
23627 elif test -z "$tls_first_major"; then
23628   : # If we don't have a check, assume no support.
23629 else
23630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23631 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23632 if test "${gcc_cv_as_tls+set}" = set; then :
23633   $as_echo_n "(cached) " >&6
23634 else
23635   gcc_cv_as_tls=no
23636     if test $in_tree_gas = yes; then
23637     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23638   then gcc_cv_as_tls=yes
23639 fi
23640   elif test x$gcc_cv_as != x; then
23641     $as_echo "$conftest_s" > conftest.s
23642     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23643   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23644   (eval $ac_try) 2>&5
23645   ac_status=$?
23646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23647   test $ac_status = 0; }; }
23648     then
23649         gcc_cv_as_tls=yes
23650     else
23651       echo "configure: failed program was" >&5
23652       cat conftest.s >&5
23653     fi
23654     rm -f conftest.o conftest.s
23655   fi
23656 fi
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23658 $as_echo "$gcc_cv_as_tls" >&6; }
23659 if test $gcc_cv_as_tls = yes; then
23660   set_have_as_tls=yes
23661 fi
23662 fi
23663 case "$target" in
23664   *-*-irix6*)
23665     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23666     # with TLS support are in use, native TLS cannot work.
23667     set_have_as_tls=no
23668     ;;
23669   *-*-osf*)
23670     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23671     # gld with TLS support are in use, native TLS cannot work.
23672     set_have_as_tls=no
23673     ;;
23674   # TLS was introduced in the Solaris 9 FCS release and backported to
23675   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23676   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23677   # ld and GCC don't support any longer.
23678   *-*-solaris2.*)
23679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23680 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23681     ld_tls_support=no
23682     # Check ld and ld.so.1 TLS support.
23683     if echo "$ld_ver" | grep GNU > /dev/null; then
23684       # Assume all interesting versions of GNU ld have TLS support.
23685       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23686       ld_tls_support=yes
23687     else
23688       case "$target" in
23689         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23690         i?86-*-solaris2.8)
23691           min_tls_ld_vers_minor=280
23692           ;;
23693         # Solaris 8/SPARC ld has TLS support since version 1.272.
23694         sparc*-*-solaris2.8)
23695           min_tls_ld_vers_minor=272
23696           ;;
23697         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23698         i?86-*-solaris2.9)
23699           min_tls_ld_vers_minor=374
23700           ;;
23701         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23702         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23703           min_tls_ld_vers_minor=343
23704           ;;
23705       esac
23706       if test "$ld_vers_major" -gt 1 || \
23707         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23708         ld_tls_support=yes
23709       else
23710         set_have_as_tls=no
23711       fi
23712     fi
23713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23714 $as_echo "$ld_tls_support" >&6; }
23715
23716     save_LIBS="$LIBS"
23717     save_LDFLAGS="$LDFLAGS"
23718     LIBS=
23719     LDFLAGS=
23720
23721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23722 $as_echo_n "checking alternate thread library... " >&6; }
23723     case "$target" in
23724       # TLS support was backported to Solaris 8 patches, but only lives in
23725       # the alternate thread library which became the default in Solaris 9.
23726       # We want to always use that, irrespective of TLS support.
23727       *-*-solaris2.8)
23728         # Take multilib subdir into account.  There's no spec to handle
23729         # this.  The 64 symlink exists since Solaris 8.
23730         lwp_dir=/usr/lib/lwp
23731         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23732         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23733         ;;
23734       *-*-solaris2*)
23735         lwp_dir="none"
23736         lwp_spec=""
23737         ;;
23738     esac
23739     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23740
23741 cat >>confdefs.h <<_ACEOF
23742 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23743 _ACEOF
23744
23745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23746 $as_echo "$lwp_dir" >&6; }
23747
23748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23749 $as_echo_n "checking library containing $tga_func... " >&6; }
23750     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23751     # (32-bit x86) only lived in libthread, so check for that.  Keep
23752     # set_have_as_tls if found, disable if not.
23753     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23755 $as_echo_n "checking for library containing $tga_func... " >&6; }
23756 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23757   $as_echo_n "(cached) " >&6
23758 else
23759   ac_func_search_save_LIBS=$LIBS
23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761 /* end confdefs.h.  */
23762
23763 /* Override any GCC internal prototype to avoid an error.
23764    Use char because int might match the return type of a GCC
23765    builtin and then its argument prototype would still apply.  */
23766 #ifdef __cplusplus
23767 extern "C"
23768 #endif
23769 char $tga_func ();
23770 int
23771 main ()
23772 {
23773 return $tga_func ();
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 for ac_lib in '' thread; do
23779   if test -z "$ac_lib"; then
23780     ac_res="none required"
23781   else
23782     ac_res=-l$ac_lib
23783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23784   fi
23785   if ac_fn_c_try_link "$LINENO"; then :
23786   eval "$as_ac_Search=\$ac_res"
23787 fi
23788 rm -f core conftest.err conftest.$ac_objext \
23789     conftest$ac_exeext
23790   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23791   break
23792 fi
23793 done
23794 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23795
23796 else
23797   eval "$as_ac_Search=no"
23798 fi
23799 rm conftest.$ac_ext
23800 LIBS=$ac_func_search_save_LIBS
23801 fi
23802 eval ac_res=\$$as_ac_Search
23803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23804 $as_echo "$ac_res" >&6; }
23805 eval ac_res=\$$as_ac_Search
23806 if test "$ac_res" != no; then :
23807   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23808
23809 else
23810   set_have_as_tls=no
23811 fi
23812
23813     # Clear LIBS if we cannot support TLS.
23814     if test $set_have_as_tls = no; then
23815       LIBS=
23816     fi
23817     # Even without TLS support on Solaris 8, explicitly link with libthread
23818     # to guarantee that the alternate thread library is used.
23819     case "$target" in
23820       *-*-solaris2.8)
23821         LIBS=-lthread
23822         ;;
23823     esac
23824     # Always define LIB_TLS_SPEC, even without TLS support.
23825
23826 cat >>confdefs.h <<_ACEOF
23827 #define LIB_TLS_SPEC "$LIBS"
23828 _ACEOF
23829
23830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23831 $as_echo "$LIBS" >&6; }
23832
23833     LIBS="$save_LIBS"
23834     LDFLAGS="$save_LDFLAGS"
23835     ;;
23836 esac
23837 if test $set_have_as_tls = yes ; then
23838
23839 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23840
23841 fi
23842
23843 # Target-specific assembler checks.
23844
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23846 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23847 gcc_cv_ld_static_dynamic=no
23848 gcc_cv_ld_static_option='-Bstatic'
23849 gcc_cv_ld_dynamic_option='-Bdynamic'
23850 if test $in_tree_ld = yes ; then
23851   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
23852     gcc_cv_ld_static_dynamic=yes
23853   fi
23854 elif test x$gcc_cv_ld != x; then
23855   # Check if linker supports -Bstatic/-Bdynamic option
23856   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23857      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23858       gcc_cv_ld_static_dynamic=yes
23859   else
23860     case "$target" in
23861       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23862       alpha*-dec-osf*)
23863         gcc_cv_ld_static_dynamic=yes
23864         gcc_cv_ld_static_option="-noso"
23865         gcc_cv_ld_dynamic_option="-so_archive"
23866         ;;
23867       # HP-UX ld uses -a flags to select between shared and archive.
23868       *-*-hpux*)
23869         if test x"$gnu_ld" = xno; then
23870           gcc_cv_ld_static_dynamic=yes
23871           gcc_cv_ld_static_option="-aarchive_shared"
23872           gcc_cv_ld_dynamic_option="-adefault"
23873         fi
23874         ;;
23875       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23876       mips-sgi-irix6*)
23877         gcc_cv_ld_static_dynamic=yes
23878         ;;
23879       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23880       *-*-solaris2*)
23881         gcc_cv_ld_static_dynamic=yes
23882         ;;
23883     esac
23884   fi
23885 fi
23886 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23887
23888 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23889
23890
23891 cat >>confdefs.h <<_ACEOF
23892 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23893 _ACEOF
23894
23895
23896 cat >>confdefs.h <<_ACEOF
23897 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23898 _ACEOF
23899
23900 fi
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23902 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23903
23904 if test x"$demangler_in_ld" = xyes; then
23905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23906 $as_echo_n "checking linker --demangle support... " >&6; }
23907   gcc_cv_ld_demangle=no
23908   if test $in_tree_ld = yes; then
23909     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 \
23910       gcc_cv_ld_demangle=yes
23911     fi
23912   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23913     # Check if the GNU linker supports --demangle option
23914     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23915       gcc_cv_ld_demangle=yes
23916     fi
23917   fi
23918   if test x"$gcc_cv_ld_demangle" = xyes; then
23919
23920 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23921
23922   fi
23923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23924 $as_echo "$gcc_cv_ld_demangle" >&6; }
23925 fi
23926
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23928 $as_echo_n "checking linker plugin support... " >&6; }
23929 gcc_cv_lto_plugin=0
23930 if test -f liblto_plugin.la; then
23931   save_ld_ver="$ld_ver"
23932   save_ld_vers_major="$ld_vers_major"
23933   save_ld_vers_minor="$ld_vers_minor"
23934   save_ld_is_gold="$ld_is_gold"
23935
23936   ld_is_gold=no
23937
23938   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23939     ld_ver="GNU ld"
23940     # FIXME: ld_is_gold?
23941     ld_vers_major="$gcc_cv_gld_major_version"
23942     ld_vers_minor="$gcc_cv_gld_minor_version"
23943   else
23944     # Determine plugin linker version.
23945     # FIXME: Partial duplicate from above, generalize.
23946     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23947     if echo "$ld_ver" | grep GNU > /dev/null; then
23948       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23949         ld_is_gold=yes
23950         ld_vers=`echo $ld_ver | sed -n \
23951             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23952       else
23953         ld_vers=`echo $ld_ver | sed -n \
23954             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23955       fi
23956       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23957       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23958     fi
23959   fi
23960
23961   # Determine plugin support.
23962   if echo "$ld_ver" | grep GNU > /dev/null; then
23963     # Require GNU ld or gold 2.21+ for plugin support by default.
23964     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23965       gcc_cv_lto_plugin=2
23966     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23967     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23968       gcc_cv_lto_plugin=1
23969     fi
23970   fi
23971
23972   ld_ver="$save_ld_ver"
23973   ld_vers_major="$save_ld_vers_major"
23974   ld_vers_minor="$save_ld_vers_minor"
23975   ld_is_gold="$save_ld_is_gold"
23976 fi
23977
23978 cat >>confdefs.h <<_ACEOF
23979 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23980 _ACEOF
23981
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23983 $as_echo "$gcc_cv_lto_plugin" >&6; }
23984
23985 case "$target" in
23986   # All TARGET_ABI_OSF targets.
23987   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23989 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23990 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23991   $as_echo_n "(cached) " >&6
23992 else
23993   gcc_cv_as_alpha_explicit_relocs=no
23994     if test $in_tree_gas = yes; then
23995     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23996   then gcc_cv_as_alpha_explicit_relocs=yes
23997 fi
23998   elif test x$gcc_cv_as != x; then
23999     $as_echo '  .set nomacro
24000         .text
24001         extbl   $3, $2, $3      !lituse_bytoff!1
24002         ldq     $2, a($29)      !literal!1
24003         ldq     $4, b($29)      !literal!2
24004         ldq_u   $3, 0($2)       !lituse_base!1
24005         ldq     $27, f($29)     !literal!5
24006         jsr     $26, ($27), f   !lituse_jsr!5
24007         ldah    $29, 0($26)     !gpdisp!3
24008         lda     $0, c($29)      !gprel
24009         ldah    $1, d($29)      !gprelhigh
24010         lda     $1, d($1)       !gprellow
24011         lda     $29, 0($29)     !gpdisp!3' > conftest.s
24012     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24013   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014   (eval $ac_try) 2>&5
24015   ac_status=$?
24016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017   test $ac_status = 0; }; }
24018     then
24019         gcc_cv_as_alpha_explicit_relocs=yes
24020     else
24021       echo "configure: failed program was" >&5
24022       cat conftest.s >&5
24023     fi
24024     rm -f conftest.o conftest.s
24025   fi
24026 fi
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24028 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24029 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24030
24031 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24032
24033 fi
24034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24035 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24036 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24037   $as_echo_n "(cached) " >&6
24038 else
24039   gcc_cv_as_alpha_jsrdirect_relocs=no
24040     if test $in_tree_gas = yes; then
24041     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24042   then gcc_cv_as_alpha_jsrdirect_relocs=yes
24043 fi
24044   elif test x$gcc_cv_as != x; then
24045     $as_echo '  .set nomacro
24046         .text
24047         ldq     $27, a($29)     !literal!1
24048         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
24049     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -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_alpha_jsrdirect_relocs=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_alpha_jsrdirect_relocs" >&5
24065 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24066 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24067
24068 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24069
24070 fi
24071     ;;
24072
24073   cris-*-*)
24074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24075 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24076 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24077   $as_echo_n "(cached) " >&6
24078 else
24079   gcc_cv_as_cris_no_mul_bug=no
24080     if test $in_tree_gas = yes; then
24081     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24082   then gcc_cv_as_cris_no_mul_bug=yes
24083 fi
24084   elif test x$gcc_cv_as != x; then
24085     $as_echo '.text' > conftest.s
24086     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24087   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24088   (eval $ac_try) 2>&5
24089   ac_status=$?
24090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24091   test $ac_status = 0; }; }
24092     then
24093         gcc_cv_as_cris_no_mul_bug=yes
24094     else
24095       echo "configure: failed program was" >&5
24096       cat conftest.s >&5
24097     fi
24098     rm -f conftest.o conftest.s
24099   fi
24100 fi
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24102 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24103 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24104
24105 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24106
24107 fi
24108     ;;
24109
24110   sparc*-*-*)
24111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24112 $as_echo_n "checking assembler for .register... " >&6; }
24113 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24114   $as_echo_n "(cached) " >&6
24115 else
24116   gcc_cv_as_sparc_register_op=no
24117   if test x$gcc_cv_as != x; then
24118     $as_echo '.register %g2, #scratch' > conftest.s
24119     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24120   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24121   (eval $ac_try) 2>&5
24122   ac_status=$?
24123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124   test $ac_status = 0; }; }
24125     then
24126         gcc_cv_as_sparc_register_op=yes
24127     else
24128       echo "configure: failed program was" >&5
24129       cat conftest.s >&5
24130     fi
24131     rm -f conftest.o conftest.s
24132   fi
24133 fi
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24135 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24136 if test $gcc_cv_as_sparc_register_op = yes; then
24137
24138 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24139
24140 fi
24141
24142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24143 $as_echo_n "checking assembler for -relax option... " >&6; }
24144 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24145   $as_echo_n "(cached) " >&6
24146 else
24147   gcc_cv_as_sparc_relax=no
24148   if test x$gcc_cv_as != x; then
24149     $as_echo '.text' > conftest.s
24150     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24151   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152   (eval $ac_try) 2>&5
24153   ac_status=$?
24154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155   test $ac_status = 0; }; }
24156     then
24157         gcc_cv_as_sparc_relax=yes
24158     else
24159       echo "configure: failed program was" >&5
24160       cat conftest.s >&5
24161     fi
24162     rm -f conftest.o conftest.s
24163   fi
24164 fi
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24166 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24167 if test $gcc_cv_as_sparc_relax = yes; then
24168
24169 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24170
24171 fi
24172
24173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24174 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24175 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24176   $as_echo_n "(cached) " >&6
24177 else
24178   gcc_cv_as_sparc_gotdata_op=no
24179   if test x$gcc_cv_as != x; then
24180     $as_echo '.text
24181 .align 4
24182 foo:
24183         nop
24184 bar:
24185         sethi %gdop_hix22(foo), %g1
24186         xor    %g1, %gdop_lox10(foo), %g1
24187         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24188     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24189   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24190   (eval $ac_try) 2>&5
24191   ac_status=$?
24192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24193   test $ac_status = 0; }; }
24194     then
24195         if test x$gcc_cv_ld != x \
24196        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24197          if test x$gcc_cv_objdump != x; then
24198            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24199               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24200                gcc_cv_as_sparc_gotdata_op=no
24201            else
24202                gcc_cv_as_sparc_gotdata_op=yes
24203            fi
24204          fi
24205        fi
24206        rm -f conftest
24207     else
24208       echo "configure: failed program was" >&5
24209       cat conftest.s >&5
24210     fi
24211     rm -f conftest.o conftest.s
24212   fi
24213 fi
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24215 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24216 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24217
24218 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24219
24220 fi
24221
24222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24223 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24224 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24225   $as_echo_n "(cached) " >&6
24226 else
24227   gcc_cv_as_sparc_ua_pcrel=no
24228   if test x$gcc_cv_as != x; then
24229     $as_echo '.text
24230 foo:
24231         nop
24232 .data
24233 .align 4
24234 .byte 0
24235 .uaword %r_disp32(foo)' > conftest.s
24236     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24237   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24238   (eval $ac_try) 2>&5
24239   ac_status=$?
24240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24241   test $ac_status = 0; }; }
24242     then
24243         if test x$gcc_cv_ld != x \
24244        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24245          gcc_cv_as_sparc_ua_pcrel=yes
24246        fi
24247        rm -f conftest
24248     else
24249       echo "configure: failed program was" >&5
24250       cat conftest.s >&5
24251     fi
24252     rm -f conftest.o conftest.s
24253   fi
24254 fi
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24256 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24257 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24258
24259 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24260
24261
24262       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24263 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24264 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24265   $as_echo_n "(cached) " >&6
24266 else
24267   gcc_cv_as_sparc_ua_pcrel_hidden=no
24268   if test x$gcc_cv_as != x; then
24269     $as_echo '.data
24270 .align 4
24271 .byte 0x31
24272 .uaword %r_disp32(foo)
24273 .byte 0x32, 0x33, 0x34
24274 .global foo
24275 .hidden foo
24276 foo:
24277 .skip 4' > conftest.s
24278     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24279   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24280   (eval $ac_try) 2>&5
24281   ac_status=$?
24282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24283   test $ac_status = 0; }; }
24284     then
24285         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24286          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24287          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24288             | grep ' 31000000 07323334' > /dev/null 2>&1; then
24289             if $gcc_cv_objdump -R conftest 2> /dev/null \
24290                | grep 'DISP32' > /dev/null 2>&1; then
24291                 :
24292             else
24293                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24294             fi
24295          fi
24296          rm -f conftest
24297     else
24298       echo "configure: failed program was" >&5
24299       cat conftest.s >&5
24300     fi
24301     rm -f conftest.o conftest.s
24302   fi
24303 fi
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24305 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24306 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24307
24308 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24309
24310 fi
24311
24312 fi # unaligned pcrel relocs
24313
24314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24315 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24316 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24317   $as_echo_n "(cached) " >&6
24318 else
24319   gcc_cv_as_sparc_offsetable_lo10=no
24320   if test x$gcc_cv_as != x; then
24321     $as_echo '.text
24322         or %g1, %lo(ab) + 12, %g1
24323         or %g1, %lo(ab + 12), %g1' > conftest.s
24324     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24325   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24326   (eval $ac_try) 2>&5
24327   ac_status=$?
24328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24329   test $ac_status = 0; }; }
24330     then
24331         if test x$gcc_cv_objdump != x \
24332        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24333           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24334          gcc_cv_as_sparc_offsetable_lo10=yes
24335        fi
24336     else
24337       echo "configure: failed program was" >&5
24338       cat conftest.s >&5
24339     fi
24340     rm -f conftest.o conftest.s
24341   fi
24342 fi
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24344 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24345 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24346
24347 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24348
24349 fi
24350
24351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24352 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24353 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24354   $as_echo_n "(cached) " >&6
24355 else
24356   gcc_cv_as_sparc_fmaf=no
24357   if test x$gcc_cv_as != x; then
24358     $as_echo '.text
24359        .register %g2, #scratch
24360        .register %g3, #scratch
24361        .align 4
24362        fmaddd %f0, %f2, %f4, %f6
24363        addxccc %g1, %g2, %g3
24364        fsrl32 %f2, %f4, %f8
24365        fnaddd %f10, %f12, %f14' > conftest.s
24366     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24367   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24368   (eval $ac_try) 2>&5
24369   ac_status=$?
24370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24371   test $ac_status = 0; }; }
24372     then
24373         gcc_cv_as_sparc_fmaf=yes
24374     else
24375       echo "configure: failed program was" >&5
24376       cat conftest.s >&5
24377     fi
24378     rm -f conftest.o conftest.s
24379   fi
24380 fi
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24382 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24383 if test $gcc_cv_as_sparc_fmaf = yes; then
24384
24385 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24386
24387 fi
24388     ;;
24389
24390   i[34567]86-*-* | x86_64-*-*)
24391     case $target_os in
24392       cygwin*)
24393         # Full C++ conformance when using a shared libstdc++-v3 requires some
24394         # support from the Cygwin DLL, which in more recent versions exports
24395         # wrappers to aid in interposing and redirecting operators new, delete,
24396         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24397         # are configuring for a version of Cygwin that exports the wrappers.
24398         if test x$host = x$target; then
24399           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24400 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24401   gcc_ac_cygwin_dll_wrappers=yes
24402 else
24403   gcc_ac_cygwin_dll_wrappers=no
24404 fi
24405
24406         else
24407           # Can't check presence of libc functions during cross-compile, so
24408           # we just have to assume we're building for an up-to-date target.
24409           gcc_ac_cygwin_dll_wrappers=yes
24410         fi
24411
24412 cat >>confdefs.h <<_ACEOF
24413 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24414 _ACEOF
24415
24416     esac
24417     case $target_os in
24418       cygwin* | pe | mingw32* | interix*)
24419         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24420         # definition is used unconditionally to initialise the default state of
24421         # the target option variable that governs usage of the feature.
24422         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24423 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24424 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24425   $as_echo_n "(cached) " >&6
24426 else
24427   gcc_cv_as_comm_has_align=no
24428     if test $in_tree_gas = yes; then
24429     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24430   then gcc_cv_as_comm_has_align=yes
24431 fi
24432   elif test x$gcc_cv_as != x; then
24433     $as_echo '.comm foo,1,32' > conftest.s
24434     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24435   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24436   (eval $ac_try) 2>&5
24437   ac_status=$?
24438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24439   test $ac_status = 0; }; }
24440     then
24441         gcc_cv_as_comm_has_align=yes
24442     else
24443       echo "configure: failed program was" >&5
24444       cat conftest.s >&5
24445     fi
24446     rm -f conftest.o conftest.s
24447   fi
24448 fi
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24450 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24451
24452
24453 cat >>confdefs.h <<_ACEOF
24454 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24455 _ACEOF
24456
24457         # Used for DWARF 2 in PE
24458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24459 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24460 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24461   $as_echo_n "(cached) " >&6
24462 else
24463   gcc_cv_as_ix86_pe_secrel32=no
24464     if test $in_tree_gas = yes; then
24465     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24466   then gcc_cv_as_ix86_pe_secrel32=yes
24467 fi
24468   elif test x$gcc_cv_as != x; then
24469     $as_echo '.text
24470 foo:    nop
24471 .data
24472         .secrel32 foo' > conftest.s
24473     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24474   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24475   (eval $ac_try) 2>&5
24476   ac_status=$?
24477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24478   test $ac_status = 0; }; }
24479     then
24480         if test x$gcc_cv_ld != x \
24481            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24482              gcc_cv_as_ix86_pe_secrel32=yes
24483            fi
24484            rm -f conftest
24485     else
24486       echo "configure: failed program was" >&5
24487       cat conftest.s >&5
24488     fi
24489     rm -f conftest.o conftest.s
24490   fi
24491 fi
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24493 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24494 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24495
24496 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24497
24498 fi
24499         # Test if the assembler supports the extended form of the .section
24500         # directive that specifies section alignment.  LTO support uses this,
24501         # but normally only after installation, so we warn but don't fail the
24502         # configure if LTO is enabled but the assembler does not support it.
24503         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24504 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24505 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24506   $as_echo_n "(cached) " >&6
24507 else
24508   gcc_cv_as_section_has_align=no
24509     if test $in_tree_gas = yes; then
24510     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24511   then gcc_cv_as_section_has_align=yes
24512 fi
24513   elif test x$gcc_cv_as != x; then
24514     $as_echo '.section lto_test,"dr0"' > conftest.s
24515     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24516   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517   (eval $ac_try) 2>&5
24518   ac_status=$?
24519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520   test $ac_status = 0; }; }
24521     then
24522         gcc_cv_as_section_has_align=yes
24523     else
24524       echo "configure: failed program was" >&5
24525       cat conftest.s >&5
24526     fi
24527     rm -f conftest.o conftest.s
24528   fi
24529 fi
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24531 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24532
24533         if test x$gcc_cv_as_section_has_align != xyes; then
24534           case ",$enable_languages," in
24535             *,lto,*)
24536               { $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
24537 $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;}
24538               ;;
24539           esac
24540         fi
24541         # Test if the assembler supports the section flag 'e' for specifying
24542         # an excluded section.
24543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24544 $as_echo_n "checking assembler for .section with e... " >&6; }
24545 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24546   $as_echo_n "(cached) " >&6
24547 else
24548   gcc_cv_as_section_has_e=no
24549     if test $in_tree_gas = yes; then
24550     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24551   then gcc_cv_as_section_has_e=yes
24552 fi
24553   elif test x$gcc_cv_as != x; then
24554     $as_echo '.section foo1,"e"
24555 .byte 0,0,0,0' > conftest.s
24556     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24557   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558   (eval $ac_try) 2>&5
24559   ac_status=$?
24560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561   test $ac_status = 0; }; }
24562     then
24563         gcc_cv_as_section_has_e=yes
24564     else
24565       echo "configure: failed program was" >&5
24566       cat conftest.s >&5
24567     fi
24568     rm -f conftest.o conftest.s
24569   fi
24570 fi
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24572 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24573
24574
24575 cat >>confdefs.h <<_ACEOF
24576 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24577 _ACEOF
24578
24579         ;;
24580     esac
24581
24582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24583 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24584 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24585   $as_echo_n "(cached) " >&6
24586 else
24587   gcc_cv_as_ix86_filds=no
24588   if test x$gcc_cv_as != x; then
24589     $as_echo 'filds mem; fists mem' > conftest.s
24590     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24591   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24592   (eval $ac_try) 2>&5
24593   ac_status=$?
24594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24595   test $ac_status = 0; }; }
24596     then
24597         gcc_cv_as_ix86_filds=yes
24598     else
24599       echo "configure: failed program was" >&5
24600       cat conftest.s >&5
24601     fi
24602     rm -f conftest.o conftest.s
24603   fi
24604 fi
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24606 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24607 if test $gcc_cv_as_ix86_filds = yes; then
24608
24609 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24610
24611 fi
24612
24613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24614 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24615 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24616   $as_echo_n "(cached) " >&6
24617 else
24618   gcc_cv_as_ix86_fildq=no
24619   if test x$gcc_cv_as != x; then
24620     $as_echo 'fildq mem; fistpq mem' > conftest.s
24621     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24622   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623   (eval $ac_try) 2>&5
24624   ac_status=$?
24625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626   test $ac_status = 0; }; }
24627     then
24628         gcc_cv_as_ix86_fildq=yes
24629     else
24630       echo "configure: failed program was" >&5
24631       cat conftest.s >&5
24632     fi
24633     rm -f conftest.o conftest.s
24634   fi
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24637 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24638 if test $gcc_cv_as_ix86_fildq = yes; then
24639
24640 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24641
24642 fi
24643
24644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24645 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24646 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24647   $as_echo_n "(cached) " >&6
24648 else
24649   gcc_cv_as_ix86_cmov_sun_syntax=no
24650   if test x$gcc_cv_as != x; then
24651     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24652     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24653   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24654   (eval $ac_try) 2>&5
24655   ac_status=$?
24656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24657   test $ac_status = 0; }; }
24658     then
24659         gcc_cv_as_ix86_cmov_sun_syntax=yes
24660     else
24661       echo "configure: failed program was" >&5
24662       cat conftest.s >&5
24663     fi
24664     rm -f conftest.o conftest.s
24665   fi
24666 fi
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24668 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24669 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24670
24671 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24672
24673 fi
24674
24675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24676 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24677 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24678   $as_echo_n "(cached) " >&6
24679 else
24680   gcc_cv_as_ix86_ffreep=no
24681   if test x$gcc_cv_as != x; then
24682     $as_echo 'ffreep %st(1)' > conftest.s
24683     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24684   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24685   (eval $ac_try) 2>&5
24686   ac_status=$?
24687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24688   test $ac_status = 0; }; }
24689     then
24690         gcc_cv_as_ix86_ffreep=yes
24691     else
24692       echo "configure: failed program was" >&5
24693       cat conftest.s >&5
24694     fi
24695     rm -f conftest.o conftest.s
24696   fi
24697 fi
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24699 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24700 if test $gcc_cv_as_ix86_ffreep = yes; then
24701
24702 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24703
24704 fi
24705
24706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24707 $as_echo_n "checking assembler for .quad directive... " >&6; }
24708 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24709   $as_echo_n "(cached) " >&6
24710 else
24711   gcc_cv_as_ix86_quad=no
24712   if test x$gcc_cv_as != x; then
24713     $as_echo '.quad 0' > conftest.s
24714     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24715   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24716   (eval $ac_try) 2>&5
24717   ac_status=$?
24718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24719   test $ac_status = 0; }; }
24720     then
24721         gcc_cv_as_ix86_quad=yes
24722     else
24723       echo "configure: failed program was" >&5
24724       cat conftest.s >&5
24725     fi
24726     rm -f conftest.o conftest.s
24727   fi
24728 fi
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24730 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24731 if test $gcc_cv_as_ix86_quad = yes; then
24732
24733 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24734
24735 fi
24736
24737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24738 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24739 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24740   $as_echo_n "(cached) " >&6
24741 else
24742   gcc_cv_as_ix86_sahf=no
24743   if test x$gcc_cv_as != x; then
24744     $as_echo '.code64
24745        sahf' > conftest.s
24746     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24747   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748   (eval $ac_try) 2>&5
24749   ac_status=$?
24750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751   test $ac_status = 0; }; }
24752     then
24753         gcc_cv_as_ix86_sahf=yes
24754     else
24755       echo "configure: failed program was" >&5
24756       cat conftest.s >&5
24757     fi
24758     rm -f conftest.o conftest.s
24759   fi
24760 fi
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24762 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24763 if test $gcc_cv_as_ix86_sahf = yes; then
24764
24765 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24766
24767 fi
24768
24769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24770 $as_echo_n "checking assembler for swap suffix... " >&6; }
24771 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24772   $as_echo_n "(cached) " >&6
24773 else
24774   gcc_cv_as_ix86_swap=no
24775   if test x$gcc_cv_as != x; then
24776     $as_echo 'movl.s %esp, %ebp' > conftest.s
24777     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24778   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24779   (eval $ac_try) 2>&5
24780   ac_status=$?
24781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24782   test $ac_status = 0; }; }
24783     then
24784         gcc_cv_as_ix86_swap=yes
24785     else
24786       echo "configure: failed program was" >&5
24787       cat conftest.s >&5
24788     fi
24789     rm -f conftest.o conftest.s
24790   fi
24791 fi
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24793 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24794 if test $gcc_cv_as_ix86_swap = yes; then
24795
24796 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24797
24798 fi
24799
24800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24801 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24802 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24803   $as_echo_n "(cached) " >&6
24804 else
24805   gcc_cv_as_ix86_diff_sect_delta=no
24806   if test x$gcc_cv_as != x; then
24807     $as_echo '.section .rodata
24808 .L1:
24809         .long .L2-.L1
24810         .long .L3-.L1
24811         .text
24812 .L3:    nop
24813 .L2:    nop' > conftest.s
24814     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24815   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24816   (eval $ac_try) 2>&5
24817   ac_status=$?
24818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24819   test $ac_status = 0; }; }
24820     then
24821         gcc_cv_as_ix86_diff_sect_delta=yes
24822     else
24823       echo "configure: failed program was" >&5
24824       cat conftest.s >&5
24825     fi
24826     rm -f conftest.o conftest.s
24827   fi
24828 fi
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24830 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24831 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24832
24833 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24834
24835 fi
24836
24837     # These two are used unconditionally by i386.[ch]; it is to be defined
24838     # to 1 if the feature is present, 0 otherwise.
24839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24840 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24841 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24842   $as_echo_n "(cached) " >&6
24843 else
24844   gcc_cv_as_ix86_gotoff_in_data=no
24845     if test $in_tree_gas = yes; then
24846     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24847   then gcc_cv_as_ix86_gotoff_in_data=yes
24848 fi
24849   elif test x$gcc_cv_as != x; then
24850     $as_echo '  .text
24851 .L0:
24852         nop
24853         .data
24854         .long .L0@GOTOFF' > conftest.s
24855     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24856   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24857   (eval $ac_try) 2>&5
24858   ac_status=$?
24859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24860   test $ac_status = 0; }; }
24861     then
24862         gcc_cv_as_ix86_gotoff_in_data=yes
24863     else
24864       echo "configure: failed program was" >&5
24865       cat conftest.s >&5
24866     fi
24867     rm -f conftest.o conftest.s
24868   fi
24869 fi
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24871 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24872
24873
24874 cat >>confdefs.h <<_ACEOF
24875 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24876 _ACEOF
24877
24878
24879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24880 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24881 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24882   $as_echo_n "(cached) " >&6
24883 else
24884   gcc_cv_as_ix86_rep_lock_prefix=no
24885   if test x$gcc_cv_as != x; then
24886     $as_echo 'rep movsl
24887          lock addl %edi, (%eax,%esi)
24888          lock orl $0, (%esp)' > conftest.s
24889     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24890   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891   (eval $ac_try) 2>&5
24892   ac_status=$?
24893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894   test $ac_status = 0; }; }
24895     then
24896         gcc_cv_as_ix86_rep_lock_prefix=yes
24897     else
24898       echo "configure: failed program was" >&5
24899       cat conftest.s >&5
24900     fi
24901     rm -f conftest.o conftest.s
24902   fi
24903 fi
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24905 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24906 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24907
24908 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24909
24910 fi
24911
24912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24913 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24914 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24915   $as_echo_n "(cached) " >&6
24916 else
24917   gcc_cv_as_ix86_tlsgdplt=no
24918   if test x$gcc_cv_as != x; then
24919     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24920     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24921   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922   (eval $ac_try) 2>&5
24923   ac_status=$?
24924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925   test $ac_status = 0; }; }
24926     then
24927         if test x$gcc_cv_ld != x \
24928          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24929            gcc_cv_as_ix86_tlsgdplt=yes
24930          fi
24931          rm -f conftest
24932     else
24933       echo "configure: failed program was" >&5
24934       cat conftest.s >&5
24935     fi
24936     rm -f conftest.o conftest.s
24937   fi
24938 fi
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24940 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24941 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24942
24943 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24944
24945 fi
24946
24947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24948 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24949 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24950   $as_echo_n "(cached) " >&6
24951 else
24952   gcc_cv_as_ix86_tlsldmplt=no
24953   if test x$gcc_cv_as != x; then
24954     $as_echo 'tls_ld:
24955          call    tls_ld@tlsldmplt' > conftest.s
24956     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24957   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24958   (eval $ac_try) 2>&5
24959   ac_status=$?
24960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24961   test $ac_status = 0; }; }
24962     then
24963         if test x$gcc_cv_ld != x \
24964          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24965            gcc_cv_as_ix86_tlsldmplt=yes
24966          fi
24967          rm -f conftest
24968     else
24969       echo "configure: failed program was" >&5
24970       cat conftest.s >&5
24971     fi
24972     rm -f conftest.o conftest.s
24973   fi
24974 fi
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24976 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24977 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24978
24979 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24980
24981 fi
24982
24983     ;;
24984
24985   ia64*-*-*)
24986     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24987 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24988 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24989   $as_echo_n "(cached) " >&6
24990 else
24991   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24992     if test $in_tree_gas = yes; then
24993     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24994   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24995 fi
24996   elif test x$gcc_cv_as != x; then
24997     $as_echo '  .text
24998         addl r15 = @ltoffx(x#), gp
24999         ;;
25000         ld8.mov r16 = [r15], x#' > conftest.s
25001     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25002   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25003   (eval $ac_try) 2>&5
25004   ac_status=$?
25005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25006   test $ac_status = 0; }; }
25007     then
25008         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25009     else
25010       echo "configure: failed program was" >&5
25011       cat conftest.s >&5
25012     fi
25013     rm -f conftest.o conftest.s
25014   fi
25015 fi
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25017 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25018 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25019
25020 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25021
25022 fi
25023
25024     ;;
25025
25026   powerpc*-*-*)
25027     case $target in
25028       *-*-aix*) conftest_s='    .machine "pwr5"
25029         .csect .text[PR]
25030         mfcr 3,128';;
25031       *-*-darwin*)
25032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25033 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25034 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25035   $as_echo_n "(cached) " >&6
25036 else
25037   gcc_cv_as_machine_directive=no
25038   if test x$gcc_cv_as != x; then
25039     $as_echo '  .machine ppc7400' > conftest.s
25040     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25041   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25042   (eval $ac_try) 2>&5
25043   ac_status=$?
25044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25045   test $ac_status = 0; }; }
25046     then
25047         gcc_cv_as_machine_directive=yes
25048     else
25049       echo "configure: failed program was" >&5
25050       cat conftest.s >&5
25051     fi
25052     rm -f conftest.o conftest.s
25053   fi
25054 fi
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25056 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25057
25058         if test x$gcc_cv_as_machine_directive != xyes; then
25059           echo "*** This target requires an assembler supporting \".machine\"" >&2
25060           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25061           test x$build = x$target && exit 1
25062         fi
25063         conftest_s='    .text
25064         mfcr r3,128';;
25065       *) conftest_s='   .machine power4
25066         .text
25067         mfcr 3,128';;
25068     esac
25069
25070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25071 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25072 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25073   $as_echo_n "(cached) " >&6
25074 else
25075   gcc_cv_as_powerpc_mfcrf=no
25076     if test $in_tree_gas = yes; then
25077     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25078   then gcc_cv_as_powerpc_mfcrf=yes
25079 fi
25080   elif test x$gcc_cv_as != x; then
25081     $as_echo "$conftest_s" > conftest.s
25082     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25083   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25084   (eval $ac_try) 2>&5
25085   ac_status=$?
25086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25087   test $ac_status = 0; }; }
25088     then
25089         gcc_cv_as_powerpc_mfcrf=yes
25090     else
25091       echo "configure: failed program was" >&5
25092       cat conftest.s >&5
25093     fi
25094     rm -f conftest.o conftest.s
25095   fi
25096 fi
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25098 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25099 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25100
25101 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25102
25103 fi
25104
25105     case $target in
25106       *-*-aix*) conftest_s='    .machine "pwr5"
25107         .csect .text[PR]
25108         popcntb 3,3';;
25109       *) conftest_s='   .machine power5
25110         .text
25111         popcntb 3,3';;
25112     esac
25113
25114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25115 $as_echo_n "checking assembler for popcntb support... " >&6; }
25116 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25117   $as_echo_n "(cached) " >&6
25118 else
25119   gcc_cv_as_powerpc_popcntb=no
25120     if test $in_tree_gas = yes; then
25121     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25122   then gcc_cv_as_powerpc_popcntb=yes
25123 fi
25124   elif test x$gcc_cv_as != x; then
25125     $as_echo "$conftest_s" > conftest.s
25126     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25127   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25128   (eval $ac_try) 2>&5
25129   ac_status=$?
25130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25131   test $ac_status = 0; }; }
25132     then
25133         gcc_cv_as_powerpc_popcntb=yes
25134     else
25135       echo "configure: failed program was" >&5
25136       cat conftest.s >&5
25137     fi
25138     rm -f conftest.o conftest.s
25139   fi
25140 fi
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25142 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25143 if test $gcc_cv_as_powerpc_popcntb = yes; then
25144
25145 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25146
25147 fi
25148
25149     case $target in
25150       *-*-aix*) conftest_s='    .machine "pwr5x"
25151         .csect .text[PR]
25152         frin 1,1';;
25153       *) conftest_s='   .machine power5
25154         .text
25155         frin 1,1';;
25156     esac
25157
25158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25159 $as_echo_n "checking assembler for fp round support... " >&6; }
25160 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25161   $as_echo_n "(cached) " >&6
25162 else
25163   gcc_cv_as_powerpc_fprnd=no
25164     if test $in_tree_gas = yes; then
25165     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25166   then gcc_cv_as_powerpc_fprnd=yes
25167 fi
25168   elif test x$gcc_cv_as != x; then
25169     $as_echo "$conftest_s" > conftest.s
25170     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25171   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25172   (eval $ac_try) 2>&5
25173   ac_status=$?
25174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25175   test $ac_status = 0; }; }
25176     then
25177         gcc_cv_as_powerpc_fprnd=yes
25178     else
25179       echo "configure: failed program was" >&5
25180       cat conftest.s >&5
25181     fi
25182     rm -f conftest.o conftest.s
25183   fi
25184 fi
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25186 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25187 if test $gcc_cv_as_powerpc_fprnd = yes; then
25188
25189 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25190
25191 fi
25192
25193     case $target in
25194       *-*-aix*) conftest_s='    .machine "pwr6"
25195         .csect .text[PR]
25196         mffgpr 1,3';;
25197       *) conftest_s='   .machine power6
25198         .text
25199         mffgpr 1,3';;
25200     esac
25201
25202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25203 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25204 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25205   $as_echo_n "(cached) " >&6
25206 else
25207   gcc_cv_as_powerpc_mfpgpr=no
25208     if test $in_tree_gas = yes; then
25209     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25210   then gcc_cv_as_powerpc_mfpgpr=yes
25211 fi
25212   elif test x$gcc_cv_as != x; then
25213     $as_echo "$conftest_s" > conftest.s
25214     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25215   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25216   (eval $ac_try) 2>&5
25217   ac_status=$?
25218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25219   test $ac_status = 0; }; }
25220     then
25221         gcc_cv_as_powerpc_mfpgpr=yes
25222     else
25223       echo "configure: failed program was" >&5
25224       cat conftest.s >&5
25225     fi
25226     rm -f conftest.o conftest.s
25227   fi
25228 fi
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25230 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25231 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25232
25233 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25234
25235 fi
25236
25237     case $target in
25238       *-*-aix*) conftest_s='    .csect .text[PR]
25239 LCF..0:
25240         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25241       *-*-darwin*)
25242         conftest_s='    .text
25243 LCF0:
25244         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25245       *) conftest_s='   .text
25246 .LCF0:
25247         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25248     esac
25249
25250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25251 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25252 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25253   $as_echo_n "(cached) " >&6
25254 else
25255   gcc_cv_as_powerpc_rel16=no
25256     if test $in_tree_gas = yes; then
25257     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25258   then gcc_cv_as_powerpc_rel16=yes
25259 fi
25260   elif test x$gcc_cv_as != x; then
25261     $as_echo "$conftest_s" > conftest.s
25262     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25263   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25264   (eval $ac_try) 2>&5
25265   ac_status=$?
25266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25267   test $ac_status = 0; }; }
25268     then
25269         gcc_cv_as_powerpc_rel16=yes
25270     else
25271       echo "configure: failed program was" >&5
25272       cat conftest.s >&5
25273     fi
25274     rm -f conftest.o conftest.s
25275   fi
25276 fi
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25278 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25279 if test $gcc_cv_as_powerpc_rel16 = yes; then
25280
25281 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25282
25283 fi
25284
25285     case $target in
25286       *-*-aix*) conftest_s='    .machine "pwr6"
25287         .csect .text[PR]
25288         cmpb 3,4,5';;
25289       *) conftest_s='   .machine power6
25290         .text
25291         cmpb 3,4,5';;
25292     esac
25293
25294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25295 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25296 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25297   $as_echo_n "(cached) " >&6
25298 else
25299   gcc_cv_as_powerpc_cmpb=no
25300     if test $in_tree_gas = yes; then
25301     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25302   then gcc_cv_as_powerpc_cmpb=yes
25303 fi
25304   elif test x$gcc_cv_as != x; then
25305     $as_echo "$conftest_s" > conftest.s
25306     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25307   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25308   (eval $ac_try) 2>&5
25309   ac_status=$?
25310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25311   test $ac_status = 0; }; }
25312     then
25313         gcc_cv_as_powerpc_cmpb=yes
25314     else
25315       echo "configure: failed program was" >&5
25316       cat conftest.s >&5
25317     fi
25318     rm -f conftest.o conftest.s
25319   fi
25320 fi
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25322 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25323 if test $gcc_cv_as_powerpc_cmpb = yes; then
25324
25325 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25326
25327 fi
25328
25329     case $target in
25330       *-*-aix*) conftest_s='    .machine "pwr6"
25331         .csect .text[PR]
25332         dadd 1,2,3';;
25333       *) conftest_s='   .machine power6
25334         .text
25335         dadd 1,2,3';;
25336     esac
25337
25338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25339 $as_echo_n "checking assembler for decimal float support... " >&6; }
25340 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25341   $as_echo_n "(cached) " >&6
25342 else
25343   gcc_cv_as_powerpc_dfp=no
25344     if test $in_tree_gas = yes; then
25345     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25346   then gcc_cv_as_powerpc_dfp=yes
25347 fi
25348   elif test x$gcc_cv_as != x; then
25349     $as_echo "$conftest_s" > conftest.s
25350     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25351   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352   (eval $ac_try) 2>&5
25353   ac_status=$?
25354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355   test $ac_status = 0; }; }
25356     then
25357         gcc_cv_as_powerpc_dfp=yes
25358     else
25359       echo "configure: failed program was" >&5
25360       cat conftest.s >&5
25361     fi
25362     rm -f conftest.o conftest.s
25363   fi
25364 fi
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25366 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25367 if test $gcc_cv_as_powerpc_dfp = yes; then
25368
25369 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25370
25371 fi
25372
25373     case $target in
25374       *-*-aix*) conftest_s='    .machine "pwr7"
25375         .csect .text[PR]
25376         lxvd2x 1,2,3';;
25377       *) conftest_s='   .machine power7
25378         .text
25379         lxvd2x 1,2,3';;
25380     esac
25381
25382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25383 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25384 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25385   $as_echo_n "(cached) " >&6
25386 else
25387   gcc_cv_as_powerpc_vsx=no
25388     if test $in_tree_gas = yes; then
25389     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25390   then gcc_cv_as_powerpc_vsx=yes
25391 fi
25392   elif test x$gcc_cv_as != x; then
25393     $as_echo "$conftest_s" > conftest.s
25394     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25395   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396   (eval $ac_try) 2>&5
25397   ac_status=$?
25398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399   test $ac_status = 0; }; }
25400     then
25401         gcc_cv_as_powerpc_vsx=yes
25402     else
25403       echo "configure: failed program was" >&5
25404       cat conftest.s >&5
25405     fi
25406     rm -f conftest.o conftest.s
25407   fi
25408 fi
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25410 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25411 if test $gcc_cv_as_powerpc_vsx = yes; then
25412
25413 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25414
25415 fi
25416
25417     case $target in
25418       *-*-aix*) conftest_s='    .machine "pwr7"
25419         .csect .text[PR]
25420         popcntd 3,3';;
25421       *) conftest_s='   .machine power7
25422         .text
25423         popcntd 3,3';;
25424     esac
25425
25426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25427 $as_echo_n "checking assembler for popcntd support... " >&6; }
25428 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25429   $as_echo_n "(cached) " >&6
25430 else
25431   gcc_cv_as_powerpc_popcntd=no
25432     if test $in_tree_gas = yes; then
25433     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25434   then gcc_cv_as_powerpc_popcntd=yes
25435 fi
25436   elif test x$gcc_cv_as != x; then
25437     $as_echo "$conftest_s" > conftest.s
25438     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25439   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25440   (eval $ac_try) 2>&5
25441   ac_status=$?
25442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25443   test $ac_status = 0; }; }
25444     then
25445         gcc_cv_as_powerpc_popcntd=yes
25446     else
25447       echo "configure: failed program was" >&5
25448       cat conftest.s >&5
25449     fi
25450     rm -f conftest.o conftest.s
25451   fi
25452 fi
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25454 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25455 if test $gcc_cv_as_powerpc_popcntd = yes; then
25456
25457 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25458
25459 fi
25460
25461     case $target in
25462       *-*-aix*) conftest_s='    .csect .text[PR]
25463         lwsync';;
25464       *) conftest_s='   .text
25465         lwsync';;
25466     esac
25467
25468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25469 $as_echo_n "checking assembler for lwsync support... " >&6; }
25470 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25471   $as_echo_n "(cached) " >&6
25472 else
25473   gcc_cv_as_powerpc_lwsync=no
25474     if test $in_tree_gas = yes; then
25475     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25476   then gcc_cv_as_powerpc_lwsync=yes
25477 fi
25478   elif test x$gcc_cv_as != x; then
25479     $as_echo "$conftest_s" > conftest.s
25480     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25481   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25482   (eval $ac_try) 2>&5
25483   ac_status=$?
25484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25485   test $ac_status = 0; }; }
25486     then
25487         gcc_cv_as_powerpc_lwsync=yes
25488     else
25489       echo "configure: failed program was" >&5
25490       cat conftest.s >&5
25491     fi
25492     rm -f conftest.o conftest.s
25493   fi
25494 fi
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25496 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25497 if test $gcc_cv_as_powerpc_lwsync = yes; then
25498
25499 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25500
25501 fi
25502
25503     case $target in
25504       *-*-aix*) conftest_s='    .machine "476"
25505         .csect .text[PR]
25506         dci 0';;
25507       *) conftest_s='   .machine "476"
25508         .text
25509         dci 0';;
25510     esac
25511
25512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25513 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25514 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25515   $as_echo_n "(cached) " >&6
25516 else
25517   gcc_cv_as_powerpc_dci=no
25518     if test $in_tree_gas = yes; then
25519     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25520   then gcc_cv_as_powerpc_dci=yes
25521 fi
25522   elif test x$gcc_cv_as != x; then
25523     $as_echo "$conftest_s" > conftest.s
25524     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25525   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25526   (eval $ac_try) 2>&5
25527   ac_status=$?
25528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25529   test $ac_status = 0; }; }
25530     then
25531         gcc_cv_as_powerpc_dci=yes
25532     else
25533       echo "configure: failed program was" >&5
25534       cat conftest.s >&5
25535     fi
25536     rm -f conftest.o conftest.s
25537   fi
25538 fi
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25540 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25541 if test $gcc_cv_as_powerpc_dci = yes; then
25542
25543 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25544
25545 fi
25546
25547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25548 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25549 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25550   $as_echo_n "(cached) " >&6
25551 else
25552   gcc_cv_as_powerpc_gnu_attribute=no
25553     if test $in_tree_gas = yes; then
25554     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25555   then gcc_cv_as_powerpc_gnu_attribute=yes
25556 fi
25557   elif test x$gcc_cv_as != x; then
25558     $as_echo '.gnu_attribute 4,1' > conftest.s
25559     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25560   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25561   (eval $ac_try) 2>&5
25562   ac_status=$?
25563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25564   test $ac_status = 0; }; }
25565     then
25566         gcc_cv_as_powerpc_gnu_attribute=yes
25567     else
25568       echo "configure: failed program was" >&5
25569       cat conftest.s >&5
25570     fi
25571     rm -f conftest.o conftest.s
25572   fi
25573 fi
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25575 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25576 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25577
25578 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25579
25580 fi
25581
25582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25583 $as_echo_n "checking assembler for tls marker support... " >&6; }
25584 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25585   $as_echo_n "(cached) " >&6
25586 else
25587   gcc_cv_as_powerpc_tls_markers=no
25588     if test $in_tree_gas = yes; then
25589     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25590   then gcc_cv_as_powerpc_tls_markers=yes
25591 fi
25592   elif test x$gcc_cv_as != x; then
25593     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25594     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25595   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25596   (eval $ac_try) 2>&5
25597   ac_status=$?
25598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25599   test $ac_status = 0; }; }
25600     then
25601         gcc_cv_as_powerpc_tls_markers=yes
25602     else
25603       echo "configure: failed program was" >&5
25604       cat conftest.s >&5
25605     fi
25606     rm -f conftest.o conftest.s
25607   fi
25608 fi
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25610 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25611 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25612
25613 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25614
25615 fi
25616
25617     case $target in
25618       *-*-aix*)
25619         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25620 $as_echo_n "checking assembler for .ref support... " >&6; }
25621 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25622   $as_echo_n "(cached) " >&6
25623 else
25624   gcc_cv_as_aix_ref=no
25625     if test $in_tree_gas = yes; then
25626     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25627   then :
25628 fi
25629   elif test x$gcc_cv_as != x; then
25630     $as_echo '  .csect stuff[rw]
25631              stuff:
25632                 .long 1
25633                 .extern sym
25634                 .ref sym
25635           ' > conftest.s
25636     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25637   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25638   (eval $ac_try) 2>&5
25639   ac_status=$?
25640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25641   test $ac_status = 0; }; }
25642     then
25643         gcc_cv_as_aix_ref=yes
25644     else
25645       echo "configure: failed program was" >&5
25646       cat conftest.s >&5
25647     fi
25648     rm -f conftest.o conftest.s
25649   fi
25650 fi
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25652 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25653 if test $gcc_cv_as_aix_ref = yes; then
25654
25655 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25656
25657 fi
25658         ;;
25659     esac
25660     ;;
25661
25662   mips*-*-*)
25663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25664 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25665 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25666   $as_echo_n "(cached) " >&6
25667 else
25668   gcc_cv_as_mips_explicit_relocs=no
25669     if test $in_tree_gas = yes; then
25670     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25671   then gcc_cv_as_mips_explicit_relocs=yes
25672 fi
25673   elif test x$gcc_cv_as != x; then
25674     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25675     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25676   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25677   (eval $ac_try) 2>&5
25678   ac_status=$?
25679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25680   test $ac_status = 0; }; }
25681     then
25682         gcc_cv_as_mips_explicit_relocs=yes
25683     else
25684       echo "configure: failed program was" >&5
25685       cat conftest.s >&5
25686     fi
25687     rm -f conftest.o conftest.s
25688   fi
25689 fi
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25691 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25692 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25693   if test x$target_cpu_default = x
25694        then target_cpu_default=MASK_EXPLICIT_RELOCS
25695        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25696        fi
25697 fi
25698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25699 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25700 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25701   $as_echo_n "(cached) " >&6
25702 else
25703   gcc_cv_as_mips_no_shared=no
25704     if test $in_tree_gas = yes; then
25705     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25706   then gcc_cv_as_mips_no_shared=yes
25707 fi
25708   elif test x$gcc_cv_as != x; then
25709     $as_echo 'nop' > conftest.s
25710     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25711   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712   (eval $ac_try) 2>&5
25713   ac_status=$?
25714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715   test $ac_status = 0; }; }
25716     then
25717         gcc_cv_as_mips_no_shared=yes
25718     else
25719       echo "configure: failed program was" >&5
25720       cat conftest.s >&5
25721     fi
25722     rm -f conftest.o conftest.s
25723   fi
25724 fi
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25726 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25727 if test $gcc_cv_as_mips_no_shared = yes; then
25728
25729 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25730
25731 fi
25732
25733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25734 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25735 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25736   $as_echo_n "(cached) " >&6
25737 else
25738   gcc_cv_as_mips_gnu_attribute=no
25739     if test $in_tree_gas = yes; then
25740     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25741   then gcc_cv_as_mips_gnu_attribute=yes
25742 fi
25743   elif test x$gcc_cv_as != x; then
25744     $as_echo '.gnu_attribute 4,1' > conftest.s
25745     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25746   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25747   (eval $ac_try) 2>&5
25748   ac_status=$?
25749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25750   test $ac_status = 0; }; }
25751     then
25752         gcc_cv_as_mips_gnu_attribute=yes
25753     else
25754       echo "configure: failed program was" >&5
25755       cat conftest.s >&5
25756     fi
25757     rm -f conftest.o conftest.s
25758   fi
25759 fi
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25761 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25762 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25763
25764 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25765
25766 fi
25767
25768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25769 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25770 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25771   $as_echo_n "(cached) " >&6
25772 else
25773   gcc_cv_as_mips_dtprelword=no
25774     if test $in_tree_gas = yes; then
25775     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25776   then gcc_cv_as_mips_dtprelword=yes
25777 fi
25778   elif test x$gcc_cv_as != x; then
25779     $as_echo '.section .tdata,"awT",@progbits
25780 x:
25781         .word 2
25782         .text
25783         .dtprelword x+0x8000' > conftest.s
25784     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25785   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786   (eval $ac_try) 2>&5
25787   ac_status=$?
25788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789   test $ac_status = 0; }; }
25790     then
25791         gcc_cv_as_mips_dtprelword=yes
25792     else
25793       echo "configure: failed program was" >&5
25794       cat conftest.s >&5
25795     fi
25796     rm -f conftest.o conftest.s
25797   fi
25798 fi
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25800 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25801 if test $gcc_cv_as_mips_dtprelword = yes; then
25802
25803 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25804
25805 fi
25806
25807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25808 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25809 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25810   $as_echo_n "(cached) " >&6
25811 else
25812   gcc_cv_as_mips_dspr1_mult=no
25813   if test x$gcc_cv_as != x; then
25814     $as_echo '  .set    mips32r2
25815         .set    nodspr2
25816         .set    dsp
25817         madd    $ac3,$4,$5
25818         maddu   $ac3,$4,$5
25819         msub    $ac3,$4,$5
25820         msubu   $ac3,$4,$5
25821         mult    $ac3,$4,$5
25822         multu   $ac3,$4,$5' > conftest.s
25823     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25824   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25825   (eval $ac_try) 2>&5
25826   ac_status=$?
25827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25828   test $ac_status = 0; }; }
25829     then
25830         gcc_cv_as_mips_dspr1_mult=yes
25831     else
25832       echo "configure: failed program was" >&5
25833       cat conftest.s >&5
25834     fi
25835     rm -f conftest.o conftest.s
25836   fi
25837 fi
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25839 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25840 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25841
25842 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25843
25844 fi
25845
25846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25847 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25848     gcc_cv_as_ld_jalr_reloc=no
25849     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25850       if test $in_tree_ld = yes ; then
25851         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 \
25852            && test $in_tree_ld_is_elf = yes; then
25853           gcc_cv_as_ld_jalr_reloc=yes
25854         fi
25855       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25856         echo '  .ent x' > conftest.s
25857         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25858         echo '  ld $25,%call16(y)($28)' >> conftest.s
25859         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25860         echo '1:        jalr $25' >> conftest.s
25861         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25862         echo '1:        jalr $25' >> conftest.s
25863         echo '  .end x' >> conftest.s
25864         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25865            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25866           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25867              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25868             gcc_cv_as_ld_jalr_reloc=yes
25869           fi
25870         fi
25871         rm -f conftest.*
25872       fi
25873     fi
25874     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25875       if test x$target_cpu_default = x; then
25876         target_cpu_default=MASK_RELAX_PIC_CALLS
25877       else
25878         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25879       fi
25880     fi
25881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25882 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25883
25884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25885 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25886 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25887   $as_echo_n "(cached) " >&6
25888 else
25889   gcc_cv_ld_mips_personality_relaxation=no
25890        if test $in_tree_ld = yes ; then
25891          if test "$gcc_cv_gld_major_version" -eq 2 \
25892                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25893                  -o "$gcc_cv_gld_major_version" -gt 2; then
25894            gcc_cv_ld_mips_personality_relaxation=yes
25895          fi
25896        elif test x$gcc_cv_as != x \
25897                  -a x$gcc_cv_ld != x \
25898                  -a x$gcc_cv_readelf != x ; then
25899          cat > conftest.s <<EOF
25900         .cfi_startproc
25901         .cfi_personality 0x80,indirect_ptr
25902         .ent test
25903 test:
25904         nop
25905         .end test
25906         .cfi_endproc
25907
25908         .section .data,"aw",@progbits
25909 indirect_ptr:
25910         .dc.a personality
25911 EOF
25912          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25913             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25914            if $gcc_cv_readelf -d conftest 2>&1 \
25915               | grep TEXTREL > /dev/null 2>&1; then
25916              :
25917            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25918                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25919              :
25920            else
25921              gcc_cv_ld_mips_personality_relaxation=yes
25922            fi
25923          fi
25924        fi
25925        rm -f conftest.s conftest.o conftest
25926 fi
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25928 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25929     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25930
25931 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25932
25933     fi
25934     ;;
25935 esac
25936
25937 # Mips and HP-UX need the GNU assembler.
25938 # Linux on IA64 might be able to use the Intel assembler.
25939
25940 case "$target" in
25941   mips*-*-* | *-*-hpux* )
25942     if test x$gas_flag = xyes \
25943        || test x"$host" != x"$build" \
25944        || test ! -x "$gcc_cv_as" \
25945        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25946       :
25947     else
25948       echo "*** This configuration requires the GNU assembler" >&2
25949       exit 1
25950     fi
25951     ;;
25952 esac
25953
25954 # ??? Not all targets support dwarf2 debug_line, even within a version
25955 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25956 # info to the output file.  So, as supported targets are added to gas 2.11,
25957 # add some instruction here to (also) show we expect this might work.
25958 # ??? Once 2.11 is released, probably need to add first known working
25959 # version to the per-target configury.
25960 case "$cpu_type" in
25961   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25962   | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25963     insn="nop"
25964     ;;
25965   ia64 | s390)
25966     insn="nop 0"
25967     ;;
25968   mmix)
25969     insn="swym 0"
25970     ;;
25971 esac
25972 if test x"$insn" != x; then
25973  conftest_s="\
25974         .file 1 \"conftest.s\"
25975         .loc 1 3 0
25976         $insn"
25977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25978 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25979 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25980   $as_echo_n "(cached) " >&6
25981 else
25982   gcc_cv_as_dwarf2_debug_line=no
25983     if test $in_tree_gas = yes; then
25984     if test $in_tree_gas_is_elf = yes \
25985   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25986   then gcc_cv_as_dwarf2_debug_line=yes
25987 fi
25988   elif test x$gcc_cv_as != x; then
25989     $as_echo "$conftest_s" > conftest.s
25990     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25991   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25992   (eval $ac_try) 2>&5
25993   ac_status=$?
25994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25995   test $ac_status = 0; }; }
25996     then
25997         if test x$gcc_cv_objdump != x \
25998    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25999       | grep debug_line > /dev/null 2>&1; then
26000      gcc_cv_as_dwarf2_debug_line=yes
26001    fi
26002     else
26003       echo "configure: failed program was" >&5
26004       cat conftest.s >&5
26005     fi
26006     rm -f conftest.o conftest.s
26007   fi
26008 fi
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26010 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26011
26012
26013 # The .debug_line file table must be in the exact order that
26014 # we specified the files, since these indices are also used
26015 # by DW_AT_decl_file.  Approximate this test by testing if
26016 # the assembler bitches if the same index is assigned twice.
26017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26018 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26019 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26020   $as_echo_n "(cached) " >&6
26021 else
26022   gcc_cv_as_dwarf2_file_buggy=no
26023   if test x$gcc_cv_as != x; then
26024     $as_echo '  .file 1 "foo.s"
26025         .file 1 "bar.s"' > conftest.s
26026     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26027   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26028   (eval $ac_try) 2>&5
26029   ac_status=$?
26030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26031   test $ac_status = 0; }; }
26032     then
26033         gcc_cv_as_dwarf2_file_buggy=yes
26034     else
26035       echo "configure: failed program was" >&5
26036       cat conftest.s >&5
26037     fi
26038     rm -f conftest.o conftest.s
26039   fi
26040 fi
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26042 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26043
26044
26045  if test $gcc_cv_as_dwarf2_debug_line = yes \
26046  && test $gcc_cv_as_dwarf2_file_buggy = no; then
26047
26048 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26049
26050  fi
26051
26052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26053 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26054 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26055   $as_echo_n "(cached) " >&6
26056 else
26057   gcc_cv_as_gdwarf2_flag=no
26058     if test $in_tree_gas = yes; then
26059     if test $in_tree_gas_is_elf = yes \
26060   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26061   then gcc_cv_as_gdwarf2_flag=yes
26062 fi
26063   elif test x$gcc_cv_as != x; then
26064     $as_echo "$insn" > conftest.s
26065     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26066   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26067   (eval $ac_try) 2>&5
26068   ac_status=$?
26069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26070   test $ac_status = 0; }; }
26071     then
26072         gcc_cv_as_gdwarf2_flag=yes
26073     else
26074       echo "configure: failed program was" >&5
26075       cat conftest.s >&5
26076     fi
26077     rm -f conftest.o conftest.s
26078   fi
26079 fi
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26081 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26082 if test $gcc_cv_as_gdwarf2_flag = yes; then
26083
26084 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26085
26086 fi
26087
26088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26089 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26090 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26091   $as_echo_n "(cached) " >&6
26092 else
26093   gcc_cv_as_gstabs_flag=no
26094     if test $in_tree_gas = yes; then
26095     if test $in_tree_gas_is_elf = yes \
26096   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26097   then gcc_cv_as_gstabs_flag=yes
26098 fi
26099   elif test x$gcc_cv_as != x; then
26100     $as_echo "$insn" > conftest.s
26101     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26102   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26103   (eval $ac_try) 2>&5
26104   ac_status=$?
26105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26106   test $ac_status = 0; }; }
26107     then
26108         # The native Solaris 9/Intel assembler doesn't understand --gstabs
26109    # and warns about it, but still exits successfully.  So check for
26110    # this.
26111    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26112   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26113   (eval $ac_try) 2>&5
26114   ac_status=$?
26115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26116   test $ac_status = 0; }; }
26117    then :
26118    else gcc_cv_as_gstabs_flag=yes
26119    fi
26120     else
26121       echo "configure: failed program was" >&5
26122       cat conftest.s >&5
26123     fi
26124     rm -f conftest.o conftest.s
26125   fi
26126 fi
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26128 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26129 if test $gcc_cv_as_gstabs_flag = yes; then
26130
26131 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26132
26133 fi
26134
26135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26136 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26137 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26138   $as_echo_n "(cached) " >&6
26139 else
26140   gcc_cv_as_debug_prefix_map_flag=no
26141     if test $in_tree_gas = yes; then
26142     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26143   then gcc_cv_as_debug_prefix_map_flag=yes
26144 fi
26145   elif test x$gcc_cv_as != x; then
26146     $as_echo "$insn" > conftest.s
26147     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26148   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149   (eval $ac_try) 2>&5
26150   ac_status=$?
26151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152   test $ac_status = 0; }; }
26153     then
26154         gcc_cv_as_debug_prefix_map_flag=yes
26155     else
26156       echo "configure: failed program was" >&5
26157       cat conftest.s >&5
26158     fi
26159     rm -f conftest.o conftest.s
26160   fi
26161 fi
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26163 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26164 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26165
26166 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26167
26168 fi
26169 fi
26170
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26172 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26173 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26174   $as_echo_n "(cached) " >&6
26175 else
26176   gcc_cv_as_lcomm_with_alignment=no
26177   if test x$gcc_cv_as != x; then
26178     $as_echo '.lcomm bar,4,16' > conftest.s
26179     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26180   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26184   test $ac_status = 0; }; }
26185     then
26186         gcc_cv_as_lcomm_with_alignment=yes
26187     else
26188       echo "configure: failed program was" >&5
26189       cat conftest.s >&5
26190     fi
26191     rm -f conftest.o conftest.s
26192   fi
26193 fi
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26195 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26196 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26197
26198 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26199
26200 fi
26201
26202 # Check whether --enable-gnu-unique-object was given.
26203 if test "${enable_gnu_unique_object+set}" = set; then :
26204   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26205     yes | no) ;;
26206     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26207 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26208   esac
26209 else
26210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26211 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26212 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26213   $as_echo_n "(cached) " >&6
26214 else
26215   gcc_cv_as_gnu_unique_object=no
26216     if test $in_tree_gas = yes; then
26217     if test $in_tree_gas_is_elf = yes \
26218   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26219   then gcc_cv_as_gnu_unique_object=yes
26220 fi
26221   elif test x$gcc_cv_as != x; then
26222     $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26223     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26224   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26225   (eval $ac_try) 2>&5
26226   ac_status=$?
26227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26228   test $ac_status = 0; }; }
26229     then
26230         gcc_cv_as_gnu_unique_object=yes
26231     else
26232       echo "configure: failed program was" >&5
26233       cat conftest.s >&5
26234     fi
26235     rm -f conftest.o conftest.s
26236   fi
26237 fi
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26239 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26240 if test $gcc_cv_as_gnu_unique_object = yes; then
26241   # We need to unquote above to to use the definition from config.gcc.
26242 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26243    if test x$host = x$build -a x$host = x$target &&
26244        ldd --version 2>/dev/null &&
26245        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26246       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26247       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26248       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26249       if test "$glibcnum" -ge 2011 ; then
26250         enable_gnu_unique_object=yes
26251       fi
26252     fi
26253 fi
26254 fi
26255
26256 if test x$enable_gnu_unique_object = xyes; then
26257
26258 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26259
26260 fi
26261
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26263 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26264 if test "${gcc_cv_as_line_zero+set}" = set; then :
26265   $as_echo_n "(cached) " >&6
26266 else
26267   gcc_cv_as_line_zero=no
26268   if test $in_tree_gas = yes; then
26269     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26270   then gcc_cv_as_line_zero=yes
26271 fi
26272   elif test "x$gcc_cv_as" != x; then
26273     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26274     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26275   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26276   (eval $ac_try) 2>&5
26277   ac_status=$?
26278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26279   test $ac_status = 0; }; } &&
26280        test "x`cat conftest.out`" = x
26281     then
26282       gcc_cv_as_line_zero=yes
26283     else
26284       echo "configure: failed program was" >&5
26285       cat conftest.s >&5
26286       echo "configure: error output was" >&5
26287       cat conftest.out >&5
26288     fi
26289     rm -f conftest.o conftest.s conftest.out
26290   fi
26291 fi
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26293 $as_echo "$gcc_cv_as_line_zero" >&6; }
26294 if test "x$gcc_cv_as_line_zero" = xyes; then
26295
26296 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26297
26298 fi
26299
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26301 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26302 gcc_cv_ld_eh_frame_hdr=no
26303 if test $in_tree_ld = yes ; then
26304   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 \
26305      && test $in_tree_ld_is_elf = yes; then
26306     gcc_cv_ld_eh_frame_hdr=yes
26307   fi
26308 elif test x$gcc_cv_ld != x; then
26309   if echo "$ld_ver" | grep GNU > /dev/null; then
26310     # Check if linker supports --eh-frame-hdr option
26311     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26312       gcc_cv_ld_eh_frame_hdr=yes
26313     fi
26314   else
26315     case "$target" in
26316       *-*-solaris2*)
26317         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26318         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26319           gcc_cv_ld_eh_frame_hdr=yes
26320         fi
26321         ;;
26322     esac
26323   fi
26324 fi
26325
26326 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26327
26328 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26329
26330 fi
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26332 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26333
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26335 $as_echo_n "checking linker position independent executable support... " >&6; }
26336 gcc_cv_ld_pie=no
26337 if test $in_tree_ld = yes ; then
26338   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 \
26339      && test $in_tree_ld_is_elf = yes; then
26340     gcc_cv_ld_pie=yes
26341   fi
26342 elif test x$gcc_cv_ld != x; then
26343         # Check if linker supports -pie option
26344         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26345                 gcc_cv_ld_pie=yes
26346         fi
26347 fi
26348 if test x"$gcc_cv_ld_pie" = xyes; then
26349
26350 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26351
26352 fi
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26354 $as_echo "$gcc_cv_ld_pie" >&6; }
26355
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26357 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26358 gcc_cv_ld_eh_gc_sections=no
26359 if test $in_tree_ld = yes ; then
26360   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 \
26361      && test $in_tree_ld_is_elf = yes; then
26362     gcc_cv_ld_eh_gc_sections=yes
26363   fi
26364 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26365   cat > conftest.s <<EOF
26366         .section        .text
26367 .globl _start
26368         .type _start, @function
26369 _start:
26370         .long foo
26371         .size _start, .-_start
26372         .section        .text.foo,"ax",@progbits
26373         .type foo, @function
26374 foo:
26375         .long 0
26376         .size foo, .-foo
26377         .section        .gcc_except_table.foo,"a",@progbits
26378 .L0:
26379         .long 0
26380         .section        .eh_frame,"a",@progbits
26381         .long .L0
26382 EOF
26383   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26384     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26385          | grep "gc-sections option ignored" > /dev/null; then
26386       gcc_cv_ld_eh_gc_sections=no
26387     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26388          | grep gcc_except_table > /dev/null; then
26389       gcc_cv_ld_eh_gc_sections=yes
26390       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26391       if test x$gcc_cv_as_comdat_group != xyes; then
26392         gcc_cv_ld_eh_gc_sections=no
26393         cat > conftest.s <<EOF
26394         .section        .text
26395 .globl _start
26396         .type _start, @function
26397 _start:
26398         .long foo
26399         .size _start, .-_start
26400         .section        .gnu.linkonce.t.foo,"ax",@progbits
26401         .type foo, @function
26402 foo:
26403         .long 0
26404         .size foo, .-foo
26405         .section        .gcc_except_table.foo,"a",@progbits
26406 .L0:
26407         .long 0
26408         .section        .eh_frame,"a",@progbits
26409         .long .L0
26410 EOF
26411         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26412           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26413                | grep "gc-sections option ignored" > /dev/null; then
26414             gcc_cv_ld_eh_gc_sections=no
26415           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26416                | grep gcc_except_table > /dev/null; then
26417             gcc_cv_ld_eh_gc_sections=yes
26418           fi
26419         fi
26420       fi
26421     fi
26422   fi
26423   rm -f conftest.s conftest.o conftest
26424 fi
26425 case "$target" in
26426   hppa*-*-linux*)
26427     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26428     gcc_cv_ld_eh_gc_sections=no
26429     ;;
26430 esac
26431 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26432
26433 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26434
26435 fi
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26437 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26438
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26440 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26441 gcc_cv_ld_eh_gc_sections_bug=no
26442 if test $in_tree_ld = yes ; then
26443   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 \
26444      && test $in_tree_ld_is_elf = yes; then
26445     gcc_cv_ld_eh_gc_sections_bug=yes
26446   fi
26447 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
26448   gcc_cv_ld_eh_gc_sections_bug=yes
26449   cat > conftest.s <<EOF
26450         .section        .text
26451 .globl _start
26452         .type _start, @function
26453 _start:
26454         .long foo
26455         .size _start, .-_start
26456         .section        .text.startup.foo,"ax",@progbits
26457         .type foo, @function
26458 foo:
26459         .long 0
26460         .size foo, .-foo
26461         .section        .gcc_except_table.foo,"a",@progbits
26462 .L0:
26463         .long 0
26464         .section        .eh_frame,"a",@progbits
26465         .long .L0
26466 EOF
26467   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26468     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26469          | grep "gc-sections option ignored" > /dev/null; then
26470       :
26471     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26472          | grep gcc_except_table > /dev/null; then
26473       gcc_cv_ld_eh_gc_sections_bug=no
26474     fi
26475   fi
26476   rm -f conftest.s conftest.o conftest
26477 fi
26478 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26479
26480 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26481
26482 fi
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26484 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26485
26486 # --------
26487 # UNSORTED
26488 # --------
26489
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26491 $as_echo_n "checking linker --as-needed support... " >&6; }
26492 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26493   $as_echo_n "(cached) " >&6
26494 else
26495   gcc_cv_ld_as_needed=no
26496 if test $in_tree_ld = yes ; then
26497   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 \
26498      && test $in_tree_ld_is_elf = yes; then
26499     gcc_cv_ld_as_needed=yes
26500   fi
26501 elif test x$gcc_cv_ld != x; then
26502         # Check if linker supports --as-needed and --no-as-needed options
26503         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26504                 gcc_cv_ld_as_needed=yes
26505         fi
26506 fi
26507
26508 fi
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26510 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26511 if test x"$gcc_cv_ld_as_needed" = xyes; then
26512
26513 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26514
26515 fi
26516
26517 case "$target:$tm_file" in
26518   powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26519   case "$target" in
26520      *-*-linux*)
26521      emul_name="-melf64ppc"
26522       ;;
26523      *-*-freebsd*)
26524      emul_name="-melf64ppc_fbsd"
26525       ;;
26526   esac
26527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26528 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26529 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26530   $as_echo_n "(cached) " >&6
26531 else
26532   gcc_cv_ld_no_dot_syms=no
26533     if test x"$ld_is_gold" = xyes; then
26534       gcc_cv_ld_no_dot_syms=yes
26535     elif test $in_tree_ld = yes ; then
26536       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
26537         gcc_cv_ld_no_dot_syms=yes
26538       fi
26539     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26540       cat > conftest1.s <<EOF
26541         .text
26542         bl .foo
26543 EOF
26544       cat > conftest2.s <<EOF
26545         .section ".opd","aw"
26546         .align 3
26547         .globl foo
26548         .type foo,@function
26549 foo:
26550         .quad .LEfoo,.TOC.@tocbase,0
26551         .text
26552 .LEfoo:
26553         blr
26554         .size foo,.-.LEfoo
26555 EOF
26556       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26557          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26558          && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26559         gcc_cv_ld_no_dot_syms=yes
26560       fi
26561       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26562     fi
26563
26564 fi
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26566 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26567     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26568
26569 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26570
26571     fi
26572
26573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26574 $as_echo_n "checking linker large toc support... " >&6; }
26575 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26576   $as_echo_n "(cached) " >&6
26577 else
26578   gcc_cv_ld_large_toc=no
26579     if test x"$ld_is_gold" = xyes; then
26580       gcc_cv_ld_large_toc=yes
26581     elif test $in_tree_ld = yes ; then
26582       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
26583         gcc_cv_ld_large_toc=yes
26584       fi
26585     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26586       cat > conftest.s <<EOF
26587         .section ".tbss","awT",@nobits
26588         .align 3
26589 ie0:    .space 8
26590         .global _start
26591         .text
26592 _start:
26593         addis 9,13,ie0@got@tprel@ha
26594         ld 9,ie0@got@tprel@l(9)
26595 EOF
26596       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26597          && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26598         gcc_cv_ld_large_toc=yes
26599       fi
26600       rm -f conftest conftest.o conftest.s
26601     fi
26602
26603 fi
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26605 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26606     if test x"$gcc_cv_ld_large_toc" = xyes; then
26607
26608 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26609
26610     fi
26611     ;;
26612 esac
26613
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26615 $as_echo_n "checking linker --build-id support... " >&6; }
26616 if test "${gcc_cv_ld_buildid+set}" = set; then :
26617   $as_echo_n "(cached) " >&6
26618 else
26619   gcc_cv_ld_buildid=no
26620   if test $in_tree_ld = yes ; then
26621     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26622        "$gcc_cv_gld_minor_version" -ge 18 -o \
26623        "$gcc_cv_gld_major_version" -gt 2 \
26624        && test $in_tree_ld_is_elf = yes; then
26625       gcc_cv_ld_buildid=yes
26626     fi
26627   elif test x$gcc_cv_ld != x; then
26628     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26629       gcc_cv_ld_buildid=yes
26630     fi
26631   fi
26632 fi
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26634 $as_echo "$gcc_cv_ld_buildid" >&6; }
26635 if test x"$gcc_cv_ld_buildid" = xyes; then
26636
26637 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26638
26639 fi
26640
26641 # Check whether --enable-linker-build-id was given.
26642 if test "${enable_linker_build_id+set}" = set; then :
26643   enableval=$enable_linker_build_id;
26644 else
26645   enable_linker_build_id=no
26646 fi
26647
26648
26649 if test x"$enable_linker_build_id" = xyes; then
26650   if test x"$gcc_cv_ld_buildid" = xyes; then
26651
26652 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26653
26654   else
26655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26656 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26657   fi
26658 fi
26659
26660 # In binutils 2.21, GNU ld gained support for new emulations fully
26661 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26663 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26664 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26665   $as_echo_n "(cached) " >&6
26666 else
26667   gcc_cv_ld_sol2_emulation=no
26668   if test $in_tree_ld = yes ; then
26669     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26670        "$gcc_cv_gld_minor_version" -ge 21 -o \
26671        "$gcc_cv_gld_major_version" -gt 2 \
26672        && test $in_tree_ld_is_elf = yes; then
26673       gcc_cv_ld_sol2_emulation=yes
26674     fi
26675   elif test x$gcc_cv_ld != x; then
26676     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26677        grep _sol2 > /dev/null; then
26678       gcc_cv_ld_sol2_emulation=yes
26679     fi
26680   fi
26681 fi
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26683 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26684 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26685
26686 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26687
26688 fi
26689
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26691 $as_echo_n "checking linker --sysroot support... " >&6; }
26692 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26693   $as_echo_n "(cached) " >&6
26694 else
26695   gcc_cv_ld_sysroot=no
26696   if test $in_tree_ld = yes ; then
26697       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
26698         gcc_cv_ld_sysroot=yes
26699       fi
26700   elif test x$gcc_cv_ld != x; then
26701     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26702       gcc_cv_ld_sysroot=yes
26703     fi
26704   fi
26705 fi
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26707 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26708 if test x"$gcc_cv_ld_sysroot" = xyes; then
26709
26710 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26711
26712 fi
26713
26714 if test x$with_sysroot = x && test x$host = x$target \
26715    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26716    && test "$prefix" != "NONE"; then
26717
26718 cat >>confdefs.h <<_ACEOF
26719 #define PREFIX_INCLUDE_DIR "$prefix/include"
26720 _ACEOF
26721
26722 fi
26723
26724 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26725   if test "x$with_headers" != x; then
26726     target_header_dir=$with_headers
26727   elif test "x$with_sysroot" = x; then
26728     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26729   elif test "x$with_build_sysroot" != "x"; then
26730     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26731   elif test "x$with_sysroot" = xyes; then
26732     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26733   else
26734     target_header_dir="${with_sysroot}${native_system_header_dir}"
26735   fi
26736 else
26737   target_header_dir=${native_system_header_dir}
26738 fi
26739
26740 # Test for stack protector support in target C library.
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26742 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26743 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26744   $as_echo_n "(cached) " >&6
26745 else
26746   gcc_cv_libc_provides_ssp=no
26747     case "$target" in
26748        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26749       # glibc 2.4 and later provides __stack_chk_fail and
26750       # either __stack_chk_guard, or TLS access to stack guard canary.
26751       if test -f $target_header_dir/features.h \
26752          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26753             $target_header_dir/features.h > /dev/null; then
26754         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26755            $target_header_dir/features.h > /dev/null; then
26756           gcc_cv_libc_provides_ssp=yes
26757         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26758              $target_header_dir/features.h > /dev/null \
26759              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26760              $target_header_dir/features.h > /dev/null; then
26761           gcc_cv_libc_provides_ssp=yes
26762         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26763              $target_header_dir/features.h > /dev/null && \
26764              test -f $target_header_dir/bits/uClibc_config.h && \
26765              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26766              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26767           gcc_cv_libc_provides_ssp=yes
26768         fi
26769       # all versions of Bionic support stack protector
26770       elif test -f $target_header_dir/sys/cdefs.h \
26771         && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
26772            $target_header_dir/sys/cdefs.h > /dev/null; then
26773          gcc_cv_libc_provides_ssp=yes
26774       fi
26775         ;;
26776        *-*-gnu*)
26777          # Avoid complicated tests (see
26778          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26779          # simply assert that glibc does provide this, which is true for all
26780          # realistically usable GNU/Hurd configurations.
26781          gcc_cv_libc_provides_ssp=yes;;
26782        *-*-darwin* | *-*-freebsd*)
26783          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26784 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26785   gcc_cv_libc_provides_ssp=yes
26786 else
26787   echo "no __stack_chk_fail on this target"
26788 fi
26789
26790         ;;
26791   *) gcc_cv_libc_provides_ssp=no ;;
26792     esac
26793 fi
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26795 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26796
26797 if test x$gcc_cv_libc_provides_ssp = xyes; then
26798
26799 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26800
26801 fi
26802
26803 # Test for <sys/sdt.h> on the target.
26804
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26806 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26807 have_sys_sdt_h=no
26808 if test -f $target_header_dir/sys/sdt.h; then
26809   have_sys_sdt_h=yes
26810
26811 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26812
26813 fi
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26815 $as_echo "$have_sys_sdt_h" >&6; }
26816
26817 # Check if TFmode long double should be used by default or not.
26818 # Some glibc targets used DFmode long double, but with glibc 2.4
26819 # and later they can use TFmode.
26820 case "$target" in
26821   powerpc*-*-linux* | \
26822   sparc*-*-linux* | \
26823   s390*-*-linux* | \
26824   alpha*-*-linux*)
26825
26826 # Check whether --with-long-double-128 was given.
26827 if test "${with_long_double_128+set}" = set; then :
26828   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26829 else
26830   gcc_cv_target_ldbl128=no
26831       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26832         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26833       && gcc_cv_target_ldbl128=yes
26834
26835 fi
26836
26837     ;;
26838 esac
26839 if test x$gcc_cv_target_ldbl128 = xyes; then
26840
26841 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26842
26843 fi
26844
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26846 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26847 gcc_cv_target_dl_iterate_phdr=unknown
26848 case "$target" in
26849   # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
26850   # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26851   # libdl there, both complicating its use and breaking compatibility
26852   # between Solaris 10 updates.
26853   *-*-solaris2.1[1-9]*)
26854     # <link.h> needs both a dl_iterate_phdr declaration and support for
26855     # compilation with largefile support.
26856     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26857       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26858       gcc_cv_target_dl_iterate_phdr=yes
26859     else
26860       gcc_cv_target_dl_iterate_phdr=no
26861     fi
26862     ;;
26863 esac
26864
26865 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26866
26867 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26868
26869 fi
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26871 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26872
26873 # Find out what GC implementation we want, or may, use.
26874
26875 # Check whether --with-gc was given.
26876 if test "${with_gc+set}" = set; then :
26877   withval=$with_gc; case "$withval" in
26878   page)
26879     GGC=ggc-$withval
26880     ;;
26881   zone)
26882     GGC=ggc-$withval
26883
26884 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26885
26886     ;;
26887   *)
26888     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26889     ;;
26890 esac
26891 else
26892   GGC=ggc-page
26893 fi
26894
26895
26896 echo "Using $GGC for garbage collection."
26897
26898 # Libraries to use on the host.  This will normally be set by the top
26899 # level Makefile.  Here we simply capture the value for our Makefile.
26900 if test -z "${HOST_LIBS+set}"; then
26901   HOST_LIBS=
26902 fi
26903
26904
26905 # Use the system's zlib library.
26906 zlibdir=-L../zlib
26907 zlibinc="-I\$(srcdir)/../zlib"
26908
26909 # Check whether --with-system-zlib was given.
26910 if test "${with_system_zlib+set}" = set; then :
26911   withval=$with_system_zlib; zlibdir=
26912 zlibinc=
26913
26914 fi
26915
26916
26917
26918
26919
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26921 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26922     # Check whether --enable-maintainer-mode was given.
26923 if test "${enable_maintainer_mode+set}" = set; then :
26924   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26925 else
26926   maintainer_mode=no
26927 fi
26928
26929
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26931 $as_echo "$maintainer_mode" >&6; }
26932
26933 if test "$maintainer_mode" = "yes"; then
26934   MAINT=''
26935 else
26936   MAINT='#'
26937 fi
26938
26939 # --------------
26940 # Language hooks
26941 # --------------
26942
26943 # Make empty files to contain the specs and options for each language.
26944 # Then add #include lines to for a compiler that has specs and/or options.
26945
26946 subdirs=
26947 lang_opt_files=
26948 lang_specs_files=
26949 lang_tree_files=
26950 # These (without "all_") are set in each config-lang.in.
26951 # `language' must be a single word so is spelled singularly.
26952 all_languages=
26953 all_compilers=
26954 all_outputs='Makefile'
26955 # List of language makefile fragments.
26956 all_lang_makefrags=
26957 # Additional files for gengtype
26958 all_gtfiles="$target_gtfiles"
26959
26960 # These are the languages that are set in --enable-languages,
26961 # and are available in the GCC tree.
26962 all_selected_languages=
26963
26964 # Add the language fragments.
26965 # Languages are added via two mechanisms.  Some information must be
26966 # recorded in makefile variables, these are defined in config-lang.in.
26967 # We accumulate them and plug them into the main Makefile.
26968 # The other mechanism is a set of hooks for each of the main targets
26969 # like `clean', `install', etc.
26970
26971 language_hooks="Make-hooks"
26972
26973 for lang in ${srcdir}/*/config-lang.in
26974 do
26975         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26976
26977         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26978         if test "x$lang_alias" = x
26979         then
26980               echo "$lang doesn't set \$language." 1>&2
26981               exit 1
26982         fi
26983         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26984         subdirs="$subdirs $subdir"
26985
26986         # $gcc_subdir is where the gcc integration files are to be found
26987         # for a language, both for internal compiler purposes (compiler
26988         # sources implementing front-end to GCC tree converters), and for
26989         # build infrastructure purposes (Make-lang.in, etc.)
26990         #
26991         # This will be <subdir> (relative to $srcdir) if a line like
26992         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26993         # is found in <langdir>/config-lang.in, and will remain <langdir>
26994         # otherwise.
26995         #
26996         # Except for the language alias (fetched above), the regular
26997         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26998         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26999         # only this and the language alias.
27000
27001         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
27002         if [ "$gcc_subdir" = "" ]; then
27003            gcc_subdir="$subdir"
27004         fi
27005
27006         case ",$enable_languages," in
27007         *,$lang_alias,*)
27008             all_selected_languages="$all_selected_languages $lang_alias"
27009             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27010                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27011             fi
27012             ;;
27013         esac
27014
27015         language=
27016         boot_language=
27017         compilers=
27018         outputs=
27019         gtfiles=
27020         subdir_requires=
27021         . ${srcdir}/$gcc_subdir/config-lang.in
27022         if test "x$language" = x
27023         then
27024                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27025                 exit 1
27026         fi
27027
27028         ok=:
27029         case ",$enable_languages," in
27030                 *,$lang_alias,*) ;;
27031                 *)
27032                         for i in $subdir_requires; do
27033                                 test -f "${srcdir}/$i/config-lang.in" && continue
27034                                 ok=false
27035                                 break
27036                         done
27037                 ;;
27038         esac
27039         $ok || continue
27040
27041         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27042         if test -f $srcdir/$gcc_subdir/lang.opt; then
27043             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27044             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27045         fi
27046         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27047             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27048         fi
27049         all_languages="$all_languages $language"
27050         all_compilers="$all_compilers $compilers"
27051         all_outputs="$all_outputs $outputs"
27052         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27053         case ",$enable_languages," in
27054                 *,lto,*)
27055
27056 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27057
27058                     enable_lto=yes
27059
27060                     ;;
27061                 *) ;;
27062         esac
27063 done
27064
27065 # Pick up gtfiles for c
27066 gtfiles=
27067 . ${srcdir}/c-config-lang.in
27068 all_gtfiles="$all_gtfiles [c] $gtfiles"
27069
27070 check_languages=
27071 for language in $all_selected_languages
27072 do
27073         check_languages="$check_languages check-$language"
27074 done
27075
27076 # We link each language in with a set of hooks, reached indirectly via
27077 # lang.${target}.  Only do so for selected languages.
27078
27079 rm -f Make-hooks
27080 touch Make-hooks
27081 target_list="all.cross start.encap rest.encap tags \
27082         install-common install-man install-info install-pdf install-html dvi \
27083         pdf html uninstall info man srcextra srcman srcinfo \
27084         mostlyclean clean distclean maintainer-clean install-plugin"
27085
27086 for t in $target_list
27087 do
27088         x=
27089         for lang in $all_selected_languages
27090         do
27091                 x="$x $lang.$t"
27092         done
27093         echo "lang.$t: $x" >> Make-hooks
27094 done
27095
27096 # --------
27097 # Option include files
27098 # --------
27099
27100 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27101 option_includes="option-includes.mk"
27102
27103
27104 # --------
27105 # UNSORTED
27106 # --------
27107
27108 # Create .gdbinit.
27109
27110 echo "dir ." > .gdbinit
27111 echo "dir ${srcdir}" >> .gdbinit
27112 if test x$gdb_needs_out_file_path = xyes
27113 then
27114         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27115 fi
27116 if test "x$subdirs" != x; then
27117         for s in $subdirs
27118         do
27119                 echo "dir ${srcdir}/$s" >> .gdbinit
27120         done
27121 fi
27122 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27123
27124 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27125
27126
27127
27128 # Find a directory in which to install a shared libgcc.
27129
27130 # Check whether --enable-version-specific-runtime-libs was given.
27131 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27132   enableval=$enable_version_specific_runtime_libs;
27133 fi
27134
27135
27136 # Substitute configuration variables
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200 # Echo link setup.
27201 if test x${build} = x${host} ; then
27202   if test x${host} = x${target} ; then
27203     echo "Links are now set up to build a native compiler for ${target}." 1>&2
27204   else
27205     echo "Links are now set up to build a cross-compiler" 1>&2
27206     echo " from ${host} to ${target}." 1>&2
27207   fi
27208 else
27209   if test x${host} = x${target} ; then
27210     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27211     echo " for ${target}." 1>&2
27212   else
27213     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27214     echo " from ${host} to ${target}." 1>&2
27215   fi
27216 fi
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226 if test "x${CLOOGLIBS}" != "x" ; then
27227
27228 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27229
27230 fi
27231
27232 # Check for plugin support
27233 # Check whether --enable-plugin was given.
27234 if test "${enable_plugin+set}" = set; then :
27235   enableval=$enable_plugin; enable_plugin=$enableval
27236 else
27237   enable_plugin=yes; default_plugin=yes
27238 fi
27239
27240
27241 pluginlibs=
27242
27243 case "${host}" in
27244   *-*-darwin*)
27245     if test x$build = x$host; then
27246       export_sym_check="nm${exeext} -g"
27247     elif test x$host = x$target; then
27248       export_sym_check="$gcc_cv_nm -g"
27249     else
27250       export_sym_check=
27251     fi
27252   ;;
27253   *)
27254     if test x$build = x$host; then
27255       export_sym_check="objdump${exeext} -T"
27256     elif test x$host = x$target; then
27257       export_sym_check="$gcc_cv_objdump -T"
27258     else
27259       export_sym_check=
27260     fi
27261   ;;
27262 esac
27263
27264 if test x"$enable_plugin" = x"yes"; then
27265
27266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27267 $as_echo_n "checking for exported symbols... " >&6; }
27268   if test "x$export_sym_check" != x; then
27269     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27270     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27271     if $export_sym_check conftest | grep foobar > /dev/null; then
27272       : # No need to use a flag
27273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27274 $as_echo "yes" >&6; }
27275     else
27276       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27277 $as_echo "yes" >&6; }
27278       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27279 $as_echo_n "checking for -rdynamic... " >&6; }
27280       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27281       if $export_sym_check conftest | grep foobar > /dev/null; then
27282         plugin_rdynamic=yes
27283         pluginlibs="-rdynamic"
27284       else
27285         plugin_rdynamic=no
27286         enable_plugin=no
27287       fi
27288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27289 $as_echo "$plugin_rdynamic" >&6; }
27290     fi
27291   else
27292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27293 $as_echo "unable to check" >&6; }
27294   fi
27295
27296   # Check -ldl
27297   saved_LIBS="$LIBS"
27298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27299 $as_echo_n "checking for library containing dlopen... " >&6; }
27300 if test "${ac_cv_search_dlopen+set}" = set; then :
27301   $as_echo_n "(cached) " >&6
27302 else
27303   ac_func_search_save_LIBS=$LIBS
27304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27305 /* end confdefs.h.  */
27306
27307 /* Override any GCC internal prototype to avoid an error.
27308    Use char because int might match the return type of a GCC
27309    builtin and then its argument prototype would still apply.  */
27310 #ifdef __cplusplus
27311 extern "C"
27312 #endif
27313 char dlopen ();
27314 int
27315 main ()
27316 {
27317 return dlopen ();
27318   ;
27319   return 0;
27320 }
27321 _ACEOF
27322 for ac_lib in '' dl; do
27323   if test -z "$ac_lib"; then
27324     ac_res="none required"
27325   else
27326     ac_res=-l$ac_lib
27327     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27328   fi
27329   if ac_fn_c_try_link "$LINENO"; then :
27330   ac_cv_search_dlopen=$ac_res
27331 fi
27332 rm -f core conftest.err conftest.$ac_objext \
27333     conftest$ac_exeext
27334   if test "${ac_cv_search_dlopen+set}" = set; then :
27335   break
27336 fi
27337 done
27338 if test "${ac_cv_search_dlopen+set}" = set; then :
27339
27340 else
27341   ac_cv_search_dlopen=no
27342 fi
27343 rm conftest.$ac_ext
27344 LIBS=$ac_func_search_save_LIBS
27345 fi
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27347 $as_echo "$ac_cv_search_dlopen" >&6; }
27348 ac_res=$ac_cv_search_dlopen
27349 if test "$ac_res" != no; then :
27350   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27351
27352 fi
27353
27354   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27355     pluginlibs="$pluginlibs -ldl"
27356   fi
27357   LIBS="$saved_LIBS"
27358
27359   # Check that we can build shared objects with -fPIC -shared
27360   saved_LDFLAGS="$LDFLAGS"
27361   saved_CFLAGS="$CFLAGS"
27362   case "${host}" in
27363     *-*-darwin*)
27364       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27365       CFLAGS="$CFLAGS -fPIC"
27366       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27367     ;;
27368     *)
27369       CFLAGS="$CFLAGS -fPIC"
27370       LDFLAGS="$LDFLAGS -fPIC -shared"
27371     ;;
27372   esac
27373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27374 $as_echo_n "checking for -fPIC -shared... " >&6; }
27375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376 /* end confdefs.h.  */
27377 extern int X;
27378 int
27379 main ()
27380 {
27381 return X == 0;
27382   ;
27383   return 0;
27384 }
27385 _ACEOF
27386 if ac_fn_c_try_link "$LINENO"; then :
27387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27388 $as_echo "yes" >&6; }; have_pic_shared=yes
27389 else
27390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27391 $as_echo "no" >&6; }; have_pic_shared=no
27392 fi
27393 rm -f core conftest.err conftest.$ac_objext \
27394     conftest$ac_exeext conftest.$ac_ext
27395   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27396     pluginlibs=
27397     enable_plugin=no
27398   fi
27399   LDFLAGS="$saved_LDFLAGS"
27400   CFLAGS="$saved_CFLAGS"
27401
27402   # If plugin support had been requested but not available, fail.
27403   if test x"$enable_plugin" = x"no" ; then
27404     if test x"$default_plugin" != x"yes"; then
27405       as_fn_error "
27406 Building GCC with plugin support requires a host that supports
27407 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27408     fi
27409   fi
27410 fi
27411
27412
27413
27414 if test x"$enable_plugin" = x"yes"; then
27415
27416 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27417
27418 fi
27419
27420
27421 # Check whether --enable-libquadmath-support was given.
27422 if test "${enable_libquadmath_support+set}" = set; then :
27423   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27424 else
27425   ENABLE_LIBQUADMATH_SUPPORT=yes
27426 fi
27427
27428 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27429
27430 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27431
27432 fi
27433
27434
27435 # Specify what hash style to use by default.
27436
27437 # Check whether --with-linker-hash-style was given.
27438 if test "${with_linker_hash_style+set}" = set; then :
27439   withval=$with_linker_hash_style; case x"$withval" in
27440    xsysv)
27441      LINKER_HASH_STYLE=sysv
27442      ;;
27443    xgnu)
27444      LINKER_HASH_STYLE=gnu
27445      ;;
27446    xboth)
27447      LINKER_HASH_STYLE=both
27448      ;;
27449    *)
27450      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27451      ;;
27452  esac
27453 else
27454   LINKER_HASH_STYLE=''
27455 fi
27456
27457 if test x"${LINKER_HASH_STYLE}" != x; then
27458
27459 cat >>confdefs.h <<_ACEOF
27460 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27461 _ACEOF
27462
27463 fi
27464
27465 # Configure the subdirectories
27466 # AC_CONFIG_SUBDIRS($subdirs)
27467
27468 # Create the Makefile
27469 # and configure language subdirectories
27470 ac_config_files="$ac_config_files $all_outputs"
27471
27472
27473 ac_config_commands="$ac_config_commands default"
27474
27475 cat >confcache <<\_ACEOF
27476 # This file is a shell script that caches the results of configure
27477 # tests run on this system so they can be shared between configure
27478 # scripts and configure runs, see configure's option --config-cache.
27479 # It is not useful on other systems.  If it contains results you don't
27480 # want to keep, you may remove or edit it.
27481 #
27482 # config.status only pays attention to the cache file if you give it
27483 # the --recheck option to rerun configure.
27484 #
27485 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27486 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27487 # following values.
27488
27489 _ACEOF
27490
27491 # The following way of writing the cache mishandles newlines in values,
27492 # but we know of no workaround that is simple, portable, and efficient.
27493 # So, we kill variables containing newlines.
27494 # Ultrix sh set writes to stderr and can't be redirected directly,
27495 # and sets the high bit in the cache file unless we assign to the vars.
27496 (
27497   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27498     eval ac_val=\$$ac_var
27499     case $ac_val in #(
27500     *${as_nl}*)
27501       case $ac_var in #(
27502       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27503 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27504       esac
27505       case $ac_var in #(
27506       _ | IFS | as_nl) ;; #(
27507       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27508       *) { eval $ac_var=; unset $ac_var;} ;;
27509       esac ;;
27510     esac
27511   done
27512
27513   (set) 2>&1 |
27514     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27515     *${as_nl}ac_space=\ *)
27516       # `set' does not quote correctly, so add quotes: double-quote
27517       # substitution turns \\\\ into \\, and sed turns \\ into \.
27518       sed -n \
27519         "s/'/'\\\\''/g;
27520           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27521       ;; #(
27522     *)
27523       # `set' quotes correctly as required by POSIX, so do not add quotes.
27524       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27525       ;;
27526     esac |
27527     sort
27528 ) |
27529   sed '
27530      /^ac_cv_env_/b end
27531      t clear
27532      :clear
27533      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27534      t end
27535      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27536      :end' >>confcache
27537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27538   if test -w "$cache_file"; then
27539     test "x$cache_file" != "x/dev/null" &&
27540       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27541 $as_echo "$as_me: updating cache $cache_file" >&6;}
27542     cat confcache >$cache_file
27543   else
27544     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27545 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27546   fi
27547 fi
27548 rm -f confcache
27549
27550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27551 # Let make expand exec_prefix.
27552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27553
27554 DEFS=-DHAVE_CONFIG_H
27555
27556 ac_libobjs=
27557 ac_ltlibobjs=
27558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27559   # 1. Remove the extension, and $U if already installed.
27560   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27561   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27562   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27563   #    will be set to the directory where LIBOBJS objects are built.
27564   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27565   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27566 done
27567 LIBOBJS=$ac_libobjs
27568
27569 LTLIBOBJS=$ac_ltlibobjs
27570
27571
27572
27573
27574 : ${CONFIG_STATUS=./config.status}
27575 ac_write_fail=0
27576 ac_clean_files_save=$ac_clean_files
27577 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27579 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27580 as_write_fail=0
27581 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27582 #! $SHELL
27583 # Generated by $as_me.
27584 # Run this file to recreate the current configuration.
27585 # Compiler output produced by configure, useful for debugging
27586 # configure, is in config.log if it exists.
27587
27588 debug=false
27589 ac_cs_recheck=false
27590 ac_cs_silent=false
27591
27592 SHELL=\${CONFIG_SHELL-$SHELL}
27593 export SHELL
27594 _ASEOF
27595 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27596 ## -------------------- ##
27597 ## M4sh Initialization. ##
27598 ## -------------------- ##
27599
27600 # Be more Bourne compatible
27601 DUALCASE=1; export DUALCASE # for MKS sh
27602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27603   emulate sh
27604   NULLCMD=:
27605   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27606   # is contrary to our usage.  Disable this feature.
27607   alias -g '${1+"$@"}'='"$@"'
27608   setopt NO_GLOB_SUBST
27609 else
27610   case `(set -o) 2>/dev/null` in #(
27611   *posix*) :
27612     set -o posix ;; #(
27613   *) :
27614      ;;
27615 esac
27616 fi
27617
27618
27619 as_nl='
27620 '
27621 export as_nl
27622 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27623 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27626 # Prefer a ksh shell builtin over an external printf program on Solaris,
27627 # but without wasting forks for bash or zsh.
27628 if test -z "$BASH_VERSION$ZSH_VERSION" \
27629     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27630   as_echo='print -r --'
27631   as_echo_n='print -rn --'
27632 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27633   as_echo='printf %s\n'
27634   as_echo_n='printf %s'
27635 else
27636   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27637     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27638     as_echo_n='/usr/ucb/echo -n'
27639   else
27640     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27641     as_echo_n_body='eval
27642       arg=$1;
27643       case $arg in #(
27644       *"$as_nl"*)
27645         expr "X$arg" : "X\\(.*\\)$as_nl";
27646         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27647       esac;
27648       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27649     '
27650     export as_echo_n_body
27651     as_echo_n='sh -c $as_echo_n_body as_echo'
27652   fi
27653   export as_echo_body
27654   as_echo='sh -c $as_echo_body as_echo'
27655 fi
27656
27657 # The user is always right.
27658 if test "${PATH_SEPARATOR+set}" != set; then
27659   PATH_SEPARATOR=:
27660   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27661     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27662       PATH_SEPARATOR=';'
27663   }
27664 fi
27665
27666
27667 # IFS
27668 # We need space, tab and new line, in precisely that order.  Quoting is
27669 # there to prevent editors from complaining about space-tab.
27670 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27671 # splitting by setting IFS to empty value.)
27672 IFS=" ""        $as_nl"
27673
27674 # Find who we are.  Look in the path if we contain no directory separator.
27675 case $0 in #((
27676   *[\\/]* ) as_myself=$0 ;;
27677   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27678 for as_dir in $PATH
27679 do
27680   IFS=$as_save_IFS
27681   test -z "$as_dir" && as_dir=.
27682     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27683   done
27684 IFS=$as_save_IFS
27685
27686      ;;
27687 esac
27688 # We did not find ourselves, most probably we were run as `sh COMMAND'
27689 # in which case we are not to be found in the path.
27690 if test "x$as_myself" = x; then
27691   as_myself=$0
27692 fi
27693 if test ! -f "$as_myself"; then
27694   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27695   exit 1
27696 fi
27697
27698 # Unset variables that we do not need and which cause bugs (e.g. in
27699 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27700 # suppresses any "Segmentation fault" message there.  '((' could
27701 # trigger a bug in pdksh 5.2.14.
27702 for as_var in BASH_ENV ENV MAIL MAILPATH
27703 do eval test x\${$as_var+set} = xset \
27704   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27705 done
27706 PS1='$ '
27707 PS2='> '
27708 PS4='+ '
27709
27710 # NLS nuisances.
27711 LC_ALL=C
27712 export LC_ALL
27713 LANGUAGE=C
27714 export LANGUAGE
27715
27716 # CDPATH.
27717 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27718
27719
27720 # as_fn_error ERROR [LINENO LOG_FD]
27721 # ---------------------------------
27722 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27723 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27724 # script with status $?, using 1 if that was 0.
27725 as_fn_error ()
27726 {
27727   as_status=$?; test $as_status -eq 0 && as_status=1
27728   if test "$3"; then
27729     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27730     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27731   fi
27732   $as_echo "$as_me: error: $1" >&2
27733   as_fn_exit $as_status
27734 } # as_fn_error
27735
27736
27737 # as_fn_set_status STATUS
27738 # -----------------------
27739 # Set $? to STATUS, without forking.
27740 as_fn_set_status ()
27741 {
27742   return $1
27743 } # as_fn_set_status
27744
27745 # as_fn_exit STATUS
27746 # -----------------
27747 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27748 as_fn_exit ()
27749 {
27750   set +e
27751   as_fn_set_status $1
27752   exit $1
27753 } # as_fn_exit
27754
27755 # as_fn_unset VAR
27756 # ---------------
27757 # Portably unset VAR.
27758 as_fn_unset ()
27759 {
27760   { eval $1=; unset $1;}
27761 }
27762 as_unset=as_fn_unset
27763 # as_fn_append VAR VALUE
27764 # ----------------------
27765 # Append the text in VALUE to the end of the definition contained in VAR. Take
27766 # advantage of any shell optimizations that allow amortized linear growth over
27767 # repeated appends, instead of the typical quadratic growth present in naive
27768 # implementations.
27769 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27770   eval 'as_fn_append ()
27771   {
27772     eval $1+=\$2
27773   }'
27774 else
27775   as_fn_append ()
27776   {
27777     eval $1=\$$1\$2
27778   }
27779 fi # as_fn_append
27780
27781 # as_fn_arith ARG...
27782 # ------------------
27783 # Perform arithmetic evaluation on the ARGs, and store the result in the
27784 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27785 # must be portable across $(()) and expr.
27786 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27787   eval 'as_fn_arith ()
27788   {
27789     as_val=$(( $* ))
27790   }'
27791 else
27792   as_fn_arith ()
27793   {
27794     as_val=`expr "$@" || test $? -eq 1`
27795   }
27796 fi # as_fn_arith
27797
27798
27799 if expr a : '\(a\)' >/dev/null 2>&1 &&
27800    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27801   as_expr=expr
27802 else
27803   as_expr=false
27804 fi
27805
27806 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27807   as_basename=basename
27808 else
27809   as_basename=false
27810 fi
27811
27812 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27813   as_dirname=dirname
27814 else
27815   as_dirname=false
27816 fi
27817
27818 as_me=`$as_basename -- "$0" ||
27819 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27820          X"$0" : 'X\(//\)$' \| \
27821          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27822 $as_echo X/"$0" |
27823     sed '/^.*\/\([^/][^/]*\)\/*$/{
27824             s//\1/
27825             q
27826           }
27827           /^X\/\(\/\/\)$/{
27828             s//\1/
27829             q
27830           }
27831           /^X\/\(\/\).*/{
27832             s//\1/
27833             q
27834           }
27835           s/.*/./; q'`
27836
27837 # Avoid depending upon Character Ranges.
27838 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27839 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27840 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27841 as_cr_digits='0123456789'
27842 as_cr_alnum=$as_cr_Letters$as_cr_digits
27843
27844 ECHO_C= ECHO_N= ECHO_T=
27845 case `echo -n x` in #(((((
27846 -n*)
27847   case `echo 'xy\c'` in
27848   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27849   xy)  ECHO_C='\c';;
27850   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27851        ECHO_T=' ';;
27852   esac;;
27853 *)
27854   ECHO_N='-n';;
27855 esac
27856
27857 rm -f conf$$ conf$$.exe conf$$.file
27858 if test -d conf$$.dir; then
27859   rm -f conf$$.dir/conf$$.file
27860 else
27861   rm -f conf$$.dir
27862   mkdir conf$$.dir 2>/dev/null
27863 fi
27864 if (echo >conf$$.file) 2>/dev/null; then
27865   if ln -s conf$$.file conf$$ 2>/dev/null; then
27866     as_ln_s='ln -s'
27867     # ... but there are two gotchas:
27868     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27869     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27870     # In both cases, we have to default to `cp -p'.
27871     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27872       as_ln_s='cp -p'
27873   elif ln conf$$.file conf$$ 2>/dev/null; then
27874     as_ln_s=ln
27875   else
27876     as_ln_s='cp -p'
27877   fi
27878 else
27879   as_ln_s='cp -p'
27880 fi
27881 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27882 rmdir conf$$.dir 2>/dev/null
27883
27884
27885 # as_fn_mkdir_p
27886 # -------------
27887 # Create "$as_dir" as a directory, including parents if necessary.
27888 as_fn_mkdir_p ()
27889 {
27890
27891   case $as_dir in #(
27892   -*) as_dir=./$as_dir;;
27893   esac
27894   test -d "$as_dir" || eval $as_mkdir_p || {
27895     as_dirs=
27896     while :; do
27897       case $as_dir in #(
27898       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27899       *) as_qdir=$as_dir;;
27900       esac
27901       as_dirs="'$as_qdir' $as_dirs"
27902       as_dir=`$as_dirname -- "$as_dir" ||
27903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27904          X"$as_dir" : 'X\(//\)[^/]' \| \
27905          X"$as_dir" : 'X\(//\)$' \| \
27906          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27907 $as_echo X"$as_dir" |
27908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27909             s//\1/
27910             q
27911           }
27912           /^X\(\/\/\)[^/].*/{
27913             s//\1/
27914             q
27915           }
27916           /^X\(\/\/\)$/{
27917             s//\1/
27918             q
27919           }
27920           /^X\(\/\).*/{
27921             s//\1/
27922             q
27923           }
27924           s/.*/./; q'`
27925       test -d "$as_dir" && break
27926     done
27927     test -z "$as_dirs" || eval "mkdir $as_dirs"
27928   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27929
27930
27931 } # as_fn_mkdir_p
27932 if mkdir -p . 2>/dev/null; then
27933   as_mkdir_p='mkdir -p "$as_dir"'
27934 else
27935   test -d ./-p && rmdir ./-p
27936   as_mkdir_p=false
27937 fi
27938
27939 if test -x / >/dev/null 2>&1; then
27940   as_test_x='test -x'
27941 else
27942   if ls -dL / >/dev/null 2>&1; then
27943     as_ls_L_option=L
27944   else
27945     as_ls_L_option=
27946   fi
27947   as_test_x='
27948     eval sh -c '\''
27949       if test -d "$1"; then
27950         test -d "$1/.";
27951       else
27952         case $1 in #(
27953         -*)set "./$1";;
27954         esac;
27955         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27956         ???[sx]*):;;*)false;;esac;fi
27957     '\'' sh
27958   '
27959 fi
27960 as_executable_p=$as_test_x
27961
27962 # Sed expression to map a string onto a valid CPP name.
27963 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27964
27965 # Sed expression to map a string onto a valid variable name.
27966 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27967
27968
27969 exec 6>&1
27970 ## ----------------------------------- ##
27971 ## Main body of $CONFIG_STATUS script. ##
27972 ## ----------------------------------- ##
27973 _ASEOF
27974 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27975
27976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27977 # Save the log message, to keep $0 and so on meaningful, and to
27978 # report actual input values of CONFIG_FILES etc. instead of their
27979 # values after options handling.
27980 ac_log="
27981 This file was extended by $as_me, which was
27982 generated by GNU Autoconf 2.64.  Invocation command line was
27983
27984   CONFIG_FILES    = $CONFIG_FILES
27985   CONFIG_HEADERS  = $CONFIG_HEADERS
27986   CONFIG_LINKS    = $CONFIG_LINKS
27987   CONFIG_COMMANDS = $CONFIG_COMMANDS
27988   $ $0 $@
27989
27990 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27991 "
27992
27993 _ACEOF
27994
27995 case $ac_config_files in *"
27996 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27997 esac
27998
27999 case $ac_config_headers in *"
28000 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28001 esac
28002
28003
28004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28005 # Files that config.status was made for.
28006 config_files="$ac_config_files"
28007 config_headers="$ac_config_headers"
28008 config_commands="$ac_config_commands"
28009
28010 _ACEOF
28011
28012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28013 ac_cs_usage="\
28014 \`$as_me' instantiates files and other configuration actions
28015 from templates according to the current configuration.  Unless the files
28016 and actions are specified as TAGs, all are instantiated by default.
28017
28018 Usage: $0 [OPTION]... [TAG]...
28019
28020   -h, --help       print this help, then exit
28021   -V, --version    print version number and configuration settings, then exit
28022   -q, --quiet, --silent
28023                    do not print progress messages
28024   -d, --debug      don't remove temporary files
28025       --recheck    update $as_me by reconfiguring in the same conditions
28026       --file=FILE[:TEMPLATE]
28027                    instantiate the configuration file FILE
28028       --header=FILE[:TEMPLATE]
28029                    instantiate the configuration header FILE
28030
28031 Configuration files:
28032 $config_files
28033
28034 Configuration headers:
28035 $config_headers
28036
28037 Configuration commands:
28038 $config_commands
28039
28040 Report bugs to the package provider."
28041
28042 _ACEOF
28043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28044 ac_cs_version="\\
28045 config.status
28046 configured by $0, generated by GNU Autoconf 2.64,
28047   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28048
28049 Copyright (C) 2009 Free Software Foundation, Inc.
28050 This config.status script is free software; the Free Software Foundation
28051 gives unlimited permission to copy, distribute and modify it."
28052
28053 ac_pwd='$ac_pwd'
28054 srcdir='$srcdir'
28055 AWK='$AWK'
28056 test -n "\$AWK" || AWK=awk
28057 _ACEOF
28058
28059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28060 # The default lists apply if the user does not specify any file.
28061 ac_need_defaults=:
28062 while test $# != 0
28063 do
28064   case $1 in
28065   --*=*)
28066     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28067     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28068     ac_shift=:
28069     ;;
28070   *)
28071     ac_option=$1
28072     ac_optarg=$2
28073     ac_shift=shift
28074     ;;
28075   esac
28076
28077   case $ac_option in
28078   # Handling of the options.
28079   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28080     ac_cs_recheck=: ;;
28081   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28082     $as_echo "$ac_cs_version"; exit ;;
28083   --debug | --debu | --deb | --de | --d | -d )
28084     debug=: ;;
28085   --file | --fil | --fi | --f )
28086     $ac_shift
28087     case $ac_optarg in
28088     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28089     esac
28090     as_fn_append CONFIG_FILES " '$ac_optarg'"
28091     ac_need_defaults=false;;
28092   --header | --heade | --head | --hea )
28093     $ac_shift
28094     case $ac_optarg in
28095     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28096     esac
28097     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28098     ac_need_defaults=false;;
28099   --he | --h)
28100     # Conflict between --help and --header
28101     as_fn_error "ambiguous option: \`$1'
28102 Try \`$0 --help' for more information.";;
28103   --help | --hel | -h )
28104     $as_echo "$ac_cs_usage"; exit ;;
28105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28106   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28107     ac_cs_silent=: ;;
28108
28109   # This is an error.
28110   -*) as_fn_error "unrecognized option: \`$1'
28111 Try \`$0 --help' for more information." ;;
28112
28113   *) as_fn_append ac_config_targets " $1"
28114      ac_need_defaults=false ;;
28115
28116   esac
28117   shift
28118 done
28119
28120 ac_configure_extra_args=
28121
28122 if $ac_cs_silent; then
28123   exec 6>/dev/null
28124   ac_configure_extra_args="$ac_configure_extra_args --silent"
28125 fi
28126
28127 _ACEOF
28128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28129 if \$ac_cs_recheck; then
28130   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28131   shift
28132   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28133   CONFIG_SHELL='$SHELL'
28134   export CONFIG_SHELL
28135   exec "\$@"
28136 fi
28137
28138 _ACEOF
28139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28140 exec 5>>config.log
28141 {
28142   echo
28143   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28144 ## Running $as_me. ##
28145 _ASBOX
28146   $as_echo "$ac_log"
28147 } >&5
28148
28149 _ACEOF
28150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28151 #
28152 # INIT-COMMANDS
28153 #
28154 subdirs='$subdirs'
28155
28156 _ACEOF
28157
28158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28159
28160 # Handling of arguments.
28161 for ac_config_target in $ac_config_targets
28162 do
28163   case $ac_config_target in
28164     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28165     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28166     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28167     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28168     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28169     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28170
28171   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28172   esac
28173 done
28174
28175
28176 # If the user did not use the arguments to specify the items to instantiate,
28177 # then the envvar interface is used.  Set only those that are not.
28178 # We use the long form for the default assignment because of an extremely
28179 # bizarre bug on SunOS 4.1.3.
28180 if $ac_need_defaults; then
28181   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28182   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28183   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28184 fi
28185
28186 # Have a temporary directory for convenience.  Make it in the build tree
28187 # simply because there is no reason against having it here, and in addition,
28188 # creating and moving files from /tmp can sometimes cause problems.
28189 # Hook for its removal unless debugging.
28190 # Note that there is a small window in which the directory will not be cleaned:
28191 # after its creation but before its name has been assigned to `$tmp'.
28192 $debug ||
28193 {
28194   tmp=
28195   trap 'exit_status=$?
28196   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28197 ' 0
28198   trap 'as_fn_exit 1' 1 2 13 15
28199 }
28200 # Create a (secure) tmp directory for tmp files.
28201
28202 {
28203   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28204   test -n "$tmp" && test -d "$tmp"
28205 }  ||
28206 {
28207   tmp=./conf$$-$RANDOM
28208   (umask 077 && mkdir "$tmp")
28209 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28210
28211 # Set up the scripts for CONFIG_FILES section.
28212 # No need to generate them if there are no CONFIG_FILES.
28213 # This happens for instance with `./config.status config.h'.
28214 if test -n "$CONFIG_FILES"; then
28215
28216 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28217   ac_cs_awk_getline=:
28218   ac_cs_awk_pipe_init=
28219   ac_cs_awk_read_file='
28220       while ((getline aline < (F[key])) > 0)
28221         print(aline)
28222       close(F[key])'
28223   ac_cs_awk_pipe_fini=
28224 else
28225   ac_cs_awk_getline=false
28226   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28227   ac_cs_awk_read_file='
28228       print "|#_!!_#|"
28229       print "cat " F[key] " &&"
28230       '$ac_cs_awk_pipe_init
28231   # The final `:' finishes the AND list.
28232   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28233 fi
28234 ac_cr=`echo X | tr X '\015'`
28235 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28236 # But we know of no other shell where ac_cr would be empty at this
28237 # point, so we can use a bashism as a fallback.
28238 if test "x$ac_cr" = x; then
28239   eval ac_cr=\$\'\\r\'
28240 fi
28241 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28242 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28243   ac_cs_awk_cr='\r'
28244 else
28245   ac_cs_awk_cr=$ac_cr
28246 fi
28247
28248 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28249 _ACEOF
28250
28251 # Create commands to substitute file output variables.
28252 {
28253   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28254   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28255   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28256   echo "_ACAWK" &&
28257   echo "_ACEOF"
28258 } >conf$$files.sh &&
28259 . ./conf$$files.sh ||
28260   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28261 rm -f conf$$files.sh
28262
28263 {
28264   echo "cat >conf$$subs.awk <<_ACEOF" &&
28265   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28266   echo "_ACEOF"
28267 } >conf$$subs.sh ||
28268   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28269 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28270 ac_delim='%!_!# '
28271 for ac_last_try in false false false false false :; do
28272   . ./conf$$subs.sh ||
28273     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28274
28275   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28276   if test $ac_delim_n = $ac_delim_num; then
28277     break
28278   elif $ac_last_try; then
28279     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28280   else
28281     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28282   fi
28283 done
28284 rm -f conf$$subs.sh
28285
28286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28287 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28288 _ACEOF
28289 sed -n '
28290 h
28291 s/^/S["/; s/!.*/"]=/
28292 p
28293 g
28294 s/^[^!]*!//
28295 :repl
28296 t repl
28297 s/'"$ac_delim"'$//
28298 t delim
28299 :nl
28300 h
28301 s/\(.\{148\}\).*/\1/
28302 t more1
28303 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28304 p
28305 n
28306 b repl
28307 :more1
28308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28309 p
28310 g
28311 s/.\{148\}//
28312 t nl
28313 :delim
28314 h
28315 s/\(.\{148\}\).*/\1/
28316 t more2
28317 s/["\\]/\\&/g; s/^/"/; s/$/"/
28318 p
28319 b
28320 :more2
28321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28322 p
28323 g
28324 s/.\{148\}//
28325 t delim
28326 ' <conf$$subs.awk | sed '
28327 /^[^""]/{
28328   N
28329   s/\n//
28330 }
28331 ' >>$CONFIG_STATUS || ac_write_fail=1
28332 rm -f conf$$subs.awk
28333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28334 _ACAWK
28335 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28336   for (key in S) S_is_set[key] = 1
28337   FS = "\a"
28338   \$ac_cs_awk_pipe_init
28339 }
28340 {
28341   line = $ 0
28342   nfields = split(line, field, "@")
28343   substed = 0
28344   len = length(field[1])
28345   for (i = 2; i < nfields; i++) {
28346     key = field[i]
28347     keylen = length(key)
28348     if (S_is_set[key]) {
28349       value = S[key]
28350       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28351       len += length(value) + length(field[++i])
28352       substed = 1
28353     } else
28354       len += 1 + keylen
28355   }
28356   if (nfields == 3 && !substed) {
28357     key = field[2]
28358     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28359       \$ac_cs_awk_read_file
28360       next
28361     }
28362   }
28363   print line
28364 }
28365 \$ac_cs_awk_pipe_fini
28366 _ACAWK
28367 _ACEOF
28368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28369 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28370   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28371 else
28372   cat
28373 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28374   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28375 _ACEOF
28376
28377 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28378 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28379 # trailing colons and then remove the whole line if VPATH becomes empty
28380 # (actually we leave an empty line to preserve line numbers).
28381 if test "x$srcdir" = x.; then
28382   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28383 s/:*\$(srcdir):*/:/
28384 s/:*\${srcdir}:*/:/
28385 s/:*@srcdir@:*/:/
28386 s/^\([^=]*=[     ]*\):*/\1/
28387 s/:*$//
28388 s/^[^=]*=[       ]*$//
28389 }'
28390 fi
28391
28392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28393 fi # test -n "$CONFIG_FILES"
28394
28395 # Set up the scripts for CONFIG_HEADERS section.
28396 # No need to generate them if there are no CONFIG_HEADERS.
28397 # This happens for instance with `./config.status Makefile'.
28398 if test -n "$CONFIG_HEADERS"; then
28399 cat >"$tmp/defines.awk" <<\_ACAWK ||
28400 BEGIN {
28401 _ACEOF
28402
28403 # Transform confdefs.h into an awk script `defines.awk', embedded as
28404 # here-document in config.status, that substitutes the proper values into
28405 # config.h.in to produce config.h.
28406
28407 # Create a delimiter string that does not exist in confdefs.h, to ease
28408 # handling of long lines.
28409 ac_delim='%!_!# '
28410 for ac_last_try in false false :; do
28411   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28412   if test -z "$ac_t"; then
28413     break
28414   elif $ac_last_try; then
28415     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28416   else
28417     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28418   fi
28419 done
28420
28421 # For the awk script, D is an array of macro values keyed by name,
28422 # likewise P contains macro parameters if any.  Preserve backslash
28423 # newline sequences.
28424
28425 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28426 sed -n '
28427 s/.\{148\}/&'"$ac_delim"'/g
28428 t rset
28429 :rset
28430 s/^[     ]*#[    ]*define[       ][      ]*/ /
28431 t def
28432 d
28433 :def
28434 s/\\$//
28435 t bsnl
28436 s/["\\]/\\&/g
28437 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28438 D["\1"]=" \3"/p
28439 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28440 d
28441 :bsnl
28442 s/["\\]/\\&/g
28443 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28444 D["\1"]=" \3\\\\\\n"\\/p
28445 t cont
28446 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28447 t cont
28448 d
28449 :cont
28450 n
28451 s/.\{148\}/&'"$ac_delim"'/g
28452 t clear
28453 :clear
28454 s/\\$//
28455 t bsnlc
28456 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28457 d
28458 :bsnlc
28459 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28460 b cont
28461 ' <confdefs.h | sed '
28462 s/'"$ac_delim"'/"\\\
28463 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28464
28465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28466   for (key in D) D_is_set[key] = 1
28467   FS = "\a"
28468 }
28469 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28470   line = \$ 0
28471   split(line, arg, " ")
28472   if (arg[1] == "#") {
28473     defundef = arg[2]
28474     mac1 = arg[3]
28475   } else {
28476     defundef = substr(arg[1], 2)
28477     mac1 = arg[2]
28478   }
28479   split(mac1, mac2, "(") #)
28480   macro = mac2[1]
28481   prefix = substr(line, 1, index(line, defundef) - 1)
28482   if (D_is_set[macro]) {
28483     # Preserve the white space surrounding the "#".
28484     print prefix "define", macro P[macro] D[macro]
28485     next
28486   } else {
28487     # Replace #undef with comments.  This is necessary, for example,
28488     # in the case of _POSIX_SOURCE, which is predefined and required
28489     # on some systems where configure will not decide to define it.
28490     if (defundef == "undef") {
28491       print "/*", prefix defundef, macro, "*/"
28492       next
28493     }
28494   }
28495 }
28496 { print }
28497 _ACAWK
28498 _ACEOF
28499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28500   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28501 fi # test -n "$CONFIG_HEADERS"
28502
28503
28504 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28505 shift
28506 for ac_tag
28507 do
28508   case $ac_tag in
28509   :[FHLC]) ac_mode=$ac_tag; continue;;
28510   esac
28511   case $ac_mode$ac_tag in
28512   :[FHL]*:*);;
28513   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28514   :[FH]-) ac_tag=-:-;;
28515   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28516   esac
28517   ac_save_IFS=$IFS
28518   IFS=:
28519   set x $ac_tag
28520   IFS=$ac_save_IFS
28521   shift
28522   ac_file=$1
28523   shift
28524
28525   case $ac_mode in
28526   :L) ac_source=$1;;
28527   :[FH])
28528     ac_file_inputs=
28529     for ac_f
28530     do
28531       case $ac_f in
28532       -) ac_f="$tmp/stdin";;
28533       *) # Look for the file first in the build tree, then in the source tree
28534          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28535          # because $ac_f cannot contain `:'.
28536          test -f "$ac_f" ||
28537            case $ac_f in
28538            [\\/$]*) false;;
28539            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28540            esac ||
28541            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28542       esac
28543       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28544       as_fn_append ac_file_inputs " '$ac_f'"
28545     done
28546
28547     # Let's still pretend it is `configure' which instantiates (i.e., don't
28548     # use $as_me), people would be surprised to read:
28549     #    /* config.h.  Generated by config.status.  */
28550     configure_input='Generated from '`
28551           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28552         `' by configure.'
28553     if test x"$ac_file" != x-; then
28554       configure_input="$ac_file.  $configure_input"
28555       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28556 $as_echo "$as_me: creating $ac_file" >&6;}
28557     fi
28558     # Neutralize special characters interpreted by sed in replacement strings.
28559     case $configure_input in #(
28560     *\&* | *\|* | *\\* )
28561        ac_sed_conf_input=`$as_echo "$configure_input" |
28562        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28563     *) ac_sed_conf_input=$configure_input;;
28564     esac
28565
28566     case $ac_tag in
28567     *:-:* | *:-) cat >"$tmp/stdin" \
28568       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28569     esac
28570     ;;
28571   esac
28572
28573   ac_dir=`$as_dirname -- "$ac_file" ||
28574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28575          X"$ac_file" : 'X\(//\)[^/]' \| \
28576          X"$ac_file" : 'X\(//\)$' \| \
28577          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28578 $as_echo X"$ac_file" |
28579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28580             s//\1/
28581             q
28582           }
28583           /^X\(\/\/\)[^/].*/{
28584             s//\1/
28585             q
28586           }
28587           /^X\(\/\/\)$/{
28588             s//\1/
28589             q
28590           }
28591           /^X\(\/\).*/{
28592             s//\1/
28593             q
28594           }
28595           s/.*/./; q'`
28596   as_dir="$ac_dir"; as_fn_mkdir_p
28597   ac_builddir=.
28598
28599 case "$ac_dir" in
28600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28601 *)
28602   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28603   # A ".." for each directory in $ac_dir_suffix.
28604   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28605   case $ac_top_builddir_sub in
28606   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28607   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28608   esac ;;
28609 esac
28610 ac_abs_top_builddir=$ac_pwd
28611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28612 # for backward compatibility:
28613 ac_top_builddir=$ac_top_build_prefix
28614
28615 case $srcdir in
28616   .)  # We are building in place.
28617     ac_srcdir=.
28618     ac_top_srcdir=$ac_top_builddir_sub
28619     ac_abs_top_srcdir=$ac_pwd ;;
28620   [\\/]* | ?:[\\/]* )  # Absolute name.
28621     ac_srcdir=$srcdir$ac_dir_suffix;
28622     ac_top_srcdir=$srcdir
28623     ac_abs_top_srcdir=$srcdir ;;
28624   *) # Relative name.
28625     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28626     ac_top_srcdir=$ac_top_build_prefix$srcdir
28627     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28628 esac
28629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28630
28631
28632   case $ac_mode in
28633   :F)
28634   #
28635   # CONFIG_FILE
28636   #
28637
28638 _ACEOF
28639
28640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28641 # If the template does not know about datarootdir, expand it.
28642 # FIXME: This hack should be removed a few years after 2.60.
28643 ac_datarootdir_hack=; ac_datarootdir_seen=
28644 ac_sed_dataroot='
28645 /datarootdir/ {
28646   p
28647   q
28648 }
28649 /@datadir@/p
28650 /@docdir@/p
28651 /@infodir@/p
28652 /@localedir@/p
28653 /@mandir@/p'
28654 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28655 *datarootdir*) ac_datarootdir_seen=yes;;
28656 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28657   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28658 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28659 _ACEOF
28660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28661   ac_datarootdir_hack='
28662   s&@datadir@&$datadir&g
28663   s&@docdir@&$docdir&g
28664   s&@infodir@&$infodir&g
28665   s&@localedir@&$localedir&g
28666   s&@mandir@&$mandir&g
28667   s&\\\${datarootdir}&$datarootdir&g' ;;
28668 esac
28669 _ACEOF
28670
28671 # Neutralize VPATH when `$srcdir' = `.'.
28672 # Shell code in configure.ac might set extrasub.
28673 # FIXME: do we really want to maintain this feature?
28674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28675 ac_sed_extra="$ac_vpsub
28676 $extrasub
28677 _ACEOF
28678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28679 :t
28680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28681 s|@configure_input@|$ac_sed_conf_input|;t t
28682 s&@top_builddir@&$ac_top_builddir_sub&;t t
28683 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28684 s&@srcdir@&$ac_srcdir&;t t
28685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28686 s&@top_srcdir@&$ac_top_srcdir&;t t
28687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28688 s&@builddir@&$ac_builddir&;t t
28689 s&@abs_builddir@&$ac_abs_builddir&;t t
28690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28691 $ac_datarootdir_hack
28692 "
28693 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28694 if $ac_cs_awk_getline; then
28695   $AWK -f "$tmp/subs.awk"
28696 else
28697   $AWK -f "$tmp/subs.awk" | $SHELL
28698 fi >$tmp/out \
28699   || as_fn_error "could not create $ac_file" "$LINENO" 5
28700
28701 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28702   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28703   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28704   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28705 which seems to be undefined.  Please make sure it is defined." >&5
28706 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28707 which seems to be undefined.  Please make sure it is defined." >&2;}
28708
28709   rm -f "$tmp/stdin"
28710   case $ac_file in
28711   -) cat "$tmp/out" && rm -f "$tmp/out";;
28712   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28713   esac \
28714   || as_fn_error "could not create $ac_file" "$LINENO" 5
28715  ;;
28716   :H)
28717   #
28718   # CONFIG_HEADER
28719   #
28720   if test x"$ac_file" != x-; then
28721     {
28722       $as_echo "/* $configure_input  */" \
28723       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28724     } >"$tmp/config.h" \
28725       || as_fn_error "could not create $ac_file" "$LINENO" 5
28726     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28727       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28728 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28729     else
28730       rm -f "$ac_file"
28731       mv "$tmp/config.h" "$ac_file" \
28732         || as_fn_error "could not create $ac_file" "$LINENO" 5
28733     fi
28734   else
28735     $as_echo "/* $configure_input  */" \
28736       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28737       || as_fn_error "could not create -" "$LINENO" 5
28738   fi
28739  ;;
28740
28741   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28742 $as_echo "$as_me: executing $ac_file commands" >&6;}
28743  ;;
28744   esac
28745
28746
28747   case $ac_file$ac_mode in
28748     "as":F) chmod +x as ;;
28749     "collect-ld":F) chmod +x collect-ld ;;
28750     "nm":F) chmod +x nm ;;
28751     "default":C)
28752 case ${CONFIG_HEADERS} in
28753   *auto-host.h:config.in*)
28754   echo > cstamp-h ;;
28755 esac
28756 # Make sure all the subdirs exist.
28757 for d in $subdirs doc build common c-family
28758 do
28759     test -d $d || mkdir $d
28760 done
28761  ;;
28762
28763   esac
28764 done # for ac_tag
28765
28766
28767 as_fn_exit 0
28768 _ACEOF
28769 ac_clean_files=$ac_clean_files_save
28770
28771 test $ac_write_fail = 0 ||
28772   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28773
28774
28775 # configure is writing to config.log, and then calls config.status.
28776 # config.status does its own redirection, appending to config.log.
28777 # Unfortunately, on DOS this fails, as config.log is still kept open
28778 # by configure, so config.status won't be able to write to it; its
28779 # output is simply discarded.  So we exec the FD to /dev/null,
28780 # effectively closing config.log, so it can be properly (re)opened and
28781 # appended to by config.status.  When coming back to configure, we
28782 # need to make the FD available again.
28783 if test "$no_create" != yes; then
28784   ac_cs_success=:
28785   ac_config_status_args=
28786   test "$silent" = yes &&
28787     ac_config_status_args="$ac_config_status_args --quiet"
28788   exec 5>/dev/null
28789   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28790   exec 5>>config.log
28791   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28792   # would make configure fail if this is the last instruction.
28793   $ac_cs_success || as_fn_exit $?
28794 fi
28795 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28796   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28797 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28798 fi
28799
28800