OSDN Git Service

gcc/
[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 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
715 ALL
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 EXTRA_GCC_LIBS
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 CXXCPP
742 AR
743 NM
744 BISON
745 FLEX
746 GENERATED_MANPAGES
747 BUILD_INFO
748 MAKEINFO
749 have_mktemp_command
750 make_compare_target
751 INSTALL_DATA
752 INSTALL_PROGRAM
753 INSTALL
754 ranlib_flags
755 RANLIB
756 LN
757 LN_S
758 AWK
759 SET_MAKE
760 REPORT_BUGS_TEXI
761 REPORT_BUGS_TO
762 PKGVERSION
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
786 CPP
787 PICFLAG_FOR_TARGET
788 OUTPUT_OPTION
789 NO_MINUS_C_MINUS_O
790 GNATMAKE
791 GNATBIND
792 ac_ct_CXX
793 CXXFLAGS
794 CXX
795 OBJEXT
796 EXEEXT
797 ac_ct_CC
798 CPPFLAGS
799 LDFLAGS
800 CFLAGS
801 CC
802 GENINSRC
803 target_subdir
804 host_subdir
805 build_subdir
806 build_libsubdir
807 target_noncanonical
808 target_os
809 target_vendor
810 target_cpu
811 target
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files='option_includes
859 language_hooks'
860 ac_user_opts='
861 enable_option_checking
862 with_build_libsubdir
863 with_local_prefix
864 with_gxx_include_dir
865 with_cpp_install_dir
866 enable_generated_files_in_srcdir
867 with_gnu_ld
868 with_ld
869 with_demangler_in_ld
870 with_gnu_as
871 with_as
872 enable_largefile
873 enable_werror_always
874 enable_checking
875 enable_coverage
876 enable_gather_detailed_mem_stats
877 enable_build_with_cxx
878 with_stabs
879 enable_multilib
880 enable___cxa_atexit
881 enable_decimal_float
882 enable_fixed_point
883 enable_threads
884 enable_tls
885 enable_objc_gc
886 with_dwarf2
887 enable_shared
888 with_build_sysroot
889 with_sysroot
890 with_specs
891 with_pkgversion
892 with_bugurl
893 enable_languages
894 with_multilib_list
895 enable_rpath
896 with_libiconv_prefix
897 enable_initfini_array
898 enable_sjlj_exceptions
899 enable_secureplt
900 enable_leading_mingw64_underscores
901 enable_cld
902 enable_frame_pointer
903 enable_win32_registry
904 enable_static
905 with_pic
906 enable_fast_install
907 enable_libtool_lock
908 with_plugin_ld
909 enable_gnu_indirect_function
910 enable_comdat
911 enable_gnu_unique_object
912 enable_linker_build_id
913 with_long_double_128
914 with_gc
915 with_system_zlib
916 enable_maintainer_mode
917 enable_version_specific_runtime_libs
918 with_slibdir
919 enable_plugin
920 enable_libquadmath_support
921 with_linker_hash_style
922 '
923       ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 CXX
932 CXXFLAGS
933 CCC
934 CPP
935 CXXCPP
936 GMPLIBS
937 GMPINC
938 PPLLIBS
939 PPLINC
940 CLOOGLIBS
941 CLOOGINC'
942
943
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
965
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
991
992 ac_prev=
993 ac_dashdash=
994 for ac_option
995 do
996   # If the previous option needs an argument, assign it.
997   if test -n "$ac_prev"; then
998     eval $ac_prev=\$ac_option
999     ac_prev=
1000     continue
1001   fi
1002
1003   case $ac_option in
1004   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005   *)    ac_optarg=yes ;;
1006   esac
1007
1008   # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010   case $ac_dashdash$ac_option in
1011   --)
1012     ac_dashdash=yes ;;
1013
1014   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015     ac_prev=bindir ;;
1016   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017     bindir=$ac_optarg ;;
1018
1019   -build | --build | --buil | --bui | --bu)
1020     ac_prev=build_alias ;;
1021   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022     build_alias=$ac_optarg ;;
1023
1024   -cache-file | --cache-file | --cache-fil | --cache-fi \
1025   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026     ac_prev=cache_file ;;
1027   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029     cache_file=$ac_optarg ;;
1030
1031   --config-cache | -C)
1032     cache_file=config.cache ;;
1033
1034   -datadir | --datadir | --datadi | --datad)
1035     ac_prev=datadir ;;
1036   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037     datadir=$ac_optarg ;;
1038
1039   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040   | --dataroo | --dataro | --datar)
1041     ac_prev=datarootdir ;;
1042   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044     datarootdir=$ac_optarg ;;
1045
1046   -disable-* | --disable-*)
1047     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048     # Reject names that are not valid shell variable names.
1049     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050       as_fn_error "invalid feature name: $ac_useropt"
1051     ac_useropt_orig=$ac_useropt
1052     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053     case $ac_user_opts in
1054       *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058          ac_unrecognized_sep=', ';;
1059     esac
1060     eval enable_$ac_useropt=no ;;
1061
1062   -docdir | --docdir | --docdi | --doc | --do)
1063     ac_prev=docdir ;;
1064   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065     docdir=$ac_optarg ;;
1066
1067   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068     ac_prev=dvidir ;;
1069   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070     dvidir=$ac_optarg ;;
1071
1072   -enable-* | --enable-*)
1073     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076       as_fn_error "invalid feature name: $ac_useropt"
1077     ac_useropt_orig=$ac_useropt
1078     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079     case $ac_user_opts in
1080       *"
1081 "enable_$ac_useropt"
1082 "*) ;;
1083       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090   | --exec | --exe | --ex)
1091     ac_prev=exec_prefix ;;
1092   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094   | --exec=* | --exe=* | --ex=*)
1095     exec_prefix=$ac_optarg ;;
1096
1097   -gas | --gas | --ga | --g)
1098     # Obsolete; use --with-gas.
1099     with_gas=yes ;;
1100
1101   -help | --help | --hel | --he | -h)
1102     ac_init_help=long ;;
1103   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104     ac_init_help=recursive ;;
1105   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106     ac_init_help=short ;;
1107
1108   -host | --host | --hos | --ho)
1109     ac_prev=host_alias ;;
1110   -host=* | --host=* | --hos=* | --ho=*)
1111     host_alias=$ac_optarg ;;
1112
1113   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114     ac_prev=htmldir ;;
1115   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116   | --ht=*)
1117     htmldir=$ac_optarg ;;
1118
1119   -includedir | --includedir | --includedi | --included | --include \
1120   | --includ | --inclu | --incl | --inc)
1121     ac_prev=includedir ;;
1122   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123   | --includ=* | --inclu=* | --incl=* | --inc=*)
1124     includedir=$ac_optarg ;;
1125
1126   -infodir | --infodir | --infodi | --infod | --info | --inf)
1127     ac_prev=infodir ;;
1128   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129     infodir=$ac_optarg ;;
1130
1131   -libdir | --libdir | --libdi | --libd)
1132     ac_prev=libdir ;;
1133   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134     libdir=$ac_optarg ;;
1135
1136   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137   | --libexe | --libex | --libe)
1138     ac_prev=libexecdir ;;
1139   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140   | --libexe=* | --libex=* | --libe=*)
1141     libexecdir=$ac_optarg ;;
1142
1143   -localedir | --localedir | --localedi | --localed | --locale)
1144     ac_prev=localedir ;;
1145   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146     localedir=$ac_optarg ;;
1147
1148   -localstatedir | --localstatedir | --localstatedi | --localstated \
1149   | --localstate | --localstat | --localsta | --localst | --locals)
1150     ac_prev=localstatedir ;;
1151   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153     localstatedir=$ac_optarg ;;
1154
1155   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156     ac_prev=mandir ;;
1157   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158     mandir=$ac_optarg ;;
1159
1160   -nfp | --nfp | --nf)
1161     # Obsolete; use --without-fp.
1162     with_fp=no ;;
1163
1164   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165   | --no-cr | --no-c | -n)
1166     no_create=yes ;;
1167
1168   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170     no_recursion=yes ;;
1171
1172   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174   | --oldin | --oldi | --old | --ol | --o)
1175     ac_prev=oldincludedir ;;
1176   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179     oldincludedir=$ac_optarg ;;
1180
1181   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182     ac_prev=prefix ;;
1183   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184     prefix=$ac_optarg ;;
1185
1186   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187   | --program-pre | --program-pr | --program-p)
1188     ac_prev=program_prefix ;;
1189   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191     program_prefix=$ac_optarg ;;
1192
1193   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194   | --program-suf | --program-su | --program-s)
1195     ac_prev=program_suffix ;;
1196   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198     program_suffix=$ac_optarg ;;
1199
1200   -program-transform-name | --program-transform-name \
1201   | --program-transform-nam | --program-transform-na \
1202   | --program-transform-n | --program-transform- \
1203   | --program-transform | --program-transfor \
1204   | --program-transfo | --program-transf \
1205   | --program-trans | --program-tran \
1206   | --progr-tra | --program-tr | --program-t)
1207     ac_prev=program_transform_name ;;
1208   -program-transform-name=* | --program-transform-name=* \
1209   | --program-transform-nam=* | --program-transform-na=* \
1210   | --program-transform-n=* | --program-transform-=* \
1211   | --program-transform=* | --program-transfor=* \
1212   | --program-transfo=* | --program-transf=* \
1213   | --program-trans=* | --program-tran=* \
1214   | --progr-tra=* | --program-tr=* | --program-t=*)
1215     program_transform_name=$ac_optarg ;;
1216
1217   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218     ac_prev=pdfdir ;;
1219   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220     pdfdir=$ac_optarg ;;
1221
1222   -psdir | --psdir | --psdi | --psd | --ps)
1223     ac_prev=psdir ;;
1224   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225     psdir=$ac_optarg ;;
1226
1227   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228   | -silent | --silent | --silen | --sile | --sil)
1229     silent=yes ;;
1230
1231   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232     ac_prev=sbindir ;;
1233   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234   | --sbi=* | --sb=*)
1235     sbindir=$ac_optarg ;;
1236
1237   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239   | --sharedst | --shareds | --shared | --share | --shar \
1240   | --sha | --sh)
1241     ac_prev=sharedstatedir ;;
1242   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245   | --sha=* | --sh=*)
1246     sharedstatedir=$ac_optarg ;;
1247
1248   -site | --site | --sit)
1249     ac_prev=site ;;
1250   -site=* | --site=* | --sit=*)
1251     site=$ac_optarg ;;
1252
1253   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254     ac_prev=srcdir ;;
1255   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256     srcdir=$ac_optarg ;;
1257
1258   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259   | --syscon | --sysco | --sysc | --sys | --sy)
1260     ac_prev=sysconfdir ;;
1261   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263     sysconfdir=$ac_optarg ;;
1264
1265   -target | --target | --targe | --targ | --tar | --ta | --t)
1266     ac_prev=target_alias ;;
1267   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268     target_alias=$ac_optarg ;;
1269
1270   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271     verbose=yes ;;
1272
1273   -version | --version | --versio | --versi | --vers | -V)
1274     ac_init_version=: ;;
1275
1276   -with-* | --with-*)
1277     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280       as_fn_error "invalid package name: $ac_useropt"
1281     ac_useropt_orig=$ac_useropt
1282     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283     case $ac_user_opts in
1284       *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288          ac_unrecognized_sep=', ';;
1289     esac
1290     eval with_$ac_useropt=\$ac_optarg ;;
1291
1292   -without-* | --without-*)
1293     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296       as_fn_error "invalid package name: $ac_useropt"
1297     ac_useropt_orig=$ac_useropt
1298     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299     case $ac_user_opts in
1300       *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304          ac_unrecognized_sep=', ';;
1305     esac
1306     eval with_$ac_useropt=no ;;
1307
1308   --x)
1309     # Obsolete; use --with-x.
1310     with_x=yes ;;
1311
1312   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313   | --x-incl | --x-inc | --x-in | --x-i)
1314     ac_prev=x_includes ;;
1315   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317     x_includes=$ac_optarg ;;
1318
1319   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321     ac_prev=x_libraries ;;
1322   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324     x_libraries=$ac_optarg ;;
1325
1326   -*) as_fn_error "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1328     ;;
1329
1330   *=*)
1331     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332     # Reject names that are not valid shell variable names.
1333     case $ac_envvar in #(
1334       '' | [0-9]* | *[!_$as_cr_alnum]* )
1335       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1336     esac
1337     eval $ac_envvar=\$ac_optarg
1338     export $ac_envvar ;;
1339
1340   *)
1341     # FIXME: should be removed in autoconf 3.0.
1342     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346     ;;
1347
1348   esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353   as_fn_error "missing argument to $ac_option"
1354 fi
1355
1356 if test -n "$ac_unrecognized_opts"; then
1357   case $enable_option_checking in
1358     no) ;;
1359     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1360     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361   esac
1362 fi
1363
1364 # Check all directory arguments for consistency.
1365 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366                 datadir sysconfdir sharedstatedir localstatedir includedir \
1367                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368                 libdir localedir mandir
1369 do
1370   eval ac_val=\$$ac_var
1371   # Remove trailing slashes.
1372   case $ac_val in
1373     */ )
1374       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375       eval $ac_var=\$ac_val;;
1376   esac
1377   # Be sure to have absolute directory names.
1378   case $ac_val in
1379     [\\/$]* | ?:[\\/]* )  continue;;
1380     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381   esac
1382   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1383 done
1384
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1391
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394   if test "x$build_alias" = x; then
1395     cross_compiling=maybe
1396     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397     If a cross compiler is detected then cross compile mode will be used." >&2
1398   elif test "x$build_alias" != "x$host_alias"; then
1399     cross_compiling=yes
1400   fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412   as_fn_error "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414   as_fn_error "pwd does not report name of working directory"
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419   ac_srcdir_defaulted=yes
1420   # Try the directory containing this script, then the parent directory.
1421   ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423          X"$as_myself" : 'X\(//\)[^/]' \| \
1424          X"$as_myself" : 'X\(//\)$' \| \
1425          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)[^/].*/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\/\)$/{
1436             s//\1/
1437             q
1438           }
1439           /^X\(\/\).*/{
1440             s//\1/
1441             q
1442           }
1443           s/.*/./; q'`
1444   srcdir=$ac_confdir
1445   if test ! -r "$srcdir/$ac_unique_file"; then
1446     srcdir=..
1447   fi
1448 else
1449   ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1458         pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461   srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_env_${ac_var}_value=\$${ac_var}
1472   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480   # Omit some internal or obsolete options to make the list less imposing.
1481   # This message is too long to be a string in the A/UX 3.1 sh.
1482   cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE.  See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493   -h, --help              display this help and exit
1494       --help=short        display options specific to this package
1495       --help=recursive    display the short help of all the included packages
1496   -V, --version           display version information and exit
1497   -q, --quiet, --silent   do not print \`checking...' messages
1498       --cache-file=FILE   cache test results in FILE [disabled]
1499   -C, --config-cache      alias for \`--cache-file=config.cache'
1500   -n, --no-create         do not create output files
1501       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504   --prefix=PREFIX         install architecture-independent files in PREFIX
1505                           [$ac_default_prefix]
1506   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1507                           [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517   --bindir=DIR            user executables [EPREFIX/bin]
1518   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1519   --libexecdir=DIR        program executables [EPREFIX/libexec]
1520   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1521   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1522   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1523   --libdir=DIR            object code libraries [EPREFIX/lib]
1524   --includedir=DIR        C header files [PREFIX/include]
1525   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1526   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1527   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1528   --infodir=DIR           info documentation [DATAROOTDIR/info]
1529   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1530   --mandir=DIR            man documentation [DATAROOTDIR/man]
1531   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1532   --htmldir=DIR           html documentation [DOCDIR]
1533   --dvidir=DIR            dvi documentation [DOCDIR]
1534   --pdfdir=DIR            pdf documentation [DOCDIR]
1535   --psdir=DIR             ps documentation [DOCDIR]
1536 _ACEOF
1537
1538   cat <<\_ACEOF
1539
1540 Program names:
1541   --program-prefix=PREFIX            prepend PREFIX to installed program names
1542   --program-suffix=SUFFIX            append SUFFIX to installed program names
1543   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1544
1545 System types:
1546   --build=BUILD     configure for building on BUILD [guessed]
1547   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1548   --target=TARGET   configure for building compilers for TARGET [HOST]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553
1554   cat <<\_ACEOF
1555
1556 Optional Features:
1557   --disable-option-checking  ignore unrecognized --enable/--with options
1558   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1559   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1560   --enable-generated-files-in-srcdir
1561                           put copies of generated files in source dir intended
1562                           for creating source tarballs for users without
1563                           texinfo bison or flex
1564   --disable-largefile     omit support for large files
1565   --enable-werror-always  enable -Werror despite compiler version
1566   --enable-checking[=LIST]
1567                           enable expensive run-time checks. With LIST, enable
1568                           only specific categories of checks. Categories are:
1569                           yes,no,all,none,release. Flags are:
1570                           assert,df,fold,gc,gcac,gimple,misc,
1571                           rtlflag,rtl,runtime,tree,valgrind,types
1572   --enable-coverage[=LEVEL]
1573                           enable compiler's code coverage collection. Use to
1574                           measure compiler performance and locate unused parts
1575                           of the compiler. With LEVEL, specify optimization.
1576                           Values are opt, noopt, default is noopt
1577   --enable-gather-detailed-mem-stats
1578                           enable detailed memory allocation stats gathering
1579   --enable-build-with-cxx build with C++ compiler instead of C compiler
1580   --enable-multilib       enable library support for multiple ABIs
1581   --enable-__cxa_atexit   enable __cxa_atexit for C++
1582   --enable-decimal-float={no,yes,bid,dpd}
1583                         enable decimal float extension to C.  Selecting 'bid'
1584                         or 'dpd' choses which decimal floating point format
1585                         to use
1586   --enable-fixed-point    enable fixed-point arithmetic extension to C
1587   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1588                           package
1589   --enable-tls            enable or disable generation of tls code overriding
1590                           the assembler check for tls support
1591   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1592                           GNU Objective-C runtime
1593   --disable-shared        don't provide a shared libgcc
1594   --enable-languages=LIST specify which front-ends to build
1595   --disable-rpath         do not hardcode runtime library paths
1596   --enable-initfini-array       use .init_array/.fini_array sections
1597   --enable-sjlj-exceptions
1598                           arrange to use setjmp/longjmp exception handling
1599   --enable-secureplt      enable -msecure-plt by default for PowerPC
1600   --enable-leading-mingw64-underscores
1601                           enable leading underscores on 64 bit mingw targets
1602   --enable-cld            enable -mcld by default for 32bit x86
1603   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1604                           x86
1605   --disable-win32-registry
1606                           disable lookup of installation paths in the Registry
1607                           on Windows hosts
1608   --enable-win32-registry enable registry lookup (default)
1609   --enable-win32-registry=KEY
1610                           use KEY instead of GCC version as the last portion
1611                           of the registry key
1612   --enable-shared[=PKGS]  build shared libraries [default=yes]
1613   --enable-static[=PKGS]  build static libraries [default=yes]
1614   --enable-fast-install[=PKGS]
1615                           optimize for fast installation [default=yes]
1616   --disable-libtool-lock  avoid locking (might break parallel builds)
1617   --enable-gnu-indirect-function
1618                           enable the use of the @gnu_indirect_function to
1619                           glibc systems
1620   --enable-comdat         enable COMDAT group support
1621   --enable-gnu-unique-object
1622                           enable the use of the @gnu_unique_object ELF
1623                           extension on glibc systems
1624   --enable-linker-build-id
1625                           compiler will always pass --build-id to linker
1626   --enable-maintainer-mode
1627                           enable make rules and dependencies not useful (and
1628                           sometimes confusing) to the casual installer
1629   --enable-version-specific-runtime-libs
1630                           specify that runtime libraries should be installed
1631                           in a compiler-specific directory
1632   --enable-plugin         enable plugin support
1633   --disable-libquadmath-support
1634                           disable libquadmath support for Fortran
1635
1636 Optional Packages:
1637   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1638   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1639   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1640   --with-local-prefix=DIR specifies directory to put local include
1641   --with-gxx-include-dir=DIR
1642                           specifies directory to put g++ header files
1643   --with-cpp-install-dir=DIR
1644                           install the user visible C preprocessor in DIR
1645                           (relative to PREFIX) as well as PREFIX/bin
1646   --with-gnu-ld           arrange to work with GNU ld
1647   --with-ld               arrange to use the specified ld (full pathname)
1648   --with-demangler-in-ld  try to use demangler in GNU ld
1649   --with-gnu-as           arrange to work with GNU as
1650   --with-as               arrange to use the specified as (full pathname)
1651   --with-stabs            arrange to use stabs instead of host debug format
1652   --with-dwarf2           force the default debug format to be DWARF 2
1653   --with-build-sysroot=sysroot
1654                           use sysroot as the system root during the build
1655   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1656   --with-specs=SPECS      add SPECS to driver command-line processing
1657   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1658   --with-bugurl=URL       Direct users to URL to report a bug
1659   --with-multilib-list    select multilibs (SH and x86-64 only)
1660   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1661   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1662   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1663   --with-pic              try to use only PIC/non-PIC objects [default=use
1664                           both]
1665   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1666   --with-plugin-ld=[ARG]  specify the plugin linker
1667   --with-long-double-128  use 128-bit long double by default
1668   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1669                           the compiler
1670   --with-system-zlib      use installed libz
1671   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
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
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3321   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x$withval != xno; then
3323   cpp_install_dir=$withval
3324 fi
3325 fi
3326
3327
3328 # We would like to our source tree to be readonly.  However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3332 # just that.
3333
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336     # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3339 else
3340   generated_files_in_srcdir=no
3341 fi
3342
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3346
3347 if test "$generated_files_in_srcdir" = "yes"; then
3348   GENINSRC=''
3349 else
3350   GENINSRC='#'
3351 fi
3352
3353
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3357
3358 # With GNU ld
3359
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3363 else
3364   gnu_ld_flag=no
3365 fi
3366
3367
3368 # With pre-defined ld
3369
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3373 fi
3374
3375 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3376   if test ! -x "$DEFAULT_LINKER"; then
3377     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3379     gnu_ld_flag=yes
3380   fi
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3384 _ACEOF
3385
3386 fi
3387
3388 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3389
3390 cat >>confdefs.h <<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3392 _ACEOF
3393
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398   if test x"$gnu_ld_flag" = x"no"; then
3399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401   else
3402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404   fi
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410 # With demangler in GNU ld
3411
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3415 else
3416   demangler_in_ld=yes
3417 fi
3418
3419
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3423
3424 # With GNU as
3425
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 else
3430   gas_flag=no
3431 fi
3432
3433
3434
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3438 fi
3439
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441   if test ! -x "$DEFAULT_ASSEMBLER"; then
3442     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3444     gas_flag=yes
3445   fi
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3449 _ACEOF
3450
3451 fi
3452
3453 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3457 _ACEOF
3458
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3463   if test x"$gas_flag" = x"no"; then
3464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466   else
3467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469   fi
3470 else
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475 # ---------------
3476 # Find C compiler
3477 # ---------------
3478
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3483 #
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3487
3488 # Find the native compiler
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$CC"; then
3503   ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$ac_cv_prog_CC"; then
3534   ac_ct_CC=$CC
3535   # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -n "$ac_ct_CC"; then
3543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_exec_ext in '' $ac_executable_extensions; do
3551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552     ac_cv_prog_ac_ct_CC="gcc"
3553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557   done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571   if test "x$ac_ct_CC" = x; then
3572     CC=""
3573   else
3574     case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580     CC=$ac_ct_CC
3581   fi
3582 else
3583   CC="$ac_cv_prog_CC"
3584 fi
3585
3586 if test -z "$CC"; then
3587           if test -n "$ac_tool_prefix"; then
3588     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test -n "$CC"; then
3596   ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605     ac_cv_prog_CC="${ac_tool_prefix}cc"
3606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610   done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625   fi
3626 fi
3627 if test -z "$CC"; then
3628   # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   if test -n "$CC"; then
3636   ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638   ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644     for ac_exec_ext in '' $ac_executable_extensions; do
3645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647        ac_prog_rejected=yes
3648        continue
3649      fi
3650     ac_cv_prog_CC="cc"
3651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652     break 2
3653   fi
3654 done
3655   done
3656 IFS=$as_save_IFS
3657
3658 if test $ac_prog_rejected = yes; then
3659   # We found a bogon in the path, so make sure we never use it.
3660   set dummy $ac_cv_prog_CC
3661   shift
3662   if test $# != 0; then
3663     # We chose a different compiler from the bogus one.
3664     # However, it has the same basename, so the bogon will be chosen
3665     # first if we set CC to just the basename; use the full file name.
3666     shift
3667     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668   fi
3669 fi
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 if test -z "$CC"; then
3684   if test -n "$ac_tool_prefix"; then
3685   for ac_prog in cl.exe
3686   do
3687     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692   $as_echo_n "(cached) " >&6
3693 else
3694   if test -n "$CC"; then
3695   ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700   IFS=$as_save_IFS
3701   test -z "$as_dir" && as_dir=.
3702     for ac_exec_ext in '' $ac_executable_extensions; do
3703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706     break 2
3707   fi
3708 done
3709   done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723
3724     test -n "$CC" && break
3725   done
3726 fi
3727 if test -z "$CC"; then
3728   ac_ct_CC=$CC
3729   for ac_prog in cl.exe
3730 do
3731   # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736   $as_echo_n "(cached) " >&6
3737 else
3738   if test -n "$ac_ct_CC"; then
3739   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746     for ac_exec_ext in '' $ac_executable_extensions; do
3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748     ac_cv_prog_ac_ct_CC="$ac_prog"
3749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753   done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768   test -n "$ac_ct_CC" && break
3769 done
3770
3771   if test "x$ac_ct_CC" = x; then
3772     CC=""
3773   else
3774     case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780     CC=$ac_ct_CC
3781   fi
3782 fi
3783
3784 fi
3785
3786
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3791
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797   { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805   ac_status=$?
3806   if test -s conftest.err; then
3807     sed '10a\
3808 ... rest of stderr output deleted ...
3809          10q' conftest.err >conftest.er1
3810     cat conftest.er1 >&5
3811     rm -f conftest.er1 conftest.err
3812   fi
3813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814   test $ac_status = 0; }
3815 done
3816
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819
3820 int
3821 main ()
3822 {
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3842 do
3843   case $ac_file in
3844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846   esac
3847 done
3848 rm -f $ac_rmfiles
3849
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857   (eval "$ac_link_default") 2>&5
3858   ac_status=$?
3859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860   test $ac_status = 0; }; then :
3861   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3867 do
3868   test -f "$ac_file" || continue
3869   case $ac_file in
3870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871         ;;
3872     [ab].out )
3873         # We found the default executable, but exeext='' is most
3874         # certainly right.
3875         break;;
3876     *.* )
3877         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878         then :; else
3879            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880         fi
3881         # We set ac_cv_exeext here because the later test for it is not
3882         # safe: cross compilers may not add the suffix if given an `-o'
3883         # argument, so we may need to know it at that point already.
3884         # Even if this section looks crufty: it has the advantage of
3885         # actually working.
3886         break;;
3887     * )
3888         break;;
3889   esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892
3893 else
3894   ac_file=''
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899   $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3907 fi
3908 ac_exeext=$ac_cv_exeext
3909
3910 # Check that the compiler produces executables we can run.  If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916   if { ac_try='./$ac_file'
3917   { { case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923   (eval "$ac_try") 2>&5
3924   ac_status=$?
3925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926   test $ac_status = 0; }; }; then
3927     cross_compiling=no
3928   else
3929     if test "$cross_compiling" = maybe; then
3930         cross_compiling=yes
3931     else
3932         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile, use \`--host'.
3936 See \`config.log' for more details." "$LINENO" 5; }
3937     fi
3938   fi
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3942
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run.  If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961   (eval "$ac_link") 2>&5
3962   ac_status=$?
3963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964   test $ac_status = 0; }; then :
3965   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970   test -f "$ac_file" || continue
3971   case $ac_file in
3972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974           break;;
3975     * ) break;;
3976   esac
3977 done
3978 else
3979   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3983 fi
3984 rm -f conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3987
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h.  */
3998
3999 int
4000 main ()
4001 {
4002
4003   ;
4004   return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015   (eval "$ac_compile") 2>&5
4016   ac_status=$?
4017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018   test $ac_status = 0; }; then :
4019   for ac_file in conftest.o conftest.obj conftest.*; do
4020   test -f "$ac_file" || continue;
4021   case $ac_file in
4022     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024        break;;
4025   esac
4026 done
4027 else
4028   $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4035 fi
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053 #ifndef __GNUC__
4054        choke me
4055 #endif
4056
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062   ac_compiler_gnu=yes
4063 else
4064   ac_compiler_gnu=no
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073   GCC=yes
4074 else
4075   GCC=
4076 fi
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082   $as_echo_n "(cached) " >&6
4083 else
4084   ac_save_c_werror_flag=$ac_c_werror_flag
4085    ac_c_werror_flag=yes
4086    ac_cv_prog_cc_g=no
4087    CFLAGS="-g"
4088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100   ac_cv_prog_cc_g=yes
4101 else
4102   CFLAGS=""
4103       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105
4106 int
4107 main ()
4108 {
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115
4116 else
4117   ac_c_werror_flag=$ac_save_c_werror_flag
4118          CFLAGS="-g"
4119          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h.  */
4121
4122 int
4123 main ()
4124 {
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131   ac_cv_prog_cc_g=yes
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138    ac_c_werror_flag=$ac_save_c_werror_flag
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143   CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145   if test "$GCC" = yes; then
4146     CFLAGS="-g -O2"
4147   else
4148     CFLAGS="-g"
4149   fi
4150 else
4151   if test "$GCC" = yes; then
4152     CFLAGS="-O2"
4153   else
4154     CFLAGS=
4155   fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174      char **p;
4175      int i;
4176 {
4177   return p[i];
4178 }
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4180 {
4181   char *s;
4182   va_list v;
4183   va_start (v,p);
4184   s = g (p, va_arg (v,int));
4185   va_end (v);
4186   return s;
4187 }
4188
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4190    function prototypes and stuff, but not '\xHH' hex character constants.
4191    These don't provoke an error unfortunately, instead are silently treated
4192    as 'x'.  The following induces an error, until -std is added to get
4193    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4194    array size at least.  It's necessary to write '\x00'==0 to get something
4195    that's true only with -std.  */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199    inside strings and character constants.  */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4209 int
4210 main ()
4211 {
4212 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4213   ;
4214   return 0;
4215 }
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 do
4220   CC="$ac_save_CC $ac_arg"
4221   if ac_fn_c_try_compile "$LINENO"; then :
4222   ac_cv_prog_cc_c89=$ac_arg
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225   test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4229
4230 fi
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4233   x)
4234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236   xno)
4237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4239   *)
4240     CC="$CC $ac_cv_prog_cc_c89"
4241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254 if test "x$CC" != xcc; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 fi
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; } &&
4292    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; };
4302 then
4303   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304   if test "x$CC" != xcc; then
4305     # Test first that cc exists at all.
4306     if { ac_try='cc -c conftest.$ac_ext >&5'
4307   { { case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313   (eval "$ac_try") 2>&5
4314   ac_status=$?
4315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316   test $ac_status = 0; }; }; then
4317       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318       rm -f conftest2.*
4319       if { { case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328   test $ac_status = 0; } &&
4329          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335   (eval "$ac_try") 2>&5
4336   ac_status=$?
4337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338   test $ac_status = 0; };
4339       then
4340         # cc works too.
4341         :
4342       else
4343         # cc exists but doesn't like -o.
4344         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345       fi
4346     fi
4347   fi
4348 else
4349   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 fi
4351 rm -f core conftest*
4352
4353 fi
4354 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4362
4363 fi
4364
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir=`cd $ac_aux_dir && pwd`
4367
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4370 set dummy $CC
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374    # Losing compiler, so override with the script.
4375    # FIXME: It is wrong to rewrite CC.
4376    # But if we don't then we get into trouble of one sort or another.
4377    # A longer-term fix would be to have automake use am__CC in this case,
4378    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379    CC="$am_aux_dir/compile $CC"
4380 fi
4381
4382
4383 ac_ext=cpp
4384 ac_cpp='$CXXCPP $CPPFLAGS'
4385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389   if test -n "$CCC"; then
4390     CXX=$CCC
4391   else
4392     if test -n "$ac_tool_prefix"; then
4393   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394   do
4395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400   $as_echo_n "(cached) " >&6
4401 else
4402   if test -n "$CXX"; then
4403   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410     for ac_exec_ext in '' $ac_executable_extensions; do
4411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417   done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 CXX=$ac_cv_prog_CXX
4423 if test -n "$CXX"; then
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4426 else
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432     test -n "$CXX" && break
4433   done
4434 fi
4435 if test -z "$CXX"; then
4436   ac_ct_CXX=$CXX
4437   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4438 do
4439   # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   if test -n "$ac_ct_CXX"; then
4447   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454     for ac_exec_ext in '' $ac_executable_extensions; do
4455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456     ac_cv_prog_ac_ct_CXX="$ac_prog"
4457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461   done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4470 else
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476   test -n "$ac_ct_CXX" && break
4477 done
4478
4479   if test "x$ac_ct_CXX" = x; then
4480     CXX="g++"
4481   else
4482     case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488     CXX=$ac_ct_CXX
4489   fi
4490 fi
4491
4492   fi
4493 fi
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 set X $ac_compile
4497 ac_compiler=$2
4498 for ac_option in --version -v -V -qversion; do
4499   { { ac_try="$ac_compiler $ac_option >&5"
4500 case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507   ac_status=$?
4508   if test -s conftest.err; then
4509     sed '10a\
4510 ... rest of stderr output deleted ...
4511          10q' conftest.err >conftest.er1
4512     cat conftest.er1 >&5
4513     rm -f conftest.er1 conftest.err
4514   fi
4515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516   test $ac_status = 0; }
4517 done
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530 #ifndef __GNUC__
4531        choke me
4532 #endif
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539   ac_compiler_gnu=yes
4540 else
4541   ac_compiler_gnu=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550   GXX=yes
4551 else
4552   GXX=
4553 fi
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562    ac_cxx_werror_flag=yes
4563    ac_cv_prog_cxx_g=no
4564    CXXFLAGS="-g"
4565    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567
4568 int
4569 main ()
4570 {
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577   ac_cv_prog_cxx_g=yes
4578 else
4579   CXXFLAGS=""
4580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h.  */
4582
4583 int
4584 main ()
4585 {
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592
4593 else
4594   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595          CXXFLAGS="-g"
4596          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608   ac_cv_prog_cxx_g=yes
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620   CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622   if test "$GXX" = yes; then
4623     CXXFLAGS="-g -O2"
4624   else
4625     CXXFLAGS="-g"
4626   fi
4627 else
4628   if test "$GXX" = yes; then
4629     CXXFLAGS="-O2"
4630   else
4631     CXXFLAGS=
4632   fi
4633 fi
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
4640
4641
4642
4643 if test -n "$ac_tool_prefix"; then
4644   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   if test -n "$GNATBIND"; then
4652   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659     for ac_exec_ext in '' $ac_executable_extensions; do
4660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666   done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4675 else
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 fi
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683   ac_ct_GNATBIND=$GNATBIND
4684   # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$ac_ct_GNATBIND"; then
4692   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720   if test "x$ac_ct_GNATBIND" = x; then
4721     GNATBIND="no"
4722   else
4723     case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729     GNATBIND=$ac_ct_GNATBIND
4730   fi
4731 else
4732   GNATBIND="$ac_cv_prog_GNATBIND"
4733 fi
4734
4735 if test -n "$ac_tool_prefix"; then
4736   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if test -n "$GNATMAKE"; then
4744   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4767 else
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775   ac_ct_GNATMAKE=$GNATMAKE
4776   # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781   $as_echo_n "(cached) " >&6
4782 else
4783   if test -n "$ac_ct_GNATMAKE"; then
4784   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791     for ac_exec_ext in '' $ac_executable_extensions; do
4792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798   done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 else
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812   if test "x$ac_ct_GNATMAKE" = x; then
4813     GNATMAKE="no"
4814   else
4815     case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821     GNATMAKE=$ac_ct_GNATMAKE
4822   fi
4823 else
4824   GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 fi
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4834 EOF
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file.  So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846   acx_cv_cc_gcc_supports_ada=yes
4847 fi
4848 rm -f conftest.*
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4854   have_gnat=yes
4855 else
4856   have_gnat=no
4857 fi
4858
4859
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4862   NO_MINUS_C_MINUS_O=yes
4863 else
4864   OUTPUT_OPTION='-o $@'
4865 fi
4866
4867
4868
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4871 case "$CC" in
4872   */prev-gcc/xgcc*) ;;
4873   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4874 esac
4875
4876
4877 # Determine PICFLAG for target gnatlib.
4878
4879
4880
4881
4882 case "${target}" in
4883     # PIC is the default on some targets or must not be used.
4884     *-*-darwin*)
4885         # PIC is the default on this platform
4886         # Common symbols not allowed in MH_DYLIB files
4887         PICFLAG_FOR_TARGET=-fno-common
4888         ;;
4889     alpha*-dec-osf5*)
4890         # PIC is the default.
4891         ;;
4892     hppa*64*-*-hpux*)
4893         # PIC is the default for 64-bit PA HP-UX.
4894         ;;
4895     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4896         ;;
4897     i[34567]86-*-interix3*)
4898         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899         # Instead, we relocate shared libraries at runtime.
4900         ;;
4901     i[34567]86-*-nto-qnx*)
4902         # QNX uses GNU C++, but need to define -shared option too, otherwise
4903         # it will coredump.
4904         PICFLAG_FOR_TARGET='-fPIC -shared'
4905         ;;
4906     i[34567]86-pc-msdosdjgpp*)
4907         # DJGPP does not support shared libraries at all.
4908         ;;
4909     ia64*-*-hpux*)
4910         # On IA64 HP-UX, PIC is the default but the pic flag
4911         # sets the default TLS model and affects inlining.
4912         PICFLAG_FOR_TARGET=-fPIC
4913         ;;
4914     mips-sgi-irix6*)
4915         # PIC is the default.
4916         ;;
4917     rs6000-ibm-aix* | powerpc-ibm-aix*)
4918         # All AIX code is PIC.
4919         ;;
4920
4921     # Some targets support both -fPIC and -fpic, but prefer the latter.
4922     # FIXME: Why?
4923     i[34567]86-*-* | x86_64-*-*)
4924         PICFLAG_FOR_TARGET=-fpic
4925         ;;
4926     m68k-*-*)
4927         PICFLAG_FOR_TARGET=-fpic
4928         ;;
4929     s390*-*-*)
4930         PICFLAG_FOR_TARGET=-fpic
4931         ;;
4932     # FIXME: Override -fPIC default in libgcc only?
4933     sh-*-linux* | sh[2346lbe]*-*-linux*)
4934         PICFLAG_FOR_TARGET=-fpic
4935         ;;
4936     # FIXME: Simplify to sh*-*-netbsd*?
4937     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4938       sh64-*-netbsd* | sh64l*-*-netbsd*)
4939         PICFLAG_FOR_TARGET=-fpic
4940         ;;
4941     # Default to -fPIC unless specified otherwise.
4942     *)
4943         PICFLAG_FOR_TARGET=-fPIC
4944         ;;
4945 esac
4946
4947 # If the user explicitly uses -fpic/-fPIC, keep that.
4948 case "${CFLAGS_FOR_TARGET}" in
4949     *-fpic*)
4950         PICFLAG_FOR_TARGET=-fpic
4951         ;;
4952     *-fPIC*)
4953         PICFLAG_FOR_TARGET=-fPIC
4954         ;;
4955 esac
4956
4957
4958
4959 # -------------------------
4960 # Check C compiler features
4961 # -------------------------
4962
4963
4964 ac_ext=c
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4973   CPP=
4974 fi
4975 if test -z "$CPP"; then
4976   if test "${ac_cv_prog_CPP+set}" = set; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979       # Double quotes because CPP needs to be expanded
4980     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4981     do
4982       ac_preproc_ok=false
4983 for ac_c_preproc_warn_flag in '' yes
4984 do
4985   # Use a header file that comes with gcc, so configuring glibc
4986   # with a fresh cross-compiler works.
4987   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988   # <limits.h> exists even on freestanding compilers.
4989   # On the NeXT, cc -E runs the code through the compiler's parser,
4990   # not just through cpp. "Syntax error" is here to catch this case.
4991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h.  */
4993 #ifdef __STDC__
4994 # include <limits.h>
4995 #else
4996 # include <assert.h>
4997 #endif
4998                      Syntax error
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5001
5002 else
5003   # Broken: fails on valid input.
5004 continue
5005 fi
5006 rm -f conftest.err conftest.$ac_ext
5007
5008   # OK, works on sane cases.  Now check whether nonexistent headers
5009   # can be detected and how.
5010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h.  */
5012 #include <ac_nonexistent.h>
5013 _ACEOF
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015   # Broken: success on invalid input.
5016 continue
5017 else
5018   # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5021 fi
5022 rm -f conftest.err conftest.$ac_ext
5023
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then :
5028   break
5029 fi
5030
5031     done
5032     ac_cv_prog_CPP=$CPP
5033
5034 fi
5035   CPP=$ac_cv_prog_CPP
5036 else
5037   ac_cv_prog_CPP=$CPP
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5040 $as_echo "$CPP" >&6; }
5041 ac_preproc_ok=false
5042 for ac_c_preproc_warn_flag in '' yes
5043 do
5044   # Use a header file that comes with gcc, so configuring glibc
5045   # with a fresh cross-compiler works.
5046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047   # <limits.h> exists even on freestanding compilers.
5048   # On the NeXT, cc -E runs the code through the compiler's parser,
5049   # not just through cpp. "Syntax error" is here to catch this case.
5050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052 #ifdef __STDC__
5053 # include <limits.h>
5054 #else
5055 # include <assert.h>
5056 #endif
5057                      Syntax error
5058 _ACEOF
5059 if ac_fn_c_try_cpp "$LINENO"; then :
5060
5061 else
5062   # Broken: fails on valid input.
5063 continue
5064 fi
5065 rm -f conftest.err conftest.$ac_ext
5066
5067   # OK, works on sane cases.  Now check whether nonexistent headers
5068   # can be detected and how.
5069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h.  */
5071 #include <ac_nonexistent.h>
5072 _ACEOF
5073 if ac_fn_c_try_cpp "$LINENO"; then :
5074   # Broken: success on invalid input.
5075 continue
5076 else
5077   # Passes both tests.
5078 ac_preproc_ok=:
5079 break
5080 fi
5081 rm -f conftest.err conftest.$ac_ext
5082
5083 done
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then :
5087
5088 else
5089   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." "$LINENO" 5; }
5093 fi
5094
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5104 if test "${ac_cv_path_GREP+set}" = set; then :
5105   $as_echo_n "(cached) " >&6
5106 else
5107   if test -z "$GREP"; then
5108   ac_path_GREP_found=false
5109   # Loop through the user's path and test for each of PROGNAME-LIST
5110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115     for ac_prog in grep ggrep; do
5116     for ac_exec_ext in '' $ac_executable_extensions; do
5117       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5118       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5119 # Check for GNU ac_path_GREP and select it if it is found.
5120   # Check for GNU $ac_path_GREP
5121 case `"$ac_path_GREP" --version 2>&1` in
5122 *GNU*)
5123   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5124 *)
5125   ac_count=0
5126   $as_echo_n 0123456789 >"conftest.in"
5127   while :
5128   do
5129     cat "conftest.in" "conftest.in" >"conftest.tmp"
5130     mv "conftest.tmp" "conftest.in"
5131     cp "conftest.in" "conftest.nl"
5132     $as_echo 'GREP' >> "conftest.nl"
5133     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135     as_fn_arith $ac_count + 1 && ac_count=$as_val
5136     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5137       # Best one so far, save it but keep looking for a better one
5138       ac_cv_path_GREP="$ac_path_GREP"
5139       ac_path_GREP_max=$ac_count
5140     fi
5141     # 10*(2^10) chars as input seems more than enough
5142     test $ac_count -gt 10 && break
5143   done
5144   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 esac
5146
5147       $ac_path_GREP_found && break 3
5148     done
5149   done
5150   done
5151 IFS=$as_save_IFS
5152   if test -z "$ac_cv_path_GREP"; then
5153     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154   fi
5155 else
5156   ac_cv_path_GREP=$GREP
5157 fi
5158
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5161 $as_echo "$ac_cv_path_GREP" >&6; }
5162  GREP="$ac_cv_path_GREP"
5163
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5166 $as_echo_n "checking for egrep... " >&6; }
5167 if test "${ac_cv_path_EGREP+set}" = set; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5171    then ac_cv_path_EGREP="$GREP -E"
5172    else
5173      if test -z "$EGREP"; then
5174   ac_path_EGREP_found=false
5175   # Loop through the user's path and test for each of PROGNAME-LIST
5176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178 do
5179   IFS=$as_save_IFS
5180   test -z "$as_dir" && as_dir=.
5181     for ac_prog in egrep; do
5182     for ac_exec_ext in '' $ac_executable_extensions; do
5183       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5184       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5185 # Check for GNU ac_path_EGREP and select it if it is found.
5186   # Check for GNU $ac_path_EGREP
5187 case `"$ac_path_EGREP" --version 2>&1` in
5188 *GNU*)
5189   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5190 *)
5191   ac_count=0
5192   $as_echo_n 0123456789 >"conftest.in"
5193   while :
5194   do
5195     cat "conftest.in" "conftest.in" >"conftest.tmp"
5196     mv "conftest.tmp" "conftest.in"
5197     cp "conftest.in" "conftest.nl"
5198     $as_echo 'EGREP' >> "conftest.nl"
5199     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201     as_fn_arith $ac_count + 1 && ac_count=$as_val
5202     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5203       # Best one so far, save it but keep looking for a better one
5204       ac_cv_path_EGREP="$ac_path_EGREP"
5205       ac_path_EGREP_max=$ac_count
5206     fi
5207     # 10*(2^10) chars as input seems more than enough
5208     test $ac_count -gt 10 && break
5209   done
5210   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211 esac
5212
5213       $ac_path_EGREP_found && break 3
5214     done
5215   done
5216   done
5217 IFS=$as_save_IFS
5218   if test -z "$ac_cv_path_EGREP"; then
5219     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220   fi
5221 else
5222   ac_cv_path_EGREP=$EGREP
5223 fi
5224
5225    fi
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5228 $as_echo "$ac_cv_path_EGREP" >&6; }
5229  EGREP="$ac_cv_path_EGREP"
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5233 $as_echo_n "checking for ANSI C header files... " >&6; }
5234 if test "${ac_cv_header_stdc+set}" = set; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h.  */
5239 #include <stdlib.h>
5240 #include <stdarg.h>
5241 #include <string.h>
5242 #include <float.h>
5243
5244 int
5245 main ()
5246 {
5247
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253   ac_cv_header_stdc=yes
5254 else
5255   ac_cv_header_stdc=no
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258
5259 if test $ac_cv_header_stdc = yes; then
5260   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h.  */
5263 #include <string.h>
5264
5265 _ACEOF
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267   $EGREP "memchr" >/dev/null 2>&1; then :
5268
5269 else
5270   ac_cv_header_stdc=no
5271 fi
5272 rm -f conftest*
5273
5274 fi
5275
5276 if test $ac_cv_header_stdc = yes; then
5277   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h.  */
5280 #include <stdlib.h>
5281
5282 _ACEOF
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284   $EGREP "free" >/dev/null 2>&1; then :
5285
5286 else
5287   ac_cv_header_stdc=no
5288 fi
5289 rm -f conftest*
5290
5291 fi
5292
5293 if test $ac_cv_header_stdc = yes; then
5294   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295   if test "$cross_compiling" = yes; then :
5296   :
5297 else
5298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h.  */
5300 #include <ctype.h>
5301 #include <stdlib.h>
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 #else
5306 # define ISLOWER(c) \
5307                    (('a' <= (c) && (c) <= 'i') \
5308                      || ('j' <= (c) && (c) <= 'r') \
5309                      || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #endif
5312
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 int
5315 main ()
5316 {
5317   int i;
5318   for (i = 0; i < 256; i++)
5319     if (XOR (islower (i), ISLOWER (i))
5320         || toupper (i) != TOUPPER (i))
5321       return 2;
5322   return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_c_try_run "$LINENO"; then :
5326
5327 else
5328   ac_cv_header_stdc=no
5329 fi
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5331   conftest.$ac_objext conftest.beam conftest.$ac_ext
5332 fi
5333
5334 fi
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5337 $as_echo "$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5339
5340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5341
5342 fi
5343
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5346                   inttypes.h stdint.h unistd.h
5347 do :
5348   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5350 "
5351 eval as_val=\$$as_ac_Header
5352    if test "x$as_val" = x""yes; then :
5353   cat >>confdefs.h <<_ACEOF
5354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355 _ACEOF
5356
5357 fi
5358
5359 done
5360
5361
5362
5363   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5364 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5365   MINIX=yes
5366 else
5367   MINIX=
5368 fi
5369
5370
5371   if test "$MINIX" = yes; then
5372
5373 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5374
5375
5376 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5377
5378
5379 $as_echo "#define _MINIX 1" >>confdefs.h
5380
5381   fi
5382
5383
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5385 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5386 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h.  */
5391
5392 #         define __EXTENSIONS__ 1
5393           $ac_includes_default
5394 int
5395 main ()
5396 {
5397
5398   ;
5399   return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403   ac_cv_safe_to_define___extensions__=yes
5404 else
5405   ac_cv_safe_to_define___extensions__=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5410 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5411   test $ac_cv_safe_to_define___extensions__ = yes &&
5412     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5413
5414   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5415
5416   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5417
5418   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5419
5420   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5421
5422
5423 ac_ext=c
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5430 # On Suns, sometimes $CPP names a directory.
5431 if test -n "$CPP" && test -d "$CPP"; then
5432   CPP=
5433 fi
5434 if test -z "$CPP"; then
5435   if test "${ac_cv_prog_CPP+set}" = set; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438       # Double quotes because CPP needs to be expanded
5439     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5440     do
5441       ac_preproc_ok=false
5442 for ac_c_preproc_warn_flag in '' yes
5443 do
5444   # Use a header file that comes with gcc, so configuring glibc
5445   # with a fresh cross-compiler works.
5446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447   # <limits.h> exists even on freestanding compilers.
5448   # On the NeXT, cc -E runs the code through the compiler's parser,
5449   # not just through cpp. "Syntax error" is here to catch this case.
5450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h.  */
5452 #ifdef __STDC__
5453 # include <limits.h>
5454 #else
5455 # include <assert.h>
5456 #endif
5457                      Syntax error
5458 _ACEOF
5459 if ac_fn_c_try_cpp "$LINENO"; then :
5460
5461 else
5462   # Broken: fails on valid input.
5463 continue
5464 fi
5465 rm -f conftest.err conftest.$ac_ext
5466
5467   # OK, works on sane cases.  Now check whether nonexistent headers
5468   # can be detected and how.
5469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h.  */
5471 #include <ac_nonexistent.h>
5472 _ACEOF
5473 if ac_fn_c_try_cpp "$LINENO"; then :
5474   # Broken: success on invalid input.
5475 continue
5476 else
5477   # Passes both tests.
5478 ac_preproc_ok=:
5479 break
5480 fi
5481 rm -f conftest.err conftest.$ac_ext
5482
5483 done
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.$ac_ext
5486 if $ac_preproc_ok; then :
5487   break
5488 fi
5489
5490     done
5491     ac_cv_prog_CPP=$CPP
5492
5493 fi
5494   CPP=$ac_cv_prog_CPP
5495 else
5496   ac_cv_prog_CPP=$CPP
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5499 $as_echo "$CPP" >&6; }
5500 ac_preproc_ok=false
5501 for ac_c_preproc_warn_flag in '' yes
5502 do
5503   # Use a header file that comes with gcc, so configuring glibc
5504   # with a fresh cross-compiler works.
5505   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506   # <limits.h> exists even on freestanding compilers.
5507   # On the NeXT, cc -E runs the code through the compiler's parser,
5508   # not just through cpp. "Syntax error" is here to catch this case.
5509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h.  */
5511 #ifdef __STDC__
5512 # include <limits.h>
5513 #else
5514 # include <assert.h>
5515 #endif
5516                      Syntax error
5517 _ACEOF
5518 if ac_fn_c_try_cpp "$LINENO"; then :
5519
5520 else
5521   # Broken: fails on valid input.
5522 continue
5523 fi
5524 rm -f conftest.err conftest.$ac_ext
5525
5526   # OK, works on sane cases.  Now check whether nonexistent headers
5527   # can be detected and how.
5528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h.  */
5530 #include <ac_nonexistent.h>
5531 _ACEOF
5532 if ac_fn_c_try_cpp "$LINENO"; then :
5533   # Broken: success on invalid input.
5534 continue
5535 else
5536   # Passes both tests.
5537 ac_preproc_ok=:
5538 break
5539 fi
5540 rm -f conftest.err conftest.$ac_ext
5541
5542 done
5543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5544 rm -f conftest.err conftest.$ac_ext
5545 if $ac_preproc_ok; then :
5546
5547 else
5548   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5551 See \`config.log' for more details." "$LINENO" 5; }
5552 fi
5553
5554 ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561 $as_echo_n "checking for inline... " >&6; }
5562 if test "${ac_cv_c_inline+set}" = set; then :
5563   $as_echo_n "(cached) " >&6
5564 else
5565   ac_cv_c_inline=no
5566 for ac_kw in inline __inline__ __inline; do
5567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h.  */
5569 #ifndef __cplusplus
5570 typedef int foo_t;
5571 static $ac_kw foo_t static_foo () {return 0; }
5572 $ac_kw foo_t foo () {return 0; }
5573 #endif
5574
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577   ac_cv_c_inline=$ac_kw
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580   test "$ac_cv_c_inline" != no && break
5581 done
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585 $as_echo "$ac_cv_c_inline" >&6; }
5586
5587 case $ac_cv_c_inline in
5588   inline | yes) ;;
5589   *)
5590     case $ac_cv_c_inline in
5591       no) ac_val=;;
5592       *) ac_val=$ac_cv_c_inline;;
5593     esac
5594     cat >>confdefs.h <<_ACEOF
5595 #ifndef __cplusplus
5596 #define inline $ac_val
5597 #endif
5598 _ACEOF
5599     ;;
5600 esac
5601
5602
5603 # Check whether --enable-largefile was given.
5604 if test "${enable_largefile+set}" = set; then :
5605   enableval=$enable_largefile;
5606 fi
5607
5608 if test "$enable_largefile" != no; then
5609
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5611 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5612 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5613   $as_echo_n "(cached) " >&6
5614 else
5615   ac_cv_sys_largefile_CC=no
5616      if test "$GCC" != yes; then
5617        ac_save_CC=$CC
5618        while :; do
5619          # IRIX 6.2 and later do not support large files by default,
5620          # so use the C compiler's -n32 option if that helps.
5621          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h.  */
5623 #include <sys/types.h>
5624  /* Check that off_t can represent 2**63 - 1 correctly.
5625     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626     since some C++ compilers masquerading as C compilers
5627     incorrectly reject 9223372036854775807.  */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630                        && LARGE_OFF_T % 2147483647 == 1)
5631                       ? 1 : -1];
5632 int
5633 main ()
5634 {
5635
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640          if ac_fn_c_try_compile "$LINENO"; then :
5641   break
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext
5644          CC="$CC -n32"
5645          if ac_fn_c_try_compile "$LINENO"; then :
5646   ac_cv_sys_largefile_CC=' -n32'; break
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext
5649          break
5650        done
5651        CC=$ac_save_CC
5652        rm -f conftest.$ac_ext
5653     fi
5654 fi
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5656 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5657   if test "$ac_cv_sys_largefile_CC" != no; then
5658     CC=$CC$ac_cv_sys_largefile_CC
5659   fi
5660
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5662 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5663 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5664   $as_echo_n "(cached) " >&6
5665 else
5666   while :; do
5667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h.  */
5669 #include <sys/types.h>
5670  /* Check that off_t can represent 2**63 - 1 correctly.
5671     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672     since some C++ compilers masquerading as C compilers
5673     incorrectly reject 9223372036854775807.  */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676                        && LARGE_OFF_T % 2147483647 == 1)
5677                       ? 1 : -1];
5678 int
5679 main ()
5680 {
5681
5682   ;
5683   return 0;
5684 }
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687   ac_cv_sys_file_offset_bits=no; break
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h.  */
5692 #define _FILE_OFFSET_BITS 64
5693 #include <sys/types.h>
5694  /* Check that off_t can represent 2**63 - 1 correctly.
5695     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5696     since some C++ compilers masquerading as C compilers
5697     incorrectly reject 9223372036854775807.  */
5698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5699   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5700                        && LARGE_OFF_T % 2147483647 == 1)
5701                       ? 1 : -1];
5702 int
5703 main ()
5704 {
5705
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711   ac_cv_sys_file_offset_bits=64; break
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714   ac_cv_sys_file_offset_bits=unknown
5715   break
5716 done
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5719 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5720 case $ac_cv_sys_file_offset_bits in #(
5721   no | unknown) ;;
5722   *)
5723 cat >>confdefs.h <<_ACEOF
5724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5725 _ACEOF
5726 ;;
5727 esac
5728 rm -rf conftest*
5729   if test $ac_cv_sys_file_offset_bits = unknown; then
5730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5731 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5732 if test "${ac_cv_sys_large_files+set}" = set; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   while :; do
5736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h.  */
5738 #include <sys/types.h>
5739  /* Check that off_t can represent 2**63 - 1 correctly.
5740     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741     since some C++ compilers masquerading as C compilers
5742     incorrectly reject 9223372036854775807.  */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745                        && LARGE_OFF_T % 2147483647 == 1)
5746                       ? 1 : -1];
5747 int
5748 main ()
5749 {
5750
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756   ac_cv_sys_large_files=no; break
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h.  */
5761 #define _LARGE_FILES 1
5762 #include <sys/types.h>
5763  /* Check that off_t can represent 2**63 - 1 correctly.
5764     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765     since some C++ compilers masquerading as C compilers
5766     incorrectly reject 9223372036854775807.  */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769                        && LARGE_OFF_T % 2147483647 == 1)
5770                       ? 1 : -1];
5771 int
5772 main ()
5773 {
5774
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780   ac_cv_sys_large_files=1; break
5781 fi
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783   ac_cv_sys_large_files=unknown
5784   break
5785 done
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5788 $as_echo "$ac_cv_sys_large_files" >&6; }
5789 case $ac_cv_sys_large_files in #(
5790   no | unknown) ;;
5791   *)
5792 cat >>confdefs.h <<_ACEOF
5793 #define _LARGE_FILES $ac_cv_sys_large_files
5794 _ACEOF
5795 ;;
5796 esac
5797 rm -rf conftest*
5798   fi
5799 fi
5800
5801
5802 # sizeof(char) is 1 by definition.
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5808 $as_echo_n "checking size of void *... " >&6; }
5809 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5813
5814 else
5815   if test "$ac_cv_type_void_p" = yes; then
5816      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status 77
5819 as_fn_error "cannot compute sizeof (void *)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5821    else
5822      ac_cv_sizeof_void_p=0
5823    fi
5824 fi
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5828 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5829
5830
5831
5832 cat >>confdefs.h <<_ACEOF
5833 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5834 _ACEOF
5835
5836
5837 # The cast to long int works around a bug in the HP C Compiler
5838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5840 # This bug is HP SR number 8606223364.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5842 $as_echo_n "checking size of short... " >&6; }
5843 if test "${ac_cv_sizeof_short+set}" = set; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5847
5848 else
5849   if test "$ac_cv_type_short" = yes; then
5850      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 { as_fn_set_status 77
5853 as_fn_error "cannot compute sizeof (short)
5854 See \`config.log' for more details." "$LINENO" 5; }; }
5855    else
5856      ac_cv_sizeof_short=0
5857    fi
5858 fi
5859
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5862 $as_echo "$ac_cv_sizeof_short" >&6; }
5863
5864
5865
5866 cat >>confdefs.h <<_ACEOF
5867 #define SIZEOF_SHORT $ac_cv_sizeof_short
5868 _ACEOF
5869
5870
5871 # The cast to long int works around a bug in the HP C Compiler
5872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5874 # This bug is HP SR number 8606223364.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5876 $as_echo_n "checking size of int... " >&6; }
5877 if test "${ac_cv_sizeof_int+set}" = set; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5881
5882 else
5883   if test "$ac_cv_type_int" = yes; then
5884      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5886 { as_fn_set_status 77
5887 as_fn_error "cannot compute sizeof (int)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5889    else
5890      ac_cv_sizeof_int=0
5891    fi
5892 fi
5893
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5896 $as_echo "$ac_cv_sizeof_int" >&6; }
5897
5898
5899
5900 cat >>confdefs.h <<_ACEOF
5901 #define SIZEOF_INT $ac_cv_sizeof_int
5902 _ACEOF
5903
5904
5905 # The cast to long int works around a bug in the HP C Compiler
5906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5908 # This bug is HP SR number 8606223364.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5910 $as_echo_n "checking size of long... " >&6; }
5911 if test "${ac_cv_sizeof_long+set}" = set; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5915
5916 else
5917   if test "$ac_cv_type_long" = yes; then
5918      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 { as_fn_set_status 77
5921 as_fn_error "cannot compute sizeof (long)
5922 See \`config.log' for more details." "$LINENO" 5; }; }
5923    else
5924      ac_cv_sizeof_long=0
5925    fi
5926 fi
5927
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5930 $as_echo "$ac_cv_sizeof_long" >&6; }
5931
5932
5933
5934 cat >>confdefs.h <<_ACEOF
5935 #define SIZEOF_LONG $ac_cv_sizeof_long
5936 _ACEOF
5937
5938
5939 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5940 if test "x$ac_cv_type_long_long" = x""yes; then :
5941
5942 cat >>confdefs.h <<_ACEOF
5943 #define HAVE_LONG_LONG 1
5944 _ACEOF
5945
5946 # The cast to long int works around a bug in the HP C Compiler
5947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5949 # This bug is HP SR number 8606223364.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5951 $as_echo_n "checking size of long long... " >&6; }
5952 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5953   $as_echo_n "(cached) " >&6
5954 else
5955   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5956
5957 else
5958   if test "$ac_cv_type_long_long" = yes; then
5959      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5961 { as_fn_set_status 77
5962 as_fn_error "cannot compute sizeof (long long)
5963 See \`config.log' for more details." "$LINENO" 5; }; }
5964    else
5965      ac_cv_sizeof_long_long=0
5966    fi
5967 fi
5968
5969 fi
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5971 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5972
5973
5974
5975 cat >>confdefs.h <<_ACEOF
5976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5977 _ACEOF
5978
5979
5980 fi
5981
5982 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5983 if test "x$ac_cv_type___int64" = x""yes; then :
5984
5985 cat >>confdefs.h <<_ACEOF
5986 #define HAVE___INT64 1
5987 _ACEOF
5988
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5994 $as_echo_n "checking size of __int64... " >&6; }
5995 if test "${ac_cv_sizeof___int64+set}" = set; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5999
6000 else
6001   if test "$ac_cv_type___int64" = yes; then
6002      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status 77
6005 as_fn_error "cannot compute sizeof (__int64)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6007    else
6008      ac_cv_sizeof___int64=0
6009    fi
6010 fi
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6014 $as_echo "$ac_cv_sizeof___int64" >&6; }
6015
6016
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6020 _ACEOF
6021
6022
6023 fi
6024
6025 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6026 case $ac_cv_c_int8_t in #(
6027   no|yes) ;; #(
6028   *)
6029
6030 cat >>confdefs.h <<_ACEOF
6031 #define int8_t $ac_cv_c_int8_t
6032 _ACEOF
6033 ;;
6034 esac
6035
6036 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6037 case $ac_cv_c_int16_t in #(
6038   no|yes) ;; #(
6039   *)
6040
6041 cat >>confdefs.h <<_ACEOF
6042 #define int16_t $ac_cv_c_int16_t
6043 _ACEOF
6044 ;;
6045 esac
6046
6047 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6048 case $ac_cv_c_int32_t in #(
6049   no|yes) ;; #(
6050   *)
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define int32_t $ac_cv_c_int32_t
6054 _ACEOF
6055 ;;
6056 esac
6057
6058 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6059 case $ac_cv_c_int64_t in #(
6060   no|yes) ;; #(
6061   *)
6062
6063 cat >>confdefs.h <<_ACEOF
6064 #define int64_t $ac_cv_c_int64_t
6065 _ACEOF
6066 ;;
6067 esac
6068
6069
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6071 $as_echo_n "checking for long long int... " >&6; }
6072 if test "${ac_cv_type_long_long_int+set}" = set; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h.  */
6077
6078   /* For now, do not test the preprocessor; as of 2007 there are too many
6079          implementations with broken preprocessors.  Perhaps this can
6080          be revisited in 2012.  In the meantime, code should not expect
6081          #if to work with literals wider than 32 bits.  */
6082       /* Test literals.  */
6083       long long int ll = 9223372036854775807ll;
6084       long long int nll = -9223372036854775807LL;
6085       unsigned long long int ull = 18446744073709551615ULL;
6086       /* Test constant expressions.   */
6087       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6088                      ? 1 : -1)];
6089       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6090                      ? 1 : -1)];
6091       int i = 63;
6092 int
6093 main ()
6094 {
6095 /* Test availability of runtime routines for shift and division.  */
6096       long long int llmax = 9223372036854775807ll;
6097       unsigned long long int ullmax = 18446744073709551615ull;
6098       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6099               | (llmax / ll) | (llmax % ll)
6100               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6101               | (ullmax / ull) | (ullmax % ull));
6102   ;
6103   return 0;
6104 }
6105
6106 _ACEOF
6107 if ac_fn_c_try_link "$LINENO"; then :
6108                         if test "$cross_compiling" = yes; then :
6109   ac_cv_type_long_long_int=yes
6110 else
6111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h.  */
6113 #include <limits.h>
6114                #ifndef LLONG_MAX
6115                # define HALF \
6116                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6117                # define LLONG_MAX (HALF - 1 + HALF)
6118                #endif
6119 int
6120 main ()
6121 {
6122 long long int n = 1;
6123                int i;
6124                for (i = 0; ; i++)
6125                  {
6126                    long long int m = n << i;
6127                    if (m >> i != n)
6128                      return 1;
6129                    if (LLONG_MAX / 2 < m)
6130                      break;
6131                  }
6132                return 0;
6133   ;
6134   return 0;
6135 }
6136 _ACEOF
6137 if ac_fn_c_try_run "$LINENO"; then :
6138   ac_cv_type_long_long_int=yes
6139 else
6140   ac_cv_type_long_long_int=no
6141 fi
6142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6143   conftest.$ac_objext conftest.beam conftest.$ac_ext
6144 fi
6145
6146 else
6147   ac_cv_type_long_long_int=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext \
6150     conftest$ac_exeext conftest.$ac_ext
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6153 $as_echo "$ac_cv_type_long_long_int" >&6; }
6154   if test $ac_cv_type_long_long_int = yes; then
6155
6156 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6157
6158   fi
6159
6160
6161
6162   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6163 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6164
6165 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6166
6167 else
6168   test $ac_cv_type_long_long_int = yes \
6169        && ac_type='long long int' \
6170        || ac_type='long int'
6171
6172 cat >>confdefs.h <<_ACEOF
6173 #define intmax_t $ac_type
6174 _ACEOF
6175
6176 fi
6177
6178
6179
6180   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6182
6183 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6184
6185 else
6186   for ac_type in 'int' 'long int' 'long long int'; do
6187        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h.  */
6189 $ac_includes_default
6190 int
6191 main ()
6192 {
6193 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6194 test_array [0] = 0
6195
6196   ;
6197   return 0;
6198 }
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201
6202 cat >>confdefs.h <<_ACEOF
6203 #define intptr_t $ac_type
6204 _ACEOF
6205
6206           ac_type=
6207 fi
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209        test -z "$ac_type" && break
6210      done
6211 fi
6212
6213
6214 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6215 case $ac_cv_c_uint8_t in #(
6216   no|yes) ;; #(
6217   *)
6218
6219 $as_echo "#define _UINT8_T 1" >>confdefs.h
6220
6221
6222 cat >>confdefs.h <<_ACEOF
6223 #define uint8_t $ac_cv_c_uint8_t
6224 _ACEOF
6225 ;;
6226   esac
6227
6228 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6229 case $ac_cv_c_uint16_t in #(
6230   no|yes) ;; #(
6231   *)
6232
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define uint16_t $ac_cv_c_uint16_t
6236 _ACEOF
6237 ;;
6238   esac
6239
6240 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6241 case $ac_cv_c_uint32_t in #(
6242   no|yes) ;; #(
6243   *)
6244
6245 $as_echo "#define _UINT32_T 1" >>confdefs.h
6246
6247
6248 cat >>confdefs.h <<_ACEOF
6249 #define uint32_t $ac_cv_c_uint32_t
6250 _ACEOF
6251 ;;
6252   esac
6253
6254 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6255 case $ac_cv_c_uint64_t in #(
6256   no|yes) ;; #(
6257   *)
6258
6259 $as_echo "#define _UINT64_T 1" >>confdefs.h
6260
6261
6262 cat >>confdefs.h <<_ACEOF
6263 #define uint64_t $ac_cv_c_uint64_t
6264 _ACEOF
6265 ;;
6266   esac
6267
6268
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6270 $as_echo_n "checking for unsigned long long int... " >&6; }
6271 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h.  */
6276
6277   /* For now, do not test the preprocessor; as of 2007 there are too many
6278          implementations with broken preprocessors.  Perhaps this can
6279          be revisited in 2012.  In the meantime, code should not expect
6280          #if to work with literals wider than 32 bits.  */
6281       /* Test literals.  */
6282       long long int ll = 9223372036854775807ll;
6283       long long int nll = -9223372036854775807LL;
6284       unsigned long long int ull = 18446744073709551615ULL;
6285       /* Test constant expressions.   */
6286       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6287                      ? 1 : -1)];
6288       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6289                      ? 1 : -1)];
6290       int i = 63;
6291 int
6292 main ()
6293 {
6294 /* Test availability of runtime routines for shift and division.  */
6295       long long int llmax = 9223372036854775807ll;
6296       unsigned long long int ullmax = 18446744073709551615ull;
6297       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6298               | (llmax / ll) | (llmax % ll)
6299               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6300               | (ullmax / ull) | (ullmax % ull));
6301   ;
6302   return 0;
6303 }
6304
6305 _ACEOF
6306 if ac_fn_c_try_link "$LINENO"; then :
6307   ac_cv_type_unsigned_long_long_int=yes
6308 else
6309   ac_cv_type_unsigned_long_long_int=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext \
6312     conftest$ac_exeext conftest.$ac_ext
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6315 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6316   if test $ac_cv_type_unsigned_long_long_int = yes; then
6317
6318 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6319
6320   fi
6321
6322
6323
6324   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6325 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6326
6327 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6328
6329 else
6330   test $ac_cv_type_unsigned_long_long_int = yes \
6331        && ac_type='unsigned long long int' \
6332        || ac_type='unsigned long int'
6333
6334 cat >>confdefs.h <<_ACEOF
6335 #define uintmax_t $ac_type
6336 _ACEOF
6337
6338 fi
6339
6340
6341
6342   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6344
6345 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6346
6347 else
6348   for ac_type in 'unsigned int' 'unsigned long int' \
6349         'unsigned long long int'; do
6350        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h.  */
6352 $ac_includes_default
6353 int
6354 main ()
6355 {
6356 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6357 test_array [0] = 0
6358
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 if ac_fn_c_try_compile "$LINENO"; then :
6364
6365 cat >>confdefs.h <<_ACEOF
6366 #define uintptr_t $ac_type
6367 _ACEOF
6368
6369           ac_type=
6370 fi
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372        test -z "$ac_type" && break
6373      done
6374 fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 # ---------------------
6391 # Warnings and checking
6392 # ---------------------
6393
6394 # Check $CC warning features (if it's GCC).
6395 # We want to use -pedantic, but we don't want warnings about
6396 # * 'long long'
6397 # * variadic macros
6398 # * overlong strings
6399 # So, we only use -pedantic if we can disable those warnings.
6400
6401 loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6404   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6405
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   CFLAGS="$option"
6412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h.  */
6414
6415 int
6416 main ()
6417 {
6418
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424   eval "$as_acx_Woption=yes"
6425 else
6426   eval "$as_acx_Woption=no"
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429
6430 fi
6431 eval ac_res=\$$as_acx_Woption
6432                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435   loose_warn="$loose_warn${loose_warn:+ }$option"
6436 fi
6437   done
6438 CFLAGS="$save_CFLAGS"
6439
6440 c_loose_warn=
6441 save_CFLAGS="$CFLAGS"
6442 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6443   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6444
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   CFLAGS="$option"
6451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h.  */
6453
6454 int
6455 main ()
6456 {
6457
6458   ;
6459   return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463   eval "$as_acx_Woption=yes"
6464 else
6465   eval "$as_acx_Woption=no"
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468
6469 fi
6470 eval ac_res=\$$as_acx_Woption
6471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6475 fi
6476   done
6477 CFLAGS="$save_CFLAGS"
6478
6479 strict_warn=
6480 save_CFLAGS="$CFLAGS"
6481 for option in -Wmissing-format-attribute; do
6482   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6483
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   CFLAGS="$option"
6490     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h.  */
6492
6493 int
6494 main ()
6495 {
6496
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502   eval "$as_acx_Woption=yes"
6503 else
6504   eval "$as_acx_Woption=no"
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507
6508 fi
6509 eval ac_res=\$$as_acx_Woption
6510                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513   strict_warn="$strict_warn${strict_warn:+ }$option"
6514 fi
6515   done
6516 CFLAGS="$save_CFLAGS"
6517
6518 c_strict_warn=
6519 save_CFLAGS="$CFLAGS"
6520 for option in -Wold-style-definition -Wc++-compat; do
6521   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6522
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526   $as_echo_n "(cached) " >&6
6527 else
6528   CFLAGS="$option"
6529     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h.  */
6531
6532 int
6533 main ()
6534 {
6535
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541   eval "$as_acx_Woption=yes"
6542 else
6543   eval "$as_acx_Woption=no"
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546
6547 fi
6548 eval ac_res=\$$as_acx_Woption
6549                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6553 fi
6554   done
6555 CFLAGS="$save_CFLAGS"
6556
6557 if test "$GCC" = yes; then :
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561   $as_echo_n "(cached) " >&6
6562 else
6563   save_CFLAGS="$CFLAGS"
6564 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h.  */
6567
6568 int
6569 main ()
6570 {
6571
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6578 else
6579   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 CFLAGS="$save_CFLAGS"
6583 fi
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6588 fi
6589
6590 fi
6591
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594   enableval=$enable_werror_always;
6595 else
6596   enable_werror_always=no
6597 fi
6598
6599 if test $enable_werror_always = yes; then :
6600   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6601 fi
6602
6603
6604
6605 # The above macros do nothing if the compiler is not GCC.  However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6608 warn_cflags=
6609 warn_cxxflags=
6610 if test "x$GCC" = "xyes"; then
6611   warn_cflags='$(GCC_WARN_CFLAGS)'
6612   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6613 fi
6614
6615
6616
6617 # Enable expensive internal checks
6618 is_release=
6619 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6620   is_release=yes
6621 fi
6622
6623 # Check whether --enable-checking was given.
6624 if test "${enable_checking+set}" = set; then :
6625   enableval=$enable_checking; ac_checking_flags="${enableval}"
6626 else
6627
6628 # Determine the default checks.
6629 if test x$is_release = x ; then
6630   ac_checking_flags=yes
6631 else
6632   ac_checking_flags=release
6633 fi
6634 fi
6635
6636 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6637 for check in release $ac_checking_flags
6638 do
6639         case $check in
6640         # these set all the flags to specific states
6641         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6642                         ac_fold_checking= ; ac_gc_checking=1 ;
6643                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6644                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6645                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6646                         ac_types_checking=1 ;;
6647         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6648                         ac_fold_checking= ; ac_gc_checking= ;
6649                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6650                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6651                         ac_tree_checking= ; ac_valgrind_checking= ;
6652                         ac_types_checking= ;;
6653         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6654                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6655                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6656                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6657                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6658                         ac_types_checking=1 ;;
6659         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6660                         ac_fold_checking= ; ac_gc_checking= ;
6661                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6662                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6663                         ac_tree_checking= ; ac_valgrind_checking= ;
6664                         ac_types_checking= ;;
6665         # these enable particular checks
6666         assert)         ac_assert_checking=1 ;;
6667         df)             ac_df_checking=1 ;;
6668         fold)           ac_fold_checking=1 ;;
6669         gc)             ac_gc_checking=1 ;;
6670         gcac)           ac_gc_always_collect=1 ;;
6671         gimple)         ac_gimple_checking=1 ;;
6672         misc)           ac_checking=1 ;;
6673         rtl)            ac_rtl_checking=1 ;;
6674         rtlflag)        ac_rtlflag_checking=1 ;;
6675         runtime)        ac_runtime_checking=1 ;;
6676         tree)           ac_tree_checking=1 ;;
6677         types)          ac_types_checking=1 ;;
6678         valgrind)       ac_valgrind_checking=1 ;;
6679         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6680         esac
6681 done
6682 IFS="$ac_save_IFS"
6683
6684 nocommon_flag=""
6685 if test x$ac_checking != x ; then
6686
6687 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6688
6689   nocommon_flag=-fno-common
6690 fi
6691
6692 if test x$ac_df_checking != x ; then
6693
6694 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6695
6696 fi
6697 if test x$ac_assert_checking != x ; then
6698
6699 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6700
6701 fi
6702 if test x$ac_gimple_checking != x ; then
6703
6704 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6705
6706 fi
6707
6708 if test x$ac_runtime_checking != x ; then
6709
6710 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6711
6712 fi
6713 if test x$ac_tree_checking != x ; then
6714
6715 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6716
6717   TREEBROWSER=tree-browser.o
6718 fi
6719 if test x$ac_types_checking != x ; then
6720
6721 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6722
6723 fi
6724
6725 if test x$ac_rtl_checking != x ; then
6726
6727 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6728
6729 fi
6730 if test x$ac_rtlflag_checking != x ; then
6731
6732 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6733
6734 fi
6735 if test x$ac_gc_checking != x ; then
6736
6737 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6738
6739 fi
6740 if test x$ac_gc_always_collect != x ; then
6741
6742 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6743
6744 fi
6745 if test x$ac_fold_checking != x ; then
6746
6747 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6748
6749 fi
6750 valgrind_path_defines=
6751 valgrind_command=
6752
6753 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6754 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6755   have_valgrind_h=yes
6756 else
6757   have_valgrind_h=no
6758 fi
6759
6760
6761
6762 if test x$ac_valgrind_checking != x ; then
6763   # It is certainly possible that there's valgrind but no valgrind.h.
6764   # GCC relies on making annotations so we must have both.
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6766 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h.  */
6769 #include <valgrind/memcheck.h>
6770 #ifndef VALGRIND_DISCARD
6771 #error VALGRIND_DISCARD not defined
6772 #endif
6773 _ACEOF
6774 if ac_fn_c_try_cpp "$LINENO"; then :
6775   gcc_cv_header_valgrind_memcheck_h=yes
6776 else
6777   gcc_cv_header_valgrind_memcheck_h=no
6778 fi
6779 rm -f conftest.err conftest.$ac_ext
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6781 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6783 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786 #include <memcheck.h>
6787 #ifndef VALGRIND_DISCARD
6788 #error VALGRIND_DISCARD not defined
6789 #endif
6790 _ACEOF
6791 if ac_fn_c_try_cpp "$LINENO"; then :
6792   gcc_cv_header_memcheck_h=yes
6793 else
6794   gcc_cv_header_memcheck_h=no
6795 fi
6796 rm -f conftest.err conftest.$ac_ext
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6798 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6799
6800 # Prepare PATH_SEPARATOR.
6801 # The user is always right.
6802 if test "${PATH_SEPARATOR+set}" != set; then
6803   echo "#! /bin/sh" >conf$$.sh
6804   echo  "exit 0"   >>conf$$.sh
6805   chmod +x conf$$.sh
6806   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6807     PATH_SEPARATOR=';'
6808   else
6809     PATH_SEPARATOR=:
6810   fi
6811   rm -f conf$$.sh
6812 fi
6813
6814 # Find out how to test for executable files. Don't use a zero-byte file,
6815 # as systems may use methods other than mode bits to determine executability.
6816 cat >conf$$.file <<_ASEOF
6817 #! /bin/sh
6818 exit 0
6819 _ASEOF
6820 chmod +x conf$$.file
6821 if test -x conf$$.file >/dev/null 2>&1; then
6822   ac_executable_p="test -x"
6823 else
6824   ac_executable_p="test -f"
6825 fi
6826 rm -f conf$$.file
6827
6828 # Extract the first word of "valgrind", so it can be a program name with args.
6829 set dummy valgrind; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6833   $as_echo_n "(cached) " >&6
6834 else
6835   case "$valgrind_path" in
6836   [\\/]* | ?:[\\/]*)
6837     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6838     ;;
6839   *)
6840     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6841     for ac_dir in $PATH; do
6842       IFS="$ac_save_IFS"
6843       test -z "$ac_dir" && ac_dir=.
6844       for ac_exec_ext in '' $ac_executable_extensions; do
6845         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6846           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6847             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6848             break 2
6849           fi
6850         fi
6851       done
6852     done
6853     IFS="$ac_save_IFS"
6854     ;;
6855 esac
6856 fi
6857 valgrind_path="$ac_cv_path_valgrind_path"
6858 if test -n "$valgrind_path"; then
6859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6860 $as_echo "$valgrind_path" >&6; }
6861 else
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866   if test "x$valgrind_path" = "x" \
6867     || (test $have_valgrind_h = no \
6868         && test $gcc_cv_header_memcheck_h = no \
6869         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6870         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6871   fi
6872   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6873   valgrind_command="$valgrind_path -q"
6874
6875 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6876
6877   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6878
6879 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6880
6881   fi
6882   if test $gcc_cv_header_memcheck_h = yes; then
6883
6884 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6885
6886   fi
6887 fi
6888
6889
6890
6891 # Enable code coverage collection
6892 # Check whether --enable-coverage was given.
6893 if test "${enable_coverage+set}" = set; then :
6894   enableval=$enable_coverage; case "${enableval}" in
6895   yes|noopt)
6896     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6897     ;;
6898   opt)
6899     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6900     ;;
6901   no)
6902     # a.k.a. --disable-coverage
6903     coverage_flags=""
6904     ;;
6905   *)
6906     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6907     ;;
6908 esac
6909 else
6910   coverage_flags=""
6911 fi
6912
6913
6914
6915 # Check whether --enable-gather-detailed-mem-stats was given.
6916 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6917   enableval=$enable_gather_detailed_mem_stats;
6918 else
6919   enable_gather_detailed_mem_stats=no
6920 fi
6921
6922 if test x$enable_gather_detailed_mem_stats = xyes ; then
6923
6924 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6925
6926 fi
6927
6928 # -------------------------------
6929 # Miscenalleous configure options
6930 # -------------------------------
6931
6932 # See if we are building gcc with C++.
6933 # Check whether --enable-build-with-cxx was given.
6934 if test "${enable_build_with_cxx+set}" = set; then :
6935   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6936 else
6937   ENABLE_BUILD_WITH_CXX=no
6938 fi
6939
6940
6941 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6942
6943 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6944
6945 fi
6946
6947 # With stabs
6948
6949 # Check whether --with-stabs was given.
6950 if test "${with_stabs+set}" = set; then :
6951   withval=$with_stabs; stabs="$with_stabs"
6952 else
6953   stabs=no
6954 fi
6955
6956
6957 # Determine whether or not multilibs are enabled.
6958 # Check whether --enable-multilib was given.
6959 if test "${enable_multilib+set}" = set; then :
6960   enableval=$enable_multilib;
6961 else
6962   enable_multilib=yes
6963 fi
6964
6965
6966
6967 # Enable __cxa_atexit for C++.
6968 # Check whether --enable-__cxa_atexit was given.
6969 if test "${enable___cxa_atexit+set}" = set; then :
6970   enableval=$enable___cxa_atexit;
6971 fi
6972
6973
6974 # Enable C extension for decimal float if target supports it.
6975
6976 # Check whether --enable-decimal-float was given.
6977 if test "${enable_decimal_float+set}" = set; then :
6978   enableval=$enable_decimal_float;
6979   case $enable_decimal_float in
6980     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6981     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6982 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6983   esac
6984
6985 else
6986
6987   case $target in
6988     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6989     i?86*-*-mingw* | x86_64*-*-mingw* | \
6990     i?86*-*-cygwin*)
6991       enable_decimal_float=yes
6992       ;;
6993     *)
6994       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6995 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6996       enable_decimal_float=no
6997       ;;
6998   esac
6999
7000 fi
7001
7002
7003 # x86's use BID format instead of DPD
7004 case x$enable_decimal_float in
7005   xyes)
7006     case $target in
7007       i?86*-*-* | x86_64*-*-*)
7008         enable_decimal_float=bid
7009         ;;
7010       *)
7011         enable_decimal_float=dpd
7012         ;;
7013     esac
7014     default_decimal_float=$enable_decimal_float
7015     ;;
7016   xno)
7017     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7018     # dependency on libdecnumber.
7019     default_decimal_float=dpd
7020     ;;
7021 esac
7022
7023
7024
7025
7026 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7027
7028 cat >>confdefs.h <<_ACEOF
7029 #define ENABLE_DECIMAL_FLOAT $dfp
7030 _ACEOF
7031
7032
7033 # Use default_decimal_float for dependency.
7034 enable_decimal_float=$default_decimal_float
7035
7036 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7037
7038 cat >>confdefs.h <<_ACEOF
7039 #define ENABLE_DECIMAL_BID_FORMAT $bid
7040 _ACEOF
7041
7042
7043 # Enable C extension for fixed-point arithmetic.
7044 # Check whether --enable-fixed-point was given.
7045 if test "${enable_fixed_point+set}" = set; then :
7046   enableval=$enable_fixed_point;
7047 else
7048
7049   case $target in
7050     arm*)
7051       enable_fixed_point=yes
7052       ;;
7053
7054     mips*-*-*)
7055       case $host in
7056         mips*-sgi-irix*)
7057           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7058 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7059           enable_fixed_point=no
7060           ;;
7061         *)
7062           enable_fixed_point=yes
7063           ;;
7064       esac
7065       ;;
7066     *)
7067       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7068 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7069       enable_fixed_point=no
7070       ;;
7071   esac
7072
7073 fi
7074
7075
7076
7077 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7078
7079 cat >>confdefs.h <<_ACEOF
7080 #define ENABLE_FIXED_POINT $fixedpoint
7081 _ACEOF
7082
7083
7084 # Enable threads
7085 # Pass with no value to take the default
7086 # Pass with a value to specify a thread package
7087 # Check whether --enable-threads was given.
7088 if test "${enable_threads+set}" = set; then :
7089   enableval=$enable_threads;
7090 else
7091   enable_threads=''
7092 fi
7093
7094
7095 # Check whether --enable-tls was given.
7096 if test "${enable_tls+set}" = set; then :
7097   enableval=$enable_tls;
7098   case $enable_tls in
7099     yes | no) ;;
7100     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7101 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7102   esac
7103
7104 else
7105   enable_tls=''
7106 fi
7107
7108
7109 # Check whether --enable-objc-gc was given.
7110 if test "${enable_objc_gc+set}" = set; then :
7111   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7112         objc_boehm_gc=''
7113 else
7114         objc_boehm_gc=1
7115 fi
7116 else
7117   objc_boehm_gc=''
7118 fi
7119
7120
7121
7122 # Check whether --with-dwarf2 was given.
7123 if test "${with_dwarf2+set}" = set; then :
7124   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7125 else
7126   dwarf2=no
7127 fi
7128
7129
7130 # Check whether --enable-shared was given.
7131 if test "${enable_shared+set}" = set; then :
7132   enableval=$enable_shared;
7133   case $enable_shared in
7134   yes | no) ;;
7135   *)
7136     enable_shared=no
7137     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7138     for pkg in $enableval; do
7139       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7140         enable_shared=yes
7141       fi
7142     done
7143     IFS="$ac_save_ifs"
7144     ;;
7145   esac
7146
7147 else
7148   enable_shared=yes
7149 fi
7150
7151
7152
7153
7154 # Check whether --with-build-sysroot was given.
7155 if test "${with_build_sysroot+set}" = set; then :
7156   withval=$with_build_sysroot;
7157 fi
7158
7159
7160
7161 # Check whether --with-sysroot was given.
7162 if test "${with_sysroot+set}" = set; then :
7163   withval=$with_sysroot;
7164  case ${with_sysroot} in
7165  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7166  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7167  esac
7168
7169  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7170  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7171
7172  if test "x$prefix" = xNONE; then
7173   test_prefix=/usr/local
7174  else
7175   test_prefix=$prefix
7176  fi
7177  if test "x$exec_prefix" = xNONE; then
7178   test_exec_prefix=$test_prefix
7179  else
7180   test_exec_prefix=$exec_prefix
7181  fi
7182  case ${TARGET_SYSTEM_ROOT} in
7183  "${test_prefix}"|"${test_prefix}/"*|\
7184  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7185  '${prefix}'|'${prefix}/'*|\
7186  '${exec_prefix}'|'${exec_prefix}/'*)
7187    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7188    TARGET_SYSTEM_ROOT_DEFINE="$t"
7189    ;;
7190  esac
7191
7192 else
7193
7194  TARGET_SYSTEM_ROOT=
7195  TARGET_SYSTEM_ROOT_DEFINE=
7196  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7197
7198 fi
7199
7200
7201
7202
7203
7204
7205 # Check whether --with-specs was given.
7206 if test "${with_specs+set}" = set; then :
7207   withval=$with_specs; CONFIGURE_SPECS=$withval
7208 else
7209   CONFIGURE_SPECS=
7210
7211 fi
7212
7213
7214
7215
7216
7217 # Check whether --with-pkgversion was given.
7218 if test "${with_pkgversion+set}" = set; then :
7219   withval=$with_pkgversion; case "$withval" in
7220       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7221       no)  PKGVERSION= ;;
7222       *)   PKGVERSION="($withval) " ;;
7223      esac
7224 else
7225   PKGVERSION="(GCC) "
7226
7227 fi
7228
7229
7230
7231
7232
7233 # Check whether --with-bugurl was given.
7234 if test "${with_bugurl+set}" = set; then :
7235   withval=$with_bugurl; case "$withval" in
7236       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7237       no)  BUGURL=
7238            ;;
7239       *)   BUGURL="$withval"
7240            ;;
7241      esac
7242 else
7243   BUGURL="http://gcc.gnu.org/bugs.html"
7244
7245 fi
7246
7247   case ${BUGURL} in
7248   "")
7249     REPORT_BUGS_TO=
7250     REPORT_BUGS_TEXI=
7251     ;;
7252   *)
7253     REPORT_BUGS_TO="<$BUGURL>"
7254     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7255     ;;
7256   esac;
7257
7258
7259
7260
7261 # Sanity check enable_languages in case someone does not run the toplevel
7262 # configure # script.
7263 # Check whether --enable-languages was given.
7264 if test "${enable_languages+set}" = set; then :
7265   enableval=$enable_languages; case ,${enable_languages}, in
7266        ,,|,yes,)
7267                 # go safe -- we cannot be much sure without the toplevel
7268                 # configure's
7269                 # analysis of which target libs are present and usable
7270                 enable_languages=c
7271                 ;;
7272          *,all,*)
7273                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7274                 ;;
7275         *,c,*)
7276                 ;;
7277         *)
7278                 enable_languages=c,${enable_languages}
7279                 ;;
7280 esac
7281 else
7282   enable_languages=c
7283 fi
7284
7285
7286
7287 # Check whether --with-multilib-list was given.
7288 if test "${with_multilib_list+set}" = set; then :
7289   withval=$with_multilib_list; :
7290 else
7291   with_multilib_list=default
7292 fi
7293
7294
7295 # -------------------------
7296 # Checks for other programs
7297 # -------------------------
7298
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7300 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7301 set x ${MAKE-make}
7302 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7303 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   cat >conftest.make <<\_ACEOF
7307 SHELL = /bin/sh
7308 all:
7309         @echo '@@@%%%=$(MAKE)=@@@%%%'
7310 _ACEOF
7311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7312 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7313   *@@@%%%=?*=@@@%%%*)
7314     eval ac_cv_prog_make_${ac_make}_set=yes;;
7315   *)
7316     eval ac_cv_prog_make_${ac_make}_set=no;;
7317 esac
7318 rm -f conftest.make
7319 fi
7320 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7322 $as_echo "yes" >&6; }
7323   SET_MAKE=
7324 else
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327   SET_MAKE="MAKE=${MAKE-make}"
7328 fi
7329
7330
7331 # Find some useful tools
7332 for ac_prog in gawk mawk nawk awk
7333 do
7334   # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_AWK+set}" = set; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$AWK"; then
7342   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_prog_AWK="$ac_prog"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 AWK=$ac_cv_prog_AWK
7362 if test -n "$AWK"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7364 $as_echo "$AWK" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371   test -n "$AWK" && break
7372 done
7373
7374 # We need awk to create options.c and options.h.
7375 # Bail out if it's missing.
7376 case ${AWK} in
7377   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7378 esac
7379
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7381 $as_echo_n "checking whether ln -s works... " >&6; }
7382 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7383   $as_echo_n "(cached) " >&6
7384 else
7385   rm -f conftestdata_t
7386 echo >conftestdata_f
7387 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7388 then
7389   gcc_cv_prog_LN_S="ln -s"
7390 else
7391   if ln conftestdata_f conftestdata_t 2>/dev/null
7392   then
7393     gcc_cv_prog_LN_S=ln
7394   else
7395     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7396     then
7397       gcc_cv_prog_LN_S="cp -p"
7398     else
7399       gcc_cv_prog_LN_S=cp
7400     fi
7401   fi
7402 fi
7403 rm -f conftestdata_f conftestdata_t
7404
7405 fi
7406 LN_S="$gcc_cv_prog_LN_S"
7407 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7410 else
7411   if test "$gcc_cv_prog_LN_S" = "ln"; then
7412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7413 $as_echo "no, using ln" >&6; }
7414   else
7415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7416 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7417   fi
7418 fi
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7421 $as_echo_n "checking whether ln works... " >&6; }
7422 if test "${acx_cv_prog_LN+set}" = set; then :
7423   $as_echo_n "(cached) " >&6
7424 else
7425   rm -f conftestdata_t
7426 echo >conftestdata_f
7427 if ln conftestdata_f conftestdata_t 2>/dev/null
7428 then
7429   acx_cv_prog_LN=ln
7430 else
7431   acx_cv_prog_LN=no
7432 fi
7433 rm -f conftestdata_f conftestdata_t
7434
7435 fi
7436 if test $acx_cv_prog_LN = no; then
7437   LN="$LN_S"
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7439 $as_echo "no, using $LN" >&6; }
7440 else
7441   LN="$acx_cv_prog_LN"
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7443 $as_echo "yes" >&6; }
7444 fi
7445
7446 if test -n "$ac_tool_prefix"; then
7447   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454   if test -n "$RANLIB"; then
7455   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462     for ac_exec_ext in '' $ac_executable_extensions; do
7463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469   done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 RANLIB=$ac_cv_prog_RANLIB
7475 if test -n "$RANLIB"; then
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7477 $as_echo "$RANLIB" >&6; }
7478 else
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483
7484 fi
7485 if test -z "$ac_cv_prog_RANLIB"; then
7486   ac_ct_RANLIB=$RANLIB
7487   # Extract the first word of "ranlib", so it can be a program name with args.
7488 set dummy ranlib; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7492   $as_echo_n "(cached) " >&6
7493 else
7494   if test -n "$ac_ct_RANLIB"; then
7495   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502     for ac_exec_ext in '' $ac_executable_extensions; do
7503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504     ac_cv_prog_ac_ct_RANLIB="ranlib"
7505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509   done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7515 if test -n "$ac_ct_RANLIB"; then
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7517 $as_echo "$ac_ct_RANLIB" >&6; }
7518 else
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523   if test "x$ac_ct_RANLIB" = x; then
7524     RANLIB=":"
7525   else
7526     case $cross_compiling:$ac_tool_warned in
7527 yes:)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned=yes ;;
7531 esac
7532     RANLIB=$ac_ct_RANLIB
7533   fi
7534 else
7535   RANLIB="$ac_cv_prog_RANLIB"
7536 fi
7537
7538 case "${host}" in
7539 *-*-darwin*)
7540   # By default, the Darwin ranlib will not treat common symbols as
7541   # definitions when  building the archive table of contents.  Other
7542   # ranlibs do that; pass an option to the Darwin ranlib that makes
7543   # it behave similarly.
7544   ranlib_flags="-c"
7545   ;;
7546 *)
7547   ranlib_flags=""
7548 esac
7549
7550
7551 # Find a good install program.  We prefer a C program (faster),
7552 # so one script is as good as another.  But avoid the broken or
7553 # incompatible versions:
7554 # SysV /etc/install, /usr/sbin/install
7555 # SunOS /usr/etc/install
7556 # IRIX /sbin/install
7557 # AIX /bin/install
7558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7560 # ./install, which can be erroneously created by make from ./install.sh.
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7562 $as_echo_n "checking for a BSD compatible install... " >&6; }
7563 if test -z "$INSTALL"; then
7564 if test "${ac_cv_path_install+set}" = set; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7568   for ac_dir in $PATH; do
7569     # Account for people who put trailing slashes in PATH elements.
7570     case "$ac_dir/" in
7571     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7572     *)
7573       # OSF1 and SCO ODT 3.0 have their own names for install.
7574       for ac_prog in ginstall scoinst install; do
7575         if test -f $ac_dir/$ac_prog; then
7576           if test $ac_prog = install &&
7577             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7578             # AIX install.  It has an incompatible calling convention.
7579             # OSF/1 installbsd also uses dspmsg, but is usable.
7580             :
7581           else
7582             ac_cv_path_install="$ac_dir/$ac_prog -c"
7583             break 2
7584           fi
7585         fi
7586       done
7587       ;;
7588     esac
7589   done
7590   IFS="$ac_save_IFS"
7591
7592 fi
7593   if test "${ac_cv_path_install+set}" = set; then
7594     INSTALL="$ac_cv_path_install"
7595   else
7596     # As a last resort, use the slow shell script.  We don't cache a
7597     # path for INSTALL within a source directory, because that will
7598     # break other packages using the cache if that directory is
7599     # removed, or if the path is relative.
7600     INSTALL="$ac_install_sh"
7601   fi
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7604 $as_echo "$INSTALL" >&6; }
7605
7606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7607 # It thinks the first close brace ends the variable substitution.
7608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7609
7610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7611
7612
7613 # See if cmp has --ignore-initial.
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7615 $as_echo_n "checking for cmp's capabilities... " >&6; }
7616 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7617   $as_echo_n "(cached) " >&6
7618 else
7619    echo abfoo >t1
7620   echo cdfoo >t2
7621   gcc_cv_prog_cmp_skip=slowcompare
7622   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7623     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7624       :
7625     else
7626       gcc_cv_prog_cmp_skip=gnucompare
7627     fi
7628   fi
7629   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7630     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7631       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7632         :
7633       else
7634         gcc_cv_prog_cmp_skip=fastcompare
7635       fi
7636     fi
7637   fi
7638   rm t1 t2
7639
7640 fi
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7642 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7643 make_compare_target=$gcc_cv_prog_cmp_skip
7644
7645
7646
7647 # See if we have the mktemp command.
7648 # Extract the first word of "mktemp", so it can be a program name with args.
7649 set dummy mktemp; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   if test -n "$have_mktemp_command"; then
7656   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661   IFS=$as_save_IFS
7662   test -z "$as_dir" && as_dir=.
7663     for ac_exec_ext in '' $ac_executable_extensions; do
7664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665     ac_cv_prog_have_mktemp_command="yes"
7666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667     break 2
7668   fi
7669 done
7670   done
7671 IFS=$as_save_IFS
7672
7673   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7674 fi
7675 fi
7676 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7677 if test -n "$have_mktemp_command"; then
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7679 $as_echo "$have_mktemp_command" >&6; }
7680 else
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684
7685
7686
7687 # See if makeinfo has been installed and is modern enough
7688 # that we can use it.
7689
7690   # Extract the first word of "makeinfo", so it can be a program name with args.
7691 set dummy makeinfo; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   if test -n "$MAKEINFO"; then
7698   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703   IFS=$as_save_IFS
7704   test -z "$as_dir" && as_dir=.
7705     for ac_exec_ext in '' $ac_executable_extensions; do
7706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707     ac_cv_prog_MAKEINFO="makeinfo"
7708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709     break 2
7710   fi
7711 done
7712   done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 MAKEINFO=$ac_cv_prog_MAKEINFO
7718 if test -n "$MAKEINFO"; then
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7720 $as_echo "$MAKEINFO" >&6; }
7721 else
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7724 fi
7725
7726
7727   if test -n "$MAKEINFO"; then
7728     # Found it, now check the version.
7729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7730 $as_echo_n "checking for modern makeinfo... " >&6; }
7731 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7735                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7736
7737                     case $ac_prog_version in
7738                       '')  gcc_cv_prog_makeinfo_modern=no;;
7739                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7740                       *)   gcc_cv_prog_makeinfo_modern=no;;
7741                     esac
7742
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7745 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7746   else
7747     gcc_cv_prog_makeinfo_modern=no
7748   fi
7749   if test $gcc_cv_prog_makeinfo_modern = no; then
7750     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7751   fi
7752
7753 if test $gcc_cv_prog_makeinfo_modern = no; then
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7755 *** Makeinfo is missing or too old.
7756 *** Info documentation will not be built." >&5
7757 $as_echo "$as_me: WARNING:
7758 *** Makeinfo is missing or too old.
7759 *** Info documentation will not be built." >&2;}
7760   BUILD_INFO=
7761 else
7762   BUILD_INFO=info
7763 fi
7764
7765
7766 # Is pod2man recent enough to regenerate manpages?
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7768 $as_echo_n "checking for recent Pod::Man... " >&6; }
7769 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7771 $as_echo "yes" >&6; }
7772   GENERATED_MANPAGES=generated-manpages
7773 else
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776   GENERATED_MANPAGES=
7777 fi
7778
7779
7780 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7781
7782 # How about lex?
7783 for ac_prog in flex
7784 do
7785   # Extract the first word of "$ac_prog", so it can be a program name with args.
7786 set dummy $ac_prog; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_FLEX+set}" = set; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792   if test -n "$FLEX"; then
7793   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798   IFS=$as_save_IFS
7799   test -z "$as_dir" && as_dir=.
7800     for ac_exec_ext in '' $ac_executable_extensions; do
7801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802     ac_cv_prog_FLEX="$ac_prog"
7803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804     break 2
7805   fi
7806 done
7807   done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 FLEX=$ac_cv_prog_FLEX
7813 if test -n "$FLEX"; then
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7815 $as_echo "$FLEX" >&6; }
7816 else
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822   test -n "$FLEX" && break
7823 done
7824 test -n "$FLEX" || FLEX="$MISSING flex"
7825
7826
7827 # Bison?
7828 for ac_prog in bison
7829 do
7830   # Extract the first word of "$ac_prog", so it can be a program name with args.
7831 set dummy $ac_prog; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_prog_BISON+set}" = set; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   if test -n "$BISON"; then
7838   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843   IFS=$as_save_IFS
7844   test -z "$as_dir" && as_dir=.
7845     for ac_exec_ext in '' $ac_executable_extensions; do
7846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847     ac_cv_prog_BISON="$ac_prog"
7848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849     break 2
7850   fi
7851 done
7852   done
7853 IFS=$as_save_IFS
7854
7855 fi
7856 fi
7857 BISON=$ac_cv_prog_BISON
7858 if test -n "$BISON"; then
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7860 $as_echo "$BISON" >&6; }
7861 else
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7864 fi
7865
7866
7867   test -n "$BISON" && break
7868 done
7869 test -n "$BISON" || BISON="$MISSING bison"
7870
7871
7872 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7873 # check for build == host before using them.
7874
7875 # NM
7876 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7877   && test -d ../binutils ; then
7878   NM='${objdir}/../binutils/nm-new'
7879 else
7880   # Extract the first word of "nm", so it can be a program name with args.
7881 set dummy nm; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if test "${ac_cv_prog_NM+set}" = set; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887   if test -n "$NM"; then
7888   ac_cv_prog_NM="$NM" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7892 do
7893   IFS=$as_save_IFS
7894   test -z "$as_dir" && as_dir=.
7895     for ac_exec_ext in '' $ac_executable_extensions; do
7896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897     ac_cv_prog_NM="nm"
7898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899     break 2
7900   fi
7901 done
7902   done
7903 IFS=$as_save_IFS
7904
7905   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7906 fi
7907 fi
7908 NM=$ac_cv_prog_NM
7909 if test -n "$NM"; then
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7911 $as_echo "$NM" >&6; }
7912 else
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917
7918 fi
7919
7920 # AR
7921 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7922   && test -d ../binutils ; then
7923   AR='${objdir}/../binutils/ar'
7924 else
7925   # Extract the first word of "ar", so it can be a program name with args.
7926 set dummy ar; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_AR+set}" = set; then :
7930   $as_echo_n "(cached) " >&6
7931 else
7932   if test -n "$AR"; then
7933   ac_cv_prog_AR="$AR" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938   IFS=$as_save_IFS
7939   test -z "$as_dir" && as_dir=.
7940     for ac_exec_ext in '' $ac_executable_extensions; do
7941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942     ac_cv_prog_AR="ar"
7943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944     break 2
7945   fi
7946 done
7947   done
7948 IFS=$as_save_IFS
7949
7950   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7951 fi
7952 fi
7953 AR=$ac_cv_prog_AR
7954 if test -n "$AR"; then
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7956 $as_echo "$AR" >&6; }
7957 else
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961
7962
7963 fi
7964
7965
7966 # --------------------
7967 # Checks for C headers
7968 # --------------------
7969
7970 # Need to reject headers which give warnings, so that the -Werror bootstrap
7971 # works later. *sigh*  This needs to come before all header checks.
7972
7973 ac_c_preproc_warn_flag=yes
7974
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7976 $as_echo_n "checking for ANSI C header files... " >&6; }
7977 if test "${ac_cv_header_stdc+set}" = set; then :
7978   $as_echo_n "(cached) " >&6
7979 else
7980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h.  */
7982 #include <stdlib.h>
7983 #include <stdarg.h>
7984 #include <string.h>
7985 #include <float.h>
7986
7987 int
7988 main ()
7989 {
7990
7991   ;
7992   return 0;
7993 }
7994 _ACEOF
7995 if ac_fn_c_try_compile "$LINENO"; then :
7996   ac_cv_header_stdc=yes
7997 else
7998   ac_cv_header_stdc=no
7999 fi
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001
8002 if test $ac_cv_header_stdc = yes; then
8003   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h.  */
8006 #include <string.h>
8007
8008 _ACEOF
8009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8010   $EGREP "memchr" >/dev/null 2>&1; then :
8011
8012 else
8013   ac_cv_header_stdc=no
8014 fi
8015 rm -f conftest*
8016
8017 fi
8018
8019 if test $ac_cv_header_stdc = yes; then
8020   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h.  */
8023 #include <stdlib.h>
8024
8025 _ACEOF
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027   $EGREP "free" >/dev/null 2>&1; then :
8028
8029 else
8030   ac_cv_header_stdc=no
8031 fi
8032 rm -f conftest*
8033
8034 fi
8035
8036 if test $ac_cv_header_stdc = yes; then
8037   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8038   if test "$cross_compiling" = yes; then :
8039   :
8040 else
8041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h.  */
8043 #include <ctype.h>
8044 #include <stdlib.h>
8045 #if ((' ' & 0x0FF) == 0x020)
8046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8048 #else
8049 # define ISLOWER(c) \
8050                    (('a' <= (c) && (c) <= 'i') \
8051                      || ('j' <= (c) && (c) <= 'r') \
8052                      || ('s' <= (c) && (c) <= 'z'))
8053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8054 #endif
8055
8056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8057 int
8058 main ()
8059 {
8060   int i;
8061   for (i = 0; i < 256; i++)
8062     if (XOR (islower (i), ISLOWER (i))
8063         || toupper (i) != TOUPPER (i))
8064       return 2;
8065   return 0;
8066 }
8067 _ACEOF
8068 if ac_fn_c_try_run "$LINENO"; then :
8069
8070 else
8071   ac_cv_header_stdc=no
8072 fi
8073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8074   conftest.$ac_objext conftest.beam conftest.$ac_ext
8075 fi
8076
8077 fi
8078 fi
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8080 $as_echo "$ac_cv_header_stdc" >&6; }
8081 if test $ac_cv_header_stdc = yes; then
8082
8083 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8084
8085 fi
8086
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8088 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8089 if test "${ac_cv_header_time+set}" = set; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h.  */
8094 #include <sys/types.h>
8095 #include <sys/time.h>
8096 #include <time.h>
8097
8098 int
8099 main ()
8100 {
8101 if ((struct tm *) 0)
8102 return 0;
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108   ac_cv_header_time=yes
8109 else
8110   ac_cv_header_time=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8115 $as_echo "$ac_cv_header_time" >&6; }
8116 if test $ac_cv_header_time = yes; then
8117
8118 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8119
8120 fi
8121
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8123 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8124 if test "${gcc_cv_header_string+set}" = set; then :
8125   $as_echo_n "(cached) " >&6
8126 else
8127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h.  */
8129 #include <string.h>
8130 #include <strings.h>
8131 int
8132 main ()
8133 {
8134
8135   ;
8136   return 0;
8137 }
8138 _ACEOF
8139 if ac_fn_c_try_compile "$LINENO"; then :
8140   gcc_cv_header_string=yes
8141 else
8142   gcc_cv_header_string=no
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8147 $as_echo "$gcc_cv_header_string" >&6; }
8148 if test $gcc_cv_header_string = yes; then
8149
8150 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8151
8152 fi
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8155 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8156 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8157   $as_echo_n "(cached) " >&6
8158 else
8159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h.  */
8161 #include <sys/types.h>
8162 #include <sys/wait.h>
8163 #ifndef WEXITSTATUS
8164 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8165 #endif
8166 #ifndef WIFEXITED
8167 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8168 #endif
8169
8170 int
8171 main ()
8172 {
8173   int s;
8174   wait (&s);
8175   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8176   ;
8177   return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181   ac_cv_header_sys_wait_h=yes
8182 else
8183   ac_cv_header_sys_wait_h=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8188 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8189 if test $ac_cv_header_sys_wait_h = yes; then
8190
8191 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8192
8193 fi
8194
8195 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8196                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8197                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8198                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8199 do :
8200   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8201 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8202 eval as_val=\$$as_ac_Header
8203    if test "x$as_val" = x""yes; then :
8204   cat >>confdefs.h <<_ACEOF
8205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8206 _ACEOF
8207
8208 fi
8209 done
8210
8211
8212 # Check for thread headers.
8213 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8214 if test "x$ac_cv_header_thread_h" = x""yes; then :
8215   have_thread_h=yes
8216 else
8217   have_thread_h=
8218 fi
8219
8220 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8221 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8222   have_pthread_h=yes
8223 else
8224   have_pthread_h=
8225 fi
8226
8227
8228 # These tests can't be done till we know if we have limits.h.
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8230 $as_echo_n "checking for CHAR_BIT... " >&6; }
8231 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8232   $as_echo_n "(cached) " >&6
8233 else
8234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h.  */
8236 #ifdef HAVE_LIMITS_H
8237 #include <limits.h>
8238 #endif
8239 #ifdef CHAR_BIT
8240 found
8241 #endif
8242 _ACEOF
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244   $EGREP "found" >/dev/null 2>&1; then :
8245   gcc_cv_decl_char_bit=yes
8246 else
8247   gcc_cv_decl_char_bit=no
8248 fi
8249 rm -f conftest*
8250
8251
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8254 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8255 if test $gcc_cv_decl_char_bit = no; then
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8257 $as_echo_n "checking number of bits in a byte... " >&6; }
8258 if test "${gcc_cv_c_nbby+set}" = set; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   i=8
8262  gcc_cv_c_nbby=
8263  while test $i -lt 65; do
8264    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h.  */
8266
8267 int
8268 main ()
8269 {
8270 switch(0) {
8271   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8272   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8273   ; }
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279   gcc_cv_c_nbby=$i; break
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282    i=`expr $i + 1`
8283  done
8284  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8285
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8288 $as_echo "$gcc_cv_c_nbby" >&6; }
8289 if test $gcc_cv_c_nbby = failed; then
8290   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8291 else
8292
8293 cat >>confdefs.h <<_ACEOF
8294 #define CHAR_BIT $gcc_cv_c_nbby
8295 _ACEOF
8296
8297 fi
8298 fi
8299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8300 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8301 if test "${ac_cv_c_bigendian+set}" = set; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   ac_cv_c_bigendian=unknown
8305     # See if we're dealing with a universal compiler.
8306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h.  */
8308 #ifndef __APPLE_CC__
8309                not a universal capable compiler
8310              #endif
8311              typedef int dummy;
8312
8313 _ACEOF
8314 if ac_fn_c_try_compile "$LINENO"; then :
8315
8316         # Check for potential -arch flags.  It is not universal unless
8317         # there are at least two -arch flags with different values.
8318         ac_arch=
8319         ac_prev=
8320         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8321          if test -n "$ac_prev"; then
8322            case $ac_word in
8323              i?86 | x86_64 | ppc | ppc64)
8324                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8325                  ac_arch=$ac_word
8326                else
8327                  ac_cv_c_bigendian=universal
8328                  break
8329                fi
8330                ;;
8331            esac
8332            ac_prev=
8333          elif test "x$ac_word" = "x-arch"; then
8334            ac_prev=arch
8335          fi
8336        done
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339     if test $ac_cv_c_bigendian = unknown; then
8340       # See if sys/param.h defines the BYTE_ORDER macro.
8341       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h.  */
8343 #include <sys/types.h>
8344              #include <sys/param.h>
8345
8346 int
8347 main ()
8348 {
8349 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8350                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8351                      && LITTLE_ENDIAN)
8352               bogus endian macros
8353              #endif
8354
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360   # It does; now see whether it defined to BIG_ENDIAN or not.
8361          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h.  */
8363 #include <sys/types.h>
8364                 #include <sys/param.h>
8365
8366 int
8367 main ()
8368 {
8369 #if BYTE_ORDER != BIG_ENDIAN
8370                  not big endian
8371                 #endif
8372
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 if ac_fn_c_try_compile "$LINENO"; then :
8378   ac_cv_c_bigendian=yes
8379 else
8380   ac_cv_c_bigendian=no
8381 fi
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385     fi
8386     if test $ac_cv_c_bigendian = unknown; then
8387       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8388       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h.  */
8390 #include <limits.h>
8391
8392 int
8393 main ()
8394 {
8395 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8396               bogus endian macros
8397              #endif
8398
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404   # It does; now see whether it defined to _BIG_ENDIAN or not.
8405          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h.  */
8407 #include <limits.h>
8408
8409 int
8410 main ()
8411 {
8412 #ifndef _BIG_ENDIAN
8413                  not big endian
8414                 #endif
8415
8416   ;
8417   return 0;
8418 }
8419 _ACEOF
8420 if ac_fn_c_try_compile "$LINENO"; then :
8421   ac_cv_c_bigendian=yes
8422 else
8423   ac_cv_c_bigendian=no
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428     fi
8429     if test $ac_cv_c_bigendian = unknown; then
8430       # Compile a test program.
8431       if test "$cross_compiling" = yes; then :
8432   # Try to guess by grepping values from an object file.
8433          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h.  */
8435 short int ascii_mm[] =
8436                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8437                 short int ascii_ii[] =
8438                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8439                 int use_ascii (int i) {
8440                   return ascii_mm[i] + ascii_ii[i];
8441                 }
8442                 short int ebcdic_ii[] =
8443                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8444                 short int ebcdic_mm[] =
8445                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8446                 int use_ebcdic (int i) {
8447                   return ebcdic_mm[i] + ebcdic_ii[i];
8448                 }
8449                 extern int foo;
8450
8451 int
8452 main ()
8453 {
8454 return use_ascii (foo) == use_ebcdic (foo);
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8461               ac_cv_c_bigendian=yes
8462             fi
8463             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8464               if test "$ac_cv_c_bigendian" = unknown; then
8465                 ac_cv_c_bigendian=no
8466               else
8467                 # finding both strings is unlikely to happen, but who knows?
8468                 ac_cv_c_bigendian=unknown
8469               fi
8470             fi
8471 fi
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 else
8474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h.  */
8476 $ac_includes_default
8477 int
8478 main ()
8479 {
8480
8481              /* Are we little or big endian?  From Harbison&Steele.  */
8482              union
8483              {
8484                long int l;
8485                char c[sizeof (long int)];
8486              } u;
8487              u.l = 1;
8488              return u.c[sizeof (long int) - 1] == 1;
8489
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 if ac_fn_c_try_run "$LINENO"; then :
8495   ac_cv_c_bigendian=no
8496 else
8497   ac_cv_c_bigendian=yes
8498 fi
8499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8500   conftest.$ac_objext conftest.beam conftest.$ac_ext
8501 fi
8502
8503     fi
8504 fi
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8506 $as_echo "$ac_cv_c_bigendian" >&6; }
8507  case $ac_cv_c_bigendian in #(
8508    yes)
8509      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8510 ;; #(
8511    no)
8512       ;; #(
8513    universal)
8514
8515 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8516
8517      ;; #(
8518    *)
8519      as_fn_error "unknown endianness
8520  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8521  esac
8522
8523
8524 # ----------------------
8525 # Checks for C++ headers
8526 # ----------------------
8527
8528 ac_ext=cpp
8529 ac_cpp='$CXXCPP $CPPFLAGS'
8530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8534 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8535 if test -z "$CXXCPP"; then
8536   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8537   $as_echo_n "(cached) " >&6
8538 else
8539       # Double quotes because CXXCPP needs to be expanded
8540     for CXXCPP in "$CXX -E" "/lib/cpp"
8541     do
8542       ac_preproc_ok=false
8543 for ac_cxx_preproc_warn_flag in '' yes
8544 do
8545   # Use a header file that comes with gcc, so configuring glibc
8546   # with a fresh cross-compiler works.
8547   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8548   # <limits.h> exists even on freestanding compilers.
8549   # On the NeXT, cc -E runs the code through the compiler's parser,
8550   # not just through cpp. "Syntax error" is here to catch this case.
8551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h.  */
8553 #ifdef __STDC__
8554 # include <limits.h>
8555 #else
8556 # include <assert.h>
8557 #endif
8558                      Syntax error
8559 _ACEOF
8560 if ac_fn_cxx_try_cpp "$LINENO"; then :
8561
8562 else
8563   # Broken: fails on valid input.
8564 continue
8565 fi
8566 rm -f conftest.err conftest.$ac_ext
8567
8568   # OK, works on sane cases.  Now check whether nonexistent headers
8569   # can be detected and how.
8570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h.  */
8572 #include <ac_nonexistent.h>
8573 _ACEOF
8574 if ac_fn_cxx_try_cpp "$LINENO"; then :
8575   # Broken: success on invalid input.
8576 continue
8577 else
8578   # Passes both tests.
8579 ac_preproc_ok=:
8580 break
8581 fi
8582 rm -f conftest.err conftest.$ac_ext
8583
8584 done
8585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8586 rm -f conftest.err conftest.$ac_ext
8587 if $ac_preproc_ok; then :
8588   break
8589 fi
8590
8591     done
8592     ac_cv_prog_CXXCPP=$CXXCPP
8593
8594 fi
8595   CXXCPP=$ac_cv_prog_CXXCPP
8596 else
8597   ac_cv_prog_CXXCPP=$CXXCPP
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8600 $as_echo "$CXXCPP" >&6; }
8601 ac_preproc_ok=false
8602 for ac_cxx_preproc_warn_flag in '' yes
8603 do
8604   # Use a header file that comes with gcc, so configuring glibc
8605   # with a fresh cross-compiler works.
8606   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8607   # <limits.h> exists even on freestanding compilers.
8608   # On the NeXT, cc -E runs the code through the compiler's parser,
8609   # not just through cpp. "Syntax error" is here to catch this case.
8610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h.  */
8612 #ifdef __STDC__
8613 # include <limits.h>
8614 #else
8615 # include <assert.h>
8616 #endif
8617                      Syntax error
8618 _ACEOF
8619 if ac_fn_cxx_try_cpp "$LINENO"; then :
8620
8621 else
8622   # Broken: fails on valid input.
8623 continue
8624 fi
8625 rm -f conftest.err conftest.$ac_ext
8626
8627   # OK, works on sane cases.  Now check whether nonexistent headers
8628   # can be detected and how.
8629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h.  */
8631 #include <ac_nonexistent.h>
8632 _ACEOF
8633 if ac_fn_cxx_try_cpp "$LINENO"; then :
8634   # Broken: success on invalid input.
8635 continue
8636 else
8637   # Passes both tests.
8638 ac_preproc_ok=:
8639 break
8640 fi
8641 rm -f conftest.err conftest.$ac_ext
8642
8643 done
8644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8645 rm -f conftest.err conftest.$ac_ext
8646 if $ac_preproc_ok; then :
8647
8648 else
8649   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8652 See \`config.log' for more details." >&5
8653 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8654 See \`config.log' for more details." >&2;}; }
8655 fi
8656
8657 ac_ext=c
8658 ac_cpp='$CPP $CPPFLAGS'
8659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8662
8663
8664 ac_ext=cpp
8665 ac_cpp='$CXXCPP $CPPFLAGS'
8666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8669
8670
8671
8672
8673 for ac_header in unordered_map
8674 do :
8675   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8676 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8677   cat >>confdefs.h <<_ACEOF
8678 #define HAVE_UNORDERED_MAP 1
8679 _ACEOF
8680
8681 fi
8682 done
8683
8684 for ac_header in tr1/unordered_map
8685 do :
8686   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8687 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8688   cat >>confdefs.h <<_ACEOF
8689 #define HAVE_TR1_UNORDERED_MAP 1
8690 _ACEOF
8691
8692 fi
8693 done
8694
8695 for ac_header in ext/hash_map
8696 do :
8697   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8698 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8699   cat >>confdefs.h <<_ACEOF
8700 #define HAVE_EXT_HASH_MAP 1
8701 _ACEOF
8702
8703 fi
8704 done
8705
8706
8707 ac_ext=c
8708 ac_cpp='$CPP $CPPFLAGS'
8709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8712
8713
8714 # --------
8715 # UNSORTED
8716 # --------
8717
8718
8719 # These libraries may be used by collect2.
8720 # We may need a special search path to get them linked.
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8722 $as_echo_n "checking for collect2 libraries... " >&6; }
8723 if test "${gcc_cv_collect2_libs+set}" = set; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   save_LIBS="$LIBS"
8727 for libs in '' -lld -lmld \
8728                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8729                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8730 do
8731         LIBS="$libs"
8732         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h.  */
8734
8735 /* Override any GCC internal prototype to avoid an error.
8736    Use char because int might match the return type of a GCC
8737    builtin and then its argument prototype would still apply.  */
8738 #ifdef __cplusplus
8739 extern "C"
8740 #endif
8741 char ldopen ();
8742 int
8743 main ()
8744 {
8745 return ldopen ();
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 if ac_fn_c_try_link "$LINENO"; then :
8751   gcc_cv_collect2_libs="$libs"; break
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext \
8754     conftest$ac_exeext conftest.$ac_ext
8755 done
8756 LIBS="$save_LIBS"
8757 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8758 fi
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8760 $as_echo "$gcc_cv_collect2_libs" >&6; }
8761 case $gcc_cv_collect2_libs in
8762         "none required")        ;;
8763         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8764 esac
8765
8766
8767 # When building Ada code on Alpha, we need exc_resume which is usually in
8768 # -lexc.  So test for it.
8769 save_LIBS="$LIBS"
8770 LIBS=
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8772 $as_echo_n "checking for library containing exc_resume... " >&6; }
8773 if test "${ac_cv_search_exc_resume+set}" = set; then :
8774   $as_echo_n "(cached) " >&6
8775 else
8776   ac_func_search_save_LIBS=$LIBS
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h.  */
8779
8780 /* Override any GCC internal prototype to avoid an error.
8781    Use char because int might match the return type of a GCC
8782    builtin and then its argument prototype would still apply.  */
8783 #ifdef __cplusplus
8784 extern "C"
8785 #endif
8786 char exc_resume ();
8787 int
8788 main ()
8789 {
8790 return exc_resume ();
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 for ac_lib in '' exc; do
8796   if test -z "$ac_lib"; then
8797     ac_res="none required"
8798   else
8799     ac_res=-l$ac_lib
8800     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8801   fi
8802   if ac_fn_c_try_link "$LINENO"; then :
8803   ac_cv_search_exc_resume=$ac_res
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext \
8806     conftest$ac_exeext
8807   if test "${ac_cv_search_exc_resume+set}" = set; then :
8808   break
8809 fi
8810 done
8811 if test "${ac_cv_search_exc_resume+set}" = set; then :
8812
8813 else
8814   ac_cv_search_exc_resume=no
8815 fi
8816 rm conftest.$ac_ext
8817 LIBS=$ac_func_search_save_LIBS
8818 fi
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8820 $as_echo "$ac_cv_search_exc_resume" >&6; }
8821 ac_res=$ac_cv_search_exc_resume
8822 if test "$ac_res" != no; then :
8823   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8824
8825 fi
8826
8827 GNAT_LIBEXC="$LIBS"
8828 LIBS="$save_LIBS"
8829
8830
8831 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8832 save_LIBS="$LIBS"
8833 LIBS=
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8835 $as_echo_n "checking for library containing kstat_open... " >&6; }
8836 if test "${ac_cv_search_kstat_open+set}" = set; then :
8837   $as_echo_n "(cached) " >&6
8838 else
8839   ac_func_search_save_LIBS=$LIBS
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h.  */
8842
8843 /* Override any GCC internal prototype to avoid an error.
8844    Use char because int might match the return type of a GCC
8845    builtin and then its argument prototype would still apply.  */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char kstat_open ();
8850 int
8851 main ()
8852 {
8853 return kstat_open ();
8854   ;
8855   return 0;
8856 }
8857 _ACEOF
8858 for ac_lib in '' kstat; do
8859   if test -z "$ac_lib"; then
8860     ac_res="none required"
8861   else
8862     ac_res=-l$ac_lib
8863     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8864   fi
8865   if ac_fn_c_try_link "$LINENO"; then :
8866   ac_cv_search_kstat_open=$ac_res
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext \
8869     conftest$ac_exeext
8870   if test "${ac_cv_search_kstat_open+set}" = set; then :
8871   break
8872 fi
8873 done
8874 if test "${ac_cv_search_kstat_open+set}" = set; then :
8875
8876 else
8877   ac_cv_search_kstat_open=no
8878 fi
8879 rm conftest.$ac_ext
8880 LIBS=$ac_func_search_save_LIBS
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8883 $as_echo "$ac_cv_search_kstat_open" >&6; }
8884 ac_res=$ac_cv_search_kstat_open
8885 if test "$ac_res" != no; then :
8886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8887
8888 fi
8889
8890 EXTRA_GCC_LIBS="$LIBS"
8891 LIBS="$save_LIBS"
8892
8893
8894 # Some systems put ldexp and frexp in libm instead of libc; assume
8895 # they're both in the same place.  jcf-dump needs them.
8896 save_LIBS="$LIBS"
8897 LIBS=
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8899 $as_echo_n "checking for library containing ldexp... " >&6; }
8900 if test "${ac_cv_search_ldexp+set}" = set; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   ac_func_search_save_LIBS=$LIBS
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h.  */
8906
8907 /* Override any GCC internal prototype to avoid an error.
8908    Use char because int might match the return type of a GCC
8909    builtin and then its argument prototype would still apply.  */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 char ldexp ();
8914 int
8915 main ()
8916 {
8917 return ldexp ();
8918   ;
8919   return 0;
8920 }
8921 _ACEOF
8922 for ac_lib in '' m; do
8923   if test -z "$ac_lib"; then
8924     ac_res="none required"
8925   else
8926     ac_res=-l$ac_lib
8927     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8928   fi
8929   if ac_fn_c_try_link "$LINENO"; then :
8930   ac_cv_search_ldexp=$ac_res
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext \
8933     conftest$ac_exeext
8934   if test "${ac_cv_search_ldexp+set}" = set; then :
8935   break
8936 fi
8937 done
8938 if test "${ac_cv_search_ldexp+set}" = set; then :
8939
8940 else
8941   ac_cv_search_ldexp=no
8942 fi
8943 rm conftest.$ac_ext
8944 LIBS=$ac_func_search_save_LIBS
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8947 $as_echo "$ac_cv_search_ldexp" >&6; }
8948 ac_res=$ac_cv_search_ldexp
8949 if test "$ac_res" != no; then :
8950   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8951
8952 fi
8953
8954 LDEXP_LIB="$LIBS"
8955 LIBS="$save_LIBS"
8956
8957
8958 # Use <inttypes.h> only if it exists,
8959 # doesn't clash with <sys/types.h>, and declares intmax_t.
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8961 $as_echo_n "checking for inttypes.h... " >&6; }
8962 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8963   $as_echo_n "(cached) " >&6
8964 else
8965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h.  */
8967 #include <sys/types.h>
8968 #include <inttypes.h>
8969 int
8970 main ()
8971 {
8972 intmax_t i = -1;
8973   ;
8974   return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_compile "$LINENO"; then :
8978   gcc_cv_header_inttypes_h=yes
8979 else
8980   gcc_cv_header_inttypes_h=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 fi
8984
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8986 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8987 if test $gcc_cv_header_inttypes_h = yes; then
8988
8989 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8990
8991 fi
8992
8993
8994
8995 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8996         sysconf strsignal getrusage nl_langinfo \
8997         gettimeofday mbstowcs wcswidth mmap setlocale \
8998         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
8999 do :
9000   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9001 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9002 eval as_val=\$$as_ac_var
9003    if test "x$as_val" = x""yes; then :
9004   cat >>confdefs.h <<_ACEOF
9005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9006 _ACEOF
9007
9008 fi
9009 done
9010
9011
9012 if test x$ac_cv_func_mbstowcs = xyes; then
9013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9014 $as_echo_n "checking whether mbstowcs works... " >&6; }
9015 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9016   $as_echo_n "(cached) " >&6
9017 else
9018       if test "$cross_compiling" = yes; then :
9019   gcc_cv_func_mbstowcs_works=yes
9020 else
9021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h.  */
9023 #include <stdlib.h>
9024 int main()
9025 {
9026   mbstowcs(0, "", 0);
9027   return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_run "$LINENO"; then :
9031   gcc_cv_func_mbstowcs_works=yes
9032 else
9033   gcc_cv_func_mbstowcs_works=no
9034 fi
9035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9036   conftest.$ac_objext conftest.beam conftest.$ac_ext
9037 fi
9038
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9041 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9042   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9043
9044 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9045
9046   fi
9047 fi
9048
9049 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9050 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9051
9052 else
9053
9054 cat >>confdefs.h <<_ACEOF
9055 #define ssize_t int
9056 _ACEOF
9057
9058 fi
9059
9060 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9061 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9062
9063 else
9064
9065 cat >>confdefs.h <<_ACEOF
9066 #define caddr_t char *
9067 _ACEOF
9068
9069 fi
9070
9071
9072
9073 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9074 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9075   gcc_header_sys_mman_h=yes
9076 else
9077   gcc_header_sys_mman_h=no
9078 fi
9079
9080 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9081 if test "x$ac_cv_func_mmap" = x""yes; then :
9082   gcc_func_mmap=yes
9083 else
9084   gcc_func_mmap=no
9085 fi
9086
9087 if test "$gcc_header_sys_mman_h" != yes \
9088  || test "$gcc_func_mmap" != yes; then
9089    gcc_cv_func_mmap_file=no
9090    gcc_cv_func_mmap_dev_zero=no
9091    gcc_cv_func_mmap_anon=no
9092 else
9093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9094 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9095 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9096   $as_echo_n "(cached) " >&6
9097 else
9098   # Add a system to this blacklist if
9099    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9100    # memory area containing the same data that you'd get if you applied
9101    # read() to the same fd.  The only system known to have a problem here
9102    # is VMS, where text files have record structure.
9103    case "$host_os" in
9104      vms* | ultrix*)
9105         gcc_cv_func_mmap_file=no ;;
9106      *)
9107         gcc_cv_func_mmap_file=yes;;
9108    esac
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9111 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9113 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9114 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9115   $as_echo_n "(cached) " >&6
9116 else
9117   # Add a system to this blacklist if it has mmap() but /dev/zero
9118    # does not exist, or if mmapping /dev/zero does not give anonymous
9119    # zeroed pages with both the following properties:
9120    # 1. If you map N consecutive pages in with one call, and then
9121    #    unmap any subset of those pages, the pages that were not
9122    #    explicitly unmapped remain accessible.
9123    # 2. If you map two adjacent blocks of memory and then unmap them
9124    #    both at once, they must both go away.
9125    # Systems known to be in this category are Windows (all variants),
9126    # VMS, and Darwin.
9127    case "$host_os" in
9128      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9129         gcc_cv_func_mmap_dev_zero=no ;;
9130      *)
9131         gcc_cv_func_mmap_dev_zero=yes;;
9132    esac
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9135 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9136
9137    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9139 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9140 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h.  */
9145 #include <sys/types.h>
9146 #include <sys/mman.h>
9147 #include <unistd.h>
9148
9149 #ifndef MAP_ANONYMOUS
9150 #define MAP_ANONYMOUS MAP_ANON
9151 #endif
9152
9153 int
9154 main ()
9155 {
9156 int n = MAP_ANONYMOUS;
9157   ;
9158   return 0;
9159 }
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"; then :
9162   gcc_cv_decl_map_anon=yes
9163 else
9164   gcc_cv_decl_map_anon=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9169 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9170
9171    if test $gcc_cv_decl_map_anon = no; then
9172      gcc_cv_func_mmap_anon=no
9173    else
9174      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9175 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9176 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9177   $as_echo_n "(cached) " >&6
9178 else
9179   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9180    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9181    # doesn't give anonymous zeroed pages with the same properties listed
9182    # above for use of /dev/zero.
9183    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9184    case "$host_os" in
9185      vms* | cygwin* | pe | mingw* | sco* | udk* )
9186         gcc_cv_func_mmap_anon=no ;;
9187      *)
9188         gcc_cv_func_mmap_anon=yes;;
9189    esac
9190 fi
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9192 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9193    fi
9194 fi
9195
9196 if test $gcc_cv_func_mmap_file = yes; then
9197
9198 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9199
9200 fi
9201 if test $gcc_cv_func_mmap_dev_zero = yes; then
9202
9203 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9204
9205 fi
9206 if test $gcc_cv_func_mmap_anon = yes; then
9207
9208 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9209
9210 fi
9211
9212
9213 case "${host}" in
9214 *-*-*vms*)
9215   # Under VMS, vfork works very differently than on Unix. The standard test
9216   # won't work, and it isn't easily adaptable. It makes more sense to
9217   # just force it.
9218   ac_cv_func_vfork_works=yes
9219   ;;
9220 esac
9221 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9222 if test "x$ac_cv_type_pid_t" = x""yes; then :
9223
9224 else
9225
9226 cat >>confdefs.h <<_ACEOF
9227 #define pid_t int
9228 _ACEOF
9229
9230 fi
9231
9232 for ac_header in vfork.h
9233 do :
9234   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9235 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9236   cat >>confdefs.h <<_ACEOF
9237 #define HAVE_VFORK_H 1
9238 _ACEOF
9239
9240 fi
9241 done
9242
9243 for ac_func in fork vfork
9244 do :
9245   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9247 eval as_val=\$$as_ac_var
9248    if test "x$as_val" = x""yes; then :
9249   cat >>confdefs.h <<_ACEOF
9250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9251 _ACEOF
9252
9253 fi
9254 done
9255
9256 if test "x$ac_cv_func_fork" = xyes; then
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9258 $as_echo_n "checking for working fork... " >&6; }
9259 if test "${ac_cv_func_fork_works+set}" = set; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   if test "$cross_compiling" = yes; then :
9263   ac_cv_func_fork_works=cross
9264 else
9265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h.  */
9267 $ac_includes_default
9268 int
9269 main ()
9270 {
9271
9272           /* By Ruediger Kuhlmann. */
9273           return fork () < 0;
9274
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_run "$LINENO"; then :
9280   ac_cv_func_fork_works=yes
9281 else
9282   ac_cv_func_fork_works=no
9283 fi
9284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9285   conftest.$ac_objext conftest.beam conftest.$ac_ext
9286 fi
9287
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9290 $as_echo "$ac_cv_func_fork_works" >&6; }
9291
9292 else
9293   ac_cv_func_fork_works=$ac_cv_func_fork
9294 fi
9295 if test "x$ac_cv_func_fork_works" = xcross; then
9296   case $host in
9297     *-*-amigaos* | *-*-msdosdjgpp*)
9298       # Override, as these systems have only a dummy fork() stub
9299       ac_cv_func_fork_works=no
9300       ;;
9301     *)
9302       ac_cv_func_fork_works=yes
9303       ;;
9304   esac
9305   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9306 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9307 fi
9308 ac_cv_func_vfork_works=$ac_cv_func_vfork
9309 if test "x$ac_cv_func_vfork" = xyes; then
9310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9311 $as_echo_n "checking for working vfork... " >&6; }
9312 if test "${ac_cv_func_vfork_works+set}" = set; then :
9313   $as_echo_n "(cached) " >&6
9314 else
9315   if test "$cross_compiling" = yes; then :
9316   ac_cv_func_vfork_works=cross
9317 else
9318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h.  */
9320 /* Thanks to Paul Eggert for this test.  */
9321 $ac_includes_default
9322 #include <sys/wait.h>
9323 #ifdef HAVE_VFORK_H
9324 # include <vfork.h>
9325 #endif
9326 /* On some sparc systems, changes by the child to local and incoming
9327    argument registers are propagated back to the parent.  The compiler
9328    is told about this with #include <vfork.h>, but some compilers
9329    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9330    static variable whose address is put into a register that is
9331    clobbered by the vfork.  */
9332 static void
9333 #ifdef __cplusplus
9334 sparc_address_test (int arg)
9335 # else
9336 sparc_address_test (arg) int arg;
9337 #endif
9338 {
9339   static pid_t child;
9340   if (!child) {
9341     child = vfork ();
9342     if (child < 0) {
9343       perror ("vfork");
9344       _exit(2);
9345     }
9346     if (!child) {
9347       arg = getpid();
9348       write(-1, "", 0);
9349       _exit (arg);
9350     }
9351   }
9352 }
9353
9354 int
9355 main ()
9356 {
9357   pid_t parent = getpid ();
9358   pid_t child;
9359
9360   sparc_address_test (0);
9361
9362   child = vfork ();
9363
9364   if (child == 0) {
9365     /* Here is another test for sparc vfork register problems.  This
9366        test uses lots of local variables, at least as many local
9367        variables as main has allocated so far including compiler
9368        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9369        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9370        reuse the register of parent for one of the local variables,
9371        since it will think that parent can't possibly be used any more
9372        in this routine.  Assigning to the local variable will thus
9373        munge parent in the parent process.  */
9374     pid_t
9375       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9376       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9377     /* Convince the compiler that p..p7 are live; otherwise, it might
9378        use the same hardware register for all 8 local variables.  */
9379     if (p != p1 || p != p2 || p != p3 || p != p4
9380         || p != p5 || p != p6 || p != p7)
9381       _exit(1);
9382
9383     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9384        from child file descriptors.  If the child closes a descriptor
9385        before it execs or exits, this munges the parent's descriptor
9386        as well.  Test for this by closing stdout in the child.  */
9387     _exit(close(fileno(stdout)) != 0);
9388   } else {
9389     int status;
9390     struct stat st;
9391
9392     while (wait(&status) != child)
9393       ;
9394     return (
9395          /* Was there some problem with vforking?  */
9396          child < 0
9397
9398          /* Did the child fail?  (This shouldn't happen.)  */
9399          || status
9400
9401          /* Did the vfork/compiler bug occur?  */
9402          || parent != getpid()
9403
9404          /* Did the file descriptor bug occur?  */
9405          || fstat(fileno(stdout), &st) != 0
9406          );
9407   }
9408 }
9409 _ACEOF
9410 if ac_fn_c_try_run "$LINENO"; then :
9411   ac_cv_func_vfork_works=yes
9412 else
9413   ac_cv_func_vfork_works=no
9414 fi
9415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9416   conftest.$ac_objext conftest.beam conftest.$ac_ext
9417 fi
9418
9419 fi
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9421 $as_echo "$ac_cv_func_vfork_works" >&6; }
9422
9423 fi;
9424 if test "x$ac_cv_func_fork_works" = xcross; then
9425   ac_cv_func_vfork_works=$ac_cv_func_vfork
9426   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9427 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9428 fi
9429
9430 if test "x$ac_cv_func_vfork_works" = xyes; then
9431
9432 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9433
9434 else
9435
9436 $as_echo "#define vfork fork" >>confdefs.h
9437
9438 fi
9439 if test "x$ac_cv_func_fork_works" = xyes; then
9440
9441 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9442
9443 fi
9444
9445
9446 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9447 # iconv() prototype.
9448
9449       if test "X$prefix" = "XNONE"; then
9450     acl_final_prefix="$ac_default_prefix"
9451   else
9452     acl_final_prefix="$prefix"
9453   fi
9454   if test "X$exec_prefix" = "XNONE"; then
9455     acl_final_exec_prefix='${prefix}'
9456   else
9457     acl_final_exec_prefix="$exec_prefix"
9458   fi
9459   acl_save_prefix="$prefix"
9460   prefix="$acl_final_prefix"
9461   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9462   prefix="$acl_save_prefix"
9463
9464
9465 # Check whether --with-gnu-ld was given.
9466 if test "${with_gnu_ld+set}" = set; then :
9467   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9468 else
9469   with_gnu_ld=no
9470 fi
9471
9472 # Prepare PATH_SEPARATOR.
9473 # The user is always right.
9474 if test "${PATH_SEPARATOR+set}" != set; then
9475   echo "#! /bin/sh" >conf$$.sh
9476   echo  "exit 0"   >>conf$$.sh
9477   chmod +x conf$$.sh
9478   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9479     PATH_SEPARATOR=';'
9480   else
9481     PATH_SEPARATOR=:
9482   fi
9483   rm -f conf$$.sh
9484 fi
9485 ac_prog=ld
9486 if test "$GCC" = yes; then
9487   # Check if gcc -print-prog-name=ld gives a path.
9488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9489 $as_echo_n "checking for ld used by GCC... " >&6; }
9490   case $host in
9491   *-*-mingw*)
9492     # gcc leaves a trailing carriage return which upsets mingw
9493     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9494   *)
9495     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9496   esac
9497   case $ac_prog in
9498     # Accept absolute paths.
9499     [\\/]* | [A-Za-z]:[\\/]*)
9500       re_direlt='/[^/][^/]*/\.\./'
9501       # Canonicalize the path of ld
9502       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9503       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9504         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9505       done
9506       test -z "$LD" && LD="$ac_prog"
9507       ;;
9508   "")
9509     # If it fails, then pretend we aren't using GCC.
9510     ac_prog=ld
9511     ;;
9512   *)
9513     # If it is relative, then search for the first ld in PATH.
9514     with_gnu_ld=unknown
9515     ;;
9516   esac
9517 elif test "$with_gnu_ld" = yes; then
9518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9519 $as_echo_n "checking for GNU ld... " >&6; }
9520 else
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9522 $as_echo_n "checking for non-GNU ld... " >&6; }
9523 fi
9524 if test "${acl_cv_path_LD+set}" = set; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   if test -z "$LD"; then
9528   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9529   for ac_dir in $PATH; do
9530     test -z "$ac_dir" && ac_dir=.
9531     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9532       acl_cv_path_LD="$ac_dir/$ac_prog"
9533       # Check to see if the program is GNU ld.  I'd rather use --version,
9534       # but apparently some GNU ld's only accept -v.
9535       # Break only if it was the GNU/non-GNU ld that we prefer.
9536       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9537         test "$with_gnu_ld" != no && break
9538       else
9539         test "$with_gnu_ld" != yes && break
9540       fi
9541     fi
9542   done
9543   IFS="$ac_save_ifs"
9544 else
9545   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9546 fi
9547 fi
9548
9549 LD="$acl_cv_path_LD"
9550 if test -n "$LD"; then
9551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9552 $as_echo "$LD" >&6; }
9553 else
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9556 fi
9557 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9559 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9560 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9561   $as_echo_n "(cached) " >&6
9562 else
9563   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9564 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9565   acl_cv_prog_gnu_ld=yes
9566 else
9567   acl_cv_prog_gnu_ld=no
9568 fi
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9571 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9572 with_gnu_ld=$acl_cv_prog_gnu_ld
9573
9574
9575
9576                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9577 $as_echo_n "checking for shared library run path origin... " >&6; }
9578 if test "${acl_cv_rpath+set}" = set; then :
9579   $as_echo_n "(cached) " >&6
9580 else
9581
9582     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9583     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9584     . ./conftest.sh
9585     rm -f ./conftest.sh
9586     acl_cv_rpath=done
9587
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9590 $as_echo "$acl_cv_rpath" >&6; }
9591   wl="$acl_cv_wl"
9592   libext="$acl_cv_libext"
9593   shlibext="$acl_cv_shlibext"
9594   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9595   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9596   hardcode_direct="$acl_cv_hardcode_direct"
9597   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9598     # Check whether --enable-rpath was given.
9599 if test "${enable_rpath+set}" = set; then :
9600   enableval=$enable_rpath; :
9601 else
9602   enable_rpath=yes
9603 fi
9604
9605
9606
9607
9608
9609
9610
9611
9612     use_additional=yes
9613
9614   acl_save_prefix="$prefix"
9615   prefix="$acl_final_prefix"
9616   acl_save_exec_prefix="$exec_prefix"
9617   exec_prefix="$acl_final_exec_prefix"
9618
9619     eval additional_includedir=\"$includedir\"
9620     eval additional_libdir=\"$libdir\"
9621
9622   exec_prefix="$acl_save_exec_prefix"
9623   prefix="$acl_save_prefix"
9624
9625
9626 # Check whether --with-libiconv-prefix was given.
9627 if test "${with_libiconv_prefix+set}" = set; then :
9628   withval=$with_libiconv_prefix;
9629     if test "X$withval" = "Xno"; then
9630       use_additional=no
9631     else
9632       if test "X$withval" = "X"; then
9633
9634   acl_save_prefix="$prefix"
9635   prefix="$acl_final_prefix"
9636   acl_save_exec_prefix="$exec_prefix"
9637   exec_prefix="$acl_final_exec_prefix"
9638
9639           eval additional_includedir=\"$includedir\"
9640           eval additional_libdir=\"$libdir\"
9641
9642   exec_prefix="$acl_save_exec_prefix"
9643   prefix="$acl_save_prefix"
9644
9645       else
9646         additional_includedir="$withval/include"
9647         additional_libdir="$withval/lib"
9648       fi
9649     fi
9650
9651 fi
9652
9653       LIBICONV=
9654   LTLIBICONV=
9655   INCICONV=
9656   rpathdirs=
9657   ltrpathdirs=
9658   names_already_handled=
9659   names_next_round='iconv '
9660   while test -n "$names_next_round"; do
9661     names_this_round="$names_next_round"
9662     names_next_round=
9663     for name in $names_this_round; do
9664       already_handled=
9665       for n in $names_already_handled; do
9666         if test "$n" = "$name"; then
9667           already_handled=yes
9668           break
9669         fi
9670       done
9671       if test -z "$already_handled"; then
9672         names_already_handled="$names_already_handled $name"
9673                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9674         eval value=\"\$HAVE_LIB$uppername\"
9675         if test -n "$value"; then
9676           if test "$value" = yes; then
9677             eval value=\"\$LIB$uppername\"
9678             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9679             eval value=\"\$LTLIB$uppername\"
9680             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9681           else
9682                                     :
9683           fi
9684         else
9685                               found_dir=
9686           found_la=
9687           found_so=
9688           found_a=
9689           if test $use_additional = yes; then
9690             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9691               found_dir="$additional_libdir"
9692               found_so="$additional_libdir/lib$name.$shlibext"
9693               if test -f "$additional_libdir/lib$name.la"; then
9694                 found_la="$additional_libdir/lib$name.la"
9695               fi
9696             else
9697               if test -f "$additional_libdir/lib$name.$libext"; then
9698                 found_dir="$additional_libdir"
9699                 found_a="$additional_libdir/lib$name.$libext"
9700                 if test -f "$additional_libdir/lib$name.la"; then
9701                   found_la="$additional_libdir/lib$name.la"
9702                 fi
9703               fi
9704             fi
9705           fi
9706           if test "X$found_dir" = "X"; then
9707             for x in $LDFLAGS $LTLIBICONV; do
9708
9709   acl_save_prefix="$prefix"
9710   prefix="$acl_final_prefix"
9711   acl_save_exec_prefix="$exec_prefix"
9712   exec_prefix="$acl_final_exec_prefix"
9713   eval x=\"$x\"
9714   exec_prefix="$acl_save_exec_prefix"
9715   prefix="$acl_save_prefix"
9716
9717               case "$x" in
9718                 -L*)
9719                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9720                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9721                     found_dir="$dir"
9722                     found_so="$dir/lib$name.$shlibext"
9723                     if test -f "$dir/lib$name.la"; then
9724                       found_la="$dir/lib$name.la"
9725                     fi
9726                   else
9727                     if test -f "$dir/lib$name.$libext"; then
9728                       found_dir="$dir"
9729                       found_a="$dir/lib$name.$libext"
9730                       if test -f "$dir/lib$name.la"; then
9731                         found_la="$dir/lib$name.la"
9732                       fi
9733                     fi
9734                   fi
9735                   ;;
9736               esac
9737               if test "X$found_dir" != "X"; then
9738                 break
9739               fi
9740             done
9741           fi
9742           if test "X$found_dir" != "X"; then
9743                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9744             if test "X$found_so" != "X"; then
9745                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9746                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9747               else
9748                                                                                 haveit=
9749                 for x in $ltrpathdirs; do
9750                   if test "X$x" = "X$found_dir"; then
9751                     haveit=yes
9752                     break
9753                   fi
9754                 done
9755                 if test -z "$haveit"; then
9756                   ltrpathdirs="$ltrpathdirs $found_dir"
9757                 fi
9758                                 if test "$hardcode_direct" = yes; then
9759                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9760                 else
9761                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9762                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9763                                                             haveit=
9764                     for x in $rpathdirs; do
9765                       if test "X$x" = "X$found_dir"; then
9766                         haveit=yes
9767                         break
9768                       fi
9769                     done
9770                     if test -z "$haveit"; then
9771                       rpathdirs="$rpathdirs $found_dir"
9772                     fi
9773                   else
9774                                                                                 haveit=
9775                     for x in $LDFLAGS $LIBICONV; do
9776
9777   acl_save_prefix="$prefix"
9778   prefix="$acl_final_prefix"
9779   acl_save_exec_prefix="$exec_prefix"
9780   exec_prefix="$acl_final_exec_prefix"
9781   eval x=\"$x\"
9782   exec_prefix="$acl_save_exec_prefix"
9783   prefix="$acl_save_prefix"
9784
9785                       if test "X$x" = "X-L$found_dir"; then
9786                         haveit=yes
9787                         break
9788                       fi
9789                     done
9790                     if test -z "$haveit"; then
9791                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9792                     fi
9793                     if test "$hardcode_minus_L" != no; then
9794                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9795                     else
9796                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9797                     fi
9798                   fi
9799                 fi
9800               fi
9801             else
9802               if test "X$found_a" != "X"; then
9803                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9804               else
9805                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9806               fi
9807             fi
9808                         additional_includedir=
9809             case "$found_dir" in
9810               */lib | */lib/)
9811                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9812                 additional_includedir="$basedir/include"
9813                 ;;
9814             esac
9815             if test "X$additional_includedir" != "X"; then
9816                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9817                 haveit=
9818                 if test "X$additional_includedir" = "X/usr/local/include"; then
9819                   if test -n "$GCC"; then
9820                     case $host_os in
9821                       linux*) haveit=yes;;
9822                     esac
9823                   fi
9824                 fi
9825                 if test -z "$haveit"; then
9826                   for x in $CPPFLAGS $INCICONV; do
9827
9828   acl_save_prefix="$prefix"
9829   prefix="$acl_final_prefix"
9830   acl_save_exec_prefix="$exec_prefix"
9831   exec_prefix="$acl_final_exec_prefix"
9832   eval x=\"$x\"
9833   exec_prefix="$acl_save_exec_prefix"
9834   prefix="$acl_save_prefix"
9835
9836                     if test "X$x" = "X-I$additional_includedir"; then
9837                       haveit=yes
9838                       break
9839                     fi
9840                   done
9841                   if test -z "$haveit"; then
9842                     if test -d "$additional_includedir"; then
9843                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9844                     fi
9845                   fi
9846                 fi
9847               fi
9848             fi
9849                         if test -n "$found_la"; then
9850                                                         save_libdir="$libdir"
9851               case "$found_la" in
9852                 */* | *\\*) . "$found_la" ;;
9853                 *) . "./$found_la" ;;
9854               esac
9855               libdir="$save_libdir"
9856                             for dep in $dependency_libs; do
9857                 case "$dep" in
9858                   -L*)
9859                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9860                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9861                       haveit=
9862                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9863                         if test -n "$GCC"; then
9864                           case $host_os in
9865                             linux*) haveit=yes;;
9866                           esac
9867                         fi
9868                       fi
9869                       if test -z "$haveit"; then
9870                         haveit=
9871                         for x in $LDFLAGS $LIBICONV; do
9872
9873   acl_save_prefix="$prefix"
9874   prefix="$acl_final_prefix"
9875   acl_save_exec_prefix="$exec_prefix"
9876   exec_prefix="$acl_final_exec_prefix"
9877   eval x=\"$x\"
9878   exec_prefix="$acl_save_exec_prefix"
9879   prefix="$acl_save_prefix"
9880
9881                           if test "X$x" = "X-L$additional_libdir"; then
9882                             haveit=yes
9883                             break
9884                           fi
9885                         done
9886                         if test -z "$haveit"; then
9887                           if test -d "$additional_libdir"; then
9888                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9889                           fi
9890                         fi
9891                         haveit=
9892                         for x in $LDFLAGS $LTLIBICONV; do
9893
9894   acl_save_prefix="$prefix"
9895   prefix="$acl_final_prefix"
9896   acl_save_exec_prefix="$exec_prefix"
9897   exec_prefix="$acl_final_exec_prefix"
9898   eval x=\"$x\"
9899   exec_prefix="$acl_save_exec_prefix"
9900   prefix="$acl_save_prefix"
9901
9902                           if test "X$x" = "X-L$additional_libdir"; then
9903                             haveit=yes
9904                             break
9905                           fi
9906                         done
9907                         if test -z "$haveit"; then
9908                           if test -d "$additional_libdir"; then
9909                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9910                           fi
9911                         fi
9912                       fi
9913                     fi
9914                     ;;
9915                   -R*)
9916                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9917                     if test "$enable_rpath" != no; then
9918                                                                   haveit=
9919                       for x in $rpathdirs; do
9920                         if test "X$x" = "X$dir"; then
9921                           haveit=yes
9922                           break
9923                         fi
9924                       done
9925                       if test -z "$haveit"; then
9926                         rpathdirs="$rpathdirs $dir"
9927                       fi
9928                                                                   haveit=
9929                       for x in $ltrpathdirs; do
9930                         if test "X$x" = "X$dir"; then
9931                           haveit=yes
9932                           break
9933                         fi
9934                       done
9935                       if test -z "$haveit"; then
9936                         ltrpathdirs="$ltrpathdirs $dir"
9937                       fi
9938                     fi
9939                     ;;
9940                   -l*)
9941                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9942                     ;;
9943                   *.la)
9944                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9945                     ;;
9946                   *)
9947                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9948                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9949                     ;;
9950                 esac
9951               done
9952             fi
9953           else
9954                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9955             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9956           fi
9957         fi
9958       fi
9959     done
9960   done
9961   if test "X$rpathdirs" != "X"; then
9962     if test -n "$hardcode_libdir_separator"; then
9963                         alldirs=
9964       for found_dir in $rpathdirs; do
9965         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9966       done
9967             acl_save_libdir="$libdir"
9968       libdir="$alldirs"
9969       eval flag=\"$hardcode_libdir_flag_spec\"
9970       libdir="$acl_save_libdir"
9971       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9972     else
9973             for found_dir in $rpathdirs; do
9974         acl_save_libdir="$libdir"
9975         libdir="$found_dir"
9976         eval flag=\"$hardcode_libdir_flag_spec\"
9977         libdir="$acl_save_libdir"
9978         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9979       done
9980     fi
9981   fi
9982   if test "X$ltrpathdirs" != "X"; then
9983             for found_dir in $ltrpathdirs; do
9984       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9985     done
9986   fi
9987
9988
9989 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9990   ac_ext=cpp
9991 ac_cpp='$CXXCPP $CPPFLAGS'
9992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9995
9996
9997
9998
9999
10000
10001           am_save_CPPFLAGS="$CPPFLAGS"
10002
10003   for element in $INCICONV; do
10004     haveit=
10005     for x in $CPPFLAGS; do
10006
10007   acl_save_prefix="$prefix"
10008   prefix="$acl_final_prefix"
10009   acl_save_exec_prefix="$exec_prefix"
10010   exec_prefix="$acl_final_exec_prefix"
10011   eval x=\"$x\"
10012   exec_prefix="$acl_save_exec_prefix"
10013   prefix="$acl_save_prefix"
10014
10015       if test "X$x" = "X$element"; then
10016         haveit=yes
10017         break
10018       fi
10019     done
10020     if test -z "$haveit"; then
10021       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10022     fi
10023   done
10024
10025
10026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10027 $as_echo_n "checking for iconv... " >&6; }
10028 if test "${am_cv_func_iconv+set}" = set; then :
10029   $as_echo_n "(cached) " >&6
10030 else
10031
10032     am_cv_func_iconv="no, consider installing GNU libiconv"
10033     am_cv_lib_iconv=no
10034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h.  */
10036 #include <stdlib.h>
10037 #include <iconv.h>
10038 int
10039 main ()
10040 {
10041 iconv_t cd = iconv_open("","");
10042        iconv(cd,NULL,NULL,NULL,NULL);
10043        iconv_close(cd);
10044   ;
10045   return 0;
10046 }
10047 _ACEOF
10048 if ac_fn_cxx_try_link "$LINENO"; then :
10049   am_cv_func_iconv=yes
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext \
10052     conftest$ac_exeext conftest.$ac_ext
10053     if test "$am_cv_func_iconv" != yes; then
10054       am_save_LIBS="$LIBS"
10055       LIBS="$LIBS $LIBICONV"
10056       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h.  */
10058 #include <stdlib.h>
10059 #include <iconv.h>
10060 int
10061 main ()
10062 {
10063 iconv_t cd = iconv_open("","");
10064          iconv(cd,NULL,NULL,NULL,NULL);
10065          iconv_close(cd);
10066   ;
10067   return 0;
10068 }
10069 _ACEOF
10070 if ac_fn_cxx_try_link "$LINENO"; then :
10071   am_cv_lib_iconv=yes
10072         am_cv_func_iconv=yes
10073 fi
10074 rm -f core conftest.err conftest.$ac_objext \
10075     conftest$ac_exeext conftest.$ac_ext
10076       LIBS="$am_save_LIBS"
10077     fi
10078
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10081 $as_echo "$am_cv_func_iconv" >&6; }
10082   if test "$am_cv_func_iconv" = yes; then
10083
10084 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10085
10086   fi
10087   if test "$am_cv_lib_iconv" = yes; then
10088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10089 $as_echo_n "checking how to link with libiconv... " >&6; }
10090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10091 $as_echo "$LIBICONV" >&6; }
10092   else
10093             CPPFLAGS="$am_save_CPPFLAGS"
10094     LIBICONV=
10095     LTLIBICONV=
10096   fi
10097
10098
10099
10100   if test "$am_cv_func_iconv" = yes; then
10101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10102 $as_echo_n "checking for iconv declaration... " >&6; }
10103     if test "${am_cv_proto_iconv+set}" = set; then :
10104   $as_echo_n "(cached) " >&6
10105 else
10106
10107       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h.  */
10109
10110 #include <stdlib.h>
10111 #include <iconv.h>
10112 extern
10113 #ifdef __cplusplus
10114 "C"
10115 #endif
10116 #if defined(__STDC__) || defined(__cplusplus)
10117 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10118 #else
10119 size_t iconv();
10120 #endif
10121
10122 int
10123 main ()
10124 {
10125
10126   ;
10127   return 0;
10128 }
10129 _ACEOF
10130 if ac_fn_cxx_try_compile "$LINENO"; then :
10131   am_cv_proto_iconv_arg1=""
10132 else
10133   am_cv_proto_iconv_arg1="const"
10134 fi
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136       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);"
10137 fi
10138
10139     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10141          }$am_cv_proto_iconv" >&5
10142 $as_echo "${ac_t:-
10143          }$am_cv_proto_iconv" >&6; }
10144
10145 cat >>confdefs.h <<_ACEOF
10146 #define ICONV_CONST $am_cv_proto_iconv_arg1
10147 _ACEOF
10148
10149   fi
10150
10151    ac_ext=c
10152 ac_cpp='$CPP $CPPFLAGS'
10153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10156
10157 else
10158
10159
10160
10161
10162
10163           am_save_CPPFLAGS="$CPPFLAGS"
10164
10165   for element in $INCICONV; do
10166     haveit=
10167     for x in $CPPFLAGS; do
10168
10169   acl_save_prefix="$prefix"
10170   prefix="$acl_final_prefix"
10171   acl_save_exec_prefix="$exec_prefix"
10172   exec_prefix="$acl_final_exec_prefix"
10173   eval x=\"$x\"
10174   exec_prefix="$acl_save_exec_prefix"
10175   prefix="$acl_save_prefix"
10176
10177       if test "X$x" = "X$element"; then
10178         haveit=yes
10179         break
10180       fi
10181     done
10182     if test -z "$haveit"; then
10183       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10184     fi
10185   done
10186
10187
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10189 $as_echo_n "checking for iconv... " >&6; }
10190 if test "${am_cv_func_iconv+set}" = set; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193
10194     am_cv_func_iconv="no, consider installing GNU libiconv"
10195     am_cv_lib_iconv=no
10196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h.  */
10198 #include <stdlib.h>
10199 #include <iconv.h>
10200 int
10201 main ()
10202 {
10203 iconv_t cd = iconv_open("","");
10204        iconv(cd,NULL,NULL,NULL,NULL);
10205        iconv_close(cd);
10206   ;
10207   return 0;
10208 }
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211   am_cv_func_iconv=yes
10212 fi
10213 rm -f core conftest.err conftest.$ac_objext \
10214     conftest$ac_exeext conftest.$ac_ext
10215     if test "$am_cv_func_iconv" != yes; then
10216       am_save_LIBS="$LIBS"
10217       LIBS="$LIBS $LIBICONV"
10218       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h.  */
10220 #include <stdlib.h>
10221 #include <iconv.h>
10222 int
10223 main ()
10224 {
10225 iconv_t cd = iconv_open("","");
10226          iconv(cd,NULL,NULL,NULL,NULL);
10227          iconv_close(cd);
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233   am_cv_lib_iconv=yes
10234         am_cv_func_iconv=yes
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext \
10237     conftest$ac_exeext conftest.$ac_ext
10238       LIBS="$am_save_LIBS"
10239     fi
10240
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10243 $as_echo "$am_cv_func_iconv" >&6; }
10244   if test "$am_cv_func_iconv" = yes; then
10245
10246 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10247
10248   fi
10249   if test "$am_cv_lib_iconv" = yes; then
10250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10251 $as_echo_n "checking how to link with libiconv... " >&6; }
10252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10253 $as_echo "$LIBICONV" >&6; }
10254   else
10255             CPPFLAGS="$am_save_CPPFLAGS"
10256     LIBICONV=
10257     LTLIBICONV=
10258   fi
10259
10260
10261
10262   if test "$am_cv_func_iconv" = yes; then
10263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10264 $as_echo_n "checking for iconv declaration... " >&6; }
10265     if test "${am_cv_proto_iconv+set}" = set; then :
10266   $as_echo_n "(cached) " >&6
10267 else
10268
10269       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h.  */
10271
10272 #include <stdlib.h>
10273 #include <iconv.h>
10274 extern
10275 #ifdef __cplusplus
10276 "C"
10277 #endif
10278 #if defined(__STDC__) || defined(__cplusplus)
10279 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10280 #else
10281 size_t iconv();
10282 #endif
10283
10284 int
10285 main ()
10286 {
10287
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 if ac_fn_c_try_compile "$LINENO"; then :
10293   am_cv_proto_iconv_arg1=""
10294 else
10295   am_cv_proto_iconv_arg1="const"
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298       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);"
10299 fi
10300
10301     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10303          }$am_cv_proto_iconv" >&5
10304 $as_echo "${ac_t:-
10305          }$am_cv_proto_iconv" >&6; }
10306
10307 cat >>confdefs.h <<_ACEOF
10308 #define ICONV_CONST $am_cv_proto_iconv_arg1
10309 _ACEOF
10310
10311   fi
10312
10313 fi
10314
10315 # Until we have in-tree GNU iconv:
10316 LIBICONV_DEP=
10317
10318
10319
10320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10321 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10322 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10323   $as_echo_n "(cached) " >&6
10324 else
10325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h.  */
10327 #include <locale.h>
10328 int
10329 main ()
10330 {
10331 return LC_MESSAGES
10332   ;
10333   return 0;
10334 }
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337   am_cv_val_LC_MESSAGES=yes
10338 else
10339   am_cv_val_LC_MESSAGES=no
10340 fi
10341 rm -f core conftest.err conftest.$ac_objext \
10342     conftest$ac_exeext conftest.$ac_ext
10343 fi
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10345 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10346   if test $am_cv_val_LC_MESSAGES = yes; then
10347
10348 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10349
10350   fi
10351
10352
10353
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10355 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10356 if test "${am_cv_langinfo_codeset+set}" = set; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h.  */
10361 #include <langinfo.h>
10362 int
10363 main ()
10364 {
10365 char* cs = nl_langinfo(CODESET);
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"; then :
10371   am_cv_langinfo_codeset=yes
10372 else
10373   am_cv_langinfo_codeset=no
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext \
10376     conftest$ac_exeext conftest.$ac_ext
10377
10378 fi
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10380 $as_echo "$am_cv_langinfo_codeset" >&6; }
10381   if test $am_cv_langinfo_codeset = yes; then
10382
10383 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10384
10385   fi
10386
10387
10388 # We will need to find libiberty.h and ansidecl.h
10389 saved_CFLAGS="$CFLAGS"
10390 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10391 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10392         strsignal strstr strverscmp \
10393         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10394         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
10395 do
10396   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10398 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10399 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10400   $as_echo_n "(cached) " >&6
10401 else
10402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h.  */
10404 #undef $ac_tr_decl
10405 #define $ac_tr_decl 1
10406
10407 #include "ansidecl.h"
10408 #include "system.h"
10409
10410 int
10411 main ()
10412 {
10413 #ifndef $ac_func
10414 char *(*pfn) = (char *(*)) $ac_func ;
10415 #endif
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_compile "$LINENO"; then :
10421   eval "gcc_cv_have_decl_$ac_func=yes"
10422 else
10423   eval "gcc_cv_have_decl_$ac_func=no"
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426 fi
10427
10428 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10431 #define $ac_tr_decl 1
10432 _ACEOF
10433
10434 else
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10437 #define $ac_tr_decl 0
10438 _ACEOF
10439
10440 fi
10441
10442 done
10443
10444
10445 for ac_func in getrlimit setrlimit getrusage
10446 do
10447   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10449 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10450 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10451   $as_echo_n "(cached) " >&6
10452 else
10453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h.  */
10455 #undef $ac_tr_decl
10456 #define $ac_tr_decl 1
10457
10458 #include "ansidecl.h"
10459 #include "system.h"
10460 #ifdef HAVE_SYS_RESOURCE_H
10461 #include <sys/resource.h>
10462 #endif
10463
10464
10465 int
10466 main ()
10467 {
10468 #ifndef $ac_func
10469 char *(*pfn) = (char *(*)) $ac_func ;
10470 #endif
10471   ;
10472   return 0;
10473 }
10474 _ACEOF
10475 if ac_fn_c_try_compile "$LINENO"; then :
10476   eval "gcc_cv_have_decl_$ac_func=yes"
10477 else
10478   eval "gcc_cv_have_decl_$ac_func=no"
10479 fi
10480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10481 fi
10482
10483 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10485 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10486 #define $ac_tr_decl 1
10487 _ACEOF
10488
10489 else
10490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10492 #define $ac_tr_decl 0
10493 _ACEOF
10494
10495 fi
10496
10497 done
10498
10499
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h.  */
10502
10503 #include "ansidecl.h"
10504 #include "system.h"
10505 #ifdef HAVE_SYS_RESOURCE_H
10506 #include <sys/resource.h>
10507 #endif
10508
10509 int
10510 main ()
10511 {
10512 rlim_t l = 0;
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_compile "$LINENO"; then :
10518
10519 else
10520
10521 $as_echo "#define rlim_t long" >>confdefs.h
10522
10523 fi
10524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10525
10526 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10527 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10528 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10529 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10530 for ac_func in ldgetname
10531 do
10532   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10534 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10535 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10536   $as_echo_n "(cached) " >&6
10537 else
10538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h.  */
10540 #undef $ac_tr_decl
10541 #define $ac_tr_decl 1
10542
10543 #include "ansidecl.h"
10544 #include "system.h"
10545 #ifdef HAVE_LDFCN_H
10546 #undef FREAD
10547 #undef FWRITE
10548 #include <ldfcn.h>
10549 #endif
10550
10551
10552 int
10553 main ()
10554 {
10555 #ifndef $ac_func
10556 char *(*pfn) = (char *(*)) $ac_func ;
10557 #endif
10558   ;
10559   return 0;
10560 }
10561 _ACEOF
10562 if ac_fn_c_try_compile "$LINENO"; then :
10563   eval "gcc_cv_have_decl_$ac_func=yes"
10564 else
10565   eval "gcc_cv_have_decl_$ac_func=no"
10566 fi
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568 fi
10569
10570 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10573 #define $ac_tr_decl 1
10574 _ACEOF
10575
10576 else
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10579 #define $ac_tr_decl 0
10580 _ACEOF
10581
10582 fi
10583
10584 done
10585
10586
10587 for ac_func in times
10588 do
10589   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10591 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10592 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10593   $as_echo_n "(cached) " >&6
10594 else
10595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h.  */
10597 #undef $ac_tr_decl
10598 #define $ac_tr_decl 1
10599
10600 #include "ansidecl.h"
10601 #include "system.h"
10602 #ifdef HAVE_SYS_TIMES_H
10603 #include <sys/times.h>
10604 #endif
10605
10606
10607 int
10608 main ()
10609 {
10610 #ifndef $ac_func
10611 char *(*pfn) = (char *(*)) $ac_func ;
10612 #endif
10613   ;
10614   return 0;
10615 }
10616 _ACEOF
10617 if ac_fn_c_try_compile "$LINENO"; then :
10618   eval "gcc_cv_have_decl_$ac_func=yes"
10619 else
10620   eval "gcc_cv_have_decl_$ac_func=no"
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623 fi
10624
10625 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10627 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10628 #define $ac_tr_decl 1
10629 _ACEOF
10630
10631 else
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10634 #define $ac_tr_decl 0
10635 _ACEOF
10636
10637 fi
10638
10639 done
10640
10641
10642 for ac_func in sigaltstack
10643 do
10644   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10646 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10647 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10648   $as_echo_n "(cached) " >&6
10649 else
10650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h.  */
10652 #undef $ac_tr_decl
10653 #define $ac_tr_decl 1
10654
10655 #include "ansidecl.h"
10656 #include "system.h"
10657 #include <signal.h>
10658
10659
10660 int
10661 main ()
10662 {
10663 #ifndef $ac_func
10664 char *(*pfn) = (char *(*)) $ac_func ;
10665 #endif
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 if ac_fn_c_try_compile "$LINENO"; then :
10671   eval "gcc_cv_have_decl_$ac_func=yes"
10672 else
10673   eval "gcc_cv_have_decl_$ac_func=no"
10674 fi
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 fi
10677
10678 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10681 #define $ac_tr_decl 1
10682 _ACEOF
10683
10684 else
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10687 #define $ac_tr_decl 0
10688 _ACEOF
10689
10690 fi
10691
10692 done
10693
10694
10695 # More time-related stuff.
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10697 $as_echo_n "checking for struct tms... " >&6; }
10698 if test "${ac_cv_struct_tms+set}" = set; then :
10699   $as_echo_n "(cached) " >&6
10700 else
10701
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h.  */
10704
10705 #include "ansidecl.h"
10706 #include "system.h"
10707 #ifdef HAVE_SYS_TIMES_H
10708 #include <sys/times.h>
10709 #endif
10710
10711 int
10712 main ()
10713 {
10714 struct tms tms;
10715   ;
10716   return 0;
10717 }
10718 _ACEOF
10719 if ac_fn_c_try_compile "$LINENO"; then :
10720   ac_cv_struct_tms=yes
10721 else
10722   ac_cv_struct_tms=no
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10727 $as_echo "$ac_cv_struct_tms" >&6; }
10728 if test $ac_cv_struct_tms = yes; then
10729
10730 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10731
10732 fi
10733
10734 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10735 # revisit after autoconf 2.50.
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10737 $as_echo_n "checking for clock_t... " >&6; }
10738 if test "${gcc_cv_type_clock_t+set}" = set; then :
10739   $as_echo_n "(cached) " >&6
10740 else
10741
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h.  */
10744
10745 #include "ansidecl.h"
10746 #include "system.h"
10747
10748 int
10749 main ()
10750 {
10751 clock_t x;
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 if ac_fn_c_try_compile "$LINENO"; then :
10757   gcc_cv_type_clock_t=yes
10758 else
10759   gcc_cv_type_clock_t=no
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10764 $as_echo "$gcc_cv_type_clock_t" >&6; }
10765 if test $gcc_cv_type_clock_t = yes; then
10766
10767 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10768
10769 fi
10770
10771 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10772 CFLAGS="$saved_CFLAGS"
10773
10774 # Check whether --enable-initfini-array was given.
10775 if test "${enable_initfini_array+set}" = set; then :
10776   enableval=$enable_initfini_array;
10777 else
10778
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10780 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10781 if test "${gcc_cv_initfini_array+set}" = set; then :
10782   $as_echo_n "(cached) " >&6
10783 else
10784     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10785     if test "$cross_compiling" = yes; then :
10786   gcc_cv_initfini_array=no
10787 else
10788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h.  */
10790
10791 #ifndef __ELF__
10792 #error Not an ELF OS
10793 #endif
10794 #ifdef __ia64__
10795 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10796    if it can be used.  */
10797 static int x = -1;
10798 int main (void) { return x; }
10799 int foo (void) { x = 0; }
10800 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10801 #else
10802 extern void abort ();
10803 static int count;
10804
10805 static void
10806 init1005 ()
10807 {
10808   if (count != 0)
10809     abort ();
10810   count = 1005;
10811 }
10812 void (*const init_array1005) ()
10813   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10814   = { init1005 };
10815 static void
10816 fini1005 ()
10817 {
10818   if (count != 1005)
10819     abort ();
10820 }
10821 void (*const fini_array1005) ()
10822   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10823   = { fini1005 };
10824
10825 static void
10826 ctor1007 ()
10827 {
10828   if (count != 1005)
10829     abort ();
10830   count = 1007;
10831 }
10832 void (*const ctors1007) ()
10833   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10834   = { ctor1007 };
10835 static void
10836 dtor1007 ()
10837 {
10838   if (count != 1007)
10839     abort ();
10840   count = 1005;
10841 }
10842 void (*const dtors1007) ()
10843   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10844   = { dtor1007 };
10845
10846 static void
10847 init65530 ()
10848 {
10849   if (count != 1007)
10850     abort ();
10851   count = 65530;
10852 }
10853 void (*const init_array65530) ()
10854   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10855   = { init65530 };
10856 static void
10857 fini65530 ()
10858 {
10859   if (count != 65530)
10860     abort ();
10861   count = 1007;
10862 }
10863 void (*const fini_array65530) ()
10864   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10865   = { fini65530 };
10866
10867 static void
10868 ctor65535 ()
10869 {
10870   if (count != 65530)
10871     abort ();
10872   count = 65535;
10873 }
10874 void (*const ctors65535) ()
10875   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10876   = { ctor65535 };
10877 static void
10878 dtor65535 ()
10879 {
10880   if (count != 65535)
10881     abort ();
10882   count = 65530;
10883 }
10884 void (*const dtors65535) ()
10885   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10886   = { dtor65535 };
10887
10888 int
10889 main ()
10890 {
10891   if (count != 65535)
10892     abort ();
10893   return 0;
10894 }
10895 #endif
10896
10897 _ACEOF
10898 if ac_fn_c_try_run "$LINENO"; then :
10899   gcc_cv_initfini_array=yes
10900 else
10901   gcc_cv_initfini_array=no
10902 fi
10903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10904   conftest.$ac_objext conftest.beam conftest.$ac_ext
10905 fi
10906
10907    else
10908      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10909 $as_echo_n "checking cross compile... guessing... " >&6; }
10910      gcc_cv_initfini_array=no
10911    fi
10912 fi
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10914 $as_echo "$gcc_cv_initfini_array" >&6; }
10915   enable_initfini_array=$gcc_cv_initfini_array
10916
10917 fi
10918
10919 if test $enable_initfini_array = yes; then
10920
10921 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10922
10923 fi
10924
10925 # mkdir takes a single argument on some systems.
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10927 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10928 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10929   $as_echo_n "(cached) " >&6
10930 else
10931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h.  */
10933
10934 #include <sys/types.h>
10935 #ifdef HAVE_SYS_STAT_H
10936 # include <sys/stat.h>
10937 #endif
10938 #ifdef HAVE_UNISTD_H
10939 # include <unistd.h>
10940 #endif
10941 #ifdef HAVE_DIRECT_H
10942 # include <direct.h>
10943 #endif
10944 int
10945 main ()
10946 {
10947 mkdir ("foo", 0);
10948   ;
10949   return 0;
10950 }
10951 _ACEOF
10952 if ac_fn_c_try_compile "$LINENO"; then :
10953   gcc_cv_mkdir_takes_one_arg=no
10954 else
10955   gcc_cv_mkdir_takes_one_arg=yes
10956 fi
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 fi
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10960 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10961 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10962
10963 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10964
10965 fi
10966
10967
10968 # File extensions
10969 manext='.1'
10970 objext='.o'
10971
10972
10973
10974 # With Setjmp/Longjmp based exception handling.
10975 # Check whether --enable-sjlj-exceptions was given.
10976 if test "${enable_sjlj_exceptions+set}" = set; then :
10977   enableval=$enable_sjlj_exceptions; case $target in
10978   *-*-hpux10*)
10979     if test $enableval != yes; then
10980       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10981 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10982       enableval=yes
10983     fi
10984     ;;
10985 esac
10986 force_sjlj_exceptions=yes
10987 else
10988   case $target in
10989   *-*-hpux10*)
10990     force_sjlj_exceptions=yes
10991     enableval=yes
10992     ;;
10993   *)
10994     force_sjlj_exceptions=no
10995     ;;
10996 esac
10997 fi
10998
10999 if test $force_sjlj_exceptions = yes; then
11000   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11001
11002 cat >>confdefs.h <<_ACEOF
11003 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11004 _ACEOF
11005
11006 fi
11007
11008 # --------------------------------------------------------
11009 # Build, host, and target specific configuration fragments
11010 # --------------------------------------------------------
11011
11012 # Collect build-machine-specific information.
11013 . ${srcdir}/config.build
11014
11015 # Collect host-machine-specific information.
11016 . ${srcdir}/config.host
11017
11018 target_gtfiles=
11019
11020 # Collect target-machine-specific information.
11021 . ${srcdir}/config.gcc
11022
11023 extra_objs="${host_extra_objs} ${extra_objs}"
11024 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11025
11026 # Default the target-machine variables that were not explicitly set.
11027 if test x"$tm_file" = x
11028 then tm_file=$cpu_type/$cpu_type.h; fi
11029
11030 if test x"$extra_headers" = x
11031 then extra_headers=; fi
11032
11033 if test x$md_file = x
11034 then md_file=$cpu_type/$cpu_type.md; fi
11035
11036 if test x$out_file = x
11037 then out_file=$cpu_type/$cpu_type.c; fi
11038
11039 if test x"$tmake_file" = x
11040 then tmake_file=$cpu_type/t-$cpu_type
11041 fi
11042
11043 if test x"$dwarf2" = xyes
11044 then tm_file="$tm_file tm-dwarf2.h"
11045 fi
11046
11047 # Say what files are being used for the output code and MD file.
11048 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11049 echo "Using \`$srcdir/config/$md_file' as machine description file."
11050
11051 # If any of the xm_file variables contain nonexistent files, warn
11052 # about them and drop them.
11053
11054 bx=
11055 for x in $build_xm_file; do
11056   if    test -f $srcdir/config/$x
11057   then      bx="$bx $x"
11058   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11059 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11060   fi
11061 done
11062 build_xm_file="$bx"
11063
11064 hx=
11065 for x in $host_xm_file; do
11066   if    test -f $srcdir/config/$x
11067   then      hx="$hx $x"
11068   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11069 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11070   fi
11071 done
11072 host_xm_file="$hx"
11073
11074 tx=
11075 for x in $xm_file; do
11076   if    test -f $srcdir/config/$x
11077   then      tx="$tx $x"
11078   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11079 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11080   fi
11081 done
11082 xm_file="$tx"
11083
11084 count=a
11085 for f in $tm_file; do
11086         count=${count}x
11087 done
11088 if test $count = ax; then
11089         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11090 else
11091         echo "Using the following target machine macro files:"
11092         for f in $tm_file; do
11093                 echo "  $srcdir/config/$f"
11094         done
11095 fi
11096
11097 if test x$need_64bit_hwint = xyes; then
11098
11099 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11100
11101 fi
11102
11103 if test x$use_long_long_for_widest_fast_int = xyes; then
11104
11105 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11106
11107 fi
11108
11109 count=a
11110 for f in $host_xm_file; do
11111         count=${count}x
11112 done
11113 if test $count = a; then
11114         :
11115 elif test $count = ax; then
11116         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11117 else
11118         echo "Using the following host machine macro files:"
11119         for f in $host_xm_file; do
11120                 echo "  $srcdir/config/$f"
11121         done
11122 fi
11123 echo "Using ${out_host_hook_obj} for host machine hooks."
11124
11125 if test "$host_xm_file" != "$build_xm_file"; then
11126         count=a
11127         for f in $build_xm_file; do
11128                 count=${count}x
11129         done
11130         if test $count = a; then
11131                 :
11132         elif test $count = ax; then
11133                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11134         else
11135                 echo "Using the following build machine macro files:"
11136                 for f in $build_xm_file; do
11137                         echo "  $srcdir/config/$f"
11138                 done
11139         fi
11140 fi
11141
11142 case ${host} in
11143   powerpc*-*-darwin*)
11144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11145 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11146 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11147   $as_echo_n "(cached) " >&6
11148 else
11149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h.  */
11151
11152 #include <sys/cdefs.h>
11153 #include <sys/signal.h>
11154 #include <ucontext.h>
11155 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11156
11157 _ACEOF
11158 if ac_fn_c_try_compile "$LINENO"; then :
11159   gcc_cv_mcontext_underscores=no
11160 else
11161   gcc_cv_mcontext_underscores=yes
11162 fi
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 fi
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11166 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11167       if test $gcc_cv_mcontext_underscores = yes; then
11168
11169 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11170
11171       fi
11172     ;;
11173 esac
11174
11175 # ---------
11176 # Threading
11177 # ---------
11178
11179 # Check if a valid thread package
11180 case ${enable_threads} in
11181   "" | no)
11182     # No threads
11183     target_thread_file='single'
11184     ;;
11185   yes)
11186     # default
11187     target_thread_file='single'
11188     ;;
11189   aix | dce | lynx | mipssde | posix | rtems | \
11190   single | tpf | vxworks | win32)
11191     target_thread_file=${enable_threads}
11192     ;;
11193   *)
11194     echo "${enable_threads} is an unknown thread package" 1>&2
11195     exit 1
11196     ;;
11197 esac
11198
11199 if test x${thread_file} = x; then
11200   # No thread file set by target-specific clauses in config.gcc,
11201   # so use file chosen by default logic above
11202   thread_file=${target_thread_file}
11203 fi
11204
11205 # Make gthr-default.h if we have a thread file.
11206 gthread_flags=
11207 if test $thread_file != single; then
11208   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11209   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11210     rm -f gthr-default.h-t
11211   else
11212     mv -f gthr-default.h-t gthr-default.h
11213   fi
11214   gthread_flags=-DHAVE_GTHR_DEFAULT
11215 fi
11216
11217
11218 # --------
11219 # UNSORTED
11220 # --------
11221
11222 use_cxa_atexit=no
11223 if test x$enable___cxa_atexit = xyes || \
11224    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11225   if test x$host = x$target; then
11226     case $host in
11227       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11228       # keyed to flag_use_cxa_atexit
11229       *-*-mingw32*)
11230         use_cxa_atexit=yes
11231         ;;
11232       *)
11233         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11234 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11235   use_cxa_atexit=yes
11236 else
11237   echo "__cxa_atexit can't be enabled on this target"
11238 fi
11239
11240         ;;
11241     esac
11242   else
11243     # We can't check for __cxa_atexit when building a cross, so assume
11244     # it is available
11245     use_cxa_atexit=yes
11246   fi
11247   if test x$use_cxa_atexit = xyes; then
11248
11249 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11250
11251   fi
11252 fi
11253
11254 # Look for a file containing extra machine modes.
11255 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11256   extra_modes_file='$(srcdir)'/config/${extra_modes}
11257
11258
11259 cat >>confdefs.h <<_ACEOF
11260 #define EXTRA_MODES_FILE "config/$extra_modes"
11261 _ACEOF
11262
11263 fi
11264
11265 # Convert extra_options into a form suitable for Makefile use.
11266 extra_opt_files=
11267 all_opt_files=
11268 for f in $extra_options; do
11269   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11270   all_opt_files="$all_opt_files $srcdir/config/$f"
11271 done
11272
11273
11274 # auto-host.h is the file containing items generated by autoconf and is
11275 # the first file included by config.h.
11276 # If host=build, it is correct to have bconfig include auto-host.h
11277 # as well.  If host!=build, we are in error and need to do more
11278 # work to find out the build config parameters.
11279 if test x$host = x$build
11280 then
11281         build_auto=auto-host.h
11282 else
11283         # We create a subdir, then run autoconf in the subdir.
11284         # To prevent recursion we set host and build for the new
11285         # invocation of configure to the build for this invocation
11286         # of configure.
11287         tempdir=build.$$
11288         rm -rf $tempdir
11289         mkdir $tempdir
11290         cd $tempdir
11291         case ${srcdir} in
11292         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11293         *) realsrcdir=../${srcdir};;
11294         esac
11295         saved_CFLAGS="${CFLAGS}"
11296         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11297         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11298         ${realsrcdir}/configure \
11299                 --enable-languages=${enable_languages-all} \
11300                 --target=$target_alias --host=$build_alias --build=$build_alias
11301         CFLAGS="${saved_CFLAGS}"
11302
11303         # We just finished tests for the build machine, so rename
11304         # the file auto-build.h in the gcc directory.
11305         mv auto-host.h ../auto-build.h
11306         cd ..
11307         rm -rf $tempdir
11308         build_auto=auto-build.h
11309 fi
11310
11311
11312 tm_file="${tm_file} defaults.h"
11313 tm_p_file="${tm_p_file} tm-preds.h"
11314 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11315 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11316 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11317 # put this back in temporarily.
11318 xm_file="auto-host.h ansidecl.h ${xm_file}"
11319
11320 # --------
11321 # UNSORTED
11322 # --------
11323
11324 # Compile in configure arguments.
11325 if test -f configargs.h ; then
11326         # Being re-configured.
11327         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11328         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11329 else
11330         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11331 fi
11332
11333 # Double all backslashes and backslash all quotes to turn
11334 # gcc_config_arguments into a C string.
11335 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11336 $gcc_config_arguments
11337 EOF
11338 gcc_config_arguments_str=`cat conftest.out`
11339 rm -f conftest.out
11340
11341 cat > configargs.h <<EOF
11342 /* Generated automatically. */
11343 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11344 static const char thread_model[] = "$thread_file";
11345
11346 static const struct {
11347   const char *name, *value;
11348 } configure_default_options[] = $configure_default_options;
11349 EOF
11350
11351 gcc_BASEVER=`cat $srcdir/BASE-VER`
11352 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11353 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11354 if test -f $srcdir/REVISION ; then
11355         gcc_REVISION=`cat $srcdir/REVISION`
11356 else
11357         gcc_REVISION=""
11358 fi
11359 cat > plugin-version.h <<EOF
11360 #include "configargs.h"
11361
11362 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11363 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11364 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11365 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11366
11367 static char basever[] = "$gcc_BASEVER";
11368 static char datestamp[] = "$gcc_DATESTAMP";
11369 static char devphase[] = "$gcc_DEVPHASE";
11370 static char revision[] = "$gcc_REVISION";
11371
11372 /* FIXME plugins: We should make the version information more precise.
11373    One way to do is to add a checksum. */
11374
11375 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11376                                                 devphase, revision,
11377                                                 configuration_arguments};
11378 EOF
11379
11380 # Internationalization
11381 # If we haven't got the data from the intl directory,
11382 # assume NLS is disabled.
11383 USE_NLS=no
11384 LIBINTL=
11385 LIBINTL_DEP=
11386 INCINTL=
11387 XGETTEXT=
11388 GMSGFMT=
11389 POSUB=
11390
11391 if test -f  ../intl/config.intl; then
11392   .  ../intl/config.intl
11393 fi
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11395 $as_echo_n "checking whether NLS is requested... " >&6; }
11396 if test x"$USE_NLS" != xyes; then
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11399 else
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11402
11403 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11404
11405
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11407 $as_echo_n "checking for catalogs to be installed... " >&6; }
11408   # Look for .po and .gmo files in the source directory.
11409   CATALOGS=
11410   XLINGUAS=
11411   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11412     # If there aren't any .gmo files the shell will give us the
11413     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11414     # weeded out.
11415     case "$cat" in *\**)
11416       continue;;
11417     esac
11418     # The quadruple backslash is collapsed to a double backslash
11419     # by the backticks, then collapsed again by the double quotes,
11420     # leaving us with one backslash in the sed expression (right
11421     # before the dot that mustn't act as a wildcard).
11422     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11423     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11424     # The user is allowed to set LINGUAS to a list of languages to
11425     # install catalogs for.  If it's empty that means "all of them."
11426     if test "x$LINGUAS" = x; then
11427       CATALOGS="$CATALOGS $cat"
11428       XLINGUAS="$XLINGUAS $lang"
11429     else
11430       case "$LINGUAS" in *$lang*)
11431         CATALOGS="$CATALOGS $cat"
11432         XLINGUAS="$XLINGUAS $lang"
11433         ;;
11434       esac
11435     fi
11436   done
11437   LINGUAS="$XLINGUAS"
11438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11439 $as_echo "$LINGUAS" >&6; }
11440
11441
11442     DATADIRNAME=share
11443
11444   INSTOBJEXT=.mo
11445
11446   GENCAT=gencat
11447
11448   CATOBJEXT=.gmo
11449
11450 fi
11451
11452 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11453 # -liconv on the link line twice.
11454 case "$LIBINTL" in *$LIBICONV*)
11455         LIBICONV= ;;
11456 esac
11457
11458 # Check whether --enable-secureplt was given.
11459 if test "${enable_secureplt+set}" = set; then :
11460   enableval=$enable_secureplt;
11461 fi
11462
11463
11464 # Check whether --enable-leading-mingw64-underscores was given.
11465 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11466   enableval=$enable_leading_mingw64_underscores;
11467 fi
11468
11469 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11470
11471 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11472
11473 fi
11474
11475 # Check whether --enable-cld was given.
11476 if test "${enable_cld+set}" = set; then :
11477   enableval=$enable_cld;
11478 else
11479   enable_cld=no
11480 fi
11481
11482
11483 # Check whether --enable-frame-pointer was given.
11484 if test "${enable_frame_pointer+set}" = set; then :
11485   enableval=$enable_frame_pointer;
11486 else
11487
11488 case $target_os in
11489 linux* | darwin[8912]*)
11490   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11491   # DWARF2.
11492   enable_frame_pointer=no
11493   ;;
11494 *)
11495   enable_frame_pointer=yes
11496   ;;
11497 esac
11498
11499 fi
11500
11501
11502 # Windows32 Registry support for specifying GCC installation paths.
11503 # Check whether --enable-win32-registry was given.
11504 if test "${enable_win32_registry+set}" = set; then :
11505   enableval=$enable_win32_registry;
11506 fi
11507
11508
11509 case $host_os in
11510   win32 | pe | cygwin* | mingw32* | uwin*)
11511     if test "x$enable_win32_registry" != xno; then
11512       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11513 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11514 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   ac_func_search_save_LIBS=$LIBS
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h.  */
11520
11521 /* Override any GCC internal prototype to avoid an error.
11522    Use char because int might match the return type of a GCC
11523    builtin and then its argument prototype would still apply.  */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char RegOpenKeyExA ();
11528 int
11529 main ()
11530 {
11531 return RegOpenKeyExA ();
11532   ;
11533   return 0;
11534 }
11535 _ACEOF
11536 for ac_lib in '' advapi32; do
11537   if test -z "$ac_lib"; then
11538     ac_res="none required"
11539   else
11540     ac_res=-l$ac_lib
11541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11542   fi
11543   if ac_fn_c_try_link "$LINENO"; then :
11544   ac_cv_search_RegOpenKeyExA=$ac_res
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547     conftest$ac_exeext
11548   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11549   break
11550 fi
11551 done
11552 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11553
11554 else
11555   ac_cv_search_RegOpenKeyExA=no
11556 fi
11557 rm conftest.$ac_ext
11558 LIBS=$ac_func_search_save_LIBS
11559 fi
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11561 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11562 ac_res=$ac_cv_search_RegOpenKeyExA
11563 if test "$ac_res" != no; then :
11564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11565
11566 else
11567   enable_win32_registry=no
11568 fi
11569
11570     fi
11571
11572     if test "x$enable_win32_registry" != xno; then
11573
11574 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11575
11576
11577       if test "x$enable_win32_registry" != xyes \
11578          && test "x$enable_win32_registry" != x; then
11579
11580 cat >>confdefs.h <<_ACEOF
11581 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11582 _ACEOF
11583
11584       fi
11585     fi
11586   ;;
11587 esac
11588
11589 # Get an absolute path to the GCC top-level source directory
11590 holddir=`${PWDCMD-pwd}`
11591 cd $srcdir
11592 topdir=`${PWDCMD-pwd}`
11593 cd $holddir
11594
11595 # Conditionalize the makefile for this host machine.
11596 xmake_file=
11597 for f in ${host_xmake_file}
11598 do
11599         if test -f ${srcdir}/config/$f
11600         then
11601                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11602         fi
11603 done
11604
11605 # Conditionalize the makefile for this target machine.
11606 tmake_file_=
11607 for f in ${tmake_file}
11608 do
11609         if test -f ${srcdir}/config/$f
11610         then
11611                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11612         fi
11613 done
11614 tmake_file="${tmake_file_}"
11615
11616 out_object_file=`basename $out_file .c`.o
11617 common_out_object_file=`basename $common_out_file .c`.o
11618
11619 tm_file_list="options.h"
11620 tm_include_list="options.h insn-constants.h"
11621 for f in $tm_file; do
11622   case $f in
11623     ./* )
11624        f=`echo $f | sed 's/^..//'`
11625        tm_file_list="${tm_file_list} $f"
11626        tm_include_list="${tm_include_list} $f"
11627        ;;
11628     defaults.h )
11629        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11630        tm_include_list="${tm_include_list} $f"
11631        ;;
11632     * )
11633        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11634        tm_include_list="${tm_include_list} config/$f"
11635        ;;
11636   esac
11637 done
11638
11639 libgcc_tm_file_list=
11640 libgcc_tm_include_list=
11641 for f in $libgcc_tm_file; do
11642   libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11643   libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11644 done
11645
11646 tm_p_file_list=
11647 tm_p_include_list=
11648 for f in $tm_p_file; do
11649   case $f in
11650     tm-preds.h )
11651        tm_p_file_list="${tm_p_file_list} $f"
11652        tm_p_include_list="${tm_p_include_list} $f"
11653        ;;
11654     * )
11655        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11656        tm_p_include_list="${tm_p_include_list} config/$f"
11657   esac
11658 done
11659
11660 xm_file_list=
11661 xm_include_list=
11662 for f in $xm_file; do
11663   case $f in
11664     ansidecl.h )
11665        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11666        xm_include_list="${xm_include_list} $f"
11667        ;;
11668     auto-host.h )
11669        xm_file_list="${xm_file_list} $f"
11670        xm_include_list="${xm_include_list} $f"
11671        ;;
11672     * )
11673        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11674        xm_include_list="${xm_include_list} config/$f"
11675        ;;
11676   esac
11677 done
11678
11679 host_xm_file_list=
11680 host_xm_include_list=
11681 for f in $host_xm_file; do
11682   case $f in
11683     ansidecl.h )
11684        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11685        host_xm_include_list="${host_xm_include_list} $f"
11686        ;;
11687     auto-host.h )
11688        host_xm_file_list="${host_xm_file_list} $f"
11689        host_xm_include_list="${host_xm_include_list} $f"
11690        ;;
11691     * )
11692        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11693        host_xm_include_list="${host_xm_include_list} config/$f"
11694        ;;
11695   esac
11696 done
11697
11698 build_xm_file_list=
11699 for f in $build_xm_file; do
11700   case $f in
11701     ansidecl.h )
11702        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11703        build_xm_include_list="${build_xm_include_list} $f"
11704        ;;
11705     auto-build.h | auto-host.h )
11706        build_xm_file_list="${build_xm_file_list} $f"
11707        build_xm_include_list="${build_xm_include_list} $f"
11708        ;;
11709     * )
11710        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11711        build_xm_include_list="${build_xm_include_list} config/$f"
11712        ;;
11713   esac
11714 done
11715
11716 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11717 # cross-compiler which does not use the native headers and libraries.
11718 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11719 CROSS=
11720 ALL=all.internal
11721 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11722
11723 if test "x$with_build_sysroot" != x; then
11724   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11725 else
11726   # This value is used, even on a native system, because
11727   # CROSS_SYSTEM_HEADER_DIR is just
11728   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11729   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11730 fi
11731
11732 if test x$host != x$target
11733 then
11734         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11735         ALL=all.cross
11736         SYSTEM_HEADER_DIR=$build_system_header_dir
11737         case "$host","$target" in
11738         # Darwin crosses can use the host system's libraries and headers,
11739         # because of the fat library support.  Of course, it must be the
11740         # same version of Darwin on both sides.  Allow the user to
11741         # just say --target=foo-darwin without a version number to mean
11742         # "the version on this system".
11743             *-*-darwin*,*-*-darwin*)
11744                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11745                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11746                 if test $hostos = $targetos -o $targetos = darwin ; then
11747                     CROSS=
11748                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11749                     with_headers=yes
11750                 fi
11751                 ;;
11752
11753             i?86-*-*,x86_64-*-* \
11754             | powerpc*-*-*,powerpc64*-*-*)
11755                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11756         esac
11757
11758         case $target in
11759                 *-*-mingw*)
11760                         if test "x$with_headers" = x; then
11761                                 with_headers=yes
11762                         fi
11763                         ;;
11764                 *)
11765                         ;;
11766         esac
11767 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11768         SYSTEM_HEADER_DIR=$build_system_header_dir
11769 fi
11770
11771 # If this is a cross-compiler that does not
11772 # have its own set of headers then define
11773 # inhibit_libc
11774
11775 # If this is using newlib, without having the headers available now,
11776 # then define inhibit_libc in LIBGCC2_CFLAGS.
11777 # This prevents libgcc2 from containing any code which requires libc
11778 # support.
11779 : ${inhibit_libc=false}
11780 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11781        test x$with_newlib = xyes ; } &&
11782      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11783        inhibit_libc=true
11784 fi
11785
11786
11787 # When building gcc with a cross-compiler, we need to adjust things so
11788 # that the generator programs are still built with the native compiler.
11789 # Also, we cannot run fixincludes.
11790
11791 # These are the normal (build=host) settings:
11792 CC_FOR_BUILD='$(CC)'
11793 BUILD_CFLAGS='$(ALL_CFLAGS)'
11794 BUILD_LDFLAGS='$(LDFLAGS)'
11795 STMP_FIXINC=stmp-fixinc
11796
11797 # And these apply if build != host, or we are generating coverage data
11798 if test x$build != x$host || test "x$coverage_flags" != x
11799 then
11800     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11801     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11802 fi
11803
11804 # Expand extra_headers to include complete path.
11805 # This substitutes for lots of t-* files.
11806 extra_headers_list=
11807 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11808 for file in ${extra_headers} ; do
11809   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11810 done
11811
11812 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11813 if test x"$use_gcc_tgmath" = xyes
11814 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11815 fi
11816
11817 # Define collect2 in Makefile.
11818 case $host_can_use_collect2 in
11819   no) collect2= ;;
11820   *) collect2='collect2$(exeext)' ;;
11821 esac
11822
11823
11824 # Add a definition of USE_COLLECT2 if system wants one.
11825 case $use_collect2 in
11826   no) use_collect2= ;;
11827   "") ;;
11828   *)
11829     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11830     xm_defines="${xm_defines} USE_COLLECT2"
11831     case $host_can_use_collect2 in
11832       no)
11833         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11834         ;;
11835     esac
11836     ;;
11837 esac
11838
11839
11840 cat >>confdefs.h <<_ACEOF
11841 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11842 _ACEOF
11843
11844
11845 # ---------------------------
11846 # Assembler & linker features
11847 # ---------------------------
11848
11849 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11850 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11851 # However when ld-new is first executed from the build tree, libtool will
11852 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11853 # to the build tree.  While doing this we need to use the previous-stage
11854 # linker, or we have an infinite loop.  The presence of a shell script as
11855 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11856 # the gcc/collect-ld script.  So we need to know how libtool works, or
11857 # exec-tool will fail.
11858
11859
11860 case `pwd` in
11861   *\ * | *\     *)
11862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11863 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11864 esac
11865
11866
11867
11868 macro_version='2.2.7a'
11869 macro_revision='1.3134'
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883 ltmain="$ac_aux_dir/ltmain.sh"
11884
11885 # Backslashify metacharacters that are still active within
11886 # double-quoted strings.
11887 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11888
11889 # Same as above, but do not quote variable references.
11890 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11891
11892 # Sed substitution to delay expansion of an escaped shell variable in a
11893 # double_quote_subst'ed string.
11894 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11895
11896 # Sed substitution to delay expansion of an escaped single quote.
11897 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11898
11899 # Sed substitution to avoid accidental globbing in evaled expressions
11900 no_glob_subst='s/\*/\\\*/g'
11901
11902 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11903 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11904 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11905
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11907 $as_echo_n "checking how to print strings... " >&6; }
11908 # Test print first, because it will be a builtin if present.
11909 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11910    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11911   ECHO='print -r --'
11912 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11913   ECHO='printf %s\n'
11914 else
11915   # Use this function as a fallback that always works.
11916   func_fallback_echo ()
11917   {
11918     eval 'cat <<_LTECHO_EOF
11919 $1
11920 _LTECHO_EOF'
11921   }
11922   ECHO='func_fallback_echo'
11923 fi
11924
11925 # func_echo_all arg...
11926 # Invoke $ECHO with all args, space-separated.
11927 func_echo_all ()
11928 {
11929     $ECHO ""
11930 }
11931
11932 case "$ECHO" in
11933   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11934 $as_echo "printf" >&6; } ;;
11935   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11936 $as_echo "print -r" >&6; } ;;
11937   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11938 $as_echo "cat" >&6; } ;;
11939 esac
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11955 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11956 if test "${ac_cv_path_SED+set}" = set; then :
11957   $as_echo_n "(cached) " >&6
11958 else
11959             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11960      for ac_i in 1 2 3 4 5 6 7; do
11961        ac_script="$ac_script$as_nl$ac_script"
11962      done
11963      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11964      { ac_script=; unset ac_script;}
11965      if test -z "$SED"; then
11966   ac_path_SED_found=false
11967   # Loop through the user's path and test for each of PROGNAME-LIST
11968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11970 do
11971   IFS=$as_save_IFS
11972   test -z "$as_dir" && as_dir=.
11973     for ac_prog in sed gsed; do
11974     for ac_exec_ext in '' $ac_executable_extensions; do
11975       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11976       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11977 # Check for GNU ac_path_SED and select it if it is found.
11978   # Check for GNU $ac_path_SED
11979 case `"$ac_path_SED" --version 2>&1` in
11980 *GNU*)
11981   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11982 *)
11983   ac_count=0
11984   $as_echo_n 0123456789 >"conftest.in"
11985   while :
11986   do
11987     cat "conftest.in" "conftest.in" >"conftest.tmp"
11988     mv "conftest.tmp" "conftest.in"
11989     cp "conftest.in" "conftest.nl"
11990     $as_echo '' >> "conftest.nl"
11991     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11992     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11993     as_fn_arith $ac_count + 1 && ac_count=$as_val
11994     if test $ac_count -gt ${ac_path_SED_max-0}; then
11995       # Best one so far, save it but keep looking for a better one
11996       ac_cv_path_SED="$ac_path_SED"
11997       ac_path_SED_max=$ac_count
11998     fi
11999     # 10*(2^10) chars as input seems more than enough
12000     test $ac_count -gt 10 && break
12001   done
12002   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12003 esac
12004
12005       $ac_path_SED_found && break 3
12006     done
12007   done
12008   done
12009 IFS=$as_save_IFS
12010   if test -z "$ac_cv_path_SED"; then
12011     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12012   fi
12013 else
12014   ac_cv_path_SED=$SED
12015 fi
12016
12017 fi
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12019 $as_echo "$ac_cv_path_SED" >&6; }
12020  SED="$ac_cv_path_SED"
12021   rm -f conftest.sed
12022
12023 test -z "$SED" && SED=sed
12024 Xsed="$SED -e 1s/^X//"
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12037 $as_echo_n "checking for fgrep... " >&6; }
12038 if test "${ac_cv_path_FGREP+set}" = set; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12042    then ac_cv_path_FGREP="$GREP -F"
12043    else
12044      if test -z "$FGREP"; then
12045   ac_path_FGREP_found=false
12046   # Loop through the user's path and test for each of PROGNAME-LIST
12047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12049 do
12050   IFS=$as_save_IFS
12051   test -z "$as_dir" && as_dir=.
12052     for ac_prog in fgrep; do
12053     for ac_exec_ext in '' $ac_executable_extensions; do
12054       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12055       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12056 # Check for GNU ac_path_FGREP and select it if it is found.
12057   # Check for GNU $ac_path_FGREP
12058 case `"$ac_path_FGREP" --version 2>&1` in
12059 *GNU*)
12060   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12061 *)
12062   ac_count=0
12063   $as_echo_n 0123456789 >"conftest.in"
12064   while :
12065   do
12066     cat "conftest.in" "conftest.in" >"conftest.tmp"
12067     mv "conftest.tmp" "conftest.in"
12068     cp "conftest.in" "conftest.nl"
12069     $as_echo 'FGREP' >> "conftest.nl"
12070     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12071     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12072     as_fn_arith $ac_count + 1 && ac_count=$as_val
12073     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12074       # Best one so far, save it but keep looking for a better one
12075       ac_cv_path_FGREP="$ac_path_FGREP"
12076       ac_path_FGREP_max=$ac_count
12077     fi
12078     # 10*(2^10) chars as input seems more than enough
12079     test $ac_count -gt 10 && break
12080   done
12081   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12082 esac
12083
12084       $ac_path_FGREP_found && break 3
12085     done
12086   done
12087   done
12088 IFS=$as_save_IFS
12089   if test -z "$ac_cv_path_FGREP"; then
12090     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12091   fi
12092 else
12093   ac_cv_path_FGREP=$FGREP
12094 fi
12095
12096    fi
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12099 $as_echo "$ac_cv_path_FGREP" >&6; }
12100  FGREP="$ac_cv_path_FGREP"
12101
12102
12103 test -z "$GREP" && GREP=grep
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123 # Check whether --with-gnu-ld was given.
12124 if test "${with_gnu_ld+set}" = set; then :
12125   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12126 else
12127   with_gnu_ld=no
12128 fi
12129
12130 ac_prog=ld
12131 if test "$GCC" = yes; then
12132   # Check if gcc -print-prog-name=ld gives a path.
12133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12134 $as_echo_n "checking for ld used by $CC... " >&6; }
12135   case $host in
12136   *-*-mingw*)
12137     # gcc leaves a trailing carriage return which upsets mingw
12138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12139   *)
12140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12141   esac
12142   case $ac_prog in
12143     # Accept absolute paths.
12144     [\\/]* | ?:[\\/]*)
12145       re_direlt='/[^/][^/]*/\.\./'
12146       # Canonicalize the pathname of ld
12147       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12148       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12149         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12150       done
12151       test -z "$LD" && LD="$ac_prog"
12152       ;;
12153   "")
12154     # If it fails, then pretend we aren't using GCC.
12155     ac_prog=ld
12156     ;;
12157   *)
12158     # If it is relative, then search for the first ld in PATH.
12159     with_gnu_ld=unknown
12160     ;;
12161   esac
12162 elif test "$with_gnu_ld" = yes; then
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12164 $as_echo_n "checking for GNU ld... " >&6; }
12165 else
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12167 $as_echo_n "checking for non-GNU ld... " >&6; }
12168 fi
12169 if test "${lt_cv_path_LD+set}" = set; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   if test -z "$LD"; then
12173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12174   for ac_dir in $PATH; do
12175     IFS="$lt_save_ifs"
12176     test -z "$ac_dir" && ac_dir=.
12177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12178       lt_cv_path_LD="$ac_dir/$ac_prog"
12179       # Check to see if the program is GNU ld.  I'd rather use --version,
12180       # but apparently some variants of GNU ld only accept -v.
12181       # Break only if it was the GNU/non-GNU ld that we prefer.
12182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12183       *GNU* | *'with BFD'*)
12184         test "$with_gnu_ld" != no && break
12185         ;;
12186       *)
12187         test "$with_gnu_ld" != yes && break
12188         ;;
12189       esac
12190     fi
12191   done
12192   IFS="$lt_save_ifs"
12193 else
12194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12195 fi
12196 fi
12197
12198 LD="$lt_cv_path_LD"
12199 if test -n "$LD"; then
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12201 $as_echo "$LD" >&6; }
12202 else
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205 fi
12206 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12209 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12213 case `$LD -v 2>&1 </dev/null` in
12214 *GNU* | *'with BFD'*)
12215   lt_cv_prog_gnu_ld=yes
12216   ;;
12217 *)
12218   lt_cv_prog_gnu_ld=no
12219   ;;
12220 esac
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12223 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12224 with_gnu_ld=$lt_cv_prog_gnu_ld
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12235 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12236 if test "${lt_cv_path_NM+set}" = set; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239   if test -n "$NM"; then
12240   # Let the user override the test.
12241   lt_cv_path_NM="$NM"
12242 else
12243   lt_nm_to_check="${ac_tool_prefix}nm"
12244   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12245     lt_nm_to_check="$lt_nm_to_check nm"
12246   fi
12247   for lt_tmp_nm in $lt_nm_to_check; do
12248     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12249     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12250       IFS="$lt_save_ifs"
12251       test -z "$ac_dir" && ac_dir=.
12252       tmp_nm="$ac_dir/$lt_tmp_nm"
12253       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12254         # Check to see if the nm accepts a BSD-compat flag.
12255         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12256         #   nm: unknown option "B" ignored
12257         # Tru64's nm complains that /dev/null is an invalid object file
12258         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12259         */dev/null* | *'Invalid file or object type'*)
12260           lt_cv_path_NM="$tmp_nm -B"
12261           break
12262           ;;
12263         *)
12264           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12265           */dev/null*)
12266             lt_cv_path_NM="$tmp_nm -p"
12267             break
12268             ;;
12269           *)
12270             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12271             continue # so that we can try to find one that supports BSD flags
12272             ;;
12273           esac
12274           ;;
12275         esac
12276       fi
12277     done
12278     IFS="$lt_save_ifs"
12279   done
12280   : ${lt_cv_path_NM=no}
12281 fi
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12284 $as_echo "$lt_cv_path_NM" >&6; }
12285 if test "$lt_cv_path_NM" != "no"; then
12286   NM="$lt_cv_path_NM"
12287 else
12288   # Didn't find any BSD compatible name lister, look for dumpbin.
12289   if test -n "$DUMPBIN"; then :
12290     # Let the user override the test.
12291   else
12292     if test -n "$ac_tool_prefix"; then
12293   for ac_prog in dumpbin "link -dump"
12294   do
12295     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12300   $as_echo_n "(cached) " >&6
12301 else
12302   if test -n "$DUMPBIN"; then
12303   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12304 else
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308   IFS=$as_save_IFS
12309   test -z "$as_dir" && as_dir=.
12310     for ac_exec_ext in '' $ac_executable_extensions; do
12311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314     break 2
12315   fi
12316 done
12317   done
12318 IFS=$as_save_IFS
12319
12320 fi
12321 fi
12322 DUMPBIN=$ac_cv_prog_DUMPBIN
12323 if test -n "$DUMPBIN"; then
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12325 $as_echo "$DUMPBIN" >&6; }
12326 else
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12329 fi
12330
12331
12332     test -n "$DUMPBIN" && break
12333   done
12334 fi
12335 if test -z "$DUMPBIN"; then
12336   ac_ct_DUMPBIN=$DUMPBIN
12337   for ac_prog in dumpbin "link -dump"
12338 do
12339   # Extract the first word of "$ac_prog", so it can be a program name with args.
12340 set dummy $ac_prog; ac_word=$2
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342 $as_echo_n "checking for $ac_word... " >&6; }
12343 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12344   $as_echo_n "(cached) " >&6
12345 else
12346   if test -n "$ac_ct_DUMPBIN"; then
12347   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12348 else
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12351 do
12352   IFS=$as_save_IFS
12353   test -z "$as_dir" && as_dir=.
12354     for ac_exec_ext in '' $ac_executable_extensions; do
12355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358     break 2
12359   fi
12360 done
12361   done
12362 IFS=$as_save_IFS
12363
12364 fi
12365 fi
12366 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12367 if test -n "$ac_ct_DUMPBIN"; then
12368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12369 $as_echo "$ac_ct_DUMPBIN" >&6; }
12370 else
12371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12373 fi
12374
12375
12376   test -n "$ac_ct_DUMPBIN" && break
12377 done
12378
12379   if test "x$ac_ct_DUMPBIN" = x; then
12380     DUMPBIN=":"
12381   else
12382     case $cross_compiling:$ac_tool_warned in
12383 yes:)
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12386 ac_tool_warned=yes ;;
12387 esac
12388     DUMPBIN=$ac_ct_DUMPBIN
12389   fi
12390 fi
12391
12392     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12393     *COFF*)
12394       DUMPBIN="$DUMPBIN -symbols"
12395       ;;
12396     *)
12397       DUMPBIN=:
12398       ;;
12399     esac
12400   fi
12401
12402   if test "$DUMPBIN" != ":"; then
12403     NM="$DUMPBIN"
12404   fi
12405 fi
12406 test -z "$NM" && NM=nm
12407
12408
12409
12410
12411
12412
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12414 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12415 if test "${lt_cv_nm_interface+set}" = set; then :
12416   $as_echo_n "(cached) " >&6
12417 else
12418   lt_cv_nm_interface="BSD nm"
12419   echo "int some_variable = 0;" > conftest.$ac_ext
12420   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12421   (eval "$ac_compile" 2>conftest.err)
12422   cat conftest.err >&5
12423   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12424   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12425   cat conftest.err >&5
12426   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12427   cat conftest.out >&5
12428   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12429     lt_cv_nm_interface="MS dumpbin"
12430   fi
12431   rm -f conftest*
12432 fi
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12434 $as_echo "$lt_cv_nm_interface" >&6; }
12435
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12437 $as_echo_n "checking whether ln -s works... " >&6; }
12438 LN_S=$as_ln_s
12439 if test "$LN_S" = "ln -s"; then
12440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441 $as_echo "yes" >&6; }
12442 else
12443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12444 $as_echo "no, using $LN_S" >&6; }
12445 fi
12446
12447 # find the maximum length of command line arguments
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12449 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12450 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12451   $as_echo_n "(cached) " >&6
12452 else
12453     i=0
12454   teststring="ABCD"
12455
12456   case $build_os in
12457   msdosdjgpp*)
12458     # On DJGPP, this test can blow up pretty badly due to problems in libc
12459     # (any single argument exceeding 2000 bytes causes a buffer overrun
12460     # during glob expansion).  Even if it were fixed, the result of this
12461     # check would be larger than it should be.
12462     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12463     ;;
12464
12465   gnu*)
12466     # Under GNU Hurd, this test is not required because there is
12467     # no limit to the length of command line arguments.
12468     # Libtool will interpret -1 as no limit whatsoever
12469     lt_cv_sys_max_cmd_len=-1;
12470     ;;
12471
12472   cygwin* | mingw* | cegcc*)
12473     # On Win9x/ME, this test blows up -- it succeeds, but takes
12474     # about 5 minutes as the teststring grows exponentially.
12475     # Worse, since 9x/ME are not pre-emptively multitasking,
12476     # you end up with a "frozen" computer, even though with patience
12477     # the test eventually succeeds (with a max line length of 256k).
12478     # Instead, let's just punt: use the minimum linelength reported by
12479     # all of the supported platforms: 8192 (on NT/2K/XP).
12480     lt_cv_sys_max_cmd_len=8192;
12481     ;;
12482
12483   mint*)
12484     # On MiNT this can take a long time and run out of memory.
12485     lt_cv_sys_max_cmd_len=8192;
12486     ;;
12487
12488   amigaos*)
12489     # On AmigaOS with pdksh, this test takes hours, literally.
12490     # So we just punt and use a minimum line length of 8192.
12491     lt_cv_sys_max_cmd_len=8192;
12492     ;;
12493
12494   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12495     # This has been around since 386BSD, at least.  Likely further.
12496     if test -x /sbin/sysctl; then
12497       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12498     elif test -x /usr/sbin/sysctl; then
12499       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12500     else
12501       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12502     fi
12503     # And add a safety zone
12504     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12505     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12506     ;;
12507
12508   interix*)
12509     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12510     lt_cv_sys_max_cmd_len=196608
12511     ;;
12512
12513   osf*)
12514     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12515     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12516     # nice to cause kernel panics so lets avoid the loop below.
12517     # First set a reasonable default.
12518     lt_cv_sys_max_cmd_len=16384
12519     #
12520     if test -x /sbin/sysconfig; then
12521       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12522         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12523       esac
12524     fi
12525     ;;
12526   sco3.2v5*)
12527     lt_cv_sys_max_cmd_len=102400
12528     ;;
12529   sysv5* | sco5v6* | sysv4.2uw2*)
12530     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12531     if test -n "$kargmax"; then
12532       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12533     else
12534       lt_cv_sys_max_cmd_len=32768
12535     fi
12536     ;;
12537   *)
12538     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12539     if test -n "$lt_cv_sys_max_cmd_len"; then
12540       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12541       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12542     else
12543       # Make teststring a little bigger before we do anything with it.
12544       # a 1K string should be a reasonable start.
12545       for i in 1 2 3 4 5 6 7 8 ; do
12546         teststring=$teststring$teststring
12547       done
12548       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12549       # If test is not a shell built-in, we'll probably end up computing a
12550       # maximum length that is only half of the actual maximum length, but
12551       # we can't tell.
12552       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12553                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12554               test $i != 17 # 1/2 MB should be enough
12555       do
12556         i=`expr $i + 1`
12557         teststring=$teststring$teststring
12558       done
12559       # Only check the string length outside the loop.
12560       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12561       teststring=
12562       # Add a significant safety factor because C++ compilers can tack on
12563       # massive amounts of additional arguments before passing them to the
12564       # linker.  It appears as though 1/2 is a usable value.
12565       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12566     fi
12567     ;;
12568   esac
12569
12570 fi
12571
12572 if test -n $lt_cv_sys_max_cmd_len ; then
12573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12574 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12575 else
12576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12577 $as_echo "none" >&6; }
12578 fi
12579 max_cmd_len=$lt_cv_sys_max_cmd_len
12580
12581
12582
12583
12584
12585
12586 : ${CP="cp -f"}
12587 : ${MV="mv -f"}
12588 : ${RM="rm -f"}
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12591 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12592 # Try some XSI features
12593 xsi_shell=no
12594 ( _lt_dummy="a/b/c"
12595   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12596       = c,a/b,, \
12597     && eval 'test $(( 1 + 1 )) -eq 2 \
12598     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12599   && xsi_shell=yes
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12601 $as_echo "$xsi_shell" >&6; }
12602
12603
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12605 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12606 lt_shell_append=no
12607 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12608     >/dev/null 2>&1 \
12609   && lt_shell_append=yes
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12611 $as_echo "$lt_shell_append" >&6; }
12612
12613
12614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12615   lt_unset=unset
12616 else
12617   lt_unset=false
12618 fi
12619
12620
12621
12622
12623
12624 # test EBCDIC or ASCII
12625 case `echo X|tr X '\101'` in
12626  A) # ASCII based system
12627     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12628   lt_SP2NL='tr \040 \012'
12629   lt_NL2SP='tr \015\012 \040\040'
12630   ;;
12631  *) # EBCDIC based system
12632   lt_SP2NL='tr \100 \n'
12633   lt_NL2SP='tr \r\n \100\100'
12634   ;;
12635 esac
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12646 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12647 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12648   $as_echo_n "(cached) " >&6
12649 else
12650   lt_cv_ld_reload_flag='-r'
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12653 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12654 reload_flag=$lt_cv_ld_reload_flag
12655 case $reload_flag in
12656 "" | " "*) ;;
12657 *) reload_flag=" $reload_flag" ;;
12658 esac
12659 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12660 case $host_os in
12661   darwin*)
12662     if test "$GCC" = yes; then
12663       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12664     else
12665       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12666     fi
12667     ;;
12668 esac
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678 if test -n "$ac_tool_prefix"; then
12679   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12680 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682 $as_echo_n "checking for $ac_word... " >&6; }
12683 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12684   $as_echo_n "(cached) " >&6
12685 else
12686   if test -n "$OBJDUMP"; then
12687   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12688 else
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12691 do
12692   IFS=$as_save_IFS
12693   test -z "$as_dir" && as_dir=.
12694     for ac_exec_ext in '' $ac_executable_extensions; do
12695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12696     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698     break 2
12699   fi
12700 done
12701   done
12702 IFS=$as_save_IFS
12703
12704 fi
12705 fi
12706 OBJDUMP=$ac_cv_prog_OBJDUMP
12707 if test -n "$OBJDUMP"; then
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12709 $as_echo "$OBJDUMP" >&6; }
12710 else
12711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12713 fi
12714
12715
12716 fi
12717 if test -z "$ac_cv_prog_OBJDUMP"; then
12718   ac_ct_OBJDUMP=$OBJDUMP
12719   # Extract the first word of "objdump", so it can be a program name with args.
12720 set dummy objdump; ac_word=$2
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722 $as_echo_n "checking for $ac_word... " >&6; }
12723 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726   if test -n "$ac_ct_OBJDUMP"; then
12727   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12728 else
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12731 do
12732   IFS=$as_save_IFS
12733   test -z "$as_dir" && as_dir=.
12734     for ac_exec_ext in '' $ac_executable_extensions; do
12735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12736     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738     break 2
12739   fi
12740 done
12741   done
12742 IFS=$as_save_IFS
12743
12744 fi
12745 fi
12746 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12747 if test -n "$ac_ct_OBJDUMP"; then
12748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12749 $as_echo "$ac_ct_OBJDUMP" >&6; }
12750 else
12751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12753 fi
12754
12755   if test "x$ac_ct_OBJDUMP" = x; then
12756     OBJDUMP="false"
12757   else
12758     case $cross_compiling:$ac_tool_warned in
12759 yes:)
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12762 ac_tool_warned=yes ;;
12763 esac
12764     OBJDUMP=$ac_ct_OBJDUMP
12765   fi
12766 else
12767   OBJDUMP="$ac_cv_prog_OBJDUMP"
12768 fi
12769
12770 test -z "$OBJDUMP" && OBJDUMP=objdump
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12781 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12782 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   lt_cv_file_magic_cmd='$MAGIC_CMD'
12786 lt_cv_file_magic_test_file=
12787 lt_cv_deplibs_check_method='unknown'
12788 # Need to set the preceding variable on all platforms that support
12789 # interlibrary dependencies.
12790 # 'none' -- dependencies not supported.
12791 # `unknown' -- same as none, but documents that we really don't know.
12792 # 'pass_all' -- all dependencies passed with no checks.
12793 # 'test_compile' -- check by making test program.
12794 # 'file_magic [[regex]]' -- check by looking for files in library path
12795 # which responds to the $file_magic_cmd with a given extended regex.
12796 # If you have `file' or equivalent on your system and you're not sure
12797 # whether `pass_all' will *always* work, you probably want this one.
12798
12799 case $host_os in
12800 aix[4-9]*)
12801   lt_cv_deplibs_check_method=pass_all
12802   ;;
12803
12804 beos*)
12805   lt_cv_deplibs_check_method=pass_all
12806   ;;
12807
12808 bsdi[45]*)
12809   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12810   lt_cv_file_magic_cmd='/usr/bin/file -L'
12811   lt_cv_file_magic_test_file=/shlib/libc.so
12812   ;;
12813
12814 cygwin*)
12815   # func_win32_libid is a shell function defined in ltmain.sh
12816   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12817   lt_cv_file_magic_cmd='func_win32_libid'
12818   ;;
12819
12820 mingw* | pw32*)
12821   # Base MSYS/MinGW do not provide the 'file' command needed by
12822   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12823   # unless we find 'file', for example because we are cross-compiling.
12824   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12825   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12826     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12827     lt_cv_file_magic_cmd='func_win32_libid'
12828   else
12829     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12830     lt_cv_file_magic_cmd='$OBJDUMP -f'
12831   fi
12832   ;;
12833
12834 cegcc*)
12835   # use the weaker test based on 'objdump'. See mingw*.
12836   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12837   lt_cv_file_magic_cmd='$OBJDUMP -f'
12838   ;;
12839
12840 darwin* | rhapsody*)
12841   lt_cv_deplibs_check_method=pass_all
12842   ;;
12843
12844 freebsd* | dragonfly*)
12845   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12846     case $host_cpu in
12847     i*86 )
12848       # Not sure whether the presence of OpenBSD here was a mistake.
12849       # Let's accept both of them until this is cleared up.
12850       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12851       lt_cv_file_magic_cmd=/usr/bin/file
12852       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12853       ;;
12854     esac
12855   else
12856     lt_cv_deplibs_check_method=pass_all
12857   fi
12858   ;;
12859
12860 gnu*)
12861   lt_cv_deplibs_check_method=pass_all
12862   ;;
12863
12864 haiku*)
12865   lt_cv_deplibs_check_method=pass_all
12866   ;;
12867
12868 hpux10.20* | hpux11*)
12869   lt_cv_file_magic_cmd=/usr/bin/file
12870   case $host_cpu in
12871   ia64*)
12872     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12873     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12874     ;;
12875   hppa*64*)
12876     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]'
12877     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12878     ;;
12879   *)
12880     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12881     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12882     ;;
12883   esac
12884   ;;
12885
12886 interix[3-9]*)
12887   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12888   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12889   ;;
12890
12891 irix5* | irix6* | nonstopux*)
12892   case $LD in
12893   *-32|*"-32 ") libmagic=32-bit;;
12894   *-n32|*"-n32 ") libmagic=N32;;
12895   *-64|*"-64 ") libmagic=64-bit;;
12896   *) libmagic=never-match;;
12897   esac
12898   lt_cv_deplibs_check_method=pass_all
12899   ;;
12900
12901 # This must be Linux ELF.
12902 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12903   lt_cv_deplibs_check_method=pass_all
12904   ;;
12905
12906 netbsd*)
12907   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12908     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12909   else
12910     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12911   fi
12912   ;;
12913
12914 newos6*)
12915   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12916   lt_cv_file_magic_cmd=/usr/bin/file
12917   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12918   ;;
12919
12920 *nto* | *qnx*)
12921   lt_cv_deplibs_check_method=pass_all
12922   ;;
12923
12924 openbsd*)
12925   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12926     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12927   else
12928     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12929   fi
12930   ;;
12931
12932 osf3* | osf4* | osf5*)
12933   lt_cv_deplibs_check_method=pass_all
12934   ;;
12935
12936 rdos*)
12937   lt_cv_deplibs_check_method=pass_all
12938   ;;
12939
12940 solaris*)
12941   lt_cv_deplibs_check_method=pass_all
12942   ;;
12943
12944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12945   lt_cv_deplibs_check_method=pass_all
12946   ;;
12947
12948 sysv4 | sysv4.3*)
12949   case $host_vendor in
12950   motorola)
12951     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]'
12952     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12953     ;;
12954   ncr)
12955     lt_cv_deplibs_check_method=pass_all
12956     ;;
12957   sequent)
12958     lt_cv_file_magic_cmd='/bin/file'
12959     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12960     ;;
12961   sni)
12962     lt_cv_file_magic_cmd='/bin/file'
12963     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12964     lt_cv_file_magic_test_file=/lib/libc.so
12965     ;;
12966   siemens)
12967     lt_cv_deplibs_check_method=pass_all
12968     ;;
12969   pc)
12970     lt_cv_deplibs_check_method=pass_all
12971     ;;
12972   esac
12973   ;;
12974
12975 tpf*)
12976   lt_cv_deplibs_check_method=pass_all
12977   ;;
12978 esac
12979
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12982 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12983 file_magic_cmd=$lt_cv_file_magic_cmd
12984 deplibs_check_method=$lt_cv_deplibs_check_method
12985 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998 if test -n "$ac_tool_prefix"; then
12999   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13000 set dummy ${ac_tool_prefix}ar; ac_word=$2
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002 $as_echo_n "checking for $ac_word... " >&6; }
13003 if test "${ac_cv_prog_AR+set}" = set; then :
13004   $as_echo_n "(cached) " >&6
13005 else
13006   if test -n "$AR"; then
13007   ac_cv_prog_AR="$AR" # Let the user override the test.
13008 else
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13011 do
13012   IFS=$as_save_IFS
13013   test -z "$as_dir" && as_dir=.
13014     for ac_exec_ext in '' $ac_executable_extensions; do
13015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13016     ac_cv_prog_AR="${ac_tool_prefix}ar"
13017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018     break 2
13019   fi
13020 done
13021   done
13022 IFS=$as_save_IFS
13023
13024 fi
13025 fi
13026 AR=$ac_cv_prog_AR
13027 if test -n "$AR"; then
13028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13029 $as_echo "$AR" >&6; }
13030 else
13031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 $as_echo "no" >&6; }
13033 fi
13034
13035
13036 fi
13037 if test -z "$ac_cv_prog_AR"; then
13038   ac_ct_AR=$AR
13039   # Extract the first word of "ar", so it can be a program name with args.
13040 set dummy ar; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13044   $as_echo_n "(cached) " >&6
13045 else
13046   if test -n "$ac_ct_AR"; then
13047   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13048 else
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13051 do
13052   IFS=$as_save_IFS
13053   test -z "$as_dir" && as_dir=.
13054     for ac_exec_ext in '' $ac_executable_extensions; do
13055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13056     ac_cv_prog_ac_ct_AR="ar"
13057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058     break 2
13059   fi
13060 done
13061   done
13062 IFS=$as_save_IFS
13063
13064 fi
13065 fi
13066 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13067 if test -n "$ac_ct_AR"; then
13068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13069 $as_echo "$ac_ct_AR" >&6; }
13070 else
13071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13073 fi
13074
13075   if test "x$ac_ct_AR" = x; then
13076     AR="false"
13077   else
13078     case $cross_compiling:$ac_tool_warned in
13079 yes:)
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13082 ac_tool_warned=yes ;;
13083 esac
13084     AR=$ac_ct_AR
13085   fi
13086 else
13087   AR="$ac_cv_prog_AR"
13088 fi
13089
13090 test -z "$AR" && AR=ar
13091 test -z "$AR_FLAGS" && AR_FLAGS=cru
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103 if test -n "$ac_tool_prefix"; then
13104   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13105 set dummy ${ac_tool_prefix}strip; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if test "${ac_cv_prog_STRIP+set}" = set; then :
13109   $as_echo_n "(cached) " >&6
13110 else
13111   if test -n "$STRIP"; then
13112   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13113 else
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13116 do
13117   IFS=$as_save_IFS
13118   test -z "$as_dir" && as_dir=.
13119     for ac_exec_ext in '' $ac_executable_extensions; do
13120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13121     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123     break 2
13124   fi
13125 done
13126   done
13127 IFS=$as_save_IFS
13128
13129 fi
13130 fi
13131 STRIP=$ac_cv_prog_STRIP
13132 if test -n "$STRIP"; then
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13134 $as_echo "$STRIP" >&6; }
13135 else
13136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 fi
13139
13140
13141 fi
13142 if test -z "$ac_cv_prog_STRIP"; then
13143   ac_ct_STRIP=$STRIP
13144   # Extract the first word of "strip", so it can be a program name with args.
13145 set dummy strip; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13149   $as_echo_n "(cached) " >&6
13150 else
13151   if test -n "$ac_ct_STRIP"; then
13152   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13153 else
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $PATH
13156 do
13157   IFS=$as_save_IFS
13158   test -z "$as_dir" && as_dir=.
13159     for ac_exec_ext in '' $ac_executable_extensions; do
13160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13161     ac_cv_prog_ac_ct_STRIP="strip"
13162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163     break 2
13164   fi
13165 done
13166   done
13167 IFS=$as_save_IFS
13168
13169 fi
13170 fi
13171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13172 if test -n "$ac_ct_STRIP"; then
13173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13174 $as_echo "$ac_ct_STRIP" >&6; }
13175 else
13176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177 $as_echo "no" >&6; }
13178 fi
13179
13180   if test "x$ac_ct_STRIP" = x; then
13181     STRIP=":"
13182   else
13183     case $cross_compiling:$ac_tool_warned in
13184 yes:)
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13187 ac_tool_warned=yes ;;
13188 esac
13189     STRIP=$ac_ct_STRIP
13190   fi
13191 else
13192   STRIP="$ac_cv_prog_STRIP"
13193 fi
13194
13195 test -z "$STRIP" && STRIP=:
13196
13197
13198
13199
13200
13201
13202 if test -n "$ac_tool_prefix"; then
13203   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13204 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206 $as_echo_n "checking for $ac_word... " >&6; }
13207 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13208   $as_echo_n "(cached) " >&6
13209 else
13210   if test -n "$RANLIB"; then
13211   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13212 else
13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214 for as_dir in $PATH
13215 do
13216   IFS=$as_save_IFS
13217   test -z "$as_dir" && as_dir=.
13218     for ac_exec_ext in '' $ac_executable_extensions; do
13219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13220     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222     break 2
13223   fi
13224 done
13225   done
13226 IFS=$as_save_IFS
13227
13228 fi
13229 fi
13230 RANLIB=$ac_cv_prog_RANLIB
13231 if test -n "$RANLIB"; then
13232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13233 $as_echo "$RANLIB" >&6; }
13234 else
13235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13237 fi
13238
13239
13240 fi
13241 if test -z "$ac_cv_prog_RANLIB"; then
13242   ac_ct_RANLIB=$RANLIB
13243   # Extract the first word of "ranlib", so it can be a program name with args.
13244 set dummy ranlib; ac_word=$2
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246 $as_echo_n "checking for $ac_word... " >&6; }
13247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13248   $as_echo_n "(cached) " >&6
13249 else
13250   if test -n "$ac_ct_RANLIB"; then
13251   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13252 else
13253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254 for as_dir in $PATH
13255 do
13256   IFS=$as_save_IFS
13257   test -z "$as_dir" && as_dir=.
13258     for ac_exec_ext in '' $ac_executable_extensions; do
13259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13260     ac_cv_prog_ac_ct_RANLIB="ranlib"
13261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262     break 2
13263   fi
13264 done
13265   done
13266 IFS=$as_save_IFS
13267
13268 fi
13269 fi
13270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13271 if test -n "$ac_ct_RANLIB"; then
13272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13273 $as_echo "$ac_ct_RANLIB" >&6; }
13274 else
13275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13277 fi
13278
13279   if test "x$ac_ct_RANLIB" = x; then
13280     RANLIB=":"
13281   else
13282     case $cross_compiling:$ac_tool_warned in
13283 yes:)
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13286 ac_tool_warned=yes ;;
13287 esac
13288     RANLIB=$ac_ct_RANLIB
13289   fi
13290 else
13291   RANLIB="$ac_cv_prog_RANLIB"
13292 fi
13293
13294 test -z "$RANLIB" && RANLIB=:
13295
13296
13297
13298
13299
13300
13301 # Determine commands to create old-style static archives.
13302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13303 old_postinstall_cmds='chmod 644 $oldlib'
13304 old_postuninstall_cmds=
13305
13306 if test -n "$RANLIB"; then
13307   case $host_os in
13308   openbsd*)
13309     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13310     ;;
13311   *)
13312     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13313     ;;
13314   esac
13315   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13316 fi
13317
13318 case $host_os in
13319   darwin*)
13320     lock_old_archive_extraction=yes ;;
13321   *)
13322     lock_old_archive_extraction=no ;;
13323 esac
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363 # If no C compiler was specified, use CC.
13364 LTCC=${LTCC-"$CC"}
13365
13366 # If no C compiler flags were specified, use CFLAGS.
13367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13368
13369 # Allow CC to be a program name with arguments.
13370 compiler=$CC
13371
13372
13373 # Check for command to grab the raw symbol name followed by C symbol from nm.
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13375 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13376 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379
13380 # These are sane defaults that work on at least a few old systems.
13381 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13382
13383 # Character class describing NM global symbol codes.
13384 symcode='[BCDEGRST]'
13385
13386 # Regexp to match symbols that can be accessed directly from C.
13387 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13388
13389 # Define system-specific variables.
13390 case $host_os in
13391 aix*)
13392   symcode='[BCDT]'
13393   ;;
13394 cygwin* | mingw* | pw32* | cegcc*)
13395   symcode='[ABCDGISTW]'
13396   ;;
13397 hpux*)
13398   if test "$host_cpu" = ia64; then
13399     symcode='[ABCDEGRST]'
13400   fi
13401   ;;
13402 irix* | nonstopux*)
13403   symcode='[BCDEGRST]'
13404   ;;
13405 osf*)
13406   symcode='[BCDEGQRST]'
13407   ;;
13408 solaris*)
13409   symcode='[BDRT]'
13410   ;;
13411 sco3.2v5*)
13412   symcode='[DT]'
13413   ;;
13414 sysv4.2uw2*)
13415   symcode='[DT]'
13416   ;;
13417 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13418   symcode='[ABDT]'
13419   ;;
13420 sysv4)
13421   symcode='[DFNSTU]'
13422   ;;
13423 esac
13424
13425 # If we're using GNU nm, then use its standard symbol codes.
13426 case `$NM -V 2>&1` in
13427 *GNU* | *'with BFD'*)
13428   symcode='[ABCDGIRSTW]' ;;
13429 esac
13430
13431 # Transform an extracted symbol line into a proper C declaration.
13432 # Some systems (esp. on ia64) link data and code symbols differently,
13433 # so use this general approach.
13434 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13435
13436 # Transform an extracted symbol line into symbol name and symbol address
13437 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13438 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'"
13439
13440 # Handle CRLF in mingw tool chain
13441 opt_cr=
13442 case $build_os in
13443 mingw*)
13444   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13445   ;;
13446 esac
13447
13448 # Try without a prefix underscore, then with it.
13449 for ac_symprfx in "" "_"; do
13450
13451   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13452   symxfrm="\\1 $ac_symprfx\\2 \\2"
13453
13454   # Write the raw and C identifiers.
13455   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13456     # Fake it for dumpbin and say T for any non-static function
13457     # and D for any global variable.
13458     # Also find C++ and __fastcall symbols from MSVC++,
13459     # which start with @ or ?.
13460     lt_cv_sys_global_symbol_pipe="$AWK '"\
13461 "     {last_section=section; section=\$ 3};"\
13462 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13463 "     \$ 0!~/External *\|/{next};"\
13464 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13465 "     {if(hide[section]) next};"\
13466 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13467 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13468 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13469 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13470 "     ' prfx=^$ac_symprfx"
13471   else
13472     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13473   fi
13474
13475   # Check to see that the pipe works correctly.
13476   pipe_works=no
13477
13478   rm -f conftest*
13479   cat > conftest.$ac_ext <<_LT_EOF
13480 #ifdef __cplusplus
13481 extern "C" {
13482 #endif
13483 char nm_test_var;
13484 void nm_test_func(void);
13485 void nm_test_func(void){}
13486 #ifdef __cplusplus
13487 }
13488 #endif
13489 int main(){nm_test_var='a';nm_test_func();return(0);}
13490 _LT_EOF
13491
13492   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13493   (eval $ac_compile) 2>&5
13494   ac_status=$?
13495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13496   test $ac_status = 0; }; then
13497     # Now try to grab the symbols.
13498     nlist=conftest.nm
13499     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13500   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13501   ac_status=$?
13502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503   test $ac_status = 0; } && test -s "$nlist"; then
13504       # Try sorting and uniquifying the output.
13505       if sort "$nlist" | uniq > "$nlist"T; then
13506         mv -f "$nlist"T "$nlist"
13507       else
13508         rm -f "$nlist"T
13509       fi
13510
13511       # Make sure that we snagged all the symbols we need.
13512       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13513         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13514           cat <<_LT_EOF > conftest.$ac_ext
13515 #ifdef __cplusplus
13516 extern "C" {
13517 #endif
13518
13519 _LT_EOF
13520           # Now generate the symbol file.
13521           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13522
13523           cat <<_LT_EOF >> conftest.$ac_ext
13524
13525 /* The mapping between symbol names and symbols.  */
13526 const struct {
13527   const char *name;
13528   void       *address;
13529 }
13530 lt__PROGRAM__LTX_preloaded_symbols[] =
13531 {
13532   { "@PROGRAM@", (void *) 0 },
13533 _LT_EOF
13534           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13535           cat <<\_LT_EOF >> conftest.$ac_ext
13536   {0, (void *) 0}
13537 };
13538
13539 /* This works around a problem in FreeBSD linker */
13540 #ifdef FREEBSD_WORKAROUND
13541 static const void *lt_preloaded_setup() {
13542   return lt__PROGRAM__LTX_preloaded_symbols;
13543 }
13544 #endif
13545
13546 #ifdef __cplusplus
13547 }
13548 #endif
13549 _LT_EOF
13550           # Now try linking the two files.
13551           mv conftest.$ac_objext conftstm.$ac_objext
13552           lt_save_LIBS="$LIBS"
13553           lt_save_CFLAGS="$CFLAGS"
13554           LIBS="conftstm.$ac_objext"
13555           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13556           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13557   (eval $ac_link) 2>&5
13558   ac_status=$?
13559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13560   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13561             pipe_works=yes
13562           fi
13563           LIBS="$lt_save_LIBS"
13564           CFLAGS="$lt_save_CFLAGS"
13565         else
13566           echo "cannot find nm_test_func in $nlist" >&5
13567         fi
13568       else
13569         echo "cannot find nm_test_var in $nlist" >&5
13570       fi
13571     else
13572       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13573     fi
13574   else
13575     echo "$progname: failed program was:" >&5
13576     cat conftest.$ac_ext >&5
13577   fi
13578   rm -rf conftest* conftst*
13579
13580   # Do not use the global_symbol_pipe unless it works.
13581   if test "$pipe_works" = yes; then
13582     break
13583   else
13584     lt_cv_sys_global_symbol_pipe=
13585   fi
13586 done
13587
13588 fi
13589
13590 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13591   lt_cv_sys_global_symbol_to_cdecl=
13592 fi
13593 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13595 $as_echo "failed" >&6; }
13596 else
13597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13598 $as_echo "ok" >&6; }
13599 fi
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622 # Check whether --enable-libtool-lock was given.
13623 if test "${enable_libtool_lock+set}" = set; then :
13624   enableval=$enable_libtool_lock;
13625 fi
13626
13627 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13628
13629 # Some flags need to be propagated to the compiler or linker for good
13630 # libtool support.
13631 case $host in
13632 ia64-*-hpux*)
13633   # Find out which ABI we are using.
13634   echo 'int i;' > conftest.$ac_ext
13635   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13636   (eval $ac_compile) 2>&5
13637   ac_status=$?
13638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13639   test $ac_status = 0; }; then
13640     case `/usr/bin/file conftest.$ac_objext` in
13641       *ELF-32*)
13642         HPUX_IA64_MODE="32"
13643         ;;
13644       *ELF-64*)
13645         HPUX_IA64_MODE="64"
13646         ;;
13647     esac
13648   fi
13649   rm -rf conftest*
13650   ;;
13651 *-*-irix6*)
13652   # Find out which ABI we are using.
13653   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13654   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13655   (eval $ac_compile) 2>&5
13656   ac_status=$?
13657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13658   test $ac_status = 0; }; then
13659     if test "$lt_cv_prog_gnu_ld" = yes; then
13660       case `/usr/bin/file conftest.$ac_objext` in
13661         *32-bit*)
13662           LD="${LD-ld} -melf32bsmip"
13663           ;;
13664         *N32*)
13665           LD="${LD-ld} -melf32bmipn32"
13666           ;;
13667         *64-bit*)
13668           LD="${LD-ld} -melf64bmip"
13669         ;;
13670       esac
13671     else
13672       case `/usr/bin/file conftest.$ac_objext` in
13673         *32-bit*)
13674           LD="${LD-ld} -32"
13675           ;;
13676         *N32*)
13677           LD="${LD-ld} -n32"
13678           ;;
13679         *64-bit*)
13680           LD="${LD-ld} -64"
13681           ;;
13682       esac
13683     fi
13684   fi
13685   rm -rf conftest*
13686   ;;
13687
13688 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13689 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13690   # Find out which ABI we are using.
13691   echo 'int i;' > conftest.$ac_ext
13692   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13693   (eval $ac_compile) 2>&5
13694   ac_status=$?
13695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13696   test $ac_status = 0; }; then
13697     case `/usr/bin/file conftest.o` in
13698       *32-bit*)
13699         case $host in
13700           x86_64-*kfreebsd*-gnu)
13701             LD="${LD-ld} -m elf_i386_fbsd"
13702             ;;
13703           x86_64-*linux*)
13704             LD="${LD-ld} -m elf_i386"
13705             ;;
13706           ppc64-*linux*|powerpc64-*linux*)
13707             LD="${LD-ld} -m elf32ppclinux"
13708             ;;
13709           s390x-*linux*)
13710             LD="${LD-ld} -m elf_s390"
13711             ;;
13712           sparc64-*linux*)
13713             LD="${LD-ld} -m elf32_sparc"
13714             ;;
13715         esac
13716         ;;
13717       *64-bit*)
13718         case $host in
13719           x86_64-*kfreebsd*-gnu)
13720             LD="${LD-ld} -m elf_x86_64_fbsd"
13721             ;;
13722           x86_64-*linux*)
13723             LD="${LD-ld} -m elf_x86_64"
13724             ;;
13725           ppc*-*linux*|powerpc*-*linux*)
13726             LD="${LD-ld} -m elf64ppc"
13727             ;;
13728           s390*-*linux*|s390*-*tpf*)
13729             LD="${LD-ld} -m elf64_s390"
13730             ;;
13731           sparc*-*linux*)
13732             LD="${LD-ld} -m elf64_sparc"
13733             ;;
13734         esac
13735         ;;
13736     esac
13737   fi
13738   rm -rf conftest*
13739   ;;
13740
13741 *-*-sco3.2v5*)
13742   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13743   SAVE_CFLAGS="$CFLAGS"
13744   CFLAGS="$CFLAGS -belf"
13745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13746 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13747 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13748   $as_echo_n "(cached) " >&6
13749 else
13750   ac_ext=c
13751 ac_cpp='$CPP $CPPFLAGS'
13752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13755
13756      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h.  */
13758
13759 int
13760 main ()
13761 {
13762
13763   ;
13764   return 0;
13765 }
13766 _ACEOF
13767 if ac_fn_c_try_link "$LINENO"; then :
13768   lt_cv_cc_needs_belf=yes
13769 else
13770   lt_cv_cc_needs_belf=no
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext \
13773     conftest$ac_exeext conftest.$ac_ext
13774      ac_ext=c
13775 ac_cpp='$CPP $CPPFLAGS'
13776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13779
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13782 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13783   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13784     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13785     CFLAGS="$SAVE_CFLAGS"
13786   fi
13787   ;;
13788 sparc*-*solaris*)
13789   # Find out which ABI we are using.
13790   echo 'int i;' > conftest.$ac_ext
13791   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13792   (eval $ac_compile) 2>&5
13793   ac_status=$?
13794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13795   test $ac_status = 0; }; then
13796     case `/usr/bin/file conftest.o` in
13797     *64-bit*)
13798       case $lt_cv_prog_gnu_ld in
13799       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13800       *)
13801         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13802           LD="${LD-ld} -64"
13803         fi
13804         ;;
13805       esac
13806       ;;
13807     esac
13808   fi
13809   rm -rf conftest*
13810   ;;
13811 esac
13812
13813 need_locks="$enable_libtool_lock"
13814
13815
13816   case $host_os in
13817     rhapsody* | darwin*)
13818     if test -n "$ac_tool_prefix"; then
13819   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13820 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822 $as_echo_n "checking for $ac_word... " >&6; }
13823 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13824   $as_echo_n "(cached) " >&6
13825 else
13826   if test -n "$DSYMUTIL"; then
13827   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13828 else
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832   IFS=$as_save_IFS
13833   test -z "$as_dir" && as_dir=.
13834     for ac_exec_ext in '' $ac_executable_extensions; do
13835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13836     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13838     break 2
13839   fi
13840 done
13841   done
13842 IFS=$as_save_IFS
13843
13844 fi
13845 fi
13846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13847 if test -n "$DSYMUTIL"; then
13848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13849 $as_echo "$DSYMUTIL" >&6; }
13850 else
13851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13853 fi
13854
13855
13856 fi
13857 if test -z "$ac_cv_prog_DSYMUTIL"; then
13858   ac_ct_DSYMUTIL=$DSYMUTIL
13859   # Extract the first word of "dsymutil", so it can be a program name with args.
13860 set dummy dsymutil; ac_word=$2
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13864   $as_echo_n "(cached) " >&6
13865 else
13866   if test -n "$ac_ct_DSYMUTIL"; then
13867   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13868 else
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13871 do
13872   IFS=$as_save_IFS
13873   test -z "$as_dir" && as_dir=.
13874     for ac_exec_ext in '' $ac_executable_extensions; do
13875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13876     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13878     break 2
13879   fi
13880 done
13881   done
13882 IFS=$as_save_IFS
13883
13884 fi
13885 fi
13886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13887 if test -n "$ac_ct_DSYMUTIL"; then
13888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13890 else
13891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13893 fi
13894
13895   if test "x$ac_ct_DSYMUTIL" = x; then
13896     DSYMUTIL=":"
13897   else
13898     case $cross_compiling:$ac_tool_warned in
13899 yes:)
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13902 ac_tool_warned=yes ;;
13903 esac
13904     DSYMUTIL=$ac_ct_DSYMUTIL
13905   fi
13906 else
13907   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13908 fi
13909
13910     if test -n "$ac_tool_prefix"; then
13911   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13914 $as_echo_n "checking for $ac_word... " >&6; }
13915 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13916   $as_echo_n "(cached) " >&6
13917 else
13918   if test -n "$NMEDIT"; then
13919   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13920 else
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13923 do
13924   IFS=$as_save_IFS
13925   test -z "$as_dir" && as_dir=.
13926     for ac_exec_ext in '' $ac_executable_extensions; do
13927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13928     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13930     break 2
13931   fi
13932 done
13933   done
13934 IFS=$as_save_IFS
13935
13936 fi
13937 fi
13938 NMEDIT=$ac_cv_prog_NMEDIT
13939 if test -n "$NMEDIT"; then
13940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13941 $as_echo "$NMEDIT" >&6; }
13942 else
13943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13945 fi
13946
13947
13948 fi
13949 if test -z "$ac_cv_prog_NMEDIT"; then
13950   ac_ct_NMEDIT=$NMEDIT
13951   # Extract the first word of "nmedit", so it can be a program name with args.
13952 set dummy nmedit; ac_word=$2
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13954 $as_echo_n "checking for $ac_word... " >&6; }
13955 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13956   $as_echo_n "(cached) " >&6
13957 else
13958   if test -n "$ac_ct_NMEDIT"; then
13959   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13960 else
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13963 do
13964   IFS=$as_save_IFS
13965   test -z "$as_dir" && as_dir=.
13966     for ac_exec_ext in '' $ac_executable_extensions; do
13967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13968     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13970     break 2
13971   fi
13972 done
13973   done
13974 IFS=$as_save_IFS
13975
13976 fi
13977 fi
13978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13979 if test -n "$ac_ct_NMEDIT"; then
13980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13981 $as_echo "$ac_ct_NMEDIT" >&6; }
13982 else
13983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984 $as_echo "no" >&6; }
13985 fi
13986
13987   if test "x$ac_ct_NMEDIT" = x; then
13988     NMEDIT=":"
13989   else
13990     case $cross_compiling:$ac_tool_warned in
13991 yes:)
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13994 ac_tool_warned=yes ;;
13995 esac
13996     NMEDIT=$ac_ct_NMEDIT
13997   fi
13998 else
13999   NMEDIT="$ac_cv_prog_NMEDIT"
14000 fi
14001
14002     if test -n "$ac_tool_prefix"; then
14003   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14006 $as_echo_n "checking for $ac_word... " >&6; }
14007 if test "${ac_cv_prog_LIPO+set}" = set; then :
14008   $as_echo_n "(cached) " >&6
14009 else
14010   if test -n "$LIPO"; then
14011   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14012 else
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14015 do
14016   IFS=$as_save_IFS
14017   test -z "$as_dir" && as_dir=.
14018     for ac_exec_ext in '' $ac_executable_extensions; do
14019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14022     break 2
14023   fi
14024 done
14025   done
14026 IFS=$as_save_IFS
14027
14028 fi
14029 fi
14030 LIPO=$ac_cv_prog_LIPO
14031 if test -n "$LIPO"; then
14032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14033 $as_echo "$LIPO" >&6; }
14034 else
14035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 $as_echo "no" >&6; }
14037 fi
14038
14039
14040 fi
14041 if test -z "$ac_cv_prog_LIPO"; then
14042   ac_ct_LIPO=$LIPO
14043   # Extract the first word of "lipo", so it can be a program name with args.
14044 set dummy lipo; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14046 $as_echo_n "checking for $ac_word... " >&6; }
14047 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14048   $as_echo_n "(cached) " >&6
14049 else
14050   if test -n "$ac_ct_LIPO"; then
14051   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14052 else
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14055 do
14056   IFS=$as_save_IFS
14057   test -z "$as_dir" && as_dir=.
14058     for ac_exec_ext in '' $ac_executable_extensions; do
14059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14060     ac_cv_prog_ac_ct_LIPO="lipo"
14061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14062     break 2
14063   fi
14064 done
14065   done
14066 IFS=$as_save_IFS
14067
14068 fi
14069 fi
14070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14071 if test -n "$ac_ct_LIPO"; then
14072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14073 $as_echo "$ac_ct_LIPO" >&6; }
14074 else
14075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14077 fi
14078
14079   if test "x$ac_ct_LIPO" = x; then
14080     LIPO=":"
14081   else
14082     case $cross_compiling:$ac_tool_warned in
14083 yes:)
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14086 ac_tool_warned=yes ;;
14087 esac
14088     LIPO=$ac_ct_LIPO
14089   fi
14090 else
14091   LIPO="$ac_cv_prog_LIPO"
14092 fi
14093
14094     if test -n "$ac_tool_prefix"; then
14095   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14096 set dummy ${ac_tool_prefix}otool; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14100   $as_echo_n "(cached) " >&6
14101 else
14102   if test -n "$OTOOL"; then
14103   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14104 else
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14107 do
14108   IFS=$as_save_IFS
14109   test -z "$as_dir" && as_dir=.
14110     for ac_exec_ext in '' $ac_executable_extensions; do
14111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114     break 2
14115   fi
14116 done
14117   done
14118 IFS=$as_save_IFS
14119
14120 fi
14121 fi
14122 OTOOL=$ac_cv_prog_OTOOL
14123 if test -n "$OTOOL"; then
14124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14125 $as_echo "$OTOOL" >&6; }
14126 else
14127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 fi
14130
14131
14132 fi
14133 if test -z "$ac_cv_prog_OTOOL"; then
14134   ac_ct_OTOOL=$OTOOL
14135   # Extract the first word of "otool", so it can be a program name with args.
14136 set dummy otool; ac_word=$2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14138 $as_echo_n "checking for $ac_word... " >&6; }
14139 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14140   $as_echo_n "(cached) " >&6
14141 else
14142   if test -n "$ac_ct_OTOOL"; then
14143   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14144 else
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14147 do
14148   IFS=$as_save_IFS
14149   test -z "$as_dir" && as_dir=.
14150     for ac_exec_ext in '' $ac_executable_extensions; do
14151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14152     ac_cv_prog_ac_ct_OTOOL="otool"
14153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14154     break 2
14155   fi
14156 done
14157   done
14158 IFS=$as_save_IFS
14159
14160 fi
14161 fi
14162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14163 if test -n "$ac_ct_OTOOL"; then
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14165 $as_echo "$ac_ct_OTOOL" >&6; }
14166 else
14167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168 $as_echo "no" >&6; }
14169 fi
14170
14171   if test "x$ac_ct_OTOOL" = x; then
14172     OTOOL=":"
14173   else
14174     case $cross_compiling:$ac_tool_warned in
14175 yes:)
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14178 ac_tool_warned=yes ;;
14179 esac
14180     OTOOL=$ac_ct_OTOOL
14181   fi
14182 else
14183   OTOOL="$ac_cv_prog_OTOOL"
14184 fi
14185
14186     if test -n "$ac_tool_prefix"; then
14187   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14192   $as_echo_n "(cached) " >&6
14193 else
14194   if test -n "$OTOOL64"; then
14195   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14199 do
14200   IFS=$as_save_IFS
14201   test -z "$as_dir" && as_dir=.
14202     for ac_exec_ext in '' $ac_executable_extensions; do
14203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14206     break 2
14207   fi
14208 done
14209   done
14210 IFS=$as_save_IFS
14211
14212 fi
14213 fi
14214 OTOOL64=$ac_cv_prog_OTOOL64
14215 if test -n "$OTOOL64"; then
14216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14217 $as_echo "$OTOOL64" >&6; }
14218 else
14219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14220 $as_echo "no" >&6; }
14221 fi
14222
14223
14224 fi
14225 if test -z "$ac_cv_prog_OTOOL64"; then
14226   ac_ct_OTOOL64=$OTOOL64
14227   # Extract the first word of "otool64", so it can be a program name with args.
14228 set dummy otool64; ac_word=$2
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14230 $as_echo_n "checking for $ac_word... " >&6; }
14231 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14232   $as_echo_n "(cached) " >&6
14233 else
14234   if test -n "$ac_ct_OTOOL64"; then
14235   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14236 else
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14239 do
14240   IFS=$as_save_IFS
14241   test -z "$as_dir" && as_dir=.
14242     for ac_exec_ext in '' $ac_executable_extensions; do
14243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14244     ac_cv_prog_ac_ct_OTOOL64="otool64"
14245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14246     break 2
14247   fi
14248 done
14249   done
14250 IFS=$as_save_IFS
14251
14252 fi
14253 fi
14254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14255 if test -n "$ac_ct_OTOOL64"; then
14256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14257 $as_echo "$ac_ct_OTOOL64" >&6; }
14258 else
14259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260 $as_echo "no" >&6; }
14261 fi
14262
14263   if test "x$ac_ct_OTOOL64" = x; then
14264     OTOOL64=":"
14265   else
14266     case $cross_compiling:$ac_tool_warned in
14267 yes:)
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14270 ac_tool_warned=yes ;;
14271 esac
14272     OTOOL64=$ac_ct_OTOOL64
14273   fi
14274 else
14275   OTOOL64="$ac_cv_prog_OTOOL64"
14276 fi
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14305 $as_echo_n "checking for -single_module linker flag... " >&6; }
14306 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14307   $as_echo_n "(cached) " >&6
14308 else
14309   lt_cv_apple_cc_single_mod=no
14310       if test -z "${LT_MULTI_MODULE}"; then
14311         # By default we will add the -single_module flag. You can override
14312         # by either setting the environment variable LT_MULTI_MODULE
14313         # non-empty at configure time, or by adding -multi_module to the
14314         # link flags.
14315         rm -rf libconftest.dylib*
14316         echo "int foo(void){return 1;}" > conftest.c
14317         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14318 -dynamiclib -Wl,-single_module conftest.c" >&5
14319         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14320           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14321         _lt_result=$?
14322         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14323           lt_cv_apple_cc_single_mod=yes
14324         else
14325           cat conftest.err >&5
14326         fi
14327         rm -rf libconftest.dylib*
14328         rm -f conftest.*
14329       fi
14330 fi
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14332 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14334 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14335 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14336   $as_echo_n "(cached) " >&6
14337 else
14338   lt_cv_ld_exported_symbols_list=no
14339       save_LDFLAGS=$LDFLAGS
14340       echo "_main" > conftest.sym
14341       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14342       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h.  */
14344
14345 int
14346 main ()
14347 {
14348
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 if ac_fn_c_try_link "$LINENO"; then :
14354   lt_cv_ld_exported_symbols_list=yes
14355 else
14356   lt_cv_ld_exported_symbols_list=no
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext \
14359     conftest$ac_exeext conftest.$ac_ext
14360         LDFLAGS="$save_LDFLAGS"
14361
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14364 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14366 $as_echo_n "checking for -force_load linker flag... " >&6; }
14367 if test "${lt_cv_ld_force_load+set}" = set; then :
14368   $as_echo_n "(cached) " >&6
14369 else
14370   lt_cv_ld_force_load=no
14371       cat > conftest.c << _LT_EOF
14372 int forced_loaded() { return 2;}
14373 _LT_EOF
14374       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14375       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14376       echo "$AR cru libconftest.a conftest.o" >&5
14377       $AR cru libconftest.a conftest.o 2>&5
14378       cat > conftest.c << _LT_EOF
14379 int main() { return 0;}
14380 _LT_EOF
14381       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14382       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14383       _lt_result=$?
14384       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14385         lt_cv_ld_force_load=yes
14386       else
14387         cat conftest.err >&5
14388       fi
14389         rm -f conftest.err libconftest.a conftest conftest.c
14390         rm -rf conftest.dSYM
14391
14392 fi
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14394 $as_echo "$lt_cv_ld_force_load" >&6; }
14395     case $host_os in
14396     rhapsody* | darwin1.[012])
14397       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14398     darwin1.*)
14399       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14400     darwin*) # darwin 5.x on
14401       # if running on 10.5 or later, the deployment target defaults
14402       # to the OS version, if on x86, and 10.4, the deployment
14403       # target defaults to 10.4. Don't you love it?
14404       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14405         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14406           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14407         10.[012]*)
14408           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14409         10.*)
14410           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14411       esac
14412     ;;
14413   esac
14414     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14415       _lt_dar_single_mod='$single_module'
14416     fi
14417     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14418       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14419     else
14420       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14421     fi
14422     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14423       _lt_dsymutil='~$DSYMUTIL $lib || :'
14424     else
14425       _lt_dsymutil=
14426     fi
14427     ;;
14428   esac
14429
14430 for ac_header in dlfcn.h
14431 do :
14432   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14433 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14434   cat >>confdefs.h <<_ACEOF
14435 #define HAVE_DLFCN_H 1
14436 _ACEOF
14437
14438 fi
14439 done
14440
14441
14442
14443
14444
14445 # Set options
14446
14447
14448
14449         enable_dlopen=no
14450
14451
14452   enable_win32_dll=no
14453
14454
14455             # Check whether --enable-shared was given.
14456 if test "${enable_shared+set}" = set; then :
14457   enableval=$enable_shared; p=${PACKAGE-default}
14458     case $enableval in
14459     yes) enable_shared=yes ;;
14460     no) enable_shared=no ;;
14461     *)
14462       enable_shared=no
14463       # Look at the argument we got.  We use all the common list separators.
14464       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14465       for pkg in $enableval; do
14466         IFS="$lt_save_ifs"
14467         if test "X$pkg" = "X$p"; then
14468           enable_shared=yes
14469         fi
14470       done
14471       IFS="$lt_save_ifs"
14472       ;;
14473     esac
14474 else
14475   enable_shared=yes
14476 fi
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486   # Check whether --enable-static was given.
14487 if test "${enable_static+set}" = set; then :
14488   enableval=$enable_static; p=${PACKAGE-default}
14489     case $enableval in
14490     yes) enable_static=yes ;;
14491     no) enable_static=no ;;
14492     *)
14493      enable_static=no
14494       # Look at the argument we got.  We use all the common list separators.
14495       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14496       for pkg in $enableval; do
14497         IFS="$lt_save_ifs"
14498         if test "X$pkg" = "X$p"; then
14499           enable_static=yes
14500         fi
14501       done
14502       IFS="$lt_save_ifs"
14503       ;;
14504     esac
14505 else
14506   enable_static=yes
14507 fi
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518 # Check whether --with-pic was given.
14519 if test "${with_pic+set}" = set; then :
14520   withval=$with_pic; pic_mode="$withval"
14521 else
14522   pic_mode=default
14523 fi
14524
14525
14526 test -z "$pic_mode" && pic_mode=default
14527
14528
14529
14530
14531
14532
14533
14534   # Check whether --enable-fast-install was given.
14535 if test "${enable_fast_install+set}" = set; then :
14536   enableval=$enable_fast_install; p=${PACKAGE-default}
14537     case $enableval in
14538     yes) enable_fast_install=yes ;;
14539     no) enable_fast_install=no ;;
14540     *)
14541       enable_fast_install=no
14542       # Look at the argument we got.  We use all the common list separators.
14543       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14544       for pkg in $enableval; do
14545         IFS="$lt_save_ifs"
14546         if test "X$pkg" = "X$p"; then
14547           enable_fast_install=yes
14548         fi
14549       done
14550       IFS="$lt_save_ifs"
14551       ;;
14552     esac
14553 else
14554   enable_fast_install=yes
14555 fi
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567 # This can be used to rebuild libtool when needed
14568 LIBTOOL_DEPS="$ltmain"
14569
14570 # Always use our own libtool.
14571 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598 test -z "$LN_S" && LN_S="ln -s"
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613 if test -n "${ZSH_VERSION+set}" ; then
14614    setopt NO_GLOB_SUBST
14615 fi
14616
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14618 $as_echo_n "checking for objdir... " >&6; }
14619 if test "${lt_cv_objdir+set}" = set; then :
14620   $as_echo_n "(cached) " >&6
14621 else
14622   rm -f .libs 2>/dev/null
14623 mkdir .libs 2>/dev/null
14624 if test -d .libs; then
14625   lt_cv_objdir=.libs
14626 else
14627   # MS-DOS does not allow filenames that begin with a dot.
14628   lt_cv_objdir=_libs
14629 fi
14630 rmdir .libs 2>/dev/null
14631 fi
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14633 $as_echo "$lt_cv_objdir" >&6; }
14634 objdir=$lt_cv_objdir
14635
14636
14637
14638
14639
14640 cat >>confdefs.h <<_ACEOF
14641 #define LT_OBJDIR "$lt_cv_objdir/"
14642 _ACEOF
14643
14644
14645
14646
14647 case $host_os in
14648 aix3*)
14649   # AIX sometimes has problems with the GCC collect2 program.  For some
14650   # reason, if we set the COLLECT_NAMES environment variable, the problems
14651   # vanish in a puff of smoke.
14652   if test "X${COLLECT_NAMES+set}" != Xset; then
14653     COLLECT_NAMES=
14654     export COLLECT_NAMES
14655   fi
14656   ;;
14657 esac
14658
14659 # Global variables:
14660 ofile=libtool
14661 can_build_shared=yes
14662
14663 # All known linkers require a `.a' archive for static linking (except MSVC,
14664 # which needs '.lib').
14665 libext=a
14666
14667 with_gnu_ld="$lt_cv_prog_gnu_ld"
14668
14669 old_CC="$CC"
14670 old_CFLAGS="$CFLAGS"
14671
14672 # Set sane defaults for various variables
14673 test -z "$CC" && CC=cc
14674 test -z "$LTCC" && LTCC=$CC
14675 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14676 test -z "$LD" && LD=ld
14677 test -z "$ac_objext" && ac_objext=o
14678
14679 for cc_temp in $compiler""; do
14680   case $cc_temp in
14681     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14682     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14683     \-*) ;;
14684     *) break;;
14685   esac
14686 done
14687 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14688
14689
14690 # Only perform the check for file, if the check method requires it
14691 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14692 case $deplibs_check_method in
14693 file_magic*)
14694   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14696 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14698   $as_echo_n "(cached) " >&6
14699 else
14700   case $MAGIC_CMD in
14701 [\\/*] |  ?:[\\/]*)
14702   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14703   ;;
14704 *)
14705   lt_save_MAGIC_CMD="$MAGIC_CMD"
14706   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14707   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14708   for ac_dir in $ac_dummy; do
14709     IFS="$lt_save_ifs"
14710     test -z "$ac_dir" && ac_dir=.
14711     if test -f $ac_dir/${ac_tool_prefix}file; then
14712       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14713       if test -n "$file_magic_test_file"; then
14714         case $deplibs_check_method in
14715         "file_magic "*)
14716           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14717           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14718           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14719             $EGREP "$file_magic_regex" > /dev/null; then
14720             :
14721           else
14722             cat <<_LT_EOF 1>&2
14723
14724 *** Warning: the command libtool uses to detect shared libraries,
14725 *** $file_magic_cmd, produces output that libtool cannot recognize.
14726 *** The result is that libtool may fail to recognize shared libraries
14727 *** as such.  This will affect the creation of libtool libraries that
14728 *** depend on shared libraries, but programs linked with such libtool
14729 *** libraries will work regardless of this problem.  Nevertheless, you
14730 *** may want to report the problem to your system manager and/or to
14731 *** bug-libtool@gnu.org
14732
14733 _LT_EOF
14734           fi ;;
14735         esac
14736       fi
14737       break
14738     fi
14739   done
14740   IFS="$lt_save_ifs"
14741   MAGIC_CMD="$lt_save_MAGIC_CMD"
14742   ;;
14743 esac
14744 fi
14745
14746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14747 if test -n "$MAGIC_CMD"; then
14748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14749 $as_echo "$MAGIC_CMD" >&6; }
14750 else
14751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753 fi
14754
14755
14756
14757
14758
14759 if test -z "$lt_cv_path_MAGIC_CMD"; then
14760   if test -n "$ac_tool_prefix"; then
14761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14762 $as_echo_n "checking for file... " >&6; }
14763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14764   $as_echo_n "(cached) " >&6
14765 else
14766   case $MAGIC_CMD in
14767 [\\/*] |  ?:[\\/]*)
14768   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14769   ;;
14770 *)
14771   lt_save_MAGIC_CMD="$MAGIC_CMD"
14772   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14773   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14774   for ac_dir in $ac_dummy; do
14775     IFS="$lt_save_ifs"
14776     test -z "$ac_dir" && ac_dir=.
14777     if test -f $ac_dir/file; then
14778       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14779       if test -n "$file_magic_test_file"; then
14780         case $deplibs_check_method in
14781         "file_magic "*)
14782           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14783           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14784           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14785             $EGREP "$file_magic_regex" > /dev/null; then
14786             :
14787           else
14788             cat <<_LT_EOF 1>&2
14789
14790 *** Warning: the command libtool uses to detect shared libraries,
14791 *** $file_magic_cmd, produces output that libtool cannot recognize.
14792 *** The result is that libtool may fail to recognize shared libraries
14793 *** as such.  This will affect the creation of libtool libraries that
14794 *** depend on shared libraries, but programs linked with such libtool
14795 *** libraries will work regardless of this problem.  Nevertheless, you
14796 *** may want to report the problem to your system manager and/or to
14797 *** bug-libtool@gnu.org
14798
14799 _LT_EOF
14800           fi ;;
14801         esac
14802       fi
14803       break
14804     fi
14805   done
14806   IFS="$lt_save_ifs"
14807   MAGIC_CMD="$lt_save_MAGIC_CMD"
14808   ;;
14809 esac
14810 fi
14811
14812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813 if test -n "$MAGIC_CMD"; then
14814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14815 $as_echo "$MAGIC_CMD" >&6; }
14816 else
14817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14819 fi
14820
14821
14822   else
14823     MAGIC_CMD=:
14824   fi
14825 fi
14826
14827   fi
14828   ;;
14829 esac
14830
14831 # Use C for the default configuration in the libtool script
14832
14833 lt_save_CC="$CC"
14834 ac_ext=c
14835 ac_cpp='$CPP $CPPFLAGS'
14836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14839
14840
14841 # Source file extension for C test sources.
14842 ac_ext=c
14843
14844 # Object file extension for compiled C test sources.
14845 objext=o
14846 objext=$objext
14847
14848 # Code to be used in simple compile tests
14849 lt_simple_compile_test_code="int some_variable = 0;"
14850
14851 # Code to be used in simple link tests
14852 lt_simple_link_test_code='int main(){return(0);}'
14853
14854
14855
14856
14857
14858
14859
14860 # If no C compiler was specified, use CC.
14861 LTCC=${LTCC-"$CC"}
14862
14863 # If no C compiler flags were specified, use CFLAGS.
14864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14865
14866 # Allow CC to be a program name with arguments.
14867 compiler=$CC
14868
14869 # Save the default compiler, since it gets overwritten when the other
14870 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14871 compiler_DEFAULT=$CC
14872
14873 # save warnings/boilerplate of simple test code
14874 ac_outfile=conftest.$ac_objext
14875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14877 _lt_compiler_boilerplate=`cat conftest.err`
14878 $RM conftest*
14879
14880 ac_outfile=conftest.$ac_objext
14881 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14883 _lt_linker_boilerplate=`cat conftest.err`
14884 $RM -r conftest*
14885
14886
14887 ## CAVEAT EMPTOR:
14888 ## There is no encapsulation within the following macros, do not change
14889 ## the running order or otherwise move them around unless you know exactly
14890 ## what you are doing...
14891 if test -n "$compiler"; then
14892
14893 lt_prog_compiler_no_builtin_flag=
14894
14895 if test "$GCC" = yes; then
14896   case $cc_basename in
14897   nvcc*)
14898     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14899   *)
14900     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14901   esac
14902
14903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14904 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14905 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14906   $as_echo_n "(cached) " >&6
14907 else
14908   lt_cv_prog_compiler_rtti_exceptions=no
14909    ac_outfile=conftest.$ac_objext
14910    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14911    lt_compiler_flag="-fno-rtti -fno-exceptions"
14912    # Insert the option either (1) after the last *FLAGS variable, or
14913    # (2) before a word containing "conftest.", or (3) at the end.
14914    # Note that $ac_compile itself does not contain backslashes and begins
14915    # with a dollar sign (not a hyphen), so the echo should work correctly.
14916    # The option is referenced via a variable to avoid confusing sed.
14917    lt_compile=`echo "$ac_compile" | $SED \
14918    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14919    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14920    -e 's:$: $lt_compiler_flag:'`
14921    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14922    (eval "$lt_compile" 2>conftest.err)
14923    ac_status=$?
14924    cat conftest.err >&5
14925    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926    if (exit $ac_status) && test -s "$ac_outfile"; then
14927      # The compiler can only warn and ignore the option if not recognized
14928      # So say no if there are warnings other than the usual output.
14929      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14930      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14931      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14932        lt_cv_prog_compiler_rtti_exceptions=yes
14933      fi
14934    fi
14935    $RM conftest*
14936
14937 fi
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14939 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14940
14941 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14942     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14943 else
14944     :
14945 fi
14946
14947 fi
14948
14949
14950
14951
14952
14953
14954   lt_prog_compiler_wl=
14955 lt_prog_compiler_pic=
14956 lt_prog_compiler_static=
14957
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14959 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14960
14961   if test "$GCC" = yes; then
14962     lt_prog_compiler_wl='-Wl,'
14963     lt_prog_compiler_static='-static'
14964
14965     case $host_os in
14966       aix*)
14967       # All AIX code is PIC.
14968       if test "$host_cpu" = ia64; then
14969         # AIX 5 now supports IA64 processor
14970         lt_prog_compiler_static='-Bstatic'
14971       fi
14972       ;;
14973
14974     amigaos*)
14975       case $host_cpu in
14976       powerpc)
14977             # see comment about AmigaOS4 .so support
14978             lt_prog_compiler_pic='-fPIC'
14979         ;;
14980       m68k)
14981             # FIXME: we need at least 68020 code to build shared libraries, but
14982             # adding the `-m68020' flag to GCC prevents building anything better,
14983             # like `-m68040'.
14984             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14985         ;;
14986       esac
14987       ;;
14988
14989     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14990       # PIC is the default for these OSes.
14991       ;;
14992
14993     mingw* | cygwin* | pw32* | os2* | cegcc*)
14994       # This hack is so that the source file can tell whether it is being
14995       # built for inclusion in a dll (and should export symbols for example).
14996       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14997       # (--disable-auto-import) libraries
14998       lt_prog_compiler_pic='-DDLL_EXPORT'
14999       ;;
15000
15001     darwin* | rhapsody*)
15002       # PIC is the default on this platform
15003       # Common symbols not allowed in MH_DYLIB files
15004       lt_prog_compiler_pic='-fno-common'
15005       ;;
15006
15007     haiku*)
15008       # PIC is the default for Haiku.
15009       # The "-static" flag exists, but is broken.
15010       lt_prog_compiler_static=
15011       ;;
15012
15013     hpux*)
15014       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15015       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15016       # sets the default TLS model and affects inlining.
15017       case $host_cpu in
15018       hppa*64*)
15019         # +Z the default
15020         ;;
15021       *)
15022         lt_prog_compiler_pic='-fPIC'
15023         ;;
15024       esac
15025       ;;
15026
15027     interix[3-9]*)
15028       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15029       # Instead, we relocate shared libraries at runtime.
15030       ;;
15031
15032     msdosdjgpp*)
15033       # Just because we use GCC doesn't mean we suddenly get shared libraries
15034       # on systems that don't support them.
15035       lt_prog_compiler_can_build_shared=no
15036       enable_shared=no
15037       ;;
15038
15039     *nto* | *qnx*)
15040       # QNX uses GNU C++, but need to define -shared option too, otherwise
15041       # it will coredump.
15042       lt_prog_compiler_pic='-fPIC -shared'
15043       ;;
15044
15045     sysv4*MP*)
15046       if test -d /usr/nec; then
15047         lt_prog_compiler_pic=-Kconform_pic
15048       fi
15049       ;;
15050
15051     *)
15052       lt_prog_compiler_pic='-fPIC'
15053       ;;
15054     esac
15055
15056     case $cc_basename in
15057     nvcc*) # Cuda Compiler Driver 2.2
15058       lt_prog_compiler_wl='-Xlinker '
15059       lt_prog_compiler_pic='-Xcompiler -fPIC'
15060       ;;
15061     esac
15062   else
15063     # PORTME Check for flag to pass linker flags through the system compiler.
15064     case $host_os in
15065     aix*)
15066       lt_prog_compiler_wl='-Wl,'
15067       if test "$host_cpu" = ia64; then
15068         # AIX 5 now supports IA64 processor
15069         lt_prog_compiler_static='-Bstatic'
15070       else
15071         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15072       fi
15073       ;;
15074
15075     mingw* | cygwin* | pw32* | os2* | cegcc*)
15076       # This hack is so that the source file can tell whether it is being
15077       # built for inclusion in a dll (and should export symbols for example).
15078       lt_prog_compiler_pic='-DDLL_EXPORT'
15079       ;;
15080
15081     hpux9* | hpux10* | hpux11*)
15082       lt_prog_compiler_wl='-Wl,'
15083       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15084       # not for PA HP-UX.
15085       case $host_cpu in
15086       hppa*64*|ia64*)
15087         # +Z the default
15088         ;;
15089       *)
15090         lt_prog_compiler_pic='+Z'
15091         ;;
15092       esac
15093       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15094       lt_prog_compiler_static='${wl}-a ${wl}archive'
15095       ;;
15096
15097     irix5* | irix6* | nonstopux*)
15098       lt_prog_compiler_wl='-Wl,'
15099       # PIC (with -KPIC) is the default.
15100       lt_prog_compiler_static='-non_shared'
15101       ;;
15102
15103     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15104       case $cc_basename in
15105       # old Intel for x86_64 which still supported -KPIC.
15106       ecc*)
15107         lt_prog_compiler_wl='-Wl,'
15108         lt_prog_compiler_pic='-KPIC'
15109         lt_prog_compiler_static='-static'
15110         ;;
15111       # icc used to be incompatible with GCC.
15112       # ICC 10 doesn't accept -KPIC any more.
15113       icc* | ifort*)
15114         lt_prog_compiler_wl='-Wl,'
15115         lt_prog_compiler_pic='-fPIC'
15116         lt_prog_compiler_static='-static'
15117         ;;
15118       # Lahey Fortran 8.1.
15119       lf95*)
15120         lt_prog_compiler_wl='-Wl,'
15121         lt_prog_compiler_pic='--shared'
15122         lt_prog_compiler_static='--static'
15123         ;;
15124       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15125         # Portland Group compilers (*not* the Pentium gcc compiler,
15126         # which looks to be a dead project)
15127         lt_prog_compiler_wl='-Wl,'
15128         lt_prog_compiler_pic='-fpic'
15129         lt_prog_compiler_static='-Bstatic'
15130         ;;
15131       ccc*)
15132         lt_prog_compiler_wl='-Wl,'
15133         # All Alpha code is PIC.
15134         lt_prog_compiler_static='-non_shared'
15135         ;;
15136       xl* | bgxl* | bgf* | mpixl*)
15137         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15138         lt_prog_compiler_wl='-Wl,'
15139         lt_prog_compiler_pic='-qpic'
15140         lt_prog_compiler_static='-qstaticlink'
15141         ;;
15142       *)
15143         case `$CC -V 2>&1 | sed 5q` in
15144         *Sun\ F* | *Sun*Fortran*)
15145           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15146           lt_prog_compiler_pic='-KPIC'
15147           lt_prog_compiler_static='-Bstatic'
15148           lt_prog_compiler_wl=''
15149           ;;
15150         *Sun\ C*)
15151           # Sun C 5.9
15152           lt_prog_compiler_pic='-KPIC'
15153           lt_prog_compiler_static='-Bstatic'
15154           lt_prog_compiler_wl='-Wl,'
15155           ;;
15156         esac
15157         ;;
15158       esac
15159       ;;
15160
15161     newsos6)
15162       lt_prog_compiler_pic='-KPIC'
15163       lt_prog_compiler_static='-Bstatic'
15164       ;;
15165
15166     *nto* | *qnx*)
15167       # QNX uses GNU C++, but need to define -shared option too, otherwise
15168       # it will coredump.
15169       lt_prog_compiler_pic='-fPIC -shared'
15170       ;;
15171
15172     osf3* | osf4* | osf5*)
15173       lt_prog_compiler_wl='-Wl,'
15174       # All OSF/1 code is PIC.
15175       lt_prog_compiler_static='-non_shared'
15176       ;;
15177
15178     rdos*)
15179       lt_prog_compiler_static='-non_shared'
15180       ;;
15181
15182     solaris*)
15183       lt_prog_compiler_pic='-KPIC'
15184       lt_prog_compiler_static='-Bstatic'
15185       case $cc_basename in
15186       f77* | f90* | f95*)
15187         lt_prog_compiler_wl='-Qoption ld ';;
15188       *)
15189         lt_prog_compiler_wl='-Wl,';;
15190       esac
15191       ;;
15192
15193     sunos4*)
15194       lt_prog_compiler_wl='-Qoption ld '
15195       lt_prog_compiler_pic='-PIC'
15196       lt_prog_compiler_static='-Bstatic'
15197       ;;
15198
15199     sysv4 | sysv4.2uw2* | sysv4.3*)
15200       lt_prog_compiler_wl='-Wl,'
15201       lt_prog_compiler_pic='-KPIC'
15202       lt_prog_compiler_static='-Bstatic'
15203       ;;
15204
15205     sysv4*MP*)
15206       if test -d /usr/nec ;then
15207         lt_prog_compiler_pic='-Kconform_pic'
15208         lt_prog_compiler_static='-Bstatic'
15209       fi
15210       ;;
15211
15212     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15213       lt_prog_compiler_wl='-Wl,'
15214       lt_prog_compiler_pic='-KPIC'
15215       lt_prog_compiler_static='-Bstatic'
15216       ;;
15217
15218     unicos*)
15219       lt_prog_compiler_wl='-Wl,'
15220       lt_prog_compiler_can_build_shared=no
15221       ;;
15222
15223     uts4*)
15224       lt_prog_compiler_pic='-pic'
15225       lt_prog_compiler_static='-Bstatic'
15226       ;;
15227
15228     *)
15229       lt_prog_compiler_can_build_shared=no
15230       ;;
15231     esac
15232   fi
15233
15234 case $host_os in
15235   # For platforms which do not support PIC, -DPIC is meaningless:
15236   *djgpp*)
15237     lt_prog_compiler_pic=
15238     ;;
15239   *)
15240     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15241     ;;
15242 esac
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15244 $as_echo "$lt_prog_compiler_pic" >&6; }
15245
15246
15247
15248
15249
15250
15251 #
15252 # Check to make sure the PIC flag actually works.
15253 #
15254 if test -n "$lt_prog_compiler_pic"; then
15255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15256 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15257 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15258   $as_echo_n "(cached) " >&6
15259 else
15260   lt_cv_prog_compiler_pic_works=no
15261    ac_outfile=conftest.$ac_objext
15262    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15263    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15264    # Insert the option either (1) after the last *FLAGS variable, or
15265    # (2) before a word containing "conftest.", or (3) at the end.
15266    # Note that $ac_compile itself does not contain backslashes and begins
15267    # with a dollar sign (not a hyphen), so the echo should work correctly.
15268    # The option is referenced via a variable to avoid confusing sed.
15269    lt_compile=`echo "$ac_compile" | $SED \
15270    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272    -e 's:$: $lt_compiler_flag:'`
15273    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15274    (eval "$lt_compile" 2>conftest.err)
15275    ac_status=$?
15276    cat conftest.err >&5
15277    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278    if (exit $ac_status) && test -s "$ac_outfile"; then
15279      # The compiler can only warn and ignore the option if not recognized
15280      # So say no if there are warnings other than the usual output.
15281      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15282      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15283      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15284        lt_cv_prog_compiler_pic_works=yes
15285      fi
15286    fi
15287    $RM conftest*
15288
15289 fi
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15291 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15292
15293 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15294     case $lt_prog_compiler_pic in
15295      "" | " "*) ;;
15296      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15297      esac
15298 else
15299     lt_prog_compiler_pic=
15300      lt_prog_compiler_can_build_shared=no
15301 fi
15302
15303 fi
15304
15305
15306
15307
15308
15309
15310 #
15311 # Check to make sure the static flag actually works.
15312 #
15313 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15315 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15316 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15317   $as_echo_n "(cached) " >&6
15318 else
15319   lt_cv_prog_compiler_static_works=no
15320    save_LDFLAGS="$LDFLAGS"
15321    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15322    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15323    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15324      # The linker can only warn and ignore the option if not recognized
15325      # So say no if there are warnings
15326      if test -s conftest.err; then
15327        # Append any errors to the config.log.
15328        cat conftest.err 1>&5
15329        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15330        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15331        if diff conftest.exp conftest.er2 >/dev/null; then
15332          lt_cv_prog_compiler_static_works=yes
15333        fi
15334      else
15335        lt_cv_prog_compiler_static_works=yes
15336      fi
15337    fi
15338    $RM -r conftest*
15339    LDFLAGS="$save_LDFLAGS"
15340
15341 fi
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15343 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15344
15345 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15346     :
15347 else
15348     lt_prog_compiler_static=
15349 fi
15350
15351
15352
15353
15354
15355
15356
15357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15359 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15360   $as_echo_n "(cached) " >&6
15361 else
15362   lt_cv_prog_compiler_c_o=no
15363    $RM -r conftest 2>/dev/null
15364    mkdir conftest
15365    cd conftest
15366    mkdir out
15367    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15368
15369    lt_compiler_flag="-o out/conftest2.$ac_objext"
15370    # Insert the option either (1) after the last *FLAGS variable, or
15371    # (2) before a word containing "conftest.", or (3) at the end.
15372    # Note that $ac_compile itself does not contain backslashes and begins
15373    # with a dollar sign (not a hyphen), so the echo should work correctly.
15374    lt_compile=`echo "$ac_compile" | $SED \
15375    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15376    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15377    -e 's:$: $lt_compiler_flag:'`
15378    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15379    (eval "$lt_compile" 2>out/conftest.err)
15380    ac_status=$?
15381    cat out/conftest.err >&5
15382    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15384    then
15385      # The compiler can only warn and ignore the option if not recognized
15386      # So say no if there are warnings
15387      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15388      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15389      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15390        lt_cv_prog_compiler_c_o=yes
15391      fi
15392    fi
15393    chmod u+w . 2>&5
15394    $RM conftest*
15395    # SGI C++ compiler will create directory out/ii_files/ for
15396    # template instantiation
15397    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15398    $RM out/* && rmdir out
15399    cd ..
15400    $RM -r conftest
15401    $RM conftest*
15402
15403 fi
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15405 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15406
15407
15408
15409
15410
15411
15412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15414 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15415   $as_echo_n "(cached) " >&6
15416 else
15417   lt_cv_prog_compiler_c_o=no
15418    $RM -r conftest 2>/dev/null
15419    mkdir conftest
15420    cd conftest
15421    mkdir out
15422    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15423
15424    lt_compiler_flag="-o out/conftest2.$ac_objext"
15425    # Insert the option either (1) after the last *FLAGS variable, or
15426    # (2) before a word containing "conftest.", or (3) at the end.
15427    # Note that $ac_compile itself does not contain backslashes and begins
15428    # with a dollar sign (not a hyphen), so the echo should work correctly.
15429    lt_compile=`echo "$ac_compile" | $SED \
15430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432    -e 's:$: $lt_compiler_flag:'`
15433    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15434    (eval "$lt_compile" 2>out/conftest.err)
15435    ac_status=$?
15436    cat out/conftest.err >&5
15437    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15439    then
15440      # The compiler can only warn and ignore the option if not recognized
15441      # So say no if there are warnings
15442      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15443      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15444      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15445        lt_cv_prog_compiler_c_o=yes
15446      fi
15447    fi
15448    chmod u+w . 2>&5
15449    $RM conftest*
15450    # SGI C++ compiler will create directory out/ii_files/ for
15451    # template instantiation
15452    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15453    $RM out/* && rmdir out
15454    cd ..
15455    $RM -r conftest
15456    $RM conftest*
15457
15458 fi
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15460 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15461
15462
15463
15464
15465 hard_links="nottested"
15466 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15467   # do not overwrite the value of need_locks provided by the user
15468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15469 $as_echo_n "checking if we can lock with hard links... " >&6; }
15470   hard_links=yes
15471   $RM conftest*
15472   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15473   touch conftest.a
15474   ln conftest.a conftest.b 2>&5 || hard_links=no
15475   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15477 $as_echo "$hard_links" >&6; }
15478   if test "$hard_links" = no; then
15479     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15480 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15481     need_locks=warn
15482   fi
15483 else
15484   need_locks=no
15485 fi
15486
15487
15488
15489
15490
15491
15492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15493 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15494
15495   runpath_var=
15496   allow_undefined_flag=
15497   always_export_symbols=no
15498   archive_cmds=
15499   archive_expsym_cmds=
15500   compiler_needs_object=no
15501   enable_shared_with_static_runtimes=no
15502   export_dynamic_flag_spec=
15503   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15504   hardcode_automatic=no
15505   hardcode_direct=no
15506   hardcode_direct_absolute=no
15507   hardcode_libdir_flag_spec=
15508   hardcode_libdir_flag_spec_ld=
15509   hardcode_libdir_separator=
15510   hardcode_minus_L=no
15511   hardcode_shlibpath_var=unsupported
15512   inherit_rpath=no
15513   link_all_deplibs=unknown
15514   module_cmds=
15515   module_expsym_cmds=
15516   old_archive_from_new_cmds=
15517   old_archive_from_expsyms_cmds=
15518   thread_safe_flag_spec=
15519   whole_archive_flag_spec=
15520   # include_expsyms should be a list of space-separated symbols to be *always*
15521   # included in the symbol list
15522   include_expsyms=
15523   # exclude_expsyms can be an extended regexp of symbols to exclude
15524   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15525   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15526   # as well as any symbol that contains `d'.
15527   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15528   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15529   # platforms (ab)use it in PIC code, but their linkers get confused if
15530   # the symbol is explicitly referenced.  Since portable code cannot
15531   # rely on this symbol name, it's probably fine to never include it in
15532   # preloaded symbol tables.
15533   # Exclude shared library initialization/finalization symbols.
15534   extract_expsyms_cmds=
15535
15536   case $host_os in
15537   cygwin* | mingw* | pw32* | cegcc*)
15538     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15539     # When not using gcc, we currently assume that we are using
15540     # Microsoft Visual C++.
15541     if test "$GCC" != yes; then
15542       with_gnu_ld=no
15543     fi
15544     ;;
15545   interix*)
15546     # we just hope/assume this is gcc and not c89 (= MSVC++)
15547     with_gnu_ld=yes
15548     ;;
15549   openbsd*)
15550     with_gnu_ld=no
15551     ;;
15552   esac
15553
15554   ld_shlibs=yes
15555
15556   # On some targets, GNU ld is compatible enough with the native linker
15557   # that we're better off using the native interface for both.
15558   lt_use_gnu_ld_interface=no
15559   if test "$with_gnu_ld" = yes; then
15560     case $host_os in
15561       aix*)
15562         # The AIX port of GNU ld has always aspired to compatibility
15563         # with the native linker.  However, as the warning in the GNU ld
15564         # block says, versions before 2.19.5* couldn't really create working
15565         # shared libraries, regardless of the interface used.
15566         case `$LD -v 2>&1` in
15567           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15568           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15569           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15570           *)
15571             lt_use_gnu_ld_interface=yes
15572             ;;
15573         esac
15574         ;;
15575       *)
15576         lt_use_gnu_ld_interface=yes
15577         ;;
15578     esac
15579   fi
15580
15581   if test "$lt_use_gnu_ld_interface" = yes; then
15582     # If archive_cmds runs LD, not CC, wlarc should be empty
15583     wlarc='${wl}'
15584
15585     # Set some defaults for GNU ld with shared library support. These
15586     # are reset later if shared libraries are not supported. Putting them
15587     # here allows them to be overridden if necessary.
15588     runpath_var=LD_RUN_PATH
15589     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15590     export_dynamic_flag_spec='${wl}--export-dynamic'
15591     # ancient GNU ld didn't support --whole-archive et. al.
15592     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15593       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15594     else
15595       whole_archive_flag_spec=
15596     fi
15597     supports_anon_versioning=no
15598     case `$LD -v 2>&1` in
15599       *GNU\ gold*) supports_anon_versioning=yes ;;
15600       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15601       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15602       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15603       *\ 2.11.*) ;; # other 2.11 versions
15604       *) supports_anon_versioning=yes ;;
15605     esac
15606
15607     # See if GNU ld supports shared libraries.
15608     case $host_os in
15609     aix[3-9]*)
15610       # On AIX/PPC, the GNU linker is very broken
15611       if test "$host_cpu" != ia64; then
15612         ld_shlibs=no
15613         cat <<_LT_EOF 1>&2
15614
15615 *** Warning: the GNU linker, at least up to release 2.19, is reported
15616 *** to be unable to reliably create shared libraries on AIX.
15617 *** Therefore, libtool is disabling shared libraries support.  If you
15618 *** really care for shared libraries, you may want to install binutils
15619 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15620 *** You will then need to restart the configuration process.
15621
15622 _LT_EOF
15623       fi
15624       ;;
15625
15626     amigaos*)
15627       case $host_cpu in
15628       powerpc)
15629             # see comment about AmigaOS4 .so support
15630             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15631             archive_expsym_cmds=''
15632         ;;
15633       m68k)
15634             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)'
15635             hardcode_libdir_flag_spec='-L$libdir'
15636             hardcode_minus_L=yes
15637         ;;
15638       esac
15639       ;;
15640
15641     beos*)
15642       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15643         allow_undefined_flag=unsupported
15644         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15645         # support --undefined.  This deserves some investigation.  FIXME
15646         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15647       else
15648         ld_shlibs=no
15649       fi
15650       ;;
15651
15652     cygwin* | mingw* | pw32* | cegcc*)
15653       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15654       # as there is no search path for DLLs.
15655       hardcode_libdir_flag_spec='-L$libdir'
15656       export_dynamic_flag_spec='${wl}--export-all-symbols'
15657       allow_undefined_flag=unsupported
15658       always_export_symbols=no
15659       enable_shared_with_static_runtimes=yes
15660       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15661
15662       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15663         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15664         # If the export-symbols file already is a .def file (1st line
15665         # is EXPORTS), use it as is; otherwise, prepend...
15666         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15667           cp $export_symbols $output_objdir/$soname.def;
15668         else
15669           echo EXPORTS > $output_objdir/$soname.def;
15670           cat $export_symbols >> $output_objdir/$soname.def;
15671         fi~
15672         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15673       else
15674         ld_shlibs=no
15675       fi
15676       ;;
15677
15678     haiku*)
15679       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680       link_all_deplibs=yes
15681       ;;
15682
15683     interix[3-9]*)
15684       hardcode_direct=no
15685       hardcode_shlibpath_var=no
15686       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15687       export_dynamic_flag_spec='${wl}-E'
15688       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15689       # Instead, shared libraries are loaded at an image base (0x10000000 by
15690       # default) and relocated if they conflict, which is a slow very memory
15691       # consuming and fragmenting process.  To avoid this, we pick a random,
15692       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15693       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15694       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15695       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'
15696       ;;
15697
15698     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15699       tmp_diet=no
15700       if test "$host_os" = linux-dietlibc; then
15701         case $cc_basename in
15702           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15703         esac
15704       fi
15705       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15706          && test "$tmp_diet" = no
15707       then
15708         tmp_addflag=
15709         tmp_sharedflag='-shared'
15710         case $cc_basename,$host_cpu in
15711         pgcc*)                          # Portland Group C compiler
15712           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'
15713           tmp_addflag=' $pic_flag'
15714           ;;
15715         pgf77* | pgf90* | pgf95* | pgfortran*)
15716                                         # Portland Group f77 and f90 compilers
15717           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'
15718           tmp_addflag=' $pic_flag -Mnomain' ;;
15719         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15720           tmp_addflag=' -i_dynamic' ;;
15721         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15722           tmp_addflag=' -i_dynamic -nofor_main' ;;
15723         ifc* | ifort*)                  # Intel Fortran compiler
15724           tmp_addflag=' -nofor_main' ;;
15725         lf95*)                          # Lahey Fortran 8.1
15726           whole_archive_flag_spec=
15727           tmp_sharedflag='--shared' ;;
15728         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15729           tmp_sharedflag='-qmkshrobj'
15730           tmp_addflag= ;;
15731         nvcc*)  # Cuda Compiler Driver 2.2
15732           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'
15733           compiler_needs_object=yes
15734           ;;
15735         esac
15736         case `$CC -V 2>&1 | sed 5q` in
15737         *Sun\ C*)                       # Sun C 5.9
15738           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'
15739           compiler_needs_object=yes
15740           tmp_sharedflag='-G' ;;
15741         *Sun\ F*)                       # Sun Fortran 8.3
15742           tmp_sharedflag='-G' ;;
15743         esac
15744         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15745
15746         if test "x$supports_anon_versioning" = xyes; then
15747           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15748             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15749             echo "local: *; };" >> $output_objdir/$libname.ver~
15750             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15751         fi
15752
15753         case $cc_basename in
15754         xlf* | bgf* | bgxlf* | mpixlf*)
15755           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15756           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15757           hardcode_libdir_flag_spec=
15758           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15759           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15760           if test "x$supports_anon_versioning" = xyes; then
15761             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15762               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15763               echo "local: *; };" >> $output_objdir/$libname.ver~
15764               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15765           fi
15766           ;;
15767         esac
15768       else
15769         ld_shlibs=no
15770       fi
15771       ;;
15772
15773     netbsd*)
15774       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15775         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15776         wlarc=
15777       else
15778         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15780       fi
15781       ;;
15782
15783     solaris*)
15784       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15785         ld_shlibs=no
15786         cat <<_LT_EOF 1>&2
15787
15788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15789 *** create shared libraries on Solaris systems.  Therefore, libtool
15790 *** is disabling shared libraries support.  We urge you to upgrade GNU
15791 *** binutils to release 2.9.1 or newer.  Another option is to modify
15792 *** your PATH or compiler configuration so that the native linker is
15793 *** used, and then restart.
15794
15795 _LT_EOF
15796       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15797         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15798         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15799       else
15800         ld_shlibs=no
15801       fi
15802       ;;
15803
15804     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15805       case `$LD -v 2>&1` in
15806         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15807         ld_shlibs=no
15808         cat <<_LT_EOF 1>&2
15809
15810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15811 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15812 *** is disabling shared libraries support.  We urge you to upgrade GNU
15813 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15814 *** your PATH or compiler configuration so that the native linker is
15815 *** used, and then restart.
15816
15817 _LT_EOF
15818         ;;
15819         *)
15820           # For security reasons, it is highly recommended that you always
15821           # use absolute paths for naming shared libraries, and exclude the
15822           # DT_RUNPATH tag from executables and libraries.  But doing so
15823           # requires that you compile everything twice, which is a pain.
15824           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15825             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15826             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15828           else
15829             ld_shlibs=no
15830           fi
15831         ;;
15832       esac
15833       ;;
15834
15835     sunos4*)
15836       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15837       wlarc=
15838       hardcode_direct=yes
15839       hardcode_shlibpath_var=no
15840       ;;
15841
15842     *)
15843       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15844         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15845         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15846       else
15847         ld_shlibs=no
15848       fi
15849       ;;
15850     esac
15851
15852     if test "$ld_shlibs" = no; then
15853       runpath_var=
15854       hardcode_libdir_flag_spec=
15855       export_dynamic_flag_spec=
15856       whole_archive_flag_spec=
15857     fi
15858   else
15859     # PORTME fill in a description of your system's linker (not GNU ld)
15860     case $host_os in
15861     aix3*)
15862       allow_undefined_flag=unsupported
15863       always_export_symbols=yes
15864       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'
15865       # Note: this linker hardcodes the directories in LIBPATH if there
15866       # are no directories specified by -L.
15867       hardcode_minus_L=yes
15868       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15869         # Neither direct hardcoding nor static linking is supported with a
15870         # broken collect2.
15871         hardcode_direct=unsupported
15872       fi
15873       ;;
15874
15875     aix[4-9]*)
15876       if test "$host_cpu" = ia64; then
15877         # On IA64, the linker does run time linking by default, so we don't
15878         # have to do anything special.
15879         aix_use_runtimelinking=no
15880         exp_sym_flag='-Bexport'
15881         no_entry_flag=""
15882       else
15883         # If we're using GNU nm, then we don't want the "-C" option.
15884         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15885         # Also, AIX nm treats weak defined symbols like other global
15886         # defined symbols, whereas GNU nm marks them as "W".
15887         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15888           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'
15889         else
15890           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'
15891         fi
15892         aix_use_runtimelinking=no
15893
15894         # Test if we are trying to use run time linking or normal
15895         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15896         # need to do runtime linking.
15897         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15898           for ld_flag in $LDFLAGS; do
15899           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15900             aix_use_runtimelinking=yes
15901             break
15902           fi
15903           done
15904           ;;
15905         esac
15906
15907         exp_sym_flag='-bexport'
15908         no_entry_flag='-bnoentry'
15909       fi
15910
15911       # When large executables or shared objects are built, AIX ld can
15912       # have problems creating the table of contents.  If linking a library
15913       # or program results in "error TOC overflow" add -mminimal-toc to
15914       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15915       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15916
15917       archive_cmds=''
15918       hardcode_direct=yes
15919       hardcode_direct_absolute=yes
15920       hardcode_libdir_separator=':'
15921       link_all_deplibs=yes
15922       file_list_spec='${wl}-f,'
15923
15924       if test "$GCC" = yes; then
15925         case $host_os in aix4.[012]|aix4.[012].*)
15926         # We only want to do this on AIX 4.2 and lower, the check
15927         # below for broken collect2 doesn't work under 4.3+
15928           collect2name=`${CC} -print-prog-name=collect2`
15929           if test -f "$collect2name" &&
15930            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15931           then
15932           # We have reworked collect2
15933           :
15934           else
15935           # We have old collect2
15936           hardcode_direct=unsupported
15937           # It fails to find uninstalled libraries when the uninstalled
15938           # path is not listed in the libpath.  Setting hardcode_minus_L
15939           # to unsupported forces relinking
15940           hardcode_minus_L=yes
15941           hardcode_libdir_flag_spec='-L$libdir'
15942           hardcode_libdir_separator=
15943           fi
15944           ;;
15945         esac
15946         shared_flag='-shared'
15947         if test "$aix_use_runtimelinking" = yes; then
15948           shared_flag="$shared_flag "'${wl}-G'
15949         fi
15950       else
15951         # not using gcc
15952         if test "$host_cpu" = ia64; then
15953         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15954         # chokes on -Wl,-G. The following line is correct:
15955           shared_flag='-G'
15956         else
15957           if test "$aix_use_runtimelinking" = yes; then
15958             shared_flag='${wl}-G'
15959           else
15960             shared_flag='${wl}-bM:SRE'
15961           fi
15962         fi
15963       fi
15964
15965       export_dynamic_flag_spec='${wl}-bexpall'
15966       # It seems that -bexpall does not export symbols beginning with
15967       # underscore (_), so it is better to generate a list of symbols to export.
15968       always_export_symbols=yes
15969       if test "$aix_use_runtimelinking" = yes; then
15970         # Warning - without using the other runtime loading flags (-brtl),
15971         # -berok will link without error, but may produce a broken library.
15972         allow_undefined_flag='-berok'
15973         # Determine the default libpath from the value encoded in an
15974         # empty executable.
15975         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h.  */
15977
15978 int
15979 main ()
15980 {
15981
15982   ;
15983   return 0;
15984 }
15985 _ACEOF
15986 if ac_fn_c_try_link "$LINENO"; then :
15987
15988 lt_aix_libpath_sed='
15989     /Import File Strings/,/^$/ {
15990         /^0/ {
15991             s/^0  *\(.*\)$/\1/
15992             p
15993         }
15994     }'
15995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15996 # Check for a 64-bit object if we didn't find anything.
15997 if test -z "$aix_libpath"; then
15998   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15999 fi
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext \
16002     conftest$ac_exeext conftest.$ac_ext
16003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16004
16005         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16006         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"
16007       else
16008         if test "$host_cpu" = ia64; then
16009           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16010           allow_undefined_flag="-z nodefs"
16011           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"
16012         else
16013          # Determine the default libpath from the value encoded in an
16014          # empty executable.
16015          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h.  */
16017
16018 int
16019 main ()
16020 {
16021
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 if ac_fn_c_try_link "$LINENO"; then :
16027
16028 lt_aix_libpath_sed='
16029     /Import File Strings/,/^$/ {
16030         /^0/ {
16031             s/^0  *\(.*\)$/\1/
16032             p
16033         }
16034     }'
16035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16036 # Check for a 64-bit object if we didn't find anything.
16037 if test -z "$aix_libpath"; then
16038   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16039 fi
16040 fi
16041 rm -f core conftest.err conftest.$ac_objext \
16042     conftest$ac_exeext conftest.$ac_ext
16043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16044
16045          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16046           # Warning - without using the other run time loading flags,
16047           # -berok will link without error, but may produce a broken library.
16048           no_undefined_flag=' ${wl}-bernotok'
16049           allow_undefined_flag=' ${wl}-berok'
16050           if test "$with_gnu_ld" = yes; then
16051             # We only use this code for GNU lds that support --whole-archive.
16052             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16053           else
16054             # Exported symbols can be pulled into shared objects from archives
16055             whole_archive_flag_spec='$convenience'
16056           fi
16057           archive_cmds_need_lc=yes
16058           # This is similar to how AIX traditionally builds its shared libraries.
16059           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'
16060         fi
16061       fi
16062       ;;
16063
16064     amigaos*)
16065       case $host_cpu in
16066       powerpc)
16067             # see comment about AmigaOS4 .so support
16068             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16069             archive_expsym_cmds=''
16070         ;;
16071       m68k)
16072             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)'
16073             hardcode_libdir_flag_spec='-L$libdir'
16074             hardcode_minus_L=yes
16075         ;;
16076       esac
16077       ;;
16078
16079     bsdi[45]*)
16080       export_dynamic_flag_spec=-rdynamic
16081       ;;
16082
16083     cygwin* | mingw* | pw32* | cegcc*)
16084       # When not using gcc, we currently assume that we are using
16085       # Microsoft Visual C++.
16086       # hardcode_libdir_flag_spec is actually meaningless, as there is
16087       # no search path for DLLs.
16088       hardcode_libdir_flag_spec=' '
16089       allow_undefined_flag=unsupported
16090       # Tell ltmain to make .lib files, not .a files.
16091       libext=lib
16092       # Tell ltmain to make .dll files, not .so files.
16093       shrext_cmds=".dll"
16094       # FIXME: Setting linknames here is a bad hack.
16095       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16096       # The linker will automatically build a .lib file if we build a DLL.
16097       old_archive_from_new_cmds='true'
16098       # FIXME: Should let the user specify the lib program.
16099       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16100       fix_srcfile_path='`cygpath -w "$srcfile"`'
16101       enable_shared_with_static_runtimes=yes
16102       ;;
16103
16104     darwin* | rhapsody*)
16105
16106
16107   archive_cmds_need_lc=no
16108   hardcode_direct=no
16109   hardcode_automatic=yes
16110   hardcode_shlibpath_var=unsupported
16111   if test "$lt_cv_ld_force_load" = "yes"; then
16112     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\"`'
16113   else
16114     whole_archive_flag_spec=''
16115   fi
16116   link_all_deplibs=yes
16117   allow_undefined_flag="$_lt_dar_allow_undefined"
16118   case $cc_basename in
16119      ifort*) _lt_dar_can_shared=yes ;;
16120      *) _lt_dar_can_shared=$GCC ;;
16121   esac
16122   if test "$_lt_dar_can_shared" = "yes"; then
16123     output_verbose_link_cmd=func_echo_all
16124     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16125     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16126     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}"
16127     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}"
16128
16129   else
16130   ld_shlibs=no
16131   fi
16132
16133       ;;
16134
16135     dgux*)
16136       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137       hardcode_libdir_flag_spec='-L$libdir'
16138       hardcode_shlibpath_var=no
16139       ;;
16140
16141     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16142     # support.  Future versions do this automatically, but an explicit c++rt0.o
16143     # does not break anything, and helps significantly (at the cost of a little
16144     # extra space).
16145     freebsd2.2*)
16146       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16147       hardcode_libdir_flag_spec='-R$libdir'
16148       hardcode_direct=yes
16149       hardcode_shlibpath_var=no
16150       ;;
16151
16152     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16153     freebsd2*)
16154       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16155       hardcode_direct=yes
16156       hardcode_minus_L=yes
16157       hardcode_shlibpath_var=no
16158       ;;
16159
16160     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16161     freebsd* | dragonfly*)
16162       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16163       hardcode_libdir_flag_spec='-R$libdir'
16164       hardcode_direct=yes
16165       hardcode_shlibpath_var=no
16166       ;;
16167
16168     hpux9*)
16169       if test "$GCC" = yes; then
16170         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'
16171       else
16172         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'
16173       fi
16174       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16175       hardcode_libdir_separator=:
16176       hardcode_direct=yes
16177
16178       # hardcode_minus_L: Not really in the search PATH,
16179       # but as the default location of the library.
16180       hardcode_minus_L=yes
16181       export_dynamic_flag_spec='${wl}-E'
16182       ;;
16183
16184     hpux10*)
16185       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16186         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16187       else
16188         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16189       fi
16190       if test "$with_gnu_ld" = no; then
16191         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16192         hardcode_libdir_flag_spec_ld='+b $libdir'
16193         hardcode_libdir_separator=:
16194         hardcode_direct=yes
16195         hardcode_direct_absolute=yes
16196         export_dynamic_flag_spec='${wl}-E'
16197         # hardcode_minus_L: Not really in the search PATH,
16198         # but as the default location of the library.
16199         hardcode_minus_L=yes
16200       fi
16201       ;;
16202
16203     hpux11*)
16204       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16205         case $host_cpu in
16206         hppa*64*)
16207           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16208           ;;
16209         ia64*)
16210           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16211           ;;
16212         *)
16213           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16214           ;;
16215         esac
16216       else
16217         case $host_cpu in
16218         hppa*64*)
16219           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16220           ;;
16221         ia64*)
16222           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16223           ;;
16224         *)
16225
16226           # Older versions of the 11.00 compiler do not understand -b yet
16227           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16228           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16229 $as_echo_n "checking if $CC understands -b... " >&6; }
16230 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16231   $as_echo_n "(cached) " >&6
16232 else
16233   lt_cv_prog_compiler__b=no
16234    save_LDFLAGS="$LDFLAGS"
16235    LDFLAGS="$LDFLAGS -b"
16236    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16237    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16238      # The linker can only warn and ignore the option if not recognized
16239      # So say no if there are warnings
16240      if test -s conftest.err; then
16241        # Append any errors to the config.log.
16242        cat conftest.err 1>&5
16243        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16244        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16245        if diff conftest.exp conftest.er2 >/dev/null; then
16246          lt_cv_prog_compiler__b=yes
16247        fi
16248      else
16249        lt_cv_prog_compiler__b=yes
16250      fi
16251    fi
16252    $RM -r conftest*
16253    LDFLAGS="$save_LDFLAGS"
16254
16255 fi
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16257 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16258
16259 if test x"$lt_cv_prog_compiler__b" = xyes; then
16260     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16261 else
16262     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16263 fi
16264
16265           ;;
16266         esac
16267       fi
16268       if test "$with_gnu_ld" = no; then
16269         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16270         hardcode_libdir_separator=:
16271
16272         case $host_cpu in
16273         hppa*64*|ia64*)
16274           hardcode_direct=no
16275           hardcode_shlibpath_var=no
16276           ;;
16277         *)
16278           hardcode_direct=yes
16279           hardcode_direct_absolute=yes
16280           export_dynamic_flag_spec='${wl}-E'
16281
16282           # hardcode_minus_L: Not really in the search PATH,
16283           # but as the default location of the library.
16284           hardcode_minus_L=yes
16285           ;;
16286         esac
16287       fi
16288       ;;
16289
16290     irix5* | irix6* | nonstopux*)
16291       if test "$GCC" = yes; then
16292         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'
16293         # Try to use the -exported_symbol ld option, if it does not
16294         # work, assume that -exports_file does not work either and
16295         # implicitly export all symbols.
16296         save_LDFLAGS="$LDFLAGS"
16297         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16298         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h.  */
16300 int foo(void) {}
16301 _ACEOF
16302 if ac_fn_c_try_link "$LINENO"; then :
16303   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'
16304
16305 fi
16306 rm -f core conftest.err conftest.$ac_objext \
16307     conftest$ac_exeext conftest.$ac_ext
16308         LDFLAGS="$save_LDFLAGS"
16309       else
16310         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'
16311         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'
16312       fi
16313       archive_cmds_need_lc='no'
16314       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16315       hardcode_libdir_separator=:
16316       inherit_rpath=yes
16317       link_all_deplibs=yes
16318       ;;
16319
16320     netbsd*)
16321       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16322         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16323       else
16324         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16325       fi
16326       hardcode_libdir_flag_spec='-R$libdir'
16327       hardcode_direct=yes
16328       hardcode_shlibpath_var=no
16329       ;;
16330
16331     newsos6)
16332       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333       hardcode_direct=yes
16334       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16335       hardcode_libdir_separator=:
16336       hardcode_shlibpath_var=no
16337       ;;
16338
16339     *nto* | *qnx*)
16340       ;;
16341
16342     openbsd*)
16343       if test -f /usr/libexec/ld.so; then
16344         hardcode_direct=yes
16345         hardcode_shlibpath_var=no
16346         hardcode_direct_absolute=yes
16347         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16348           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16349           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16350           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16351           export_dynamic_flag_spec='${wl}-E'
16352         else
16353           case $host_os in
16354            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16355              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16356              hardcode_libdir_flag_spec='-R$libdir'
16357              ;;
16358            *)
16359              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16360              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16361              ;;
16362           esac
16363         fi
16364       else
16365         ld_shlibs=no
16366       fi
16367       ;;
16368
16369     os2*)
16370       hardcode_libdir_flag_spec='-L$libdir'
16371       hardcode_minus_L=yes
16372       allow_undefined_flag=unsupported
16373       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'
16374       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16375       ;;
16376
16377     osf3*)
16378       if test "$GCC" = yes; then
16379         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16380         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'
16381       else
16382         allow_undefined_flag=' -expect_unresolved \*'
16383         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'
16384       fi
16385       archive_cmds_need_lc='no'
16386       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16387       hardcode_libdir_separator=:
16388       ;;
16389
16390     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16391       if test "$GCC" = yes; then
16392         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16393         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'
16394         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16395       else
16396         allow_undefined_flag=' -expect_unresolved \*'
16397         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'
16398         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~
16399         $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'
16400
16401         # Both c and cxx compiler support -rpath directly
16402         hardcode_libdir_flag_spec='-rpath $libdir'
16403       fi
16404       archive_cmds_need_lc='no'
16405       hardcode_libdir_separator=:
16406       ;;
16407
16408     solaris*)
16409       no_undefined_flag=' -z defs'
16410       if test "$GCC" = yes; then
16411         wlarc='${wl}'
16412         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16413         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16414           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16415       else
16416         case `$CC -V 2>&1` in
16417         *"Compilers 5.0"*)
16418           wlarc=''
16419           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16420           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16421           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16422           ;;
16423         *)
16424           wlarc='${wl}'
16425           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16426           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16427           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16428           ;;
16429         esac
16430       fi
16431       hardcode_libdir_flag_spec='-R$libdir'
16432       hardcode_shlibpath_var=no
16433       case $host_os in
16434       solaris2.[0-5] | solaris2.[0-5].*) ;;
16435       *)
16436         # The compiler driver will combine and reorder linker options,
16437         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16438         # but is careful enough not to reorder.
16439         # Supported since Solaris 2.6 (maybe 2.5.1?)
16440         if test "$GCC" = yes; then
16441           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16442         else
16443           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16444         fi
16445         ;;
16446       esac
16447       link_all_deplibs=yes
16448       ;;
16449
16450     sunos4*)
16451       if test "x$host_vendor" = xsequent; then
16452         # Use $CC to link under sequent, because it throws in some extra .o
16453         # files that make .init and .fini sections work.
16454         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16455       else
16456         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16457       fi
16458       hardcode_libdir_flag_spec='-L$libdir'
16459       hardcode_direct=yes
16460       hardcode_minus_L=yes
16461       hardcode_shlibpath_var=no
16462       ;;
16463
16464     sysv4)
16465       case $host_vendor in
16466         sni)
16467           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468           hardcode_direct=yes # is this really true???
16469         ;;
16470         siemens)
16471           ## LD is ld it makes a PLAMLIB
16472           ## CC just makes a GrossModule.
16473           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16474           reload_cmds='$CC -r -o $output$reload_objs'
16475           hardcode_direct=no
16476         ;;
16477         motorola)
16478           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16479           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16480         ;;
16481       esac
16482       runpath_var='LD_RUN_PATH'
16483       hardcode_shlibpath_var=no
16484       ;;
16485
16486     sysv4.3*)
16487       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16488       hardcode_shlibpath_var=no
16489       export_dynamic_flag_spec='-Bexport'
16490       ;;
16491
16492     sysv4*MP*)
16493       if test -d /usr/nec; then
16494         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495         hardcode_shlibpath_var=no
16496         runpath_var=LD_RUN_PATH
16497         hardcode_runpath_var=yes
16498         ld_shlibs=yes
16499       fi
16500       ;;
16501
16502     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16503       no_undefined_flag='${wl}-z,text'
16504       archive_cmds_need_lc=no
16505       hardcode_shlibpath_var=no
16506       runpath_var='LD_RUN_PATH'
16507
16508       if test "$GCC" = yes; then
16509         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16510         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511       else
16512         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16513         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16514       fi
16515       ;;
16516
16517     sysv5* | sco3.2v5* | sco5v6*)
16518       # Note: We can NOT use -z defs as we might desire, because we do not
16519       # link with -lc, and that would cause any symbols used from libc to
16520       # always be unresolved, which means just about no library would
16521       # ever link correctly.  If we're not using GNU ld we use -z text
16522       # though, which does catch some bad symbols but isn't as heavy-handed
16523       # as -z defs.
16524       no_undefined_flag='${wl}-z,text'
16525       allow_undefined_flag='${wl}-z,nodefs'
16526       archive_cmds_need_lc=no
16527       hardcode_shlibpath_var=no
16528       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16529       hardcode_libdir_separator=':'
16530       link_all_deplibs=yes
16531       export_dynamic_flag_spec='${wl}-Bexport'
16532       runpath_var='LD_RUN_PATH'
16533
16534       if test "$GCC" = yes; then
16535         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537       else
16538         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16540       fi
16541       ;;
16542
16543     uts4*)
16544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545       hardcode_libdir_flag_spec='-L$libdir'
16546       hardcode_shlibpath_var=no
16547       ;;
16548
16549     *)
16550       ld_shlibs=no
16551       ;;
16552     esac
16553
16554     if test x$host_vendor = xsni; then
16555       case $host in
16556       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16557         export_dynamic_flag_spec='${wl}-Blargedynsym'
16558         ;;
16559       esac
16560     fi
16561   fi
16562
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16564 $as_echo "$ld_shlibs" >&6; }
16565 test "$ld_shlibs" = no && can_build_shared=no
16566
16567 with_gnu_ld=$with_gnu_ld
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583 #
16584 # Do we need to explicitly link libc?
16585 #
16586 case "x$archive_cmds_need_lc" in
16587 x|xyes)
16588   # Assume -lc should be added
16589   archive_cmds_need_lc=yes
16590
16591   if test "$enable_shared" = yes && test "$GCC" = yes; then
16592     case $archive_cmds in
16593     *'~'*)
16594       # FIXME: we may have to deal with multi-command sequences.
16595       ;;
16596     '$CC '*)
16597       # Test whether the compiler implicitly links with -lc since on some
16598       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16599       # to ld, don't add -lc before -lgcc.
16600       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16601 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16602 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16603   $as_echo_n "(cached) " >&6
16604 else
16605   $RM conftest*
16606         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16607
16608         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16609   (eval $ac_compile) 2>&5
16610   ac_status=$?
16611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16612   test $ac_status = 0; } 2>conftest.err; then
16613           soname=conftest
16614           lib=conftest
16615           libobjs=conftest.$ac_objext
16616           deplibs=
16617           wl=$lt_prog_compiler_wl
16618           pic_flag=$lt_prog_compiler_pic
16619           compiler_flags=-v
16620           linker_flags=-v
16621           verstring=
16622           output_objdir=.
16623           libname=conftest
16624           lt_save_allow_undefined_flag=$allow_undefined_flag
16625           allow_undefined_flag=
16626           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16627   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16628   ac_status=$?
16629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16630   test $ac_status = 0; }
16631           then
16632             lt_cv_archive_cmds_need_lc=no
16633           else
16634             lt_cv_archive_cmds_need_lc=yes
16635           fi
16636           allow_undefined_flag=$lt_save_allow_undefined_flag
16637         else
16638           cat conftest.err 1>&5
16639         fi
16640         $RM conftest*
16641
16642 fi
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16644 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16645       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16646       ;;
16647     esac
16648   fi
16649   ;;
16650 esac
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16809 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16810
16811 if test "$GCC" = yes; then
16812   case $host_os in
16813     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16814     *) lt_awk_arg="/^libraries:/" ;;
16815   esac
16816   case $host_os in
16817     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16818     *) lt_sed_strip_eq="s,=/,/,g" ;;
16819   esac
16820   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16821   case $lt_search_path_spec in
16822   *\;*)
16823     # if the path contains ";" then we assume it to be the separator
16824     # otherwise default to the standard path separator (i.e. ":") - it is
16825     # assumed that no part of a normal pathname contains ";" but that should
16826     # okay in the real world where ";" in dirpaths is itself problematic.
16827     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16828     ;;
16829   *)
16830     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16831     ;;
16832   esac
16833   # Ok, now we have the path, separated by spaces, we can step through it
16834   # and add multilib dir if necessary.
16835   lt_tmp_lt_search_path_spec=
16836   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16837   for lt_sys_path in $lt_search_path_spec; do
16838     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16839       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16840     else
16841       test -d "$lt_sys_path" && \
16842         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16843     fi
16844   done
16845   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16846 BEGIN {RS=" "; FS="/|\n";} {
16847   lt_foo="";
16848   lt_count=0;
16849   for (lt_i = NF; lt_i > 0; lt_i--) {
16850     if ($lt_i != "" && $lt_i != ".") {
16851       if ($lt_i == "..") {
16852         lt_count++;
16853       } else {
16854         if (lt_count == 0) {
16855           lt_foo="/" $lt_i lt_foo;
16856         } else {
16857           lt_count--;
16858         }
16859       }
16860     }
16861   }
16862   if (lt_foo != "") { lt_freq[lt_foo]++; }
16863   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16864 }'`
16865   # AWK program above erroneously prepends '/' to C:/dos/paths
16866   # for these hosts.
16867   case $host_os in
16868     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16869       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16870   esac
16871   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16872 else
16873   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16874 fi
16875 library_names_spec=
16876 libname_spec='lib$name'
16877 soname_spec=
16878 shrext_cmds=".so"
16879 postinstall_cmds=
16880 postuninstall_cmds=
16881 finish_cmds=
16882 finish_eval=
16883 shlibpath_var=
16884 shlibpath_overrides_runpath=unknown
16885 version_type=none
16886 dynamic_linker="$host_os ld.so"
16887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16888 need_lib_prefix=unknown
16889 hardcode_into_libs=no
16890
16891 # when you set need_version to no, make sure it does not cause -set_version
16892 # flags to be left without arguments
16893 need_version=unknown
16894
16895 case $host_os in
16896 aix3*)
16897   version_type=linux
16898   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16899   shlibpath_var=LIBPATH
16900
16901   # AIX 3 has no versioning support, so we append a major version to the name.
16902   soname_spec='${libname}${release}${shared_ext}$major'
16903   ;;
16904
16905 aix[4-9]*)
16906   version_type=linux
16907   need_lib_prefix=no
16908   need_version=no
16909   hardcode_into_libs=yes
16910   if test "$host_cpu" = ia64; then
16911     # AIX 5 supports IA64
16912     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16913     shlibpath_var=LD_LIBRARY_PATH
16914   else
16915     # With GCC up to 2.95.x, collect2 would create an import file
16916     # for dependence libraries.  The import file would start with
16917     # the line `#! .'.  This would cause the generated library to
16918     # depend on `.', always an invalid library.  This was fixed in
16919     # development snapshots of GCC prior to 3.0.
16920     case $host_os in
16921       aix4 | aix4.[01] | aix4.[01].*)
16922       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16923            echo ' yes '
16924            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16925         :
16926       else
16927         can_build_shared=no
16928       fi
16929       ;;
16930     esac
16931     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16932     # soname into executable. Probably we can add versioning support to
16933     # collect2, so additional links can be useful in future.
16934     if test "$aix_use_runtimelinking" = yes; then
16935       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16936       # instead of lib<name>.a to let people know that these are not
16937       # typical AIX shared libraries.
16938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939     else
16940       # We preserve .a as extension for shared libraries through AIX4.2
16941       # and later when we are not doing run time linking.
16942       library_names_spec='${libname}${release}.a $libname.a'
16943       soname_spec='${libname}${release}${shared_ext}$major'
16944     fi
16945     shlibpath_var=LIBPATH
16946   fi
16947   ;;
16948
16949 amigaos*)
16950   case $host_cpu in
16951   powerpc)
16952     # Since July 2007 AmigaOS4 officially supports .so libraries.
16953     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16955     ;;
16956   m68k)
16957     library_names_spec='$libname.ixlibrary $libname.a'
16958     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16959     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'
16960     ;;
16961   esac
16962   ;;
16963
16964 beos*)
16965   library_names_spec='${libname}${shared_ext}'
16966   dynamic_linker="$host_os ld.so"
16967   shlibpath_var=LIBRARY_PATH
16968   ;;
16969
16970 bsdi[45]*)
16971   version_type=linux
16972   need_version=no
16973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974   soname_spec='${libname}${release}${shared_ext}$major'
16975   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16976   shlibpath_var=LD_LIBRARY_PATH
16977   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16978   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16979   # the default ld.so.conf also contains /usr/contrib/lib and
16980   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16981   # libtool to hard-code these into programs
16982   ;;
16983
16984 cygwin* | mingw* | pw32* | cegcc*)
16985   version_type=windows
16986   shrext_cmds=".dll"
16987   need_version=no
16988   need_lib_prefix=no
16989
16990   case $GCC,$host_os in
16991   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16992     library_names_spec='$libname.dll.a'
16993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16994     postinstall_cmds='base_file=`basename \${file}`~
16995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16996       dldir=$destdir/`dirname \$dlpath`~
16997       test -d \$dldir || mkdir -p \$dldir~
16998       $install_prog $dir/$dlname \$dldir/$dlname~
16999       chmod a+x \$dldir/$dlname~
17000       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17001         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17002       fi'
17003     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17004       dlpath=$dir/\$dldll~
17005        $RM \$dlpath'
17006     shlibpath_overrides_runpath=yes
17007
17008     case $host_os in
17009     cygwin*)
17010       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17011       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17012
17013       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17014       ;;
17015     mingw* | cegcc*)
17016       # MinGW DLLs use traditional 'lib' prefix
17017       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17018       ;;
17019     pw32*)
17020       # pw32 DLLs use 'pw' prefix rather than 'lib'
17021       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17022       ;;
17023     esac
17024     ;;
17025
17026   *)
17027     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17028     ;;
17029   esac
17030   dynamic_linker='Win32 ld.exe'
17031   # FIXME: first we should search . and the directory the executable is in
17032   shlibpath_var=PATH
17033   ;;
17034
17035 darwin* | rhapsody*)
17036   dynamic_linker="$host_os dyld"
17037   version_type=darwin
17038   need_lib_prefix=no
17039   need_version=no
17040   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17041   soname_spec='${libname}${release}${major}$shared_ext'
17042   shlibpath_overrides_runpath=yes
17043   shlibpath_var=DYLD_LIBRARY_PATH
17044   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17045
17046   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17047   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17048   ;;
17049
17050 dgux*)
17051   version_type=linux
17052   need_lib_prefix=no
17053   need_version=no
17054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17055   soname_spec='${libname}${release}${shared_ext}$major'
17056   shlibpath_var=LD_LIBRARY_PATH
17057   ;;
17058
17059 freebsd* | dragonfly*)
17060   # DragonFly does not have aout.  When/if they implement a new
17061   # versioning mechanism, adjust this.
17062   if test -x /usr/bin/objformat; then
17063     objformat=`/usr/bin/objformat`
17064   else
17065     case $host_os in
17066     freebsd[123]*) objformat=aout ;;
17067     *) objformat=elf ;;
17068     esac
17069   fi
17070   version_type=freebsd-$objformat
17071   case $version_type in
17072     freebsd-elf*)
17073       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17074       need_version=no
17075       need_lib_prefix=no
17076       ;;
17077     freebsd-*)
17078       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17079       need_version=yes
17080       ;;
17081   esac
17082   shlibpath_var=LD_LIBRARY_PATH
17083   case $host_os in
17084   freebsd2*)
17085     shlibpath_overrides_runpath=yes
17086     ;;
17087   freebsd3.[01]* | freebsdelf3.[01]*)
17088     shlibpath_overrides_runpath=yes
17089     hardcode_into_libs=yes
17090     ;;
17091   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17092   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17093     shlibpath_overrides_runpath=no
17094     hardcode_into_libs=yes
17095     ;;
17096   *) # from 4.6 on, and DragonFly
17097     shlibpath_overrides_runpath=yes
17098     hardcode_into_libs=yes
17099     ;;
17100   esac
17101   ;;
17102
17103 gnu*)
17104   version_type=linux
17105   need_lib_prefix=no
17106   need_version=no
17107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17108   soname_spec='${libname}${release}${shared_ext}$major'
17109   shlibpath_var=LD_LIBRARY_PATH
17110   hardcode_into_libs=yes
17111   ;;
17112
17113 haiku*)
17114   version_type=linux
17115   need_lib_prefix=no
17116   need_version=no
17117   dynamic_linker="$host_os runtime_loader"
17118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17119   soname_spec='${libname}${release}${shared_ext}$major'
17120   shlibpath_var=LIBRARY_PATH
17121   shlibpath_overrides_runpath=yes
17122   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17123   hardcode_into_libs=yes
17124   ;;
17125
17126 hpux9* | hpux10* | hpux11*)
17127   # Give a soname corresponding to the major version so that dld.sl refuses to
17128   # link against other versions.
17129   version_type=sunos
17130   need_lib_prefix=no
17131   need_version=no
17132   case $host_cpu in
17133   ia64*)
17134     shrext_cmds='.so'
17135     hardcode_into_libs=yes
17136     dynamic_linker="$host_os dld.so"
17137     shlibpath_var=LD_LIBRARY_PATH
17138     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140     soname_spec='${libname}${release}${shared_ext}$major'
17141     if test "X$HPUX_IA64_MODE" = X32; then
17142       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17143     else
17144       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17145     fi
17146     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17147     ;;
17148   hppa*64*)
17149     shrext_cmds='.sl'
17150     hardcode_into_libs=yes
17151     dynamic_linker="$host_os dld.sl"
17152     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155     soname_spec='${libname}${release}${shared_ext}$major'
17156     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17157     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17158     ;;
17159   *)
17160     shrext_cmds='.sl'
17161     dynamic_linker="$host_os dld.sl"
17162     shlibpath_var=SHLIB_PATH
17163     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165     soname_spec='${libname}${release}${shared_ext}$major'
17166     ;;
17167   esac
17168   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17169   postinstall_cmds='chmod 555 $lib'
17170   # or fails outright, so override atomically:
17171   install_override_mode=555
17172   ;;
17173
17174 interix[3-9]*)
17175   version_type=linux
17176   need_lib_prefix=no
17177   need_version=no
17178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17179   soname_spec='${libname}${release}${shared_ext}$major'
17180   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17181   shlibpath_var=LD_LIBRARY_PATH
17182   shlibpath_overrides_runpath=no
17183   hardcode_into_libs=yes
17184   ;;
17185
17186 irix5* | irix6* | nonstopux*)
17187   case $host_os in
17188     nonstopux*) version_type=nonstopux ;;
17189     *)
17190         if test "$lt_cv_prog_gnu_ld" = yes; then
17191                 version_type=linux
17192         else
17193                 version_type=irix
17194         fi ;;
17195   esac
17196   need_lib_prefix=no
17197   need_version=no
17198   soname_spec='${libname}${release}${shared_ext}$major'
17199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17200   case $host_os in
17201   irix5* | nonstopux*)
17202     libsuff= shlibsuff=
17203     ;;
17204   *)
17205     case $LD in # libtool.m4 will add one of these switches to LD
17206     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17207       libsuff= shlibsuff= libmagic=32-bit;;
17208     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17209       libsuff=32 shlibsuff=N32 libmagic=N32;;
17210     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17211       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17212     *) libsuff= shlibsuff= libmagic=never-match;;
17213     esac
17214     ;;
17215   esac
17216   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17217   shlibpath_overrides_runpath=no
17218   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17219   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17220   hardcode_into_libs=yes
17221   ;;
17222
17223 # No shared lib support for Linux oldld, aout, or coff.
17224 linux*oldld* | linux*aout* | linux*coff*)
17225   dynamic_linker=no
17226   ;;
17227
17228 # This must be Linux ELF.
17229 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17230   version_type=linux
17231   need_lib_prefix=no
17232   need_version=no
17233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234   soname_spec='${libname}${release}${shared_ext}$major'
17235   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17236   shlibpath_var=LD_LIBRARY_PATH
17237   shlibpath_overrides_runpath=no
17238
17239   # Some binutils ld are patched to set DT_RUNPATH
17240   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17241   $as_echo_n "(cached) " >&6
17242 else
17243   lt_cv_shlibpath_overrides_runpath=no
17244     save_LDFLAGS=$LDFLAGS
17245     save_libdir=$libdir
17246     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17247          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h.  */
17250
17251 int
17252 main ()
17253 {
17254
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 if ac_fn_c_try_link "$LINENO"; then :
17260   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17261   lt_cv_shlibpath_overrides_runpath=yes
17262 fi
17263 fi
17264 rm -f core conftest.err conftest.$ac_objext \
17265     conftest$ac_exeext conftest.$ac_ext
17266     LDFLAGS=$save_LDFLAGS
17267     libdir=$save_libdir
17268
17269 fi
17270
17271   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17272
17273   # This implies no fast_install, which is unacceptable.
17274   # Some rework will be needed to allow for fast_install
17275   # before this can be enabled.
17276   hardcode_into_libs=yes
17277
17278   # Append ld.so.conf contents to the search path
17279   if test -f /etc/ld.so.conf; then
17280     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' ' '`
17281     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17282   fi
17283
17284   # We used to test for /lib/ld.so.1 and disable shared libraries on
17285   # powerpc, because MkLinux only supported shared libraries with the
17286   # GNU dynamic linker.  Since this was broken with cross compilers,
17287   # most powerpc-linux boxes support dynamic linking these days and
17288   # people can always --disable-shared, the test was removed, and we
17289   # assume the GNU/Linux dynamic linker is in use.
17290   dynamic_linker='GNU/Linux ld.so'
17291   ;;
17292
17293 netbsd*)
17294   version_type=sunos
17295   need_lib_prefix=no
17296   need_version=no
17297   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17299     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17300     dynamic_linker='NetBSD (a.out) ld.so'
17301   else
17302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17303     soname_spec='${libname}${release}${shared_ext}$major'
17304     dynamic_linker='NetBSD ld.elf_so'
17305   fi
17306   shlibpath_var=LD_LIBRARY_PATH
17307   shlibpath_overrides_runpath=yes
17308   hardcode_into_libs=yes
17309   ;;
17310
17311 newsos6)
17312   version_type=linux
17313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314   shlibpath_var=LD_LIBRARY_PATH
17315   shlibpath_overrides_runpath=yes
17316   ;;
17317
17318 *nto* | *qnx*)
17319   version_type=qnx
17320   need_lib_prefix=no
17321   need_version=no
17322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323   soname_spec='${libname}${release}${shared_ext}$major'
17324   shlibpath_var=LD_LIBRARY_PATH
17325   shlibpath_overrides_runpath=no
17326   hardcode_into_libs=yes
17327   dynamic_linker='ldqnx.so'
17328   ;;
17329
17330 openbsd*)
17331   version_type=sunos
17332   sys_lib_dlsearch_path_spec="/usr/lib"
17333   need_lib_prefix=no
17334   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17335   case $host_os in
17336     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17337     *)                          need_version=no  ;;
17338   esac
17339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17340   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17341   shlibpath_var=LD_LIBRARY_PATH
17342   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17343     case $host_os in
17344       openbsd2.[89] | openbsd2.[89].*)
17345         shlibpath_overrides_runpath=no
17346         ;;
17347       *)
17348         shlibpath_overrides_runpath=yes
17349         ;;
17350       esac
17351   else
17352     shlibpath_overrides_runpath=yes
17353   fi
17354   ;;
17355
17356 os2*)
17357   libname_spec='$name'
17358   shrext_cmds=".dll"
17359   need_lib_prefix=no
17360   library_names_spec='$libname${shared_ext} $libname.a'
17361   dynamic_linker='OS/2 ld.exe'
17362   shlibpath_var=LIBPATH
17363   ;;
17364
17365 osf3* | osf4* | osf5*)
17366   version_type=osf
17367   need_lib_prefix=no
17368   need_version=no
17369   soname_spec='${libname}${release}${shared_ext}$major'
17370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371   shlibpath_var=LD_LIBRARY_PATH
17372   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17373   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17374   ;;
17375
17376 rdos*)
17377   dynamic_linker=no
17378   ;;
17379
17380 solaris*)
17381   version_type=linux
17382   need_lib_prefix=no
17383   need_version=no
17384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17385   soname_spec='${libname}${release}${shared_ext}$major'
17386   shlibpath_var=LD_LIBRARY_PATH
17387   shlibpath_overrides_runpath=yes
17388   hardcode_into_libs=yes
17389   # ldd complains unless libraries are executable
17390   postinstall_cmds='chmod +x $lib'
17391   ;;
17392
17393 sunos4*)
17394   version_type=sunos
17395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17396   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17397   shlibpath_var=LD_LIBRARY_PATH
17398   shlibpath_overrides_runpath=yes
17399   if test "$with_gnu_ld" = yes; then
17400     need_lib_prefix=no
17401   fi
17402   need_version=yes
17403   ;;
17404
17405 sysv4 | sysv4.3*)
17406   version_type=linux
17407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408   soname_spec='${libname}${release}${shared_ext}$major'
17409   shlibpath_var=LD_LIBRARY_PATH
17410   case $host_vendor in
17411     sni)
17412       shlibpath_overrides_runpath=no
17413       need_lib_prefix=no
17414       runpath_var=LD_RUN_PATH
17415       ;;
17416     siemens)
17417       need_lib_prefix=no
17418       ;;
17419     motorola)
17420       need_lib_prefix=no
17421       need_version=no
17422       shlibpath_overrides_runpath=no
17423       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17424       ;;
17425   esac
17426   ;;
17427
17428 sysv4*MP*)
17429   if test -d /usr/nec ;then
17430     version_type=linux
17431     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17432     soname_spec='$libname${shared_ext}.$major'
17433     shlibpath_var=LD_LIBRARY_PATH
17434   fi
17435   ;;
17436
17437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17438   version_type=freebsd-elf
17439   need_lib_prefix=no
17440   need_version=no
17441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17442   soname_spec='${libname}${release}${shared_ext}$major'
17443   shlibpath_var=LD_LIBRARY_PATH
17444   shlibpath_overrides_runpath=yes
17445   hardcode_into_libs=yes
17446   if test "$with_gnu_ld" = yes; then
17447     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17448   else
17449     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17450     case $host_os in
17451       sco3.2v5*)
17452         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17453         ;;
17454     esac
17455   fi
17456   sys_lib_dlsearch_path_spec='/usr/lib'
17457   ;;
17458
17459 tpf*)
17460   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17461   version_type=linux
17462   need_lib_prefix=no
17463   need_version=no
17464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465   shlibpath_var=LD_LIBRARY_PATH
17466   shlibpath_overrides_runpath=no
17467   hardcode_into_libs=yes
17468   ;;
17469
17470 uts4*)
17471   version_type=linux
17472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473   soname_spec='${libname}${release}${shared_ext}$major'
17474   shlibpath_var=LD_LIBRARY_PATH
17475   ;;
17476
17477 *)
17478   dynamic_linker=no
17479   ;;
17480 esac
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17482 $as_echo "$dynamic_linker" >&6; }
17483 test "$dynamic_linker" = no && can_build_shared=no
17484
17485 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17486 if test "$GCC" = yes; then
17487   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17488 fi
17489
17490 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17491   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17492 fi
17493 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17494   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17495 fi
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17589 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17590 hardcode_action=
17591 if test -n "$hardcode_libdir_flag_spec" ||
17592    test -n "$runpath_var" ||
17593    test "X$hardcode_automatic" = "Xyes" ; then
17594
17595   # We can hardcode non-existent directories.
17596   if test "$hardcode_direct" != no &&
17597      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17598      # have to relink, otherwise we might link with an installed library
17599      # when we should be linking with a yet-to-be-installed one
17600      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17601      test "$hardcode_minus_L" != no; then
17602     # Linking always hardcodes the temporary library directory.
17603     hardcode_action=relink
17604   else
17605     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17606     hardcode_action=immediate
17607   fi
17608 else
17609   # We cannot hardcode anything, or else we can only hardcode existing
17610   # directories.
17611   hardcode_action=unsupported
17612 fi
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17614 $as_echo "$hardcode_action" >&6; }
17615
17616 if test "$hardcode_action" = relink ||
17617    test "$inherit_rpath" = yes; then
17618   # Fast installation is not supported
17619   enable_fast_install=no
17620 elif test "$shlibpath_overrides_runpath" = yes ||
17621      test "$enable_shared" = no; then
17622   # Fast installation is not necessary
17623   enable_fast_install=needless
17624 fi
17625
17626
17627
17628
17629
17630
17631   if test "x$enable_dlopen" != xyes; then
17632   enable_dlopen=unknown
17633   enable_dlopen_self=unknown
17634   enable_dlopen_self_static=unknown
17635 else
17636   lt_cv_dlopen=no
17637   lt_cv_dlopen_libs=
17638
17639   case $host_os in
17640   beos*)
17641     lt_cv_dlopen="load_add_on"
17642     lt_cv_dlopen_libs=
17643     lt_cv_dlopen_self=yes
17644     ;;
17645
17646   mingw* | pw32* | cegcc*)
17647     lt_cv_dlopen="LoadLibrary"
17648     lt_cv_dlopen_libs=
17649     ;;
17650
17651   cygwin*)
17652     lt_cv_dlopen="dlopen"
17653     lt_cv_dlopen_libs=
17654     ;;
17655
17656   darwin*)
17657   # if libdl is installed we need to link against it
17658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17659 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17661   $as_echo_n "(cached) " >&6
17662 else
17663   ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-ldl  $LIBS"
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h.  */
17667
17668 /* Override any GCC internal prototype to avoid an error.
17669    Use char because int might match the return type of a GCC
17670    builtin and then its argument prototype would still apply.  */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 char dlopen ();
17675 int
17676 main ()
17677 {
17678 return dlopen ();
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 if ac_fn_c_try_link "$LINENO"; then :
17684   ac_cv_lib_dl_dlopen=yes
17685 else
17686   ac_cv_lib_dl_dlopen=no
17687 fi
17688 rm -f core conftest.err conftest.$ac_objext \
17689     conftest$ac_exeext conftest.$ac_ext
17690 LIBS=$ac_check_lib_save_LIBS
17691 fi
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17693 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17694 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17695   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17696 else
17697
17698     lt_cv_dlopen="dyld"
17699     lt_cv_dlopen_libs=
17700     lt_cv_dlopen_self=yes
17701
17702 fi
17703
17704     ;;
17705
17706   *)
17707     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17708 if test "x$ac_cv_func_shl_load" = x""yes; then :
17709   lt_cv_dlopen="shl_load"
17710 else
17711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17712 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17713 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17714   $as_echo_n "(cached) " >&6
17715 else
17716   ac_check_lib_save_LIBS=$LIBS
17717 LIBS="-ldld  $LIBS"
17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h.  */
17720
17721 /* Override any GCC internal prototype to avoid an error.
17722    Use char because int might match the return type of a GCC
17723    builtin and then its argument prototype would still apply.  */
17724 #ifdef __cplusplus
17725 extern "C"
17726 #endif
17727 char shl_load ();
17728 int
17729 main ()
17730 {
17731 return shl_load ();
17732   ;
17733   return 0;
17734 }
17735 _ACEOF
17736 if ac_fn_c_try_link "$LINENO"; then :
17737   ac_cv_lib_dld_shl_load=yes
17738 else
17739   ac_cv_lib_dld_shl_load=no
17740 fi
17741 rm -f core conftest.err conftest.$ac_objext \
17742     conftest$ac_exeext conftest.$ac_ext
17743 LIBS=$ac_check_lib_save_LIBS
17744 fi
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17746 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17747 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17748   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17749 else
17750   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17751 if test "x$ac_cv_func_dlopen" = x""yes; then :
17752   lt_cv_dlopen="dlopen"
17753 else
17754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17755 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17756 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17757   $as_echo_n "(cached) " >&6
17758 else
17759   ac_check_lib_save_LIBS=$LIBS
17760 LIBS="-ldl  $LIBS"
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h.  */
17763
17764 /* Override any GCC internal prototype to avoid an error.
17765    Use char because int might match the return type of a GCC
17766    builtin and then its argument prototype would still apply.  */
17767 #ifdef __cplusplus
17768 extern "C"
17769 #endif
17770 char dlopen ();
17771 int
17772 main ()
17773 {
17774 return dlopen ();
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 if ac_fn_c_try_link "$LINENO"; then :
17780   ac_cv_lib_dl_dlopen=yes
17781 else
17782   ac_cv_lib_dl_dlopen=no
17783 fi
17784 rm -f core conftest.err conftest.$ac_objext \
17785     conftest$ac_exeext conftest.$ac_ext
17786 LIBS=$ac_check_lib_save_LIBS
17787 fi
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17789 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17790 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17791   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17792 else
17793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17794 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17795 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17796   $as_echo_n "(cached) " >&6
17797 else
17798   ac_check_lib_save_LIBS=$LIBS
17799 LIBS="-lsvld  $LIBS"
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h.  */
17802
17803 /* Override any GCC internal prototype to avoid an error.
17804    Use char because int might match the return type of a GCC
17805    builtin and then its argument prototype would still apply.  */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 char dlopen ();
17810 int
17811 main ()
17812 {
17813 return dlopen ();
17814   ;
17815   return 0;
17816 }
17817 _ACEOF
17818 if ac_fn_c_try_link "$LINENO"; then :
17819   ac_cv_lib_svld_dlopen=yes
17820 else
17821   ac_cv_lib_svld_dlopen=no
17822 fi
17823 rm -f core conftest.err conftest.$ac_objext \
17824     conftest$ac_exeext conftest.$ac_ext
17825 LIBS=$ac_check_lib_save_LIBS
17826 fi
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17828 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17829 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17830   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17831 else
17832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17833 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17834 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17835   $as_echo_n "(cached) " >&6
17836 else
17837   ac_check_lib_save_LIBS=$LIBS
17838 LIBS="-ldld  $LIBS"
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h.  */
17841
17842 /* Override any GCC internal prototype to avoid an error.
17843    Use char because int might match the return type of a GCC
17844    builtin and then its argument prototype would still apply.  */
17845 #ifdef __cplusplus
17846 extern "C"
17847 #endif
17848 char dld_link ();
17849 int
17850 main ()
17851 {
17852 return dld_link ();
17853   ;
17854   return 0;
17855 }
17856 _ACEOF
17857 if ac_fn_c_try_link "$LINENO"; then :
17858   ac_cv_lib_dld_dld_link=yes
17859 else
17860   ac_cv_lib_dld_dld_link=no
17861 fi
17862 rm -f core conftest.err conftest.$ac_objext \
17863     conftest$ac_exeext conftest.$ac_ext
17864 LIBS=$ac_check_lib_save_LIBS
17865 fi
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17867 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17868 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17869   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17870 fi
17871
17872
17873 fi
17874
17875
17876 fi
17877
17878
17879 fi
17880
17881
17882 fi
17883
17884
17885 fi
17886
17887     ;;
17888   esac
17889
17890   if test "x$lt_cv_dlopen" != xno; then
17891     enable_dlopen=yes
17892   else
17893     enable_dlopen=no
17894   fi
17895
17896   case $lt_cv_dlopen in
17897   dlopen)
17898     save_CPPFLAGS="$CPPFLAGS"
17899     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17900
17901     save_LDFLAGS="$LDFLAGS"
17902     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17903
17904     save_LIBS="$LIBS"
17905     LIBS="$lt_cv_dlopen_libs $LIBS"
17906
17907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17908 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17909 if test "${lt_cv_dlopen_self+set}" = set; then :
17910   $as_echo_n "(cached) " >&6
17911 else
17912           if test "$cross_compiling" = yes; then :
17913   lt_cv_dlopen_self=cross
17914 else
17915   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17916   lt_status=$lt_dlunknown
17917   cat > conftest.$ac_ext <<_LT_EOF
17918 #line 17918 "configure"
17919 #include "confdefs.h"
17920
17921 #if HAVE_DLFCN_H
17922 #include <dlfcn.h>
17923 #endif
17924
17925 #include <stdio.h>
17926
17927 #ifdef RTLD_GLOBAL
17928 #  define LT_DLGLOBAL           RTLD_GLOBAL
17929 #else
17930 #  ifdef DL_GLOBAL
17931 #    define LT_DLGLOBAL         DL_GLOBAL
17932 #  else
17933 #    define LT_DLGLOBAL         0
17934 #  endif
17935 #endif
17936
17937 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17938    find out it does not work in some platform. */
17939 #ifndef LT_DLLAZY_OR_NOW
17940 #  ifdef RTLD_LAZY
17941 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17942 #  else
17943 #    ifdef DL_LAZY
17944 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17945 #    else
17946 #      ifdef RTLD_NOW
17947 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17948 #      else
17949 #        ifdef DL_NOW
17950 #          define LT_DLLAZY_OR_NOW      DL_NOW
17951 #        else
17952 #          define LT_DLLAZY_OR_NOW      0
17953 #        endif
17954 #      endif
17955 #    endif
17956 #  endif
17957 #endif
17958
17959 /* When -fvisbility=hidden is used, assume the code has been annotated
17960    correspondingly for the symbols needed.  */
17961 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17962 void fnord () __attribute__((visibility("default")));
17963 #endif
17964
17965 void fnord () { int i=42; }
17966 int main ()
17967 {
17968   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17969   int status = $lt_dlunknown;
17970
17971   if (self)
17972     {
17973       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17974       else
17975         {
17976           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17977           else puts (dlerror ());
17978         }
17979       /* dlclose (self); */
17980     }
17981   else
17982     puts (dlerror ());
17983
17984   return status;
17985 }
17986 _LT_EOF
17987   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17988   (eval $ac_link) 2>&5
17989   ac_status=$?
17990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17991   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17992     (./conftest; exit; ) >&5 2>/dev/null
17993     lt_status=$?
17994     case x$lt_status in
17995       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17996       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17997       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17998     esac
17999   else :
18000     # compilation failed
18001     lt_cv_dlopen_self=no
18002   fi
18003 fi
18004 rm -fr conftest*
18005
18006
18007 fi
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18009 $as_echo "$lt_cv_dlopen_self" >&6; }
18010
18011     if test "x$lt_cv_dlopen_self" = xyes; then
18012       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18013       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18014 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18015 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18016   $as_echo_n "(cached) " >&6
18017 else
18018           if test "$cross_compiling" = yes; then :
18019   lt_cv_dlopen_self_static=cross
18020 else
18021   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18022   lt_status=$lt_dlunknown
18023   cat > conftest.$ac_ext <<_LT_EOF
18024 #line 18024 "configure"
18025 #include "confdefs.h"
18026
18027 #if HAVE_DLFCN_H
18028 #include <dlfcn.h>
18029 #endif
18030
18031 #include <stdio.h>
18032
18033 #ifdef RTLD_GLOBAL
18034 #  define LT_DLGLOBAL           RTLD_GLOBAL
18035 #else
18036 #  ifdef DL_GLOBAL
18037 #    define LT_DLGLOBAL         DL_GLOBAL
18038 #  else
18039 #    define LT_DLGLOBAL         0
18040 #  endif
18041 #endif
18042
18043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18044    find out it does not work in some platform. */
18045 #ifndef LT_DLLAZY_OR_NOW
18046 #  ifdef RTLD_LAZY
18047 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18048 #  else
18049 #    ifdef DL_LAZY
18050 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18051 #    else
18052 #      ifdef RTLD_NOW
18053 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18054 #      else
18055 #        ifdef DL_NOW
18056 #          define LT_DLLAZY_OR_NOW      DL_NOW
18057 #        else
18058 #          define LT_DLLAZY_OR_NOW      0
18059 #        endif
18060 #      endif
18061 #    endif
18062 #  endif
18063 #endif
18064
18065 /* When -fvisbility=hidden is used, assume the code has been annotated
18066    correspondingly for the symbols needed.  */
18067 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18068 void fnord () __attribute__((visibility("default")));
18069 #endif
18070
18071 void fnord () { int i=42; }
18072 int main ()
18073 {
18074   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18075   int status = $lt_dlunknown;
18076
18077   if (self)
18078     {
18079       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18080       else
18081         {
18082           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18083           else puts (dlerror ());
18084         }
18085       /* dlclose (self); */
18086     }
18087   else
18088     puts (dlerror ());
18089
18090   return status;
18091 }
18092 _LT_EOF
18093   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18094   (eval $ac_link) 2>&5
18095   ac_status=$?
18096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18097   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18098     (./conftest; exit; ) >&5 2>/dev/null
18099     lt_status=$?
18100     case x$lt_status in
18101       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18102       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18103       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18104     esac
18105   else :
18106     # compilation failed
18107     lt_cv_dlopen_self_static=no
18108   fi
18109 fi
18110 rm -fr conftest*
18111
18112
18113 fi
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18115 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18116     fi
18117
18118     CPPFLAGS="$save_CPPFLAGS"
18119     LDFLAGS="$save_LDFLAGS"
18120     LIBS="$save_LIBS"
18121     ;;
18122   esac
18123
18124   case $lt_cv_dlopen_self in
18125   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18126   *) enable_dlopen_self=unknown ;;
18127   esac
18128
18129   case $lt_cv_dlopen_self_static in
18130   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18131   *) enable_dlopen_self_static=unknown ;;
18132   esac
18133 fi
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151 striplib=
18152 old_striplib=
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18154 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18155 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18156   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18157   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18159 $as_echo "yes" >&6; }
18160 else
18161 # FIXME - insert some real tests, host_os isn't really good enough
18162   case $host_os in
18163   darwin*)
18164     if test -n "$STRIP" ; then
18165       striplib="$STRIP -x"
18166       old_striplib="$STRIP -S"
18167       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18168 $as_echo "yes" >&6; }
18169     else
18170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171 $as_echo "no" >&6; }
18172     fi
18173     ;;
18174   *)
18175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 $as_echo "no" >&6; }
18177     ;;
18178   esac
18179 fi
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192   # Report which library types will actually be built
18193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18194 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18196 $as_echo "$can_build_shared" >&6; }
18197
18198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18199 $as_echo_n "checking whether to build shared libraries... " >&6; }
18200   test "$can_build_shared" = "no" && enable_shared=no
18201
18202   # On AIX, shared libraries and static libraries use the same namespace, and
18203   # are all built from PIC.
18204   case $host_os in
18205   aix3*)
18206     test "$enable_shared" = yes && enable_static=no
18207     if test -n "$RANLIB"; then
18208       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18209       postinstall_cmds='$RANLIB $lib'
18210     fi
18211     ;;
18212
18213   aix[4-9]*)
18214     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18215       test "$enable_shared" = yes && enable_static=no
18216     fi
18217     ;;
18218   esac
18219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18220 $as_echo "$enable_shared" >&6; }
18221
18222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18223 $as_echo_n "checking whether to build static libraries... " >&6; }
18224   # Make sure either enable_shared or enable_static is yes.
18225   test "$enable_shared" = yes || enable_static=yes
18226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18227 $as_echo "$enable_static" >&6; }
18228
18229
18230
18231
18232 fi
18233 ac_ext=c
18234 ac_cpp='$CPP $CPPFLAGS'
18235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18238
18239 CC="$lt_save_CC"
18240
18241       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18242     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18243     (test "X$CXX" != "Xg++"))) ; then
18244   ac_ext=cpp
18245 ac_cpp='$CXXCPP $CPPFLAGS'
18246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18250 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18251 if test -z "$CXXCPP"; then
18252   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18253   $as_echo_n "(cached) " >&6
18254 else
18255       # Double quotes because CXXCPP needs to be expanded
18256     for CXXCPP in "$CXX -E" "/lib/cpp"
18257     do
18258       ac_preproc_ok=false
18259 for ac_cxx_preproc_warn_flag in '' yes
18260 do
18261   # Use a header file that comes with gcc, so configuring glibc
18262   # with a fresh cross-compiler works.
18263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18264   # <limits.h> exists even on freestanding compilers.
18265   # On the NeXT, cc -E runs the code through the compiler's parser,
18266   # not just through cpp. "Syntax error" is here to catch this case.
18267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h.  */
18269 #ifdef __STDC__
18270 # include <limits.h>
18271 #else
18272 # include <assert.h>
18273 #endif
18274                      Syntax error
18275 _ACEOF
18276 if ac_fn_cxx_try_cpp "$LINENO"; then :
18277
18278 else
18279   # Broken: fails on valid input.
18280 continue
18281 fi
18282 rm -f conftest.err conftest.$ac_ext
18283
18284   # OK, works on sane cases.  Now check whether nonexistent headers
18285   # can be detected and how.
18286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h.  */
18288 #include <ac_nonexistent.h>
18289 _ACEOF
18290 if ac_fn_cxx_try_cpp "$LINENO"; then :
18291   # Broken: success on invalid input.
18292 continue
18293 else
18294   # Passes both tests.
18295 ac_preproc_ok=:
18296 break
18297 fi
18298 rm -f conftest.err conftest.$ac_ext
18299
18300 done
18301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18302 rm -f conftest.err conftest.$ac_ext
18303 if $ac_preproc_ok; then :
18304   break
18305 fi
18306
18307     done
18308     ac_cv_prog_CXXCPP=$CXXCPP
18309
18310 fi
18311   CXXCPP=$ac_cv_prog_CXXCPP
18312 else
18313   ac_cv_prog_CXXCPP=$CXXCPP
18314 fi
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18316 $as_echo "$CXXCPP" >&6; }
18317 ac_preproc_ok=false
18318 for ac_cxx_preproc_warn_flag in '' yes
18319 do
18320   # Use a header file that comes with gcc, so configuring glibc
18321   # with a fresh cross-compiler works.
18322   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18323   # <limits.h> exists even on freestanding compilers.
18324   # On the NeXT, cc -E runs the code through the compiler's parser,
18325   # not just through cpp. "Syntax error" is here to catch this case.
18326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h.  */
18328 #ifdef __STDC__
18329 # include <limits.h>
18330 #else
18331 # include <assert.h>
18332 #endif
18333                      Syntax error
18334 _ACEOF
18335 if ac_fn_cxx_try_cpp "$LINENO"; then :
18336
18337 else
18338   # Broken: fails on valid input.
18339 continue
18340 fi
18341 rm -f conftest.err conftest.$ac_ext
18342
18343   # OK, works on sane cases.  Now check whether nonexistent headers
18344   # can be detected and how.
18345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h.  */
18347 #include <ac_nonexistent.h>
18348 _ACEOF
18349 if ac_fn_cxx_try_cpp "$LINENO"; then :
18350   # Broken: success on invalid input.
18351 continue
18352 else
18353   # Passes both tests.
18354 ac_preproc_ok=:
18355 break
18356 fi
18357 rm -f conftest.err conftest.$ac_ext
18358
18359 done
18360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18361 rm -f conftest.err conftest.$ac_ext
18362 if $ac_preproc_ok; then :
18363
18364 else
18365   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18367 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18368 See \`config.log' for more details." "$LINENO" 5; }
18369 fi
18370
18371 ac_ext=c
18372 ac_cpp='$CPP $CPPFLAGS'
18373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18376
18377 else
18378   _lt_caught_CXX_error=yes
18379 fi
18380
18381 ac_ext=cpp
18382 ac_cpp='$CXXCPP $CPPFLAGS'
18383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18386
18387 archive_cmds_need_lc_CXX=no
18388 allow_undefined_flag_CXX=
18389 always_export_symbols_CXX=no
18390 archive_expsym_cmds_CXX=
18391 compiler_needs_object_CXX=no
18392 export_dynamic_flag_spec_CXX=
18393 hardcode_direct_CXX=no
18394 hardcode_direct_absolute_CXX=no
18395 hardcode_libdir_flag_spec_CXX=
18396 hardcode_libdir_flag_spec_ld_CXX=
18397 hardcode_libdir_separator_CXX=
18398 hardcode_minus_L_CXX=no
18399 hardcode_shlibpath_var_CXX=unsupported
18400 hardcode_automatic_CXX=no
18401 inherit_rpath_CXX=no
18402 module_cmds_CXX=
18403 module_expsym_cmds_CXX=
18404 link_all_deplibs_CXX=unknown
18405 old_archive_cmds_CXX=$old_archive_cmds
18406 reload_flag_CXX=$reload_flag
18407 reload_cmds_CXX=$reload_cmds
18408 no_undefined_flag_CXX=
18409 whole_archive_flag_spec_CXX=
18410 enable_shared_with_static_runtimes_CXX=no
18411
18412 # Source file extension for C++ test sources.
18413 ac_ext=cpp
18414
18415 # Object file extension for compiled C++ test sources.
18416 objext=o
18417 objext_CXX=$objext
18418
18419 # No sense in running all these tests if we already determined that
18420 # the CXX compiler isn't working.  Some variables (like enable_shared)
18421 # are currently assumed to apply to all compilers on this platform,
18422 # and will be corrupted by setting them based on a non-working compiler.
18423 if test "$_lt_caught_CXX_error" != yes; then
18424   # Code to be used in simple compile tests
18425   lt_simple_compile_test_code="int some_variable = 0;"
18426
18427   # Code to be used in simple link tests
18428   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18429
18430   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18431
18432
18433
18434
18435
18436
18437 # If no C compiler was specified, use CC.
18438 LTCC=${LTCC-"$CC"}
18439
18440 # If no C compiler flags were specified, use CFLAGS.
18441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18442
18443 # Allow CC to be a program name with arguments.
18444 compiler=$CC
18445
18446
18447   # save warnings/boilerplate of simple test code
18448   ac_outfile=conftest.$ac_objext
18449 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18450 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18451 _lt_compiler_boilerplate=`cat conftest.err`
18452 $RM conftest*
18453
18454   ac_outfile=conftest.$ac_objext
18455 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18456 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18457 _lt_linker_boilerplate=`cat conftest.err`
18458 $RM -r conftest*
18459
18460
18461   # Allow CC to be a program name with arguments.
18462   lt_save_CC=$CC
18463   lt_save_LD=$LD
18464   lt_save_GCC=$GCC
18465   GCC=$GXX
18466   lt_save_with_gnu_ld=$with_gnu_ld
18467   lt_save_path_LD=$lt_cv_path_LD
18468   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18469     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18470   else
18471     $as_unset lt_cv_prog_gnu_ld
18472   fi
18473   if test -n "${lt_cv_path_LDCXX+set}"; then
18474     lt_cv_path_LD=$lt_cv_path_LDCXX
18475   else
18476     $as_unset lt_cv_path_LD
18477   fi
18478   test -z "${LDCXX+set}" || LD=$LDCXX
18479   CC=${CXX-"c++"}
18480   compiler=$CC
18481   compiler_CXX=$CC
18482   for cc_temp in $compiler""; do
18483   case $cc_temp in
18484     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18485     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18486     \-*) ;;
18487     *) break;;
18488   esac
18489 done
18490 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18491
18492
18493   if test -n "$compiler"; then
18494     # We don't want -fno-exception when compiling C++ code, so set the
18495     # no_builtin_flag separately
18496     if test "$GXX" = yes; then
18497       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18498     else
18499       lt_prog_compiler_no_builtin_flag_CXX=
18500     fi
18501
18502     if test "$GXX" = yes; then
18503       # Set up default GNU C++ configuration
18504
18505
18506
18507 # Check whether --with-gnu-ld was given.
18508 if test "${with_gnu_ld+set}" = set; then :
18509   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18510 else
18511   with_gnu_ld=no
18512 fi
18513
18514 ac_prog=ld
18515 if test "$GCC" = yes; then
18516   # Check if gcc -print-prog-name=ld gives a path.
18517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18518 $as_echo_n "checking for ld used by $CC... " >&6; }
18519   case $host in
18520   *-*-mingw*)
18521     # gcc leaves a trailing carriage return which upsets mingw
18522     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18523   *)
18524     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18525   esac
18526   case $ac_prog in
18527     # Accept absolute paths.
18528     [\\/]* | ?:[\\/]*)
18529       re_direlt='/[^/][^/]*/\.\./'
18530       # Canonicalize the pathname of ld
18531       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18532       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18533         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18534       done
18535       test -z "$LD" && LD="$ac_prog"
18536       ;;
18537   "")
18538     # If it fails, then pretend we aren't using GCC.
18539     ac_prog=ld
18540     ;;
18541   *)
18542     # If it is relative, then search for the first ld in PATH.
18543     with_gnu_ld=unknown
18544     ;;
18545   esac
18546 elif test "$with_gnu_ld" = yes; then
18547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18548 $as_echo_n "checking for GNU ld... " >&6; }
18549 else
18550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18551 $as_echo_n "checking for non-GNU ld... " >&6; }
18552 fi
18553 if test "${lt_cv_path_LD+set}" = set; then :
18554   $as_echo_n "(cached) " >&6
18555 else
18556   if test -z "$LD"; then
18557   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18558   for ac_dir in $PATH; do
18559     IFS="$lt_save_ifs"
18560     test -z "$ac_dir" && ac_dir=.
18561     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18562       lt_cv_path_LD="$ac_dir/$ac_prog"
18563       # Check to see if the program is GNU ld.  I'd rather use --version,
18564       # but apparently some variants of GNU ld only accept -v.
18565       # Break only if it was the GNU/non-GNU ld that we prefer.
18566       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18567       *GNU* | *'with BFD'*)
18568         test "$with_gnu_ld" != no && break
18569         ;;
18570       *)
18571         test "$with_gnu_ld" != yes && break
18572         ;;
18573       esac
18574     fi
18575   done
18576   IFS="$lt_save_ifs"
18577 else
18578   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18579 fi
18580 fi
18581
18582 LD="$lt_cv_path_LD"
18583 if test -n "$LD"; then
18584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18585 $as_echo "$LD" >&6; }
18586 else
18587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18588 $as_echo "no" >&6; }
18589 fi
18590 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18592 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18593 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18594   $as_echo_n "(cached) " >&6
18595 else
18596   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18597 case `$LD -v 2>&1 </dev/null` in
18598 *GNU* | *'with BFD'*)
18599   lt_cv_prog_gnu_ld=yes
18600   ;;
18601 *)
18602   lt_cv_prog_gnu_ld=no
18603   ;;
18604 esac
18605 fi
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18607 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18608 with_gnu_ld=$lt_cv_prog_gnu_ld
18609
18610
18611
18612
18613
18614
18615
18616       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18617       # archiving commands below assume that GNU ld is being used.
18618       if test "$with_gnu_ld" = yes; then
18619         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18620         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'
18621
18622         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18623         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18624
18625         # If archive_cmds runs LD, not CC, wlarc should be empty
18626         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18627         #     investigate it a little bit more. (MM)
18628         wlarc='${wl}'
18629
18630         # ancient GNU ld didn't support --whole-archive et. al.
18631         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18632           $GREP 'no-whole-archive' > /dev/null; then
18633           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18634         else
18635           whole_archive_flag_spec_CXX=
18636         fi
18637       else
18638         with_gnu_ld=no
18639         wlarc=
18640
18641         # A generic and very simple default shared library creation
18642         # command for GNU C++ for the case where it uses the native
18643         # linker, instead of GNU ld.  If possible, this setting should
18644         # overridden to take advantage of the native linker features on
18645         # the platform it is being used on.
18646         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18647       fi
18648
18649       # Commands to make compiler produce verbose output that lists
18650       # what "hidden" libraries, object files and flags are used when
18651       # linking a shared library.
18652       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18653
18654     else
18655       GXX=no
18656       with_gnu_ld=no
18657       wlarc=
18658     fi
18659
18660     # PORTME: fill in a description of your system's C++ link characteristics
18661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18662 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18663     ld_shlibs_CXX=yes
18664     case $host_os in
18665       aix3*)
18666         # FIXME: insert proper C++ library support
18667         ld_shlibs_CXX=no
18668         ;;
18669       aix[4-9]*)
18670         if test "$host_cpu" = ia64; then
18671           # On IA64, the linker does run time linking by default, so we don't
18672           # have to do anything special.
18673           aix_use_runtimelinking=no
18674           exp_sym_flag='-Bexport'
18675           no_entry_flag=""
18676         else
18677           aix_use_runtimelinking=no
18678
18679           # Test if we are trying to use run time linking or normal
18680           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18681           # need to do runtime linking.
18682           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18683             for ld_flag in $LDFLAGS; do
18684               case $ld_flag in
18685               *-brtl*)
18686                 aix_use_runtimelinking=yes
18687                 break
18688                 ;;
18689               esac
18690             done
18691             ;;
18692           esac
18693
18694           exp_sym_flag='-bexport'
18695           no_entry_flag='-bnoentry'
18696         fi
18697
18698         # When large executables or shared objects are built, AIX ld can
18699         # have problems creating the table of contents.  If linking a library
18700         # or program results in "error TOC overflow" add -mminimal-toc to
18701         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18702         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18703
18704         archive_cmds_CXX=''
18705         hardcode_direct_CXX=yes
18706         hardcode_direct_absolute_CXX=yes
18707         hardcode_libdir_separator_CXX=':'
18708         link_all_deplibs_CXX=yes
18709         file_list_spec_CXX='${wl}-f,'
18710
18711         if test "$GXX" = yes; then
18712           case $host_os in aix4.[012]|aix4.[012].*)
18713           # We only want to do this on AIX 4.2 and lower, the check
18714           # below for broken collect2 doesn't work under 4.3+
18715           collect2name=`${CC} -print-prog-name=collect2`
18716           if test -f "$collect2name" &&
18717              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18718           then
18719             # We have reworked collect2
18720             :
18721           else
18722             # We have old collect2
18723             hardcode_direct_CXX=unsupported
18724             # It fails to find uninstalled libraries when the uninstalled
18725             # path is not listed in the libpath.  Setting hardcode_minus_L
18726             # to unsupported forces relinking
18727             hardcode_minus_L_CXX=yes
18728             hardcode_libdir_flag_spec_CXX='-L$libdir'
18729             hardcode_libdir_separator_CXX=
18730           fi
18731           esac
18732           shared_flag='-shared'
18733           if test "$aix_use_runtimelinking" = yes; then
18734             shared_flag="$shared_flag "'${wl}-G'
18735           fi
18736         else
18737           # not using gcc
18738           if test "$host_cpu" = ia64; then
18739           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18740           # chokes on -Wl,-G. The following line is correct:
18741           shared_flag='-G'
18742           else
18743             if test "$aix_use_runtimelinking" = yes; then
18744               shared_flag='${wl}-G'
18745             else
18746               shared_flag='${wl}-bM:SRE'
18747             fi
18748           fi
18749         fi
18750
18751         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18752         # It seems that -bexpall does not export symbols beginning with
18753         # underscore (_), so it is better to generate a list of symbols to
18754         # export.
18755         always_export_symbols_CXX=yes
18756         if test "$aix_use_runtimelinking" = yes; then
18757           # Warning - without using the other runtime loading flags (-brtl),
18758           # -berok will link without error, but may produce a broken library.
18759           allow_undefined_flag_CXX='-berok'
18760           # Determine the default libpath from the value encoded in an empty
18761           # executable.
18762           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18763 /* end confdefs.h.  */
18764
18765 int
18766 main ()
18767 {
18768
18769   ;
18770   return 0;
18771 }
18772 _ACEOF
18773 if ac_fn_cxx_try_link "$LINENO"; then :
18774
18775 lt_aix_libpath_sed='
18776     /Import File Strings/,/^$/ {
18777         /^0/ {
18778             s/^0  *\(.*\)$/\1/
18779             p
18780         }
18781     }'
18782 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18783 # Check for a 64-bit object if we didn't find anything.
18784 if test -z "$aix_libpath"; then
18785   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18786 fi
18787 fi
18788 rm -f core conftest.err conftest.$ac_objext \
18789     conftest$ac_exeext conftest.$ac_ext
18790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18791
18792           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18793
18794           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"
18795         else
18796           if test "$host_cpu" = ia64; then
18797             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18798             allow_undefined_flag_CXX="-z nodefs"
18799             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"
18800           else
18801             # Determine the default libpath from the value encoded in an
18802             # empty executable.
18803             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h.  */
18805
18806 int
18807 main ()
18808 {
18809
18810   ;
18811   return 0;
18812 }
18813 _ACEOF
18814 if ac_fn_cxx_try_link "$LINENO"; then :
18815
18816 lt_aix_libpath_sed='
18817     /Import File Strings/,/^$/ {
18818         /^0/ {
18819             s/^0  *\(.*\)$/\1/
18820             p
18821         }
18822     }'
18823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18824 # Check for a 64-bit object if we didn't find anything.
18825 if test -z "$aix_libpath"; then
18826   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18827 fi
18828 fi
18829 rm -f core conftest.err conftest.$ac_objext \
18830     conftest$ac_exeext conftest.$ac_ext
18831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18832
18833             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18834             # Warning - without using the other run time loading flags,
18835             # -berok will link without error, but may produce a broken library.
18836             no_undefined_flag_CXX=' ${wl}-bernotok'
18837             allow_undefined_flag_CXX=' ${wl}-berok'
18838             if test "$with_gnu_ld" = yes; then
18839               # We only use this code for GNU lds that support --whole-archive.
18840               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18841             else
18842               # Exported symbols can be pulled into shared objects from archives
18843               whole_archive_flag_spec_CXX='$convenience'
18844             fi
18845             archive_cmds_need_lc_CXX=yes
18846             # This is similar to how AIX traditionally builds its shared
18847             # libraries.
18848             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'
18849           fi
18850         fi
18851         ;;
18852
18853       beos*)
18854         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18855           allow_undefined_flag_CXX=unsupported
18856           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18857           # support --undefined.  This deserves some investigation.  FIXME
18858           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18859         else
18860           ld_shlibs_CXX=no
18861         fi
18862         ;;
18863
18864       chorus*)
18865         case $cc_basename in
18866           *)
18867           # FIXME: insert proper C++ library support
18868           ld_shlibs_CXX=no
18869           ;;
18870         esac
18871         ;;
18872
18873       cygwin* | mingw* | pw32* | cegcc*)
18874         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18875         # as there is no search path for DLLs.
18876         hardcode_libdir_flag_spec_CXX='-L$libdir'
18877         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18878         allow_undefined_flag_CXX=unsupported
18879         always_export_symbols_CXX=no
18880         enable_shared_with_static_runtimes_CXX=yes
18881
18882         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18883           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'
18884           # If the export-symbols file already is a .def file (1st line
18885           # is EXPORTS), use it as is; otherwise, prepend...
18886           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18887             cp $export_symbols $output_objdir/$soname.def;
18888           else
18889             echo EXPORTS > $output_objdir/$soname.def;
18890             cat $export_symbols >> $output_objdir/$soname.def;
18891           fi~
18892           $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'
18893         else
18894           ld_shlibs_CXX=no
18895         fi
18896         ;;
18897       darwin* | rhapsody*)
18898
18899
18900   archive_cmds_need_lc_CXX=no
18901   hardcode_direct_CXX=no
18902   hardcode_automatic_CXX=yes
18903   hardcode_shlibpath_var_CXX=unsupported
18904   if test "$lt_cv_ld_force_load" = "yes"; then
18905     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\"`'
18906   else
18907     whole_archive_flag_spec_CXX=''
18908   fi
18909   link_all_deplibs_CXX=yes
18910   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18911   case $cc_basename in
18912      ifort*) _lt_dar_can_shared=yes ;;
18913      *) _lt_dar_can_shared=$GCC ;;
18914   esac
18915   if test "$_lt_dar_can_shared" = "yes"; then
18916     output_verbose_link_cmd=func_echo_all
18917     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}"
18918     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18919     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}"
18920     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}"
18921        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18922       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}"
18923       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}"
18924     fi
18925
18926   else
18927   ld_shlibs_CXX=no
18928   fi
18929
18930         ;;
18931
18932       dgux*)
18933         case $cc_basename in
18934           ec++*)
18935             # FIXME: insert proper C++ library support
18936             ld_shlibs_CXX=no
18937             ;;
18938           ghcx*)
18939             # Green Hills C++ Compiler
18940             # FIXME: insert proper C++ library support
18941             ld_shlibs_CXX=no
18942             ;;
18943           *)
18944             # FIXME: insert proper C++ library support
18945             ld_shlibs_CXX=no
18946             ;;
18947         esac
18948         ;;
18949
18950       freebsd[12]*)
18951         # C++ shared libraries reported to be fairly broken before
18952         # switch to ELF
18953         ld_shlibs_CXX=no
18954         ;;
18955
18956       freebsd-elf*)
18957         archive_cmds_need_lc_CXX=no
18958         ;;
18959
18960       freebsd* | dragonfly*)
18961         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18962         # conventions
18963         ld_shlibs_CXX=yes
18964         ;;
18965
18966       gnu*)
18967         ;;
18968
18969       haiku*)
18970         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18971         link_all_deplibs_CXX=yes
18972         ;;
18973
18974       hpux9*)
18975         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18976         hardcode_libdir_separator_CXX=:
18977         export_dynamic_flag_spec_CXX='${wl}-E'
18978         hardcode_direct_CXX=yes
18979         hardcode_minus_L_CXX=yes # Not in the search PATH,
18980                                              # but as the default
18981                                              # location of the library.
18982
18983         case $cc_basename in
18984           CC*)
18985             # FIXME: insert proper C++ library support
18986             ld_shlibs_CXX=no
18987             ;;
18988           aCC*)
18989             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'
18990             # Commands to make compiler produce verbose output that lists
18991             # what "hidden" libraries, object files and flags are used when
18992             # linking a shared library.
18993             #
18994             # There doesn't appear to be a way to prevent this compiler from
18995             # explicitly linking system object files so we need to strip them
18996             # from the output so that they don't get included in the library
18997             # dependencies.
18998             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"'
18999             ;;
19000           *)
19001             if test "$GXX" = yes; then
19002               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'
19003             else
19004               # FIXME: insert proper C++ library support
19005               ld_shlibs_CXX=no
19006             fi
19007             ;;
19008         esac
19009         ;;
19010
19011       hpux10*|hpux11*)
19012         if test $with_gnu_ld = no; then
19013           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19014           hardcode_libdir_separator_CXX=:
19015
19016           case $host_cpu in
19017             hppa*64*|ia64*)
19018               ;;
19019             *)
19020               export_dynamic_flag_spec_CXX='${wl}-E'
19021               ;;
19022           esac
19023         fi
19024         case $host_cpu in
19025           hppa*64*|ia64*)
19026             hardcode_direct_CXX=no
19027             hardcode_shlibpath_var_CXX=no
19028             ;;
19029           *)
19030             hardcode_direct_CXX=yes
19031             hardcode_direct_absolute_CXX=yes
19032             hardcode_minus_L_CXX=yes # Not in the search PATH,
19033                                                  # but as the default
19034                                                  # location of the library.
19035             ;;
19036         esac
19037
19038         case $cc_basename in
19039           CC*)
19040             # FIXME: insert proper C++ library support
19041             ld_shlibs_CXX=no
19042             ;;
19043           aCC*)
19044             case $host_cpu in
19045               hppa*64*)
19046                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19047                 ;;
19048               ia64*)
19049                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050                 ;;
19051               *)
19052                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19053                 ;;
19054             esac
19055             # Commands to make compiler produce verbose output that lists
19056             # what "hidden" libraries, object files and flags are used when
19057             # linking a shared library.
19058             #
19059             # There doesn't appear to be a way to prevent this compiler from
19060             # explicitly linking system object files so we need to strip them
19061             # from the output so that they don't get included in the library
19062             # dependencies.
19063             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"'
19064             ;;
19065           *)
19066             if test "$GXX" = yes; then
19067               if test $with_gnu_ld = no; then
19068                 case $host_cpu in
19069                   hppa*64*)
19070                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19071                     ;;
19072                   ia64*)
19073                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074                     ;;
19075                   *)
19076                     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'
19077                     ;;
19078                 esac
19079               fi
19080             else
19081               # FIXME: insert proper C++ library support
19082               ld_shlibs_CXX=no
19083             fi
19084             ;;
19085         esac
19086         ;;
19087
19088       interix[3-9]*)
19089         hardcode_direct_CXX=no
19090         hardcode_shlibpath_var_CXX=no
19091         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19092         export_dynamic_flag_spec_CXX='${wl}-E'
19093         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19094         # Instead, shared libraries are loaded at an image base (0x10000000 by
19095         # default) and relocated if they conflict, which is a slow very memory
19096         # consuming and fragmenting process.  To avoid this, we pick a random,
19097         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19098         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19099         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'
19100         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'
19101         ;;
19102       irix5* | irix6*)
19103         case $cc_basename in
19104           CC*)
19105             # SGI C++
19106             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'
19107
19108             # Archives containing C++ object files must be created using
19109             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19110             # necessary to make sure instantiated templates are included
19111             # in the archive.
19112             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19113             ;;
19114           *)
19115             if test "$GXX" = yes; then
19116               if test "$with_gnu_ld" = no; then
19117                 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'
19118               else
19119                 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'
19120               fi
19121             fi
19122             link_all_deplibs_CXX=yes
19123             ;;
19124         esac
19125         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19126         hardcode_libdir_separator_CXX=:
19127         inherit_rpath_CXX=yes
19128         ;;
19129
19130       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19131         case $cc_basename in
19132           KCC*)
19133             # Kuck and Associates, Inc. (KAI) C++ Compiler
19134
19135             # KCC will only create a shared library if the output file
19136             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19137             # to its proper name (with version) after linking.
19138             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'
19139             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'
19140             # Commands to make compiler produce verbose output that lists
19141             # what "hidden" libraries, object files and flags are used when
19142             # linking a shared library.
19143             #
19144             # There doesn't appear to be a way to prevent this compiler from
19145             # explicitly linking system object files so we need to strip them
19146             # from the output so that they don't get included in the library
19147             # dependencies.
19148             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"'
19149
19150             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19151             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19152
19153             # Archives containing C++ object files must be created using
19154             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19155             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19156             ;;
19157           icpc* | ecpc* )
19158             # Intel C++
19159             with_gnu_ld=yes
19160             # version 8.0 and above of icpc choke on multiply defined symbols
19161             # if we add $predep_objects and $postdep_objects, however 7.1 and
19162             # earlier do not add the objects themselves.
19163             case `$CC -V 2>&1` in
19164               *"Version 7."*)
19165                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166                 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'
19167                 ;;
19168               *)  # Version 8.0 or newer
19169                 tmp_idyn=
19170                 case $host_cpu in
19171                   ia64*) tmp_idyn=' -i_dynamic';;
19172                 esac
19173                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19174                 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'
19175                 ;;
19176             esac
19177             archive_cmds_need_lc_CXX=no
19178             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19179             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19180             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19181             ;;
19182           pgCC* | pgcpp*)
19183             # Portland Group C++ compiler
19184             case `$CC -V` in
19185             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19186               prelink_cmds_CXX='tpldir=Template.dir~
19187                 rm -rf $tpldir~
19188                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19189                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19190               old_archive_cmds_CXX='tpldir=Template.dir~
19191                 rm -rf $tpldir~
19192                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19193                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19194                 $RANLIB $oldlib'
19195               archive_cmds_CXX='tpldir=Template.dir~
19196                 rm -rf $tpldir~
19197                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19198                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19199               archive_expsym_cmds_CXX='tpldir=Template.dir~
19200                 rm -rf $tpldir~
19201                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19202                 $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'
19203               ;;
19204             *) # Version 6 and above use weak symbols
19205               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19206               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'
19207               ;;
19208             esac
19209
19210             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19211             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19212             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'
19213             ;;
19214           cxx*)
19215             # Compaq C++
19216             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19217             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'
19218
19219             runpath_var=LD_RUN_PATH
19220             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19221             hardcode_libdir_separator_CXX=:
19222
19223             # Commands to make compiler produce verbose output that lists
19224             # what "hidden" libraries, object files and flags are used when
19225             # linking a shared library.
19226             #
19227             # There doesn't appear to be a way to prevent this compiler from
19228             # explicitly linking system object files so we need to strip them
19229             # from the output so that they don't get included in the library
19230             # dependencies.
19231             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'
19232             ;;
19233           xl* | mpixl* | bgxl*)
19234             # IBM XL 8.0 on PPC, with GNU ld
19235             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19236             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19237             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19238             if test "x$supports_anon_versioning" = xyes; then
19239               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19240                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19241                 echo "local: *; };" >> $output_objdir/$libname.ver~
19242                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19243             fi
19244             ;;
19245           *)
19246             case `$CC -V 2>&1 | sed 5q` in
19247             *Sun\ C*)
19248               # Sun C++ 5.9
19249               no_undefined_flag_CXX=' -zdefs'
19250               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251               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'
19252               hardcode_libdir_flag_spec_CXX='-R$libdir'
19253               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'
19254               compiler_needs_object_CXX=yes
19255
19256               # Not sure whether something based on
19257               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19258               # would be better.
19259               output_verbose_link_cmd='func_echo_all'
19260
19261               # Archives containing C++ object files must be created using
19262               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19263               # necessary to make sure instantiated templates are included
19264               # in the archive.
19265               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19266               ;;
19267             esac
19268             ;;
19269         esac
19270         ;;
19271
19272       lynxos*)
19273         # FIXME: insert proper C++ library support
19274         ld_shlibs_CXX=no
19275         ;;
19276
19277       m88k*)
19278         # FIXME: insert proper C++ library support
19279         ld_shlibs_CXX=no
19280         ;;
19281
19282       mvs*)
19283         case $cc_basename in
19284           cxx*)
19285             # FIXME: insert proper C++ library support
19286             ld_shlibs_CXX=no
19287             ;;
19288           *)
19289             # FIXME: insert proper C++ library support
19290             ld_shlibs_CXX=no
19291             ;;
19292         esac
19293         ;;
19294
19295       netbsd*)
19296         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19297           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19298           wlarc=
19299           hardcode_libdir_flag_spec_CXX='-R$libdir'
19300           hardcode_direct_CXX=yes
19301           hardcode_shlibpath_var_CXX=no
19302         fi
19303         # Workaround some broken pre-1.5 toolchains
19304         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19305         ;;
19306
19307       *nto* | *qnx*)
19308         ld_shlibs_CXX=yes
19309         ;;
19310
19311       openbsd2*)
19312         # C++ shared libraries are fairly broken
19313         ld_shlibs_CXX=no
19314         ;;
19315
19316       openbsd*)
19317         if test -f /usr/libexec/ld.so; then
19318           hardcode_direct_CXX=yes
19319           hardcode_shlibpath_var_CXX=no
19320           hardcode_direct_absolute_CXX=yes
19321           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19322           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19323           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19324             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19325             export_dynamic_flag_spec_CXX='${wl}-E'
19326             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19327           fi
19328           output_verbose_link_cmd=func_echo_all
19329         else
19330           ld_shlibs_CXX=no
19331         fi
19332         ;;
19333
19334       osf3* | osf4* | osf5*)
19335         case $cc_basename in
19336           KCC*)
19337             # Kuck and Associates, Inc. (KAI) C++ Compiler
19338
19339             # KCC will only create a shared library if the output file
19340             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19341             # to its proper name (with version) after linking.
19342             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'
19343
19344             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19345             hardcode_libdir_separator_CXX=:
19346
19347             # Archives containing C++ object files must be created using
19348             # the KAI C++ compiler.
19349             case $host in
19350               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19351               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19352             esac
19353             ;;
19354           RCC*)
19355             # Rational C++ 2.4.1
19356             # FIXME: insert proper C++ library support
19357             ld_shlibs_CXX=no
19358             ;;
19359           cxx*)
19360             case $host in
19361               osf3*)
19362                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19363                 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'
19364                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19365                 ;;
19366               *)
19367                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19368                 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'
19369                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19370                   echo "-hidden">> $lib.exp~
19371                   $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~
19372                   $RM $lib.exp'
19373                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19374                 ;;
19375             esac
19376
19377             hardcode_libdir_separator_CXX=:
19378
19379             # Commands to make compiler produce verbose output that lists
19380             # what "hidden" libraries, object files and flags are used when
19381             # linking a shared library.
19382             #
19383             # There doesn't appear to be a way to prevent this compiler from
19384             # explicitly linking system object files so we need to strip them
19385             # from the output so that they don't get included in the library
19386             # dependencies.
19387             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"'
19388             ;;
19389           *)
19390             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19391               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19392               case $host in
19393                 osf3*)
19394                   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'
19395                   ;;
19396                 *)
19397                   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'
19398                   ;;
19399               esac
19400
19401               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19402               hardcode_libdir_separator_CXX=:
19403
19404               # Commands to make compiler produce verbose output that lists
19405               # what "hidden" libraries, object files and flags are used when
19406               # linking a shared library.
19407               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19408
19409             else
19410               # FIXME: insert proper C++ library support
19411               ld_shlibs_CXX=no
19412             fi
19413             ;;
19414         esac
19415         ;;
19416
19417       psos*)
19418         # FIXME: insert proper C++ library support
19419         ld_shlibs_CXX=no
19420         ;;
19421
19422       sunos4*)
19423         case $cc_basename in
19424           CC*)
19425             # Sun C++ 4.x
19426             # FIXME: insert proper C++ library support
19427             ld_shlibs_CXX=no
19428             ;;
19429           lcc*)
19430             # Lucid
19431             # FIXME: insert proper C++ library support
19432             ld_shlibs_CXX=no
19433             ;;
19434           *)
19435             # FIXME: insert proper C++ library support
19436             ld_shlibs_CXX=no
19437             ;;
19438         esac
19439         ;;
19440
19441       solaris*)
19442         case $cc_basename in
19443           CC*)
19444             # Sun C++ 4.2, 5.x and Centerline C++
19445             archive_cmds_need_lc_CXX=yes
19446             no_undefined_flag_CXX=' -zdefs'
19447             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19448             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19449               $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'
19450
19451             hardcode_libdir_flag_spec_CXX='-R$libdir'
19452             hardcode_shlibpath_var_CXX=no
19453             case $host_os in
19454               solaris2.[0-5] | solaris2.[0-5].*) ;;
19455               *)
19456                 # The compiler driver will combine and reorder linker options,
19457                 # but understands `-z linker_flag'.
19458                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19459                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19460                 ;;
19461             esac
19462             link_all_deplibs_CXX=yes
19463
19464             output_verbose_link_cmd='func_echo_all'
19465
19466             # Archives containing C++ object files must be created using
19467             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19468             # necessary to make sure instantiated templates are included
19469             # in the archive.
19470             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19471             ;;
19472           gcx*)
19473             # Green Hills C++ Compiler
19474             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19475
19476             # The C++ compiler must be used to create the archive.
19477             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19478             ;;
19479           *)
19480             # GNU C++ compiler with Solaris linker
19481             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19482               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19483               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19484                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19485                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19486                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19487
19488                 # Commands to make compiler produce verbose output that lists
19489                 # what "hidden" libraries, object files and flags are used when
19490                 # linking a shared library.
19491                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19492               else
19493                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19494                 # platform.
19495                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19496                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19497                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19503               fi
19504
19505               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19506               case $host_os in
19507                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19508                 *)
19509                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19510                   ;;
19511               esac
19512             fi
19513             ;;
19514         esac
19515         ;;
19516
19517     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19518       no_undefined_flag_CXX='${wl}-z,text'
19519       archive_cmds_need_lc_CXX=no
19520       hardcode_shlibpath_var_CXX=no
19521       runpath_var='LD_RUN_PATH'
19522
19523       case $cc_basename in
19524         CC*)
19525           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19526           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19527           ;;
19528         *)
19529           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19530           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19531           ;;
19532       esac
19533       ;;
19534
19535       sysv5* | sco3.2v5* | sco5v6*)
19536         # Note: We can NOT use -z defs as we might desire, because we do not
19537         # link with -lc, and that would cause any symbols used from libc to
19538         # always be unresolved, which means just about no library would
19539         # ever link correctly.  If we're not using GNU ld we use -z text
19540         # though, which does catch some bad symbols but isn't as heavy-handed
19541         # as -z defs.
19542         no_undefined_flag_CXX='${wl}-z,text'
19543         allow_undefined_flag_CXX='${wl}-z,nodefs'
19544         archive_cmds_need_lc_CXX=no
19545         hardcode_shlibpath_var_CXX=no
19546         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19547         hardcode_libdir_separator_CXX=':'
19548         link_all_deplibs_CXX=yes
19549         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19550         runpath_var='LD_RUN_PATH'
19551
19552         case $cc_basename in
19553           CC*)
19554             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19555             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19557               '"$old_archive_cmds_CXX"
19558             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19559               '"$reload_cmds_CXX"
19560             ;;
19561           *)
19562             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564             ;;
19565         esac
19566       ;;
19567
19568       tandem*)
19569         case $cc_basename in
19570           NCC*)
19571             # NonStop-UX NCC 3.20
19572             # FIXME: insert proper C++ library support
19573             ld_shlibs_CXX=no
19574             ;;
19575           *)
19576             # FIXME: insert proper C++ library support
19577             ld_shlibs_CXX=no
19578             ;;
19579         esac
19580         ;;
19581
19582       vxworks*)
19583         # FIXME: insert proper C++ library support
19584         ld_shlibs_CXX=no
19585         ;;
19586
19587       *)
19588         # FIXME: insert proper C++ library support
19589         ld_shlibs_CXX=no
19590         ;;
19591     esac
19592
19593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19594 $as_echo "$ld_shlibs_CXX" >&6; }
19595     test "$ld_shlibs_CXX" = no && can_build_shared=no
19596
19597     GCC_CXX="$GXX"
19598     LD_CXX="$LD"
19599
19600     ## CAVEAT EMPTOR:
19601     ## There is no encapsulation within the following macros, do not change
19602     ## the running order or otherwise move them around unless you know exactly
19603     ## what you are doing...
19604     # Dependencies to place before and after the object being linked:
19605 predep_objects_CXX=
19606 postdep_objects_CXX=
19607 predeps_CXX=
19608 postdeps_CXX=
19609 compiler_lib_search_path_CXX=
19610
19611 cat > conftest.$ac_ext <<_LT_EOF
19612 class Foo
19613 {
19614 public:
19615   Foo (void) { a = 0; }
19616 private:
19617   int a;
19618 };
19619 _LT_EOF
19620
19621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19622   (eval $ac_compile) 2>&5
19623   ac_status=$?
19624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19625   test $ac_status = 0; }; then
19626   # Parse the compiler output and extract the necessary
19627   # objects, libraries and library flags.
19628
19629   # Sentinel used to keep track of whether or not we are before
19630   # the conftest object file.
19631   pre_test_object_deps_done=no
19632
19633   for p in `eval "$output_verbose_link_cmd"`; do
19634     case $p in
19635
19636     -L* | -R* | -l*)
19637        # Some compilers place space between "-{L,R}" and the path.
19638        # Remove the space.
19639        if test $p = "-L" ||
19640           test $p = "-R"; then
19641          prev=$p
19642          continue
19643        else
19644          prev=
19645        fi
19646
19647        if test "$pre_test_object_deps_done" = no; then
19648          case $p in
19649          -L* | -R*)
19650            # Internal compiler library paths should come after those
19651            # provided the user.  The postdeps already come after the
19652            # user supplied libs so there is no need to process them.
19653            if test -z "$compiler_lib_search_path_CXX"; then
19654              compiler_lib_search_path_CXX="${prev}${p}"
19655            else
19656              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19657            fi
19658            ;;
19659          # The "-l" case would never come before the object being
19660          # linked, so don't bother handling this case.
19661          esac
19662        else
19663          if test -z "$postdeps_CXX"; then
19664            postdeps_CXX="${prev}${p}"
19665          else
19666            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19667          fi
19668        fi
19669        ;;
19670
19671     *.$objext)
19672        # This assumes that the test object file only shows up
19673        # once in the compiler output.
19674        if test "$p" = "conftest.$objext"; then
19675          pre_test_object_deps_done=yes
19676          continue
19677        fi
19678
19679        if test "$pre_test_object_deps_done" = no; then
19680          if test -z "$predep_objects_CXX"; then
19681            predep_objects_CXX="$p"
19682          else
19683            predep_objects_CXX="$predep_objects_CXX $p"
19684          fi
19685        else
19686          if test -z "$postdep_objects_CXX"; then
19687            postdep_objects_CXX="$p"
19688          else
19689            postdep_objects_CXX="$postdep_objects_CXX $p"
19690          fi
19691        fi
19692        ;;
19693
19694     *) ;; # Ignore the rest.
19695
19696     esac
19697   done
19698
19699   # Clean up.
19700   rm -f a.out a.exe
19701 else
19702   echo "libtool.m4: error: problem compiling CXX test program"
19703 fi
19704
19705 $RM -f confest.$objext
19706
19707 # PORTME: override above test on systems where it is broken
19708 case $host_os in
19709 interix[3-9]*)
19710   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19711   # hack all around it, let's just trust "g++" to DTRT.
19712   predep_objects_CXX=
19713   postdep_objects_CXX=
19714   postdeps_CXX=
19715   ;;
19716
19717 linux*)
19718   case `$CC -V 2>&1 | sed 5q` in
19719   *Sun\ C*)
19720     # Sun C++ 5.9
19721
19722     # The more standards-conforming stlport4 library is
19723     # incompatible with the Cstd library. Avoid specifying
19724     # it if it's in CXXFLAGS. Ignore libCrun as
19725     # -library=stlport4 depends on it.
19726     case " $CXX $CXXFLAGS " in
19727     *" -library=stlport4 "*)
19728       solaris_use_stlport4=yes
19729       ;;
19730     esac
19731
19732     if test "$solaris_use_stlport4" != yes; then
19733       postdeps_CXX='-library=Cstd -library=Crun'
19734     fi
19735     ;;
19736   esac
19737   ;;
19738
19739 solaris*)
19740   case $cc_basename in
19741   CC*)
19742     # The more standards-conforming stlport4 library is
19743     # incompatible with the Cstd library. Avoid specifying
19744     # it if it's in CXXFLAGS. Ignore libCrun as
19745     # -library=stlport4 depends on it.
19746     case " $CXX $CXXFLAGS " in
19747     *" -library=stlport4 "*)
19748       solaris_use_stlport4=yes
19749       ;;
19750     esac
19751
19752     # Adding this requires a known-good setup of shared libraries for
19753     # Sun compiler versions before 5.6, else PIC objects from an old
19754     # archive will be linked into the output, leading to subtle bugs.
19755     if test "$solaris_use_stlport4" != yes; then
19756       postdeps_CXX='-library=Cstd -library=Crun'
19757     fi
19758     ;;
19759   esac
19760   ;;
19761 esac
19762
19763
19764 case " $postdeps_CXX " in
19765 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19766 esac
19767  compiler_lib_search_dirs_CXX=
19768 if test -n "${compiler_lib_search_path_CXX}"; then
19769  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19770 fi
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802     lt_prog_compiler_wl_CXX=
19803 lt_prog_compiler_pic_CXX=
19804 lt_prog_compiler_static_CXX=
19805
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19807 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19808
19809   # C++ specific cases for pic, static, wl, etc.
19810   if test "$GXX" = yes; then
19811     lt_prog_compiler_wl_CXX='-Wl,'
19812     lt_prog_compiler_static_CXX='-static'
19813
19814     case $host_os in
19815     aix*)
19816       # All AIX code is PIC.
19817       if test "$host_cpu" = ia64; then
19818         # AIX 5 now supports IA64 processor
19819         lt_prog_compiler_static_CXX='-Bstatic'
19820       fi
19821       ;;
19822
19823     amigaos*)
19824       case $host_cpu in
19825       powerpc)
19826             # see comment about AmigaOS4 .so support
19827             lt_prog_compiler_pic_CXX='-fPIC'
19828         ;;
19829       m68k)
19830             # FIXME: we need at least 68020 code to build shared libraries, but
19831             # adding the `-m68020' flag to GCC prevents building anything better,
19832             # like `-m68040'.
19833             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19834         ;;
19835       esac
19836       ;;
19837
19838     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19839       # PIC is the default for these OSes.
19840       ;;
19841     mingw* | cygwin* | os2* | pw32* | cegcc*)
19842       # This hack is so that the source file can tell whether it is being
19843       # built for inclusion in a dll (and should export symbols for example).
19844       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19845       # (--disable-auto-import) libraries
19846       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19847       ;;
19848     darwin* | rhapsody*)
19849       # PIC is the default on this platform
19850       # Common symbols not allowed in MH_DYLIB files
19851       lt_prog_compiler_pic_CXX='-fno-common'
19852       ;;
19853     *djgpp*)
19854       # DJGPP does not support shared libraries at all
19855       lt_prog_compiler_pic_CXX=
19856       ;;
19857     haiku*)
19858       # PIC is the default for Haiku.
19859       # The "-static" flag exists, but is broken.
19860       lt_prog_compiler_static_CXX=
19861       ;;
19862     interix[3-9]*)
19863       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19864       # Instead, we relocate shared libraries at runtime.
19865       ;;
19866     sysv4*MP*)
19867       if test -d /usr/nec; then
19868         lt_prog_compiler_pic_CXX=-Kconform_pic
19869       fi
19870       ;;
19871     hpux*)
19872       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19873       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19874       # sets the default TLS model and affects inlining.
19875       case $host_cpu in
19876       hppa*64*)
19877         ;;
19878       *)
19879         lt_prog_compiler_pic_CXX='-fPIC'
19880         ;;
19881       esac
19882       ;;
19883     *qnx* | *nto*)
19884       # QNX uses GNU C++, but need to define -shared option too, otherwise
19885       # it will coredump.
19886       lt_prog_compiler_pic_CXX='-fPIC -shared'
19887       ;;
19888     *)
19889       lt_prog_compiler_pic_CXX='-fPIC'
19890       ;;
19891     esac
19892   else
19893     case $host_os in
19894       aix[4-9]*)
19895         # All AIX code is PIC.
19896         if test "$host_cpu" = ia64; then
19897           # AIX 5 now supports IA64 processor
19898           lt_prog_compiler_static_CXX='-Bstatic'
19899         else
19900           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19901         fi
19902         ;;
19903       chorus*)
19904         case $cc_basename in
19905         cxch68*)
19906           # Green Hills C++ Compiler
19907           # _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"
19908           ;;
19909         esac
19910         ;;
19911       dgux*)
19912         case $cc_basename in
19913           ec++*)
19914             lt_prog_compiler_pic_CXX='-KPIC'
19915             ;;
19916           ghcx*)
19917             # Green Hills C++ Compiler
19918             lt_prog_compiler_pic_CXX='-pic'
19919             ;;
19920           *)
19921             ;;
19922         esac
19923         ;;
19924       freebsd* | dragonfly*)
19925         # FreeBSD uses GNU C++
19926         ;;
19927       hpux9* | hpux10* | hpux11*)
19928         case $cc_basename in
19929           CC*)
19930             lt_prog_compiler_wl_CXX='-Wl,'
19931             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19932             if test "$host_cpu" != ia64; then
19933               lt_prog_compiler_pic_CXX='+Z'
19934             fi
19935             ;;
19936           aCC*)
19937             lt_prog_compiler_wl_CXX='-Wl,'
19938             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19939             case $host_cpu in
19940             hppa*64*|ia64*)
19941               # +Z the default
19942               ;;
19943             *)
19944               lt_prog_compiler_pic_CXX='+Z'
19945               ;;
19946             esac
19947             ;;
19948           *)
19949             ;;
19950         esac
19951         ;;
19952       interix*)
19953         # This is c89, which is MS Visual C++ (no shared libs)
19954         # Anyone wants to do a port?
19955         ;;
19956       irix5* | irix6* | nonstopux*)
19957         case $cc_basename in
19958           CC*)
19959             lt_prog_compiler_wl_CXX='-Wl,'
19960             lt_prog_compiler_static_CXX='-non_shared'
19961             # CC pic flag -KPIC is the default.
19962             ;;
19963           *)
19964             ;;
19965         esac
19966         ;;
19967       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19968         case $cc_basename in
19969           KCC*)
19970             # KAI C++ Compiler
19971             lt_prog_compiler_wl_CXX='--backend -Wl,'
19972             lt_prog_compiler_pic_CXX='-fPIC'
19973             ;;
19974           ecpc* )
19975             # old Intel C++ for x86_64 which still supported -KPIC.
19976             lt_prog_compiler_wl_CXX='-Wl,'
19977             lt_prog_compiler_pic_CXX='-KPIC'
19978             lt_prog_compiler_static_CXX='-static'
19979             ;;
19980           icpc* )
19981             # Intel C++, used to be incompatible with GCC.
19982             # ICC 10 doesn't accept -KPIC any more.
19983             lt_prog_compiler_wl_CXX='-Wl,'
19984             lt_prog_compiler_pic_CXX='-fPIC'
19985             lt_prog_compiler_static_CXX='-static'
19986             ;;
19987           pgCC* | pgcpp*)
19988             # Portland Group C++ compiler
19989             lt_prog_compiler_wl_CXX='-Wl,'
19990             lt_prog_compiler_pic_CXX='-fpic'
19991             lt_prog_compiler_static_CXX='-Bstatic'
19992             ;;
19993           cxx*)
19994             # Compaq C++
19995             # Make sure the PIC flag is empty.  It appears that all Alpha
19996             # Linux and Compaq Tru64 Unix objects are PIC.
19997             lt_prog_compiler_pic_CXX=
19998             lt_prog_compiler_static_CXX='-non_shared'
19999             ;;
20000           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20001             # IBM XL 8.0, 9.0 on PPC and BlueGene
20002             lt_prog_compiler_wl_CXX='-Wl,'
20003             lt_prog_compiler_pic_CXX='-qpic'
20004             lt_prog_compiler_static_CXX='-qstaticlink'
20005             ;;
20006           *)
20007             case `$CC -V 2>&1 | sed 5q` in
20008             *Sun\ C*)
20009               # Sun C++ 5.9
20010               lt_prog_compiler_pic_CXX='-KPIC'
20011               lt_prog_compiler_static_CXX='-Bstatic'
20012               lt_prog_compiler_wl_CXX='-Qoption ld '
20013               ;;
20014             esac
20015             ;;
20016         esac
20017         ;;
20018       lynxos*)
20019         ;;
20020       m88k*)
20021         ;;
20022       mvs*)
20023         case $cc_basename in
20024           cxx*)
20025             lt_prog_compiler_pic_CXX='-W c,exportall'
20026             ;;
20027           *)
20028             ;;
20029         esac
20030         ;;
20031       netbsd*)
20032         ;;
20033       *qnx* | *nto*)
20034         # QNX uses GNU C++, but need to define -shared option too, otherwise
20035         # it will coredump.
20036         lt_prog_compiler_pic_CXX='-fPIC -shared'
20037         ;;
20038       osf3* | osf4* | osf5*)
20039         case $cc_basename in
20040           KCC*)
20041             lt_prog_compiler_wl_CXX='--backend -Wl,'
20042             ;;
20043           RCC*)
20044             # Rational C++ 2.4.1
20045             lt_prog_compiler_pic_CXX='-pic'
20046             ;;
20047           cxx*)
20048             # Digital/Compaq C++
20049             lt_prog_compiler_wl_CXX='-Wl,'
20050             # Make sure the PIC flag is empty.  It appears that all Alpha
20051             # Linux and Compaq Tru64 Unix objects are PIC.
20052             lt_prog_compiler_pic_CXX=
20053             lt_prog_compiler_static_CXX='-non_shared'
20054             ;;
20055           *)
20056             ;;
20057         esac
20058         ;;
20059       psos*)
20060         ;;
20061       solaris*)
20062         case $cc_basename in
20063           CC*)
20064             # Sun C++ 4.2, 5.x and Centerline C++
20065             lt_prog_compiler_pic_CXX='-KPIC'
20066             lt_prog_compiler_static_CXX='-Bstatic'
20067             lt_prog_compiler_wl_CXX='-Qoption ld '
20068             ;;
20069           gcx*)
20070             # Green Hills C++ Compiler
20071             lt_prog_compiler_pic_CXX='-PIC'
20072             ;;
20073           *)
20074             ;;
20075         esac
20076         ;;
20077       sunos4*)
20078         case $cc_basename in
20079           CC*)
20080             # Sun C++ 4.x
20081             lt_prog_compiler_pic_CXX='-pic'
20082             lt_prog_compiler_static_CXX='-Bstatic'
20083             ;;
20084           lcc*)
20085             # Lucid
20086             lt_prog_compiler_pic_CXX='-pic'
20087             ;;
20088           *)
20089             ;;
20090         esac
20091         ;;
20092       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20093         case $cc_basename in
20094           CC*)
20095             lt_prog_compiler_wl_CXX='-Wl,'
20096             lt_prog_compiler_pic_CXX='-KPIC'
20097             lt_prog_compiler_static_CXX='-Bstatic'
20098             ;;
20099         esac
20100         ;;
20101       tandem*)
20102         case $cc_basename in
20103           NCC*)
20104             # NonStop-UX NCC 3.20
20105             lt_prog_compiler_pic_CXX='-KPIC'
20106             ;;
20107           *)
20108             ;;
20109         esac
20110         ;;
20111       vxworks*)
20112         ;;
20113       *)
20114         lt_prog_compiler_can_build_shared_CXX=no
20115         ;;
20116     esac
20117   fi
20118
20119 case $host_os in
20120   # For platforms which do not support PIC, -DPIC is meaningless:
20121   *djgpp*)
20122     lt_prog_compiler_pic_CXX=
20123     ;;
20124   *)
20125     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20126     ;;
20127 esac
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20129 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20130
20131
20132
20133 #
20134 # Check to make sure the PIC flag actually works.
20135 #
20136 if test -n "$lt_prog_compiler_pic_CXX"; then
20137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20138 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20139 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20140   $as_echo_n "(cached) " >&6
20141 else
20142   lt_cv_prog_compiler_pic_works_CXX=no
20143    ac_outfile=conftest.$ac_objext
20144    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20145    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20146    # Insert the option either (1) after the last *FLAGS variable, or
20147    # (2) before a word containing "conftest.", or (3) at the end.
20148    # Note that $ac_compile itself does not contain backslashes and begins
20149    # with a dollar sign (not a hyphen), so the echo should work correctly.
20150    # The option is referenced via a variable to avoid confusing sed.
20151    lt_compile=`echo "$ac_compile" | $SED \
20152    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20153    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20154    -e 's:$: $lt_compiler_flag:'`
20155    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20156    (eval "$lt_compile" 2>conftest.err)
20157    ac_status=$?
20158    cat conftest.err >&5
20159    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160    if (exit $ac_status) && test -s "$ac_outfile"; then
20161      # The compiler can only warn and ignore the option if not recognized
20162      # So say no if there are warnings other than the usual output.
20163      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20164      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20165      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20166        lt_cv_prog_compiler_pic_works_CXX=yes
20167      fi
20168    fi
20169    $RM conftest*
20170
20171 fi
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20173 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20174
20175 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20176     case $lt_prog_compiler_pic_CXX in
20177      "" | " "*) ;;
20178      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20179      esac
20180 else
20181     lt_prog_compiler_pic_CXX=
20182      lt_prog_compiler_can_build_shared_CXX=no
20183 fi
20184
20185 fi
20186
20187
20188
20189 #
20190 # Check to make sure the static flag actually works.
20191 #
20192 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20194 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20195 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20196   $as_echo_n "(cached) " >&6
20197 else
20198   lt_cv_prog_compiler_static_works_CXX=no
20199    save_LDFLAGS="$LDFLAGS"
20200    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20201    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20202    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20203      # The linker can only warn and ignore the option if not recognized
20204      # So say no if there are warnings
20205      if test -s conftest.err; then
20206        # Append any errors to the config.log.
20207        cat conftest.err 1>&5
20208        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20209        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20210        if diff conftest.exp conftest.er2 >/dev/null; then
20211          lt_cv_prog_compiler_static_works_CXX=yes
20212        fi
20213      else
20214        lt_cv_prog_compiler_static_works_CXX=yes
20215      fi
20216    fi
20217    $RM -r conftest*
20218    LDFLAGS="$save_LDFLAGS"
20219
20220 fi
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20222 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20223
20224 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20225     :
20226 else
20227     lt_prog_compiler_static_CXX=
20228 fi
20229
20230
20231
20232
20233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20234 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20235 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20236   $as_echo_n "(cached) " >&6
20237 else
20238   lt_cv_prog_compiler_c_o_CXX=no
20239    $RM -r conftest 2>/dev/null
20240    mkdir conftest
20241    cd conftest
20242    mkdir out
20243    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20244
20245    lt_compiler_flag="-o out/conftest2.$ac_objext"
20246    # Insert the option either (1) after the last *FLAGS variable, or
20247    # (2) before a word containing "conftest.", or (3) at the end.
20248    # Note that $ac_compile itself does not contain backslashes and begins
20249    # with a dollar sign (not a hyphen), so the echo should work correctly.
20250    lt_compile=`echo "$ac_compile" | $SED \
20251    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20253    -e 's:$: $lt_compiler_flag:'`
20254    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20255    (eval "$lt_compile" 2>out/conftest.err)
20256    ac_status=$?
20257    cat out/conftest.err >&5
20258    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20260    then
20261      # The compiler can only warn and ignore the option if not recognized
20262      # So say no if there are warnings
20263      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20264      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20265      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20266        lt_cv_prog_compiler_c_o_CXX=yes
20267      fi
20268    fi
20269    chmod u+w . 2>&5
20270    $RM conftest*
20271    # SGI C++ compiler will create directory out/ii_files/ for
20272    # template instantiation
20273    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20274    $RM out/* && rmdir out
20275    cd ..
20276    $RM -r conftest
20277    $RM conftest*
20278
20279 fi
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20281 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20282
20283
20284
20285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20287 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20288   $as_echo_n "(cached) " >&6
20289 else
20290   lt_cv_prog_compiler_c_o_CXX=no
20291    $RM -r conftest 2>/dev/null
20292    mkdir conftest
20293    cd conftest
20294    mkdir out
20295    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20296
20297    lt_compiler_flag="-o out/conftest2.$ac_objext"
20298    # Insert the option either (1) after the last *FLAGS variable, or
20299    # (2) before a word containing "conftest.", or (3) at the end.
20300    # Note that $ac_compile itself does not contain backslashes and begins
20301    # with a dollar sign (not a hyphen), so the echo should work correctly.
20302    lt_compile=`echo "$ac_compile" | $SED \
20303    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20304    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20305    -e 's:$: $lt_compiler_flag:'`
20306    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20307    (eval "$lt_compile" 2>out/conftest.err)
20308    ac_status=$?
20309    cat out/conftest.err >&5
20310    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20312    then
20313      # The compiler can only warn and ignore the option if not recognized
20314      # So say no if there are warnings
20315      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20316      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20317      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20318        lt_cv_prog_compiler_c_o_CXX=yes
20319      fi
20320    fi
20321    chmod u+w . 2>&5
20322    $RM conftest*
20323    # SGI C++ compiler will create directory out/ii_files/ for
20324    # template instantiation
20325    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20326    $RM out/* && rmdir out
20327    cd ..
20328    $RM -r conftest
20329    $RM conftest*
20330
20331 fi
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20333 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20334
20335
20336
20337
20338 hard_links="nottested"
20339 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20340   # do not overwrite the value of need_locks provided by the user
20341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20342 $as_echo_n "checking if we can lock with hard links... " >&6; }
20343   hard_links=yes
20344   $RM conftest*
20345   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20346   touch conftest.a
20347   ln conftest.a conftest.b 2>&5 || hard_links=no
20348   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20350 $as_echo "$hard_links" >&6; }
20351   if test "$hard_links" = no; then
20352     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20353 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20354     need_locks=warn
20355   fi
20356 else
20357   need_locks=no
20358 fi
20359
20360
20361
20362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20363 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20364
20365   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20366   case $host_os in
20367   aix[4-9]*)
20368     # If we're using GNU nm, then we don't want the "-C" option.
20369     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20370     # Also, AIX nm treats weak defined symbols like other global defined
20371     # symbols, whereas GNU nm marks them as "W".
20372     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20373       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'
20374     else
20375       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'
20376     fi
20377     ;;
20378   pw32*)
20379     export_symbols_cmds_CXX="$ltdll_cmds"
20380   ;;
20381   cygwin* | mingw* | cegcc*)
20382     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'
20383   ;;
20384   *)
20385     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20386   ;;
20387   esac
20388   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20389
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20391 $as_echo "$ld_shlibs_CXX" >&6; }
20392 test "$ld_shlibs_CXX" = no && can_build_shared=no
20393
20394 with_gnu_ld_CXX=$with_gnu_ld
20395
20396
20397
20398
20399
20400
20401 #
20402 # Do we need to explicitly link libc?
20403 #
20404 case "x$archive_cmds_need_lc_CXX" in
20405 x|xyes)
20406   # Assume -lc should be added
20407   archive_cmds_need_lc_CXX=yes
20408
20409   if test "$enable_shared" = yes && test "$GCC" = yes; then
20410     case $archive_cmds_CXX in
20411     *'~'*)
20412       # FIXME: we may have to deal with multi-command sequences.
20413       ;;
20414     '$CC '*)
20415       # Test whether the compiler implicitly links with -lc since on some
20416       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20417       # to ld, don't add -lc before -lgcc.
20418       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20419 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20420 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20421   $as_echo_n "(cached) " >&6
20422 else
20423   $RM conftest*
20424         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20425
20426         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20427   (eval $ac_compile) 2>&5
20428   ac_status=$?
20429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20430   test $ac_status = 0; } 2>conftest.err; then
20431           soname=conftest
20432           lib=conftest
20433           libobjs=conftest.$ac_objext
20434           deplibs=
20435           wl=$lt_prog_compiler_wl_CXX
20436           pic_flag=$lt_prog_compiler_pic_CXX
20437           compiler_flags=-v
20438           linker_flags=-v
20439           verstring=
20440           output_objdir=.
20441           libname=conftest
20442           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20443           allow_undefined_flag_CXX=
20444           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20445   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20446   ac_status=$?
20447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20448   test $ac_status = 0; }
20449           then
20450             lt_cv_archive_cmds_need_lc_CXX=no
20451           else
20452             lt_cv_archive_cmds_need_lc_CXX=yes
20453           fi
20454           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20455         else
20456           cat conftest.err 1>&5
20457         fi
20458         $RM conftest*
20459
20460 fi
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20462 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20463       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20464       ;;
20465     esac
20466   fi
20467   ;;
20468 esac
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20535
20536 library_names_spec=
20537 libname_spec='lib$name'
20538 soname_spec=
20539 shrext_cmds=".so"
20540 postinstall_cmds=
20541 postuninstall_cmds=
20542 finish_cmds=
20543 finish_eval=
20544 shlibpath_var=
20545 shlibpath_overrides_runpath=unknown
20546 version_type=none
20547 dynamic_linker="$host_os ld.so"
20548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20549 need_lib_prefix=unknown
20550 hardcode_into_libs=no
20551
20552 # when you set need_version to no, make sure it does not cause -set_version
20553 # flags to be left without arguments
20554 need_version=unknown
20555
20556 case $host_os in
20557 aix3*)
20558   version_type=linux
20559   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20560   shlibpath_var=LIBPATH
20561
20562   # AIX 3 has no versioning support, so we append a major version to the name.
20563   soname_spec='${libname}${release}${shared_ext}$major'
20564   ;;
20565
20566 aix[4-9]*)
20567   version_type=linux
20568   need_lib_prefix=no
20569   need_version=no
20570   hardcode_into_libs=yes
20571   if test "$host_cpu" = ia64; then
20572     # AIX 5 supports IA64
20573     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20574     shlibpath_var=LD_LIBRARY_PATH
20575   else
20576     # With GCC up to 2.95.x, collect2 would create an import file
20577     # for dependence libraries.  The import file would start with
20578     # the line `#! .'.  This would cause the generated library to
20579     # depend on `.', always an invalid library.  This was fixed in
20580     # development snapshots of GCC prior to 3.0.
20581     case $host_os in
20582       aix4 | aix4.[01] | aix4.[01].*)
20583       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20584            echo ' yes '
20585            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20586         :
20587       else
20588         can_build_shared=no
20589       fi
20590       ;;
20591     esac
20592     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20593     # soname into executable. Probably we can add versioning support to
20594     # collect2, so additional links can be useful in future.
20595     if test "$aix_use_runtimelinking" = yes; then
20596       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20597       # instead of lib<name>.a to let people know that these are not
20598       # typical AIX shared libraries.
20599       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600     else
20601       # We preserve .a as extension for shared libraries through AIX4.2
20602       # and later when we are not doing run time linking.
20603       library_names_spec='${libname}${release}.a $libname.a'
20604       soname_spec='${libname}${release}${shared_ext}$major'
20605     fi
20606     shlibpath_var=LIBPATH
20607   fi
20608   ;;
20609
20610 amigaos*)
20611   case $host_cpu in
20612   powerpc)
20613     # Since July 2007 AmigaOS4 officially supports .so libraries.
20614     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616     ;;
20617   m68k)
20618     library_names_spec='$libname.ixlibrary $libname.a'
20619     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20620     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'
20621     ;;
20622   esac
20623   ;;
20624
20625 beos*)
20626   library_names_spec='${libname}${shared_ext}'
20627   dynamic_linker="$host_os ld.so"
20628   shlibpath_var=LIBRARY_PATH
20629   ;;
20630
20631 bsdi[45]*)
20632   version_type=linux
20633   need_version=no
20634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20635   soname_spec='${libname}${release}${shared_ext}$major'
20636   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20637   shlibpath_var=LD_LIBRARY_PATH
20638   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20639   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20640   # the default ld.so.conf also contains /usr/contrib/lib and
20641   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20642   # libtool to hard-code these into programs
20643   ;;
20644
20645 cygwin* | mingw* | pw32* | cegcc*)
20646   version_type=windows
20647   shrext_cmds=".dll"
20648   need_version=no
20649   need_lib_prefix=no
20650
20651   case $GCC,$host_os in
20652   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20653     library_names_spec='$libname.dll.a'
20654     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20655     postinstall_cmds='base_file=`basename \${file}`~
20656       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20657       dldir=$destdir/`dirname \$dlpath`~
20658       test -d \$dldir || mkdir -p \$dldir~
20659       $install_prog $dir/$dlname \$dldir/$dlname~
20660       chmod a+x \$dldir/$dlname~
20661       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20662         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20663       fi'
20664     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20665       dlpath=$dir/\$dldll~
20666        $RM \$dlpath'
20667     shlibpath_overrides_runpath=yes
20668
20669     case $host_os in
20670     cygwin*)
20671       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20672       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20673
20674       ;;
20675     mingw* | cegcc*)
20676       # MinGW DLLs use traditional 'lib' prefix
20677       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20678       ;;
20679     pw32*)
20680       # pw32 DLLs use 'pw' prefix rather than 'lib'
20681       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20682       ;;
20683     esac
20684     ;;
20685
20686   *)
20687     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20688     ;;
20689   esac
20690   dynamic_linker='Win32 ld.exe'
20691   # FIXME: first we should search . and the directory the executable is in
20692   shlibpath_var=PATH
20693   ;;
20694
20695 darwin* | rhapsody*)
20696   dynamic_linker="$host_os dyld"
20697   version_type=darwin
20698   need_lib_prefix=no
20699   need_version=no
20700   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20701   soname_spec='${libname}${release}${major}$shared_ext'
20702   shlibpath_overrides_runpath=yes
20703   shlibpath_var=DYLD_LIBRARY_PATH
20704   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20705
20706   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20707   ;;
20708
20709 dgux*)
20710   version_type=linux
20711   need_lib_prefix=no
20712   need_version=no
20713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20714   soname_spec='${libname}${release}${shared_ext}$major'
20715   shlibpath_var=LD_LIBRARY_PATH
20716   ;;
20717
20718 freebsd* | dragonfly*)
20719   # DragonFly does not have aout.  When/if they implement a new
20720   # versioning mechanism, adjust this.
20721   if test -x /usr/bin/objformat; then
20722     objformat=`/usr/bin/objformat`
20723   else
20724     case $host_os in
20725     freebsd[123]*) objformat=aout ;;
20726     *) objformat=elf ;;
20727     esac
20728   fi
20729   version_type=freebsd-$objformat
20730   case $version_type in
20731     freebsd-elf*)
20732       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20733       need_version=no
20734       need_lib_prefix=no
20735       ;;
20736     freebsd-*)
20737       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20738       need_version=yes
20739       ;;
20740   esac
20741   shlibpath_var=LD_LIBRARY_PATH
20742   case $host_os in
20743   freebsd2*)
20744     shlibpath_overrides_runpath=yes
20745     ;;
20746   freebsd3.[01]* | freebsdelf3.[01]*)
20747     shlibpath_overrides_runpath=yes
20748     hardcode_into_libs=yes
20749     ;;
20750   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20751   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20752     shlibpath_overrides_runpath=no
20753     hardcode_into_libs=yes
20754     ;;
20755   *) # from 4.6 on, and DragonFly
20756     shlibpath_overrides_runpath=yes
20757     hardcode_into_libs=yes
20758     ;;
20759   esac
20760   ;;
20761
20762 gnu*)
20763   version_type=linux
20764   need_lib_prefix=no
20765   need_version=no
20766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20767   soname_spec='${libname}${release}${shared_ext}$major'
20768   shlibpath_var=LD_LIBRARY_PATH
20769   hardcode_into_libs=yes
20770   ;;
20771
20772 haiku*)
20773   version_type=linux
20774   need_lib_prefix=no
20775   need_version=no
20776   dynamic_linker="$host_os runtime_loader"
20777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20778   soname_spec='${libname}${release}${shared_ext}$major'
20779   shlibpath_var=LIBRARY_PATH
20780   shlibpath_overrides_runpath=yes
20781   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20782   hardcode_into_libs=yes
20783   ;;
20784
20785 hpux9* | hpux10* | hpux11*)
20786   # Give a soname corresponding to the major version so that dld.sl refuses to
20787   # link against other versions.
20788   version_type=sunos
20789   need_lib_prefix=no
20790   need_version=no
20791   case $host_cpu in
20792   ia64*)
20793     shrext_cmds='.so'
20794     hardcode_into_libs=yes
20795     dynamic_linker="$host_os dld.so"
20796     shlibpath_var=LD_LIBRARY_PATH
20797     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20799     soname_spec='${libname}${release}${shared_ext}$major'
20800     if test "X$HPUX_IA64_MODE" = X32; then
20801       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20802     else
20803       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20804     fi
20805     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20806     ;;
20807   hppa*64*)
20808     shrext_cmds='.sl'
20809     hardcode_into_libs=yes
20810     dynamic_linker="$host_os dld.sl"
20811     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20812     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20814     soname_spec='${libname}${release}${shared_ext}$major'
20815     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20816     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20817     ;;
20818   *)
20819     shrext_cmds='.sl'
20820     dynamic_linker="$host_os dld.sl"
20821     shlibpath_var=SHLIB_PATH
20822     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20824     soname_spec='${libname}${release}${shared_ext}$major'
20825     ;;
20826   esac
20827   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20828   postinstall_cmds='chmod 555 $lib'
20829   # or fails outright, so override atomically:
20830   install_override_mode=555
20831   ;;
20832
20833 interix[3-9]*)
20834   version_type=linux
20835   need_lib_prefix=no
20836   need_version=no
20837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20838   soname_spec='${libname}${release}${shared_ext}$major'
20839   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20840   shlibpath_var=LD_LIBRARY_PATH
20841   shlibpath_overrides_runpath=no
20842   hardcode_into_libs=yes
20843   ;;
20844
20845 irix5* | irix6* | nonstopux*)
20846   case $host_os in
20847     nonstopux*) version_type=nonstopux ;;
20848     *)
20849         if test "$lt_cv_prog_gnu_ld" = yes; then
20850                 version_type=linux
20851         else
20852                 version_type=irix
20853         fi ;;
20854   esac
20855   need_lib_prefix=no
20856   need_version=no
20857   soname_spec='${libname}${release}${shared_ext}$major'
20858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20859   case $host_os in
20860   irix5* | nonstopux*)
20861     libsuff= shlibsuff=
20862     ;;
20863   *)
20864     case $LD in # libtool.m4 will add one of these switches to LD
20865     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20866       libsuff= shlibsuff= libmagic=32-bit;;
20867     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20868       libsuff=32 shlibsuff=N32 libmagic=N32;;
20869     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20870       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20871     *) libsuff= shlibsuff= libmagic=never-match;;
20872     esac
20873     ;;
20874   esac
20875   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20876   shlibpath_overrides_runpath=no
20877   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20878   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20879   hardcode_into_libs=yes
20880   ;;
20881
20882 # No shared lib support for Linux oldld, aout, or coff.
20883 linux*oldld* | linux*aout* | linux*coff*)
20884   dynamic_linker=no
20885   ;;
20886
20887 # This must be Linux ELF.
20888 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20889   version_type=linux
20890   need_lib_prefix=no
20891   need_version=no
20892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893   soname_spec='${libname}${release}${shared_ext}$major'
20894   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20895   shlibpath_var=LD_LIBRARY_PATH
20896   shlibpath_overrides_runpath=no
20897
20898   # Some binutils ld are patched to set DT_RUNPATH
20899   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20900   $as_echo_n "(cached) " >&6
20901 else
20902   lt_cv_shlibpath_overrides_runpath=no
20903     save_LDFLAGS=$LDFLAGS
20904     save_libdir=$libdir
20905     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20906          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20907     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h.  */
20909
20910 int
20911 main ()
20912 {
20913
20914   ;
20915   return 0;
20916 }
20917 _ACEOF
20918 if ac_fn_cxx_try_link "$LINENO"; then :
20919   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20920   lt_cv_shlibpath_overrides_runpath=yes
20921 fi
20922 fi
20923 rm -f core conftest.err conftest.$ac_objext \
20924     conftest$ac_exeext conftest.$ac_ext
20925     LDFLAGS=$save_LDFLAGS
20926     libdir=$save_libdir
20927
20928 fi
20929
20930   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20931
20932   # This implies no fast_install, which is unacceptable.
20933   # Some rework will be needed to allow for fast_install
20934   # before this can be enabled.
20935   hardcode_into_libs=yes
20936
20937   # Append ld.so.conf contents to the search path
20938   if test -f /etc/ld.so.conf; then
20939     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' ' '`
20940     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20941   fi
20942
20943   # We used to test for /lib/ld.so.1 and disable shared libraries on
20944   # powerpc, because MkLinux only supported shared libraries with the
20945   # GNU dynamic linker.  Since this was broken with cross compilers,
20946   # most powerpc-linux boxes support dynamic linking these days and
20947   # people can always --disable-shared, the test was removed, and we
20948   # assume the GNU/Linux dynamic linker is in use.
20949   dynamic_linker='GNU/Linux ld.so'
20950   ;;
20951
20952 netbsd*)
20953   version_type=sunos
20954   need_lib_prefix=no
20955   need_version=no
20956   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20958     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20959     dynamic_linker='NetBSD (a.out) ld.so'
20960   else
20961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20962     soname_spec='${libname}${release}${shared_ext}$major'
20963     dynamic_linker='NetBSD ld.elf_so'
20964   fi
20965   shlibpath_var=LD_LIBRARY_PATH
20966   shlibpath_overrides_runpath=yes
20967   hardcode_into_libs=yes
20968   ;;
20969
20970 newsos6)
20971   version_type=linux
20972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20973   shlibpath_var=LD_LIBRARY_PATH
20974   shlibpath_overrides_runpath=yes
20975   ;;
20976
20977 *nto* | *qnx*)
20978   version_type=qnx
20979   need_lib_prefix=no
20980   need_version=no
20981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20982   soname_spec='${libname}${release}${shared_ext}$major'
20983   shlibpath_var=LD_LIBRARY_PATH
20984   shlibpath_overrides_runpath=no
20985   hardcode_into_libs=yes
20986   dynamic_linker='ldqnx.so'
20987   ;;
20988
20989 openbsd*)
20990   version_type=sunos
20991   sys_lib_dlsearch_path_spec="/usr/lib"
20992   need_lib_prefix=no
20993   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20994   case $host_os in
20995     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20996     *)                          need_version=no  ;;
20997   esac
20998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21000   shlibpath_var=LD_LIBRARY_PATH
21001   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21002     case $host_os in
21003       openbsd2.[89] | openbsd2.[89].*)
21004         shlibpath_overrides_runpath=no
21005         ;;
21006       *)
21007         shlibpath_overrides_runpath=yes
21008         ;;
21009       esac
21010   else
21011     shlibpath_overrides_runpath=yes
21012   fi
21013   ;;
21014
21015 os2*)
21016   libname_spec='$name'
21017   shrext_cmds=".dll"
21018   need_lib_prefix=no
21019   library_names_spec='$libname${shared_ext} $libname.a'
21020   dynamic_linker='OS/2 ld.exe'
21021   shlibpath_var=LIBPATH
21022   ;;
21023
21024 osf3* | osf4* | osf5*)
21025   version_type=osf
21026   need_lib_prefix=no
21027   need_version=no
21028   soname_spec='${libname}${release}${shared_ext}$major'
21029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030   shlibpath_var=LD_LIBRARY_PATH
21031   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21032   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21033   ;;
21034
21035 rdos*)
21036   dynamic_linker=no
21037   ;;
21038
21039 solaris*)
21040   version_type=linux
21041   need_lib_prefix=no
21042   need_version=no
21043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21044   soname_spec='${libname}${release}${shared_ext}$major'
21045   shlibpath_var=LD_LIBRARY_PATH
21046   shlibpath_overrides_runpath=yes
21047   hardcode_into_libs=yes
21048   # ldd complains unless libraries are executable
21049   postinstall_cmds='chmod +x $lib'
21050   ;;
21051
21052 sunos4*)
21053   version_type=sunos
21054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21055   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21056   shlibpath_var=LD_LIBRARY_PATH
21057   shlibpath_overrides_runpath=yes
21058   if test "$with_gnu_ld" = yes; then
21059     need_lib_prefix=no
21060   fi
21061   need_version=yes
21062   ;;
21063
21064 sysv4 | sysv4.3*)
21065   version_type=linux
21066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21067   soname_spec='${libname}${release}${shared_ext}$major'
21068   shlibpath_var=LD_LIBRARY_PATH
21069   case $host_vendor in
21070     sni)
21071       shlibpath_overrides_runpath=no
21072       need_lib_prefix=no
21073       runpath_var=LD_RUN_PATH
21074       ;;
21075     siemens)
21076       need_lib_prefix=no
21077       ;;
21078     motorola)
21079       need_lib_prefix=no
21080       need_version=no
21081       shlibpath_overrides_runpath=no
21082       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21083       ;;
21084   esac
21085   ;;
21086
21087 sysv4*MP*)
21088   if test -d /usr/nec ;then
21089     version_type=linux
21090     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21091     soname_spec='$libname${shared_ext}.$major'
21092     shlibpath_var=LD_LIBRARY_PATH
21093   fi
21094   ;;
21095
21096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21097   version_type=freebsd-elf
21098   need_lib_prefix=no
21099   need_version=no
21100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21101   soname_spec='${libname}${release}${shared_ext}$major'
21102   shlibpath_var=LD_LIBRARY_PATH
21103   shlibpath_overrides_runpath=yes
21104   hardcode_into_libs=yes
21105   if test "$with_gnu_ld" = yes; then
21106     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21107   else
21108     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21109     case $host_os in
21110       sco3.2v5*)
21111         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21112         ;;
21113     esac
21114   fi
21115   sys_lib_dlsearch_path_spec='/usr/lib'
21116   ;;
21117
21118 tpf*)
21119   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21120   version_type=linux
21121   need_lib_prefix=no
21122   need_version=no
21123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21124   shlibpath_var=LD_LIBRARY_PATH
21125   shlibpath_overrides_runpath=no
21126   hardcode_into_libs=yes
21127   ;;
21128
21129 uts4*)
21130   version_type=linux
21131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21132   soname_spec='${libname}${release}${shared_ext}$major'
21133   shlibpath_var=LD_LIBRARY_PATH
21134   ;;
21135
21136 *)
21137   dynamic_linker=no
21138   ;;
21139 esac
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21141 $as_echo "$dynamic_linker" >&6; }
21142 test "$dynamic_linker" = no && can_build_shared=no
21143
21144 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21145 if test "$GCC" = yes; then
21146   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21147 fi
21148
21149 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21150   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21151 fi
21152 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21153   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21154 fi
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21194 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21195 hardcode_action_CXX=
21196 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21197    test -n "$runpath_var_CXX" ||
21198    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21199
21200   # We can hardcode non-existent directories.
21201   if test "$hardcode_direct_CXX" != no &&
21202      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21203      # have to relink, otherwise we might link with an installed library
21204      # when we should be linking with a yet-to-be-installed one
21205      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21206      test "$hardcode_minus_L_CXX" != no; then
21207     # Linking always hardcodes the temporary library directory.
21208     hardcode_action_CXX=relink
21209   else
21210     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21211     hardcode_action_CXX=immediate
21212   fi
21213 else
21214   # We cannot hardcode anything, or else we can only hardcode existing
21215   # directories.
21216   hardcode_action_CXX=unsupported
21217 fi
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21219 $as_echo "$hardcode_action_CXX" >&6; }
21220
21221 if test "$hardcode_action_CXX" = relink ||
21222    test "$inherit_rpath_CXX" = yes; then
21223   # Fast installation is not supported
21224   enable_fast_install=no
21225 elif test "$shlibpath_overrides_runpath" = yes ||
21226      test "$enable_shared" = no; then
21227   # Fast installation is not necessary
21228   enable_fast_install=needless
21229 fi
21230
21231
21232
21233
21234
21235
21236
21237   fi # test -n "$compiler"
21238
21239   CC=$lt_save_CC
21240   LDCXX=$LD
21241   LD=$lt_save_LD
21242   GCC=$lt_save_GCC
21243   with_gnu_ld=$lt_save_with_gnu_ld
21244   lt_cv_path_LDCXX=$lt_cv_path_LD
21245   lt_cv_path_LD=$lt_save_path_LD
21246   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21247   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21248 fi # test "$_lt_caught_CXX_error" != yes
21249
21250 ac_ext=c
21251 ac_cpp='$CPP $CPPFLAGS'
21252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271 # Only expand once:
21272
21273
21274
21275
21276
21277 # Identify the assembler which will work hand-in-glove with the newly
21278 # built GCC, so that we can examine its features.  This is the assembler
21279 # which will be driven by the driver program.
21280 #
21281 # If build != host, and we aren't building gas in-tree, we identify a
21282 # build->target assembler and hope that it will have the same features
21283 # as the host->target assembler we'll be using.
21284 gcc_cv_gas_major_version=
21285 gcc_cv_gas_minor_version=
21286 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21287
21288 if test "${gcc_cv_as+set}" = set; then :
21289
21290 else
21291
21292 if test -x "$DEFAULT_ASSEMBLER"; then
21293         gcc_cv_as="$DEFAULT_ASSEMBLER"
21294 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21295      && test -f ../gas/Makefile \
21296      && test x$build = x$host; then
21297         gcc_cv_as=../gas/as-new$build_exeext
21298 elif test -x as$build_exeext; then
21299         # Build using assembler in the current directory.
21300         gcc_cv_as=./as$build_exeext
21301 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21302         gcc_cv_as="$AS_FOR_TARGET"
21303 else
21304         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21305 set dummy $AS_FOR_TARGET; ac_word=$2
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21307 $as_echo_n "checking for $ac_word... " >&6; }
21308 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21309   $as_echo_n "(cached) " >&6
21310 else
21311   case $gcc_cv_as in
21312   [\\/]* | ?:[\\/]*)
21313   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21314   ;;
21315   *)
21316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21317 for as_dir in $PATH
21318 do
21319   IFS=$as_save_IFS
21320   test -z "$as_dir" && as_dir=.
21321     for ac_exec_ext in '' $ac_executable_extensions; do
21322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21323     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21325     break 2
21326   fi
21327 done
21328   done
21329 IFS=$as_save_IFS
21330
21331   ;;
21332 esac
21333 fi
21334 gcc_cv_as=$ac_cv_path_gcc_cv_as
21335 if test -n "$gcc_cv_as"; then
21336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21337 $as_echo "$gcc_cv_as" >&6; }
21338 else
21339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340 $as_echo "no" >&6; }
21341 fi
21342
21343
21344 fi
21345 fi
21346
21347 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21348
21349 case "$ORIGINAL_AS_FOR_TARGET" in
21350   ./as | ./as$build_exeext) ;;
21351   *) ac_config_files="$ac_config_files as:exec-tool.in"
21352  ;;
21353 esac
21354
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21356 $as_echo_n "checking what assembler to use... " >&6; }
21357 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21358   # Single tree build which includes gas.  We want to prefer it
21359   # over whatever linker top-level may have detected, since
21360   # we'll use what we're building after installation anyway.
21361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21362 $as_echo "newly built gas" >&6; }
21363   in_tree_gas=yes
21364   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21365 for f in $gcc_cv_as_bfd_srcdir/configure \
21366          $gcc_cv_as_gas_srcdir/configure \
21367          $gcc_cv_as_gas_srcdir/configure.in \
21368          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21369   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21370   if test x$gcc_cv_gas_version != x; then
21371     break
21372   fi
21373 done
21374 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21375 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21376 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21377 case $gcc_cv_gas_patch_version in
21378   "") gcc_cv_gas_patch_version="0" ;;
21379 esac
21380 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21381                             + $gcc_cv_gas_minor_version \) \* 1000 \
21382                             + $gcc_cv_gas_patch_version`
21383
21384   in_tree_gas_is_elf=no
21385   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21386      || (grep 'obj_format = multi' ../gas/Makefile \
21387          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21388   then
21389     in_tree_gas_is_elf=yes
21390   fi
21391 else
21392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21393 $as_echo "$gcc_cv_as" >&6; }
21394   in_tree_gas=no
21395 fi
21396
21397 # Identify the linker which will work hand-in-glove with the newly
21398 # built GCC, so that we can examine its features.  This is the linker
21399 # which will be driven by the driver program.
21400 #
21401 # If build != host, and we aren't building gas in-tree, we identify a
21402 # build->target linker and hope that it will have the same features
21403 # as the host->target linker we'll be using.
21404 gcc_cv_gld_major_version=
21405 gcc_cv_gld_minor_version=
21406 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21407 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21408
21409 if test "${gcc_cv_ld+set}" = set; then :
21410
21411 else
21412
21413 if test -x "$DEFAULT_LINKER"; then
21414         gcc_cv_ld="$DEFAULT_LINKER"
21415 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21416      && test -f ../ld/Makefile \
21417      && test x$build = x$host; then
21418         gcc_cv_ld=../ld/ld-new$build_exeext
21419 elif test -x collect-ld$build_exeext; then
21420         # Build using linker in the current directory.
21421         gcc_cv_ld=./collect-ld$build_exeext
21422 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21423         gcc_cv_ld="$LD_FOR_TARGET"
21424 else
21425         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21426 set dummy $LD_FOR_TARGET; ac_word=$2
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21428 $as_echo_n "checking for $ac_word... " >&6; }
21429 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21430   $as_echo_n "(cached) " >&6
21431 else
21432   case $gcc_cv_ld in
21433   [\\/]* | ?:[\\/]*)
21434   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21435   ;;
21436   *)
21437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21438 for as_dir in $PATH
21439 do
21440   IFS=$as_save_IFS
21441   test -z "$as_dir" && as_dir=.
21442     for ac_exec_ext in '' $ac_executable_extensions; do
21443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21444     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21446     break 2
21447   fi
21448 done
21449   done
21450 IFS=$as_save_IFS
21451
21452   ;;
21453 esac
21454 fi
21455 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21456 if test -n "$gcc_cv_ld"; then
21457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21458 $as_echo "$gcc_cv_ld" >&6; }
21459 else
21460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21461 $as_echo "no" >&6; }
21462 fi
21463
21464
21465 fi
21466 fi
21467
21468 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21469 PLUGIN_LD=`basename $gcc_cv_ld`
21470
21471 # Check whether --with-plugin-ld was given.
21472 if test "${with_plugin_ld+set}" = set; then :
21473   withval=$with_plugin_ld; if test x"$withval" != x; then
21474    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21475    PLUGIN_LD="$withval"
21476  fi
21477 fi
21478
21479
21480
21481 cat >>confdefs.h <<_ACEOF
21482 #define PLUGIN_LD "$PLUGIN_LD"
21483 _ACEOF
21484
21485
21486 # Check to see if we are using gold instead of ld
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21488 $as_echo_n "checking whether we are using gold... " >&6; }
21489 ld_is_gold=no
21490 if test x$gcc_cv_ld != x; then
21491   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21492      | grep "GNU gold" > /dev/null; then
21493     ld_is_gold=yes
21494   fi
21495 fi
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21497 $as_echo "$ld_is_gold" >&6; }
21498
21499 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21500
21501 case "$ORIGINAL_LD_FOR_TARGET" in
21502   ./collect-ld | ./collect-ld$build_exeext) ;;
21503   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21504  ;;
21505 esac
21506
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21508 $as_echo_n "checking what linker to use... " >&6; }
21509 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21510    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21511         # Single tree build which includes ld.  We want to prefer it
21512         # over whatever linker top-level may have detected, since
21513         # we'll use what we're building after installation anyway.
21514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21515 $as_echo "newly built ld" >&6; }
21516         in_tree_ld=yes
21517         in_tree_ld_is_elf=no
21518         if (grep 'EMUL = .*elf' ../ld/Makefile \
21519             || grep 'EMUL = .*linux' ../ld/Makefile \
21520             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21521           in_tree_ld_is_elf=yes
21522         elif test "$ld_is_gold" = yes; then
21523           in_tree_ld_is_elf=yes
21524         fi
21525         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
21526         do
21527                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21528                 if test x$gcc_cv_gld_version != x; then
21529                         break
21530                 fi
21531         done
21532         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21533         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21534 else
21535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21536 $as_echo "$gcc_cv_ld" >&6; }
21537         in_tree_ld=no
21538 fi
21539
21540 # Figure out what nm we will be using.
21541 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21542 if test "${gcc_cv_nm+set}" = set; then :
21543
21544 else
21545
21546 if test -f $gcc_cv_binutils_srcdir/configure.in \
21547      && test -f ../binutils/Makefile \
21548      && test x$build = x$host; then
21549         gcc_cv_nm=../binutils/nm-new$build_exeext
21550 elif test -x nm$build_exeext; then
21551         gcc_cv_nm=./nm$build_exeext
21552 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21553         gcc_cv_nm="$NM_FOR_TARGET"
21554 else
21555         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21556 set dummy $NM_FOR_TARGET; ac_word=$2
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21558 $as_echo_n "checking for $ac_word... " >&6; }
21559 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21560   $as_echo_n "(cached) " >&6
21561 else
21562   case $gcc_cv_nm in
21563   [\\/]* | ?:[\\/]*)
21564   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21565   ;;
21566   *)
21567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21568 for as_dir in $PATH
21569 do
21570   IFS=$as_save_IFS
21571   test -z "$as_dir" && as_dir=.
21572     for ac_exec_ext in '' $ac_executable_extensions; do
21573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21574     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21576     break 2
21577   fi
21578 done
21579   done
21580 IFS=$as_save_IFS
21581
21582   ;;
21583 esac
21584 fi
21585 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21586 if test -n "$gcc_cv_nm"; then
21587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21588 $as_echo "$gcc_cv_nm" >&6; }
21589 else
21590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21592 fi
21593
21594
21595 fi
21596 fi
21597
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21599 $as_echo_n "checking what nm to use... " >&6; }
21600 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21601         # Single tree build which includes binutils.
21602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21603 $as_echo "newly built nm" >&6; }
21604         in_tree_nm=yes
21605 else
21606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21607 $as_echo "$gcc_cv_nm" >&6; }
21608         in_tree_nm=no
21609 fi
21610
21611 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21612
21613 case "$ORIGINAL_NM_FOR_TARGET" in
21614   ./nm | ./nm$build_exeext) ;;
21615   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21616  ;;
21617 esac
21618
21619
21620 # Figure out what objdump we will be using.
21621 if test "${gcc_cv_objdump+set}" = set; then :
21622
21623 else
21624
21625 if test -f $gcc_cv_binutils_srcdir/configure.in \
21626      && test -f ../binutils/Makefile \
21627      && test x$build = x$host; then
21628         # Single tree build which includes binutils.
21629         gcc_cv_objdump=../binutils/objdump$build_exeext
21630 elif test -x objdump$build_exeext; then
21631         gcc_cv_objdump=./objdump$build_exeext
21632 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21633         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21634 else
21635         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21636 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21638 $as_echo_n "checking for $ac_word... " >&6; }
21639 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21640   $as_echo_n "(cached) " >&6
21641 else
21642   case $gcc_cv_objdump in
21643   [\\/]* | ?:[\\/]*)
21644   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21645   ;;
21646   *)
21647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21648 for as_dir in $PATH
21649 do
21650   IFS=$as_save_IFS
21651   test -z "$as_dir" && as_dir=.
21652     for ac_exec_ext in '' $ac_executable_extensions; do
21653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21654     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21656     break 2
21657   fi
21658 done
21659   done
21660 IFS=$as_save_IFS
21661
21662   ;;
21663 esac
21664 fi
21665 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21666 if test -n "$gcc_cv_objdump"; then
21667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21668 $as_echo "$gcc_cv_objdump" >&6; }
21669 else
21670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21672 fi
21673
21674
21675 fi
21676 fi
21677
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21679 $as_echo_n "checking what objdump to use... " >&6; }
21680 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21681         # Single tree build which includes binutils.
21682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21683 $as_echo "newly built objdump" >&6; }
21684 elif test x$gcc_cv_objdump = x; then
21685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21686 $as_echo "not found" >&6; }
21687 else
21688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21689 $as_echo "$gcc_cv_objdump" >&6; }
21690 fi
21691
21692 # Figure out what readelf we will be using.
21693 if test "${gcc_cv_readelf+set}" = set; then :
21694
21695 else
21696
21697 if test -f $gcc_cv_binutils_srcdir/configure.in \
21698      && test -f ../binutils/Makefile \
21699      && test x$build = x$host; then
21700         # Single tree build which includes binutils.
21701         gcc_cv_readelf=../binutils/readelf$build_exeext
21702 elif test -x readelf$build_exeext; then
21703         gcc_cv_readelf=./readelf$build_exeext
21704 else
21705         # Extract the first word of "readelf", so it can be a program name with args.
21706 set dummy readelf; ac_word=$2
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21708 $as_echo_n "checking for $ac_word... " >&6; }
21709 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21710   $as_echo_n "(cached) " >&6
21711 else
21712   case $gcc_cv_readelf in
21713   [\\/]* | ?:[\\/]*)
21714   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21715   ;;
21716   *)
21717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21718 for as_dir in $PATH
21719 do
21720   IFS=$as_save_IFS
21721   test -z "$as_dir" && as_dir=.
21722     for ac_exec_ext in '' $ac_executable_extensions; do
21723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21724     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21726     break 2
21727   fi
21728 done
21729   done
21730 IFS=$as_save_IFS
21731
21732   ;;
21733 esac
21734 fi
21735 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21736 if test -n "$gcc_cv_readelf"; then
21737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21738 $as_echo "$gcc_cv_readelf" >&6; }
21739 else
21740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21742 fi
21743
21744
21745 fi
21746 fi
21747
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21749 $as_echo_n "checking what readelf to use... " >&6; }
21750 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21751         # Single tree build which includes binutils.
21752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21753 $as_echo "newly built readelf" >&6; }
21754 elif test x$gcc_cv_readelf = x; then
21755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21756 $as_echo "not found" >&6; }
21757 else
21758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21759 $as_echo "$gcc_cv_readelf" >&6; }
21760 fi
21761
21762 # Figure out what assembler alignment features are present.
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21764 $as_echo_n "checking assembler flags... " >&6; }
21765 if test "${gcc_cv_as_flags+set}" = set; then :
21766   $as_echo_n "(cached) " >&6
21767 else
21768    case "$target" in
21769   i[34567]86-*-linux*)
21770         gcc_cv_as_flags="--32"
21771     ;;
21772   powerpc*-*-darwin*)
21773         gcc_cv_as_flags="-arch ppc"
21774     ;;
21775   *)
21776     gcc_cv_as_flags=" "
21777     ;;
21778   esac
21779 fi
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21781 $as_echo "$gcc_cv_as_flags" >&6; }
21782
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21784 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21785 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21786   $as_echo_n "(cached) " >&6
21787 else
21788   gcc_cv_as_balign_and_p2align=no
21789     if test $in_tree_gas = yes; then
21790     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21791   then gcc_cv_as_balign_and_p2align=yes
21792 fi
21793   elif test x$gcc_cv_as != x; then
21794     $as_echo '.balign 4
21795 .p2align 2' > conftest.s
21796     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21797   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21798   (eval $ac_try) 2>&5
21799   ac_status=$?
21800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21801   test $ac_status = 0; }; }
21802     then
21803         gcc_cv_as_balign_and_p2align=yes
21804     else
21805       echo "configure: failed program was" >&5
21806       cat conftest.s >&5
21807     fi
21808     rm -f conftest.o conftest.s
21809   fi
21810 fi
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21812 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21813 if test $gcc_cv_as_balign_and_p2align = yes; then
21814
21815 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21816
21817 fi
21818
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21820 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21821 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21822   $as_echo_n "(cached) " >&6
21823 else
21824   gcc_cv_as_max_skip_p2align=no
21825     if test $in_tree_gas = yes; then
21826     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21827   then gcc_cv_as_max_skip_p2align=yes
21828 fi
21829   elif test x$gcc_cv_as != x; then
21830     $as_echo '.p2align 4,,7' > conftest.s
21831     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21832   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21833   (eval $ac_try) 2>&5
21834   ac_status=$?
21835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21836   test $ac_status = 0; }; }
21837     then
21838         gcc_cv_as_max_skip_p2align=yes
21839     else
21840       echo "configure: failed program was" >&5
21841       cat conftest.s >&5
21842     fi
21843     rm -f conftest.o conftest.s
21844   fi
21845 fi
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21847 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21848 if test $gcc_cv_as_max_skip_p2align = yes; then
21849
21850 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21851
21852 fi
21853
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21855 $as_echo_n "checking assembler for .literal16... " >&6; }
21856 if test "${gcc_cv_as_literal16+set}" = set; then :
21857   $as_echo_n "(cached) " >&6
21858 else
21859   gcc_cv_as_literal16=no
21860     if test $in_tree_gas = yes; then
21861     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21862   then gcc_cv_as_literal16=yes
21863 fi
21864   elif test x$gcc_cv_as != x; then
21865     $as_echo '.literal16' > conftest.s
21866     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21867   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21868   (eval $ac_try) 2>&5
21869   ac_status=$?
21870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21871   test $ac_status = 0; }; }
21872     then
21873         gcc_cv_as_literal16=yes
21874     else
21875       echo "configure: failed program was" >&5
21876       cat conftest.s >&5
21877     fi
21878     rm -f conftest.o conftest.s
21879   fi
21880 fi
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21882 $as_echo "$gcc_cv_as_literal16" >&6; }
21883 if test $gcc_cv_as_literal16 = yes; then
21884
21885 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21886
21887 fi
21888
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21890 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21891 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21892   $as_echo_n "(cached) " >&6
21893 else
21894   gcc_cv_as_subsection_m1=no
21895     if test $in_tree_gas = yes; then
21896     if test $in_tree_gas_is_elf = yes \
21897   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21898   then gcc_cv_as_subsection_m1=yes
21899 fi
21900   elif test x$gcc_cv_as != x; then
21901     $as_echo 'conftest_label1: .word 0
21902 .subsection -1
21903 conftest_label2: .word 0
21904 .previous' > conftest.s
21905     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907   (eval $ac_try) 2>&5
21908   ac_status=$?
21909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910   test $ac_status = 0; }; }
21911     then
21912         if test x$gcc_cv_nm != x; then
21913     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21914     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21915     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21916     then :
21917     else gcc_cv_as_subsection_m1=yes
21918     fi
21919     rm -f conftest.nm1 conftest.nm2
21920   fi
21921     else
21922       echo "configure: failed program was" >&5
21923       cat conftest.s >&5
21924     fi
21925     rm -f conftest.o conftest.s
21926   fi
21927 fi
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21929 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21930 if test $gcc_cv_as_subsection_m1 = yes; then
21931
21932 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21933
21934 fi
21935
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21937 $as_echo_n "checking assembler for .weak... " >&6; }
21938 if test "${gcc_cv_as_weak+set}" = set; then :
21939   $as_echo_n "(cached) " >&6
21940 else
21941   gcc_cv_as_weak=no
21942     if test $in_tree_gas = yes; then
21943     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21944   then gcc_cv_as_weak=yes
21945 fi
21946   elif test x$gcc_cv_as != x; then
21947     $as_echo '  .weak foobar' > conftest.s
21948     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21949   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21950   (eval $ac_try) 2>&5
21951   ac_status=$?
21952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21953   test $ac_status = 0; }; }
21954     then
21955         gcc_cv_as_weak=yes
21956     else
21957       echo "configure: failed program was" >&5
21958       cat conftest.s >&5
21959     fi
21960     rm -f conftest.o conftest.s
21961   fi
21962 fi
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21964 $as_echo "$gcc_cv_as_weak" >&6; }
21965 if test $gcc_cv_as_weak = yes; then
21966
21967 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21968
21969 fi
21970
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21972 $as_echo_n "checking assembler for .weakref... " >&6; }
21973 if test "${gcc_cv_as_weakref+set}" = set; then :
21974   $as_echo_n "(cached) " >&6
21975 else
21976   gcc_cv_as_weakref=no
21977     if test $in_tree_gas = yes; then
21978     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21979   then gcc_cv_as_weakref=yes
21980 fi
21981   elif test x$gcc_cv_as != x; then
21982     $as_echo '  .weakref foobar, barfnot' > conftest.s
21983     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21984   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21985   (eval $ac_try) 2>&5
21986   ac_status=$?
21987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21988   test $ac_status = 0; }; }
21989     then
21990         gcc_cv_as_weakref=yes
21991     else
21992       echo "configure: failed program was" >&5
21993       cat conftest.s >&5
21994     fi
21995     rm -f conftest.o conftest.s
21996   fi
21997 fi
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21999 $as_echo "$gcc_cv_as_weakref" >&6; }
22000 if test $gcc_cv_as_weakref = yes; then
22001
22002 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22003
22004 fi
22005
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22007 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22008 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22009   $as_echo_n "(cached) " >&6
22010 else
22011   gcc_cv_as_nsubspa_comdat=no
22012     if test $in_tree_gas = yes; then
22013     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22014   then gcc_cv_as_nsubspa_comdat=yes
22015 fi
22016   elif test x$gcc_cv_as != x; then
22017     $as_echo '  .SPACE $TEXT$
22018         .NSUBSPA $CODE$,COMDAT' > conftest.s
22019     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22020   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22021   (eval $ac_try) 2>&5
22022   ac_status=$?
22023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22024   test $ac_status = 0; }; }
22025     then
22026         gcc_cv_as_nsubspa_comdat=yes
22027     else
22028       echo "configure: failed program was" >&5
22029       cat conftest.s >&5
22030     fi
22031     rm -f conftest.o conftest.s
22032   fi
22033 fi
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22035 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22036 if test $gcc_cv_as_nsubspa_comdat = yes; then
22037
22038 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22039
22040 fi
22041
22042 # .hidden needs to be supported in both the assembler and the linker,
22043 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22044 # This is irritatingly difficult to feature test for; we have to check the
22045 # date string after the version number.  If we've got an in-tree
22046 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22047 # to be safe.
22048 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22050 $as_echo_n "checking assembler for .hidden... " >&6; }
22051 if test "${gcc_cv_as_hidden+set}" = set; then :
22052   $as_echo_n "(cached) " >&6
22053 else
22054   gcc_cv_as_hidden=no
22055     if test $in_tree_gas = yes; then
22056     if test $in_tree_gas_is_elf = yes \
22057   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22058   then gcc_cv_as_hidden=yes
22059 fi
22060   elif test x$gcc_cv_as != x; then
22061     $as_echo '  .hidden foobar
22062 foobar:' > conftest.s
22063     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22064   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22065   (eval $ac_try) 2>&5
22066   ac_status=$?
22067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22068   test $ac_status = 0; }; }
22069     then
22070
22071 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22072 # STV_HIDDEN, so disable .hidden support if so.
22073 case "${target}" in
22074   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22075     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22076       cat > conftest.s <<EOF
22077 .globl hidden
22078         .hidden hidden
22079 hidden:
22080 .globl default
22081         .set    default,hidden
22082 EOF
22083       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22084         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22085         grep '\.hidden default' > /dev/null; then
22086         gcc_cv_as_hidden=no
22087       else
22088         gcc_cv_as_hidden=yes
22089       fi
22090     else
22091       # Assume bug is present if objdump is missing.
22092       gcc_cv_as_hidden=no
22093     fi
22094     ;;
22095   *)
22096     gcc_cv_as_hidden=yes
22097     ;;
22098 esac
22099     else
22100       echo "configure: failed program was" >&5
22101       cat conftest.s >&5
22102     fi
22103     rm -f conftest.o conftest.s
22104   fi
22105 fi
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22107 $as_echo "$gcc_cv_as_hidden" >&6; }
22108
22109 case "${target}" in
22110   *-*-darwin*)
22111     # Darwin as has some visibility support, though with a different syntax.
22112     gcc_cv_as_hidden=yes
22113     ;;
22114 esac
22115
22116 # gnu_indirect_function type is an extension proposed at
22117 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22118 # selection of function implementation
22119 # Check whether --enable-gnu-indirect-function was given.
22120 if test "${enable_gnu_indirect_function+set}" = set; then :
22121   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22122     yes | no) ;;
22123     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22124 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22125   esac
22126 else
22127   enable_gnu_indirect_function="$default_gnu_indirect_function"
22128 fi
22129
22130 if test x$enable_gnu_indirect_function = xyes; then
22131
22132 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22133
22134 fi
22135
22136 if test $in_tree_ld != yes ; then
22137   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22138   if echo "$ld_ver" | grep GNU > /dev/null; then
22139     if test x"$ld_is_gold" = xyes; then
22140       # GNU gold --version looks like this:
22141       #
22142       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22143       #
22144       # We extract the binutils version which is more familiar and specific
22145       # than the gold version.
22146       ld_vers=`echo $ld_ver | sed -n \
22147           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22148     else
22149       # GNU ld --version looks like this:
22150       #
22151       # GNU ld (GNU Binutils) 2.21.51.20110225
22152       ld_vers=`echo $ld_ver | sed -n \
22153           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22154     fi
22155     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'`
22156     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22157     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22158     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22159   else
22160     case "${target}" in
22161       *-*-solaris2*)
22162         #
22163         # Solaris 2 ld -V output looks like this for a regular version:
22164         #
22165         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22166         #
22167         # but test versions add stuff at the end:
22168         #
22169         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22170         #
22171         ld_ver=`$gcc_cv_ld -V 2>&1`
22172         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22173           ld_vers=`echo $ld_ver | sed -n \
22174             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22175           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22176           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22177         fi
22178         ;;
22179     esac
22180   fi
22181 fi
22182
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22184 $as_echo_n "checking linker for .hidden support... " >&6; }
22185 if test "${gcc_cv_ld_hidden+set}" = set; then :
22186   $as_echo_n "(cached) " >&6
22187 else
22188   if test $in_tree_ld = yes ; then
22189   gcc_cv_ld_hidden=no
22190   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 \
22191      && test $in_tree_ld_is_elf = yes; then
22192      gcc_cv_ld_hidden=yes
22193   fi
22194 else
22195   gcc_cv_ld_hidden=yes
22196   if test x"$ld_is_gold" = xyes; then
22197     :
22198   elif echo "$ld_ver" | grep GNU > /dev/null; then
22199     if test 0"$ld_date" -lt 20020404; then
22200       if test -n "$ld_date"; then
22201         # If there was date string, but was earlier than 2002-04-04, fail
22202         gcc_cv_ld_hidden=no
22203       elif test -z "$ld_vers"; then
22204         # If there was no date string nor ld version number, something is wrong
22205         gcc_cv_ld_hidden=no
22206       else
22207         test -z "$ld_vers_patch" && ld_vers_patch=0
22208         if test "$ld_vers_major" -lt 2; then
22209           gcc_cv_ld_hidden=no
22210         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22211           gcc_cv_ld_hidden="no"
22212         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22213           gcc_cv_ld_hidden=no
22214         fi
22215       fi
22216     fi
22217   else
22218     case "${target}" in
22219       *-*-darwin*)
22220         # Darwin ld has some visibility support.
22221         gcc_cv_ld_hidden=yes
22222         ;;
22223       hppa64*-*-hpux* | ia64*-*-hpux*)
22224         gcc_cv_ld_hidden=yes
22225         ;;
22226       *-*-solaris2.8*)
22227         # .hidden support was backported to Solaris 8, starting with ld
22228         # version 1.276.
22229         if test "$ld_vers_minor" -ge 276; then
22230           gcc_cv_ld_hidden=yes
22231         else
22232           gcc_cv_ld_hidden=no
22233         fi
22234         ;;
22235       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22236         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22237         # .symbolic was only added in Solaris 9 12/02.
22238         gcc_cv_ld_hidden=yes
22239         ;;
22240       *)
22241         gcc_cv_ld_hidden=no
22242         ;;
22243     esac
22244   fi
22245 fi
22246 fi
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22248 $as_echo "$gcc_cv_ld_hidden" >&6; }
22249 libgcc_visibility=no
22250
22251
22252 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22253   libgcc_visibility=yes
22254
22255 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22256
22257 fi
22258
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22260 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22261 gcc_cv_ld_ro_rw_mix=unknown
22262 if test $in_tree_ld = yes ; then
22263   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 \
22264      && test $in_tree_ld_is_elf = yes; then
22265     gcc_cv_ld_ro_rw_mix=read-write
22266   fi
22267 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22268   echo '.section myfoosect, "a"' > conftest1.s
22269   echo '.section myfoosect, "aw"' > conftest2.s
22270   echo '.byte 1' >> conftest2.s
22271   echo '.section myfoosect, "a"' > conftest3.s
22272   echo '.byte 0' >> conftest3.s
22273   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22274      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22275      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22276      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22277         conftest2.o conftest3.o > /dev/null 2>&1; then
22278     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22279                          | sed -e '/myfoosect/!d' -e N`
22280     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22281       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22282         gcc_cv_ld_ro_rw_mix=read-only
22283       else
22284         gcc_cv_ld_ro_rw_mix=read-write
22285       fi
22286     fi
22287   fi
22288   rm -f conftest.* conftest[123].*
22289 fi
22290 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22291
22292 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22293
22294 fi
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22296 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22297
22298 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22300 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22301 if test "${gcc_cv_as_leb128+set}" = set; then :
22302   $as_echo_n "(cached) " >&6
22303 else
22304   gcc_cv_as_leb128=no
22305     if test $in_tree_gas = yes; then
22306     if test $in_tree_gas_is_elf = yes \
22307   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22308   then gcc_cv_as_leb128=yes
22309 fi
22310   elif test x$gcc_cv_as != x; then
22311     $as_echo '  .data
22312         .uleb128 L2 - L1
22313 L1:
22314         .uleb128 1280
22315         .sleb128 -1010
22316 L2:' > conftest.s
22317     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22318   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22319   (eval $ac_try) 2>&5
22320   ac_status=$?
22321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22322   test $ac_status = 0; }; }
22323     then
22324         # GAS versions before 2.11 do not support uleb128,
22325   # despite appearing to.
22326   # ??? There exists an elf-specific test that will crash
22327   # the assembler.  Perhaps it's better to figure out whether
22328   # arbitrary sections are supported and try the test.
22329   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22330   if echo "$as_ver" | grep GNU > /dev/null; then
22331     as_vers=`echo $as_ver | sed -n \
22332         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22333     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22334     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22335     if test $as_major -eq 2 && test $as_minor -lt 11
22336     then :
22337     else gcc_cv_as_leb128=yes
22338     fi
22339   fi
22340     else
22341       echo "configure: failed program was" >&5
22342       cat conftest.s >&5
22343     fi
22344     rm -f conftest.o conftest.s
22345   fi
22346 fi
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22348 $as_echo "$gcc_cv_as_leb128" >&6; }
22349 if test $gcc_cv_as_leb128 = yes; then
22350
22351 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22352
22353 fi
22354
22355 # Check if we have assembler support for unwind directives.
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22357 $as_echo_n "checking assembler for cfi directives... " >&6; }
22358 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22359   $as_echo_n "(cached) " >&6
22360 else
22361   gcc_cv_as_cfi_directive=no
22362   if test x$gcc_cv_as != x; then
22363     $as_echo '  .text
22364         .cfi_startproc
22365         .cfi_offset 0, 0
22366         .cfi_same_value 1
22367         .cfi_def_cfa 1, 2
22368         .cfi_escape 1, 2, 3, 4, 5
22369         .cfi_endproc' > conftest.s
22370     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22371   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22372   (eval $ac_try) 2>&5
22373   ac_status=$?
22374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22375   test $ac_status = 0; }; }
22376     then
22377         case "$target" in
22378   *-*-solaris*)
22379     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22380     # read-only and read-write sections, we need to make sure that the
22381     # assembler used emits read-write .eh_frame sections.
22382     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22383       if test "x$gcc_cv_objdump" != x; then
22384         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22385                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22386           gcc_cv_as_cfi_directive=no
22387         else
22388           case "$target" in
22389             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22390               # On Solaris/x86, make sure that GCC and gas agree on using
22391               # read-only .eh_frame sections for 64-bit.
22392               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22393                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22394                         sed -e /.eh_frame/!d -e N | \
22395                         grep READONLY > /dev/null; then
22396                 gcc_cv_as_cfi_directive=yes
22397               else
22398                 gcc_cv_as_cfi_directive=no
22399               fi
22400               ;;
22401             *)
22402               gcc_cv_as_cfi_directive=yes
22403               ;;
22404           esac
22405         fi
22406       else
22407         # no objdump, err on the side of caution
22408         gcc_cv_as_cfi_directive=no
22409       fi
22410     else
22411       gcc_cv_as_cfi_directive=yes
22412     fi
22413     ;;
22414   *-*-*)
22415     gcc_cv_as_cfi_directive=yes
22416     ;;
22417 esac
22418     else
22419       echo "configure: failed program was" >&5
22420       cat conftest.s >&5
22421     fi
22422     rm -f conftest.o conftest.s
22423   fi
22424 fi
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22426 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22427
22428 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22430 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22431 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22432   $as_echo_n "(cached) " >&6
22433 else
22434   gcc_cv_as_cfi_advance_working=no
22435   if test x$gcc_cv_as != x; then
22436     $as_echo '  .text
22437         .cfi_startproc
22438         .cfi_adjust_cfa_offset 64
22439         .skip 75040, 0
22440         .cfi_adjust_cfa_offset 128
22441         .cfi_endproc' > conftest.s
22442     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22443   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447   test $ac_status = 0; }; }
22448     then
22449
22450 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22451     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22452    gcc_cv_as_cfi_advance_working=yes
22453 fi
22454
22455     else
22456       echo "configure: failed program was" >&5
22457       cat conftest.s >&5
22458     fi
22459     rm -f conftest.o conftest.s
22460   fi
22461 fi
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22463 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22464
22465 else
22466   # no objdump, err on the side of caution
22467   gcc_cv_as_cfi_advance_working=no
22468 fi
22469
22470
22471 cat >>confdefs.h <<_ACEOF
22472 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22473        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22474 _ACEOF
22475
22476
22477
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22479 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22480 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22481   $as_echo_n "(cached) " >&6
22482 else
22483   gcc_cv_as_cfi_personality_directive=no
22484   if test x$gcc_cv_as != x; then
22485     $as_echo '  .text
22486         .cfi_startproc
22487         .cfi_personality 0, symbol
22488         .cfi_endproc' > conftest.s
22489     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22490   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22491   (eval $ac_try) 2>&5
22492   ac_status=$?
22493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494   test $ac_status = 0; }; }
22495     then
22496         gcc_cv_as_cfi_personality_directive=yes
22497     else
22498       echo "configure: failed program was" >&5
22499       cat conftest.s >&5
22500     fi
22501     rm -f conftest.o conftest.s
22502   fi
22503 fi
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22505 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22506
22507
22508 cat >>confdefs.h <<_ACEOF
22509 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22510     then echo 1; else echo 0; fi`
22511 _ACEOF
22512
22513
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22515 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22516 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22517   $as_echo_n "(cached) " >&6
22518 else
22519   gcc_cv_as_cfi_sections_directive=no
22520   if test x$gcc_cv_as != x; then
22521     $as_echo '  .text
22522         .cfi_sections .debug_frame, .eh_frame
22523         .cfi_startproc
22524         .cfi_endproc' > conftest.s
22525     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22526   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22527   (eval $ac_try) 2>&5
22528   ac_status=$?
22529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22530   test $ac_status = 0; }; }
22531     then
22532         case $target_os in
22533   win32 | pe | cygwin* | mingw32* | uwin*)
22534     # Need to check that we generated the correct relocation for the
22535     # .debug_frame section.  This was fixed for binutils 2.21.
22536     gcc_cv_as_cfi_sections_directive=no
22537     if test "x$gcc_cv_objdump" != x; then
22538      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22539         grep secrel > /dev/null; then
22540       gcc_cv_as_cfi_sections_directive=yes
22541      fi
22542     fi
22543     ;;
22544   *)
22545     gcc_cv_as_cfi_sections_directive=yes
22546     ;;
22547 esac
22548     else
22549       echo "configure: failed program was" >&5
22550       cat conftest.s >&5
22551     fi
22552     rm -f conftest.o conftest.s
22553   fi
22554 fi
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22556 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22557
22558
22559
22560 cat >>confdefs.h <<_ACEOF
22561 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22562     then echo 1; else echo 0; fi`
22563 _ACEOF
22564
22565
22566 # GAS versions up to and including 2.11.0 may mis-optimize
22567 # .eh_frame data.
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22569 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22570 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22571   $as_echo_n "(cached) " >&6
22572 else
22573   gcc_cv_as_eh_frame=no
22574     if test $in_tree_gas = yes; then
22575     if test $in_tree_gas_is_elf = yes \
22576   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22577   then gcc_cv_as_eh_frame=yes
22578 fi
22579   elif test x$gcc_cv_as != x; then
22580     $as_echo '  .text
22581 .LFB1:
22582         .4byte  0
22583 .L1:
22584         .4byte  0
22585 .LFE1:
22586         .section        .eh_frame,"aw",@progbits
22587 __FRAME_BEGIN__:
22588         .4byte  .LECIE1-.LSCIE1
22589 .LSCIE1:
22590         .4byte  0x0
22591         .byte   0x1
22592         .ascii "z\0"
22593         .byte   0x1
22594         .byte   0x78
22595         .byte   0x1a
22596         .byte   0x0
22597         .byte   0x4
22598         .4byte  1
22599         .p2align 1
22600 .LECIE1:
22601 .LSFDE1:
22602         .4byte  .LEFDE1-.LASFDE1
22603 .LASFDE1:
22604         .4byte  .LASFDE1-__FRAME_BEGIN__
22605         .4byte  .LFB1
22606         .4byte  .LFE1-.LFB1
22607         .byte   0x4
22608         .4byte  .LFE1-.LFB1
22609         .byte   0x4
22610         .4byte  .L1-.LFB1
22611 .LEFDE1:' > conftest.s
22612     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22613   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22614   (eval $ac_try) 2>&5
22615   ac_status=$?
22616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617   test $ac_status = 0; }; }
22618     then
22619           cat > conftest.lit <<EOF
22620  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22621  0010 01000000 12000000 18000000 00000000  ................
22622  0020 08000000 04080000 0044               .........D      
22623 EOF
22624 cat > conftest.big <<EOF
22625  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22626  0010 00000001 00000012 00000018 00000000  ................
22627  0020 00000008 04000000 0844               .........D      
22628 EOF
22629   # If the assembler didn't choke, and we can objdump,
22630   # and we got the correct data, then succeed.
22631   # The text in the here-document typically retains its unix-style line
22632   # endings, while the output of objdump will use host line endings.
22633   # Therefore, use diff -b for the comparisons.
22634   if test x$gcc_cv_objdump != x \
22635   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22636      | tail -3 > conftest.got \
22637   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22638     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22639   then
22640     gcc_cv_as_eh_frame=yes
22641   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22642   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22643   (eval $ac_try) 2>&5
22644   ac_status=$?
22645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22646   test $ac_status = 0; }; }; then
22647     gcc_cv_as_eh_frame=buggy
22648   else
22649     # Uh oh, what do we do now?
22650     gcc_cv_as_eh_frame=no
22651   fi
22652     else
22653       echo "configure: failed program was" >&5
22654       cat conftest.s >&5
22655     fi
22656     rm -f conftest.o conftest.s
22657   fi
22658 fi
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22660 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22661
22662
22663 if test $gcc_cv_as_eh_frame = buggy; then
22664
22665 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22666
22667 fi
22668
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22670 $as_echo_n "checking assembler for section merging support... " >&6; }
22671 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22672   $as_echo_n "(cached) " >&6
22673 else
22674   gcc_cv_as_shf_merge=no
22675     if test $in_tree_gas = yes; then
22676     if test $in_tree_gas_is_elf = yes \
22677   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22678   then gcc_cv_as_shf_merge=yes
22679 fi
22680   elif test x$gcc_cv_as != x; then
22681     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22682     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22683   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22684   (eval $ac_try) 2>&5
22685   ac_status=$?
22686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22687   test $ac_status = 0; }; }
22688     then
22689         gcc_cv_as_shf_merge=yes
22690     else
22691       echo "configure: failed program was" >&5
22692       cat conftest.s >&5
22693     fi
22694     rm -f conftest.o conftest.s
22695   fi
22696 fi
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22698 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22699
22700 if test $gcc_cv_as_shf_merge = no; then
22701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22702 $as_echo_n "checking assembler for section merging support... " >&6; }
22703 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22704   $as_echo_n "(cached) " >&6
22705 else
22706   gcc_cv_as_shf_merge=no
22707     if test $in_tree_gas = yes; then
22708     if test $in_tree_gas_is_elf = yes \
22709   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22710   then gcc_cv_as_shf_merge=yes
22711 fi
22712   elif test x$gcc_cv_as != x; then
22713     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22714     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22715   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22719   test $ac_status = 0; }; }
22720     then
22721         gcc_cv_as_shf_merge=yes
22722     else
22723       echo "configure: failed program was" >&5
22724       cat conftest.s >&5
22725     fi
22726     rm -f conftest.o conftest.s
22727   fi
22728 fi
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22730 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22731
22732 fi
22733
22734 cat >>confdefs.h <<_ACEOF
22735 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22736 _ACEOF
22737
22738
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22740 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22741 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22742   $as_echo_n "(cached) " >&6
22743 else
22744   gcc_cv_as_comdat_group=no
22745     if test $in_tree_gas = yes; then
22746     if test $in_tree_gas_is_elf = yes \
22747   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22748   then gcc_cv_as_comdat_group=yes
22749 fi
22750   elif test x$gcc_cv_as != x; then
22751     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22752     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22753   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22754   (eval $ac_try) 2>&5
22755   ac_status=$?
22756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757   test $ac_status = 0; }; }
22758     then
22759         gcc_cv_as_comdat_group=yes
22760     else
22761       echo "configure: failed program was" >&5
22762       cat conftest.s >&5
22763     fi
22764     rm -f conftest.o conftest.s
22765   fi
22766 fi
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22768 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22769
22770 if test $gcc_cv_as_comdat_group = yes; then
22771   gcc_cv_as_comdat_group_percent=no
22772   gcc_cv_as_comdat_group_group=no
22773 else
22774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22775 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22776 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22777   $as_echo_n "(cached) " >&6
22778 else
22779   gcc_cv_as_comdat_group_percent=no
22780     if test $in_tree_gas = yes; then
22781     if test $in_tree_gas_is_elf = yes \
22782   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22783   then gcc_cv_as_comdat_group_percent=yes
22784 fi
22785   elif test x$gcc_cv_as != x; then
22786     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22787     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22788   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22789   (eval $ac_try) 2>&5
22790   ac_status=$?
22791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22792   test $ac_status = 0; }; }
22793     then
22794         gcc_cv_as_comdat_group_percent=yes
22795     else
22796       echo "configure: failed program was" >&5
22797       cat conftest.s >&5
22798     fi
22799     rm -f conftest.o conftest.s
22800   fi
22801 fi
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22803 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22804
22805  if test $gcc_cv_as_comdat_group_percent = yes; then
22806    gcc_cv_as_comdat_group_group=no
22807  else
22808    case "${target}" in
22809      # Sun as uses a completely different syntax.
22810      *-*-solaris2*)
22811        case "${target}" in
22812          sparc*-*-solaris2*)
22813            conftest_s='
22814                .group foo,".text%foo",#comdat
22815                .section ".text%foo", #alloc,#execinstr,#progbits
22816                .globl foo
22817              foo:
22818              '
22819            ;;
22820          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22821            conftest_s='
22822                .group foo,.text%foo,#comdat
22823                .section .text%foo, "ax", @progbits
22824                .globl  foo
22825              foo:
22826              '
22827            ;;
22828        esac
22829        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22830 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22831 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22832   $as_echo_n "(cached) " >&6
22833 else
22834   gcc_cv_as_comdat_group_group=no
22835   if test x$gcc_cv_as != x; then
22836     $as_echo "$conftest_s" > conftest.s
22837     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22838   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22839   (eval $ac_try) 2>&5
22840   ac_status=$?
22841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842   test $ac_status = 0; }; }
22843     then
22844         gcc_cv_as_comdat_group_group=yes
22845     else
22846       echo "configure: failed program was" >&5
22847       cat conftest.s >&5
22848     fi
22849     rm -f conftest.o conftest.s
22850   fi
22851 fi
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22853 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22854
22855        ;;
22856    esac
22857  fi
22858 fi
22859 if test x"$ld_is_gold" = xyes; then
22860   comdat_group=yes
22861 elif test $in_tree_ld = yes ; then
22862   comdat_group=no
22863   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 \
22864      && test $in_tree_ld_is_elf = yes; then
22865      comdat_group=yes
22866   fi
22867 elif echo "$ld_ver" | grep GNU > /dev/null; then
22868   comdat_group=yes
22869   if test 0"$ld_date" -lt 20050308; then
22870     if test -n "$ld_date"; then
22871       # If there was date string, but was earlier than 2005-03-08, fail
22872       comdat_group=no
22873     elif test "$ld_vers_major" -lt 2; then
22874       comdat_group=no
22875     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22876       comdat_group=no
22877     fi
22878   fi
22879 else
22880   case "${target}" in
22881     *-*-solaris2.1[1-9]*)
22882       comdat_group=no
22883       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22884       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22885       # version 1.688.
22886       #
22887       # If using Sun as for COMDAT group as emitted by GCC, one needs at
22888       # least ld version 1.2267.
22889       if test "$ld_vers_major" -gt 1; then
22890         comdat_group=yes
22891       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22892         comdat_group=yes
22893       elif test "$ld_vers_minor" -ge 2267; then
22894         comdat_group=yes
22895       fi
22896       ;;
22897     *)
22898       # Assume linkers other than GNU ld don't support COMDAT group.
22899       comdat_group=no
22900       ;;
22901   esac
22902 fi
22903 # Allow overriding the automatic COMDAT group tests above.
22904 # Check whether --enable-comdat was given.
22905 if test "${enable_comdat+set}" = set; then :
22906   enableval=$enable_comdat; comdat_group="$enable_comdat"
22907 fi
22908
22909 if test $comdat_group = no; then
22910   gcc_cv_as_comdat_group=no
22911   gcc_cv_as_comdat_group_percent=no
22912   gcc_cv_as_comdat_group_group=no
22913 fi
22914
22915 cat >>confdefs.h <<_ACEOF
22916 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22917     || test $gcc_cv_as_comdat_group_percent = yes \
22918     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22919 _ACEOF
22920
22921
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22923 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22924 if test "${gcc_cv_as_discriminator+set}" = set; then :
22925   $as_echo_n "(cached) " >&6
22926 else
22927   gcc_cv_as_discriminator=no
22928     if test $in_tree_gas = yes; then
22929     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22930   then gcc_cv_as_discriminator=yes
22931 fi
22932   elif test x$gcc_cv_as != x; then
22933     $as_echo '  .text
22934         .file 1 "conf.c"
22935         .loc 1 1 0 discriminator 1' > conftest.s
22936     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22937   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938   (eval $ac_try) 2>&5
22939   ac_status=$?
22940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941   test $ac_status = 0; }; }
22942     then
22943         gcc_cv_as_discriminator=yes
22944     else
22945       echo "configure: failed program was" >&5
22946       cat conftest.s >&5
22947     fi
22948     rm -f conftest.o conftest.s
22949   fi
22950 fi
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22952 $as_echo "$gcc_cv_as_discriminator" >&6; }
22953 if test $gcc_cv_as_discriminator = yes; then
22954
22955 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22956
22957 fi
22958
22959 # Thread-local storage - the check is heavily parameterized.
22960 conftest_s=
22961 tls_first_major=
22962 tls_first_minor=
22963 tls_as_opt=
22964 case "$target" in
22965   alpha*-*-*)
22966     conftest_s='
22967         .section ".tdata","awT",@progbits
22968 foo:    .long   25
22969         .text
22970         ldq     $27,__tls_get_addr($29)         !literal!1
22971         lda     $16,foo($29)                    !tlsgd!1
22972         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22973         ldq     $27,__tls_get_addr($29)         !literal!2
22974         lda     $16,foo($29)                    !tlsldm!2
22975         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22976         ldq     $1,foo($29)                     !gotdtprel
22977         ldah    $2,foo($29)                     !dtprelhi
22978         lda     $3,foo($2)                      !dtprello
22979         lda     $4,foo($29)                     !dtprel
22980         ldq     $1,foo($29)                     !gottprel
22981         ldah    $2,foo($29)                     !tprelhi
22982         lda     $3,foo($2)                      !tprello
22983         lda     $4,foo($29)                     !tprel'
22984         tls_first_major=2
22985         tls_first_minor=13
22986         tls_as_opt=--fatal-warnings
22987         ;;
22988   cris-*-*|crisv32-*-*)
22989     conftest_s='
22990         .section ".tdata","awT",@progbits
22991 x:      .long   25
22992         .text
22993         move.d x:IE,$r10
22994         nop'
22995         tls_first_major=2
22996         tls_first_minor=20
22997         tls_as_opt=--fatal-warnings
22998         ;;
22999   frv*-*-*)
23000     conftest_s='
23001         .section ".tdata","awT",@progbits
23002 x:      .long   25
23003         .text
23004         call    #gettlsoff(x)'
23005         tls_first_major=2
23006         tls_first_minor=14
23007         ;;
23008   hppa*-*-linux*)
23009     conftest_s='
23010 t1:     .reg    %r20
23011 t2:     .reg    %r21
23012 gp:     .reg    %r19
23013         .section ".tdata","awT",@progbits
23014 foo:    .long   25
23015         .text
23016         .align  4
23017         addil LT%foo-$tls_gdidx$,gp
23018         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23019         b __tls_get_addr
23020         nop
23021         addil LT%foo-$tls_ldidx$,gp
23022         b __tls_get_addr
23023         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23024         addil LR%foo-$tls_dtpoff$,%ret0
23025         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23026         mfctl %cr27,%t1
23027         addil LT%foo-$tls_ieoff$,gp
23028         ldw RT%foo-$tls_ieoff$(%r1),%t2
23029         add %t1,%t2,%t3
23030         mfctl %cr27,%t1
23031         addil LR%foo-$tls_leoff$,%t1
23032         ldo RR%foo-$tls_leoff$(%r1),%t2'
23033         tls_first_major=2
23034         tls_first_minor=15
23035         tls_as_opt=--fatal-warnings
23036         ;;
23037   arm*-*-*)
23038     conftest_s='
23039         .section ".tdata","awT",%progbits
23040 foo:    .long   25
23041         .text
23042 .word foo(gottpoff)
23043 .word foo(tpoff)
23044 .word foo(tlsgd)
23045 .word foo(tlsldm)
23046 .word foo(tlsldo)'
23047         tls_first_major=2
23048         tls_first_minor=17
23049         ;;
23050   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23051     case "$target" in
23052       i[34567]86-*-solaris2.*)
23053         on_solaris=yes
23054         tga_func=___tls_get_addr
23055         ;;
23056       x86_64-*-solaris2.1[0-9]*)
23057         on_solaris=yes
23058         tga_func=__tls_get_addr
23059         ;;
23060       *)
23061         on_solaris=no
23062         ;;
23063     esac
23064     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23065       conftest_s='
23066         .section .tdata,"awt",@progbits'
23067       tls_first_major=0
23068       tls_first_minor=0
23069
23070 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23071
23072     else
23073       conftest_s='
23074         .section ".tdata","awT",@progbits'
23075       tls_first_major=2
23076       tls_first_minor=14
23077       tls_as_opt="--fatal-warnings"
23078     fi
23079     conftest_s="$conftest_s
23080 foo:    .long   25
23081         .text
23082         movl    %gs:0, %eax
23083         leal    foo@tlsgd(,%ebx,1), %eax
23084         leal    foo@tlsldm(%ebx), %eax
23085         leal    foo@dtpoff(%eax), %edx
23086         movl    foo@gottpoff(%ebx), %eax
23087         subl    foo@gottpoff(%ebx), %eax
23088         addl    foo@gotntpoff(%ebx), %eax
23089         movl    foo@indntpoff, %eax
23090         movl    \$foo@tpoff, %eax
23091         subl    \$foo@tpoff, %eax
23092         leal    foo@ntpoff(%ecx), %eax"
23093     ;;
23094   x86_64-*-*)
23095     conftest_s='
23096         .section ".tdata","awT",@progbits
23097 foo:    .long   25
23098         .text
23099         movq    %fs:0, %rax
23100         leaq    foo@TLSGD(%rip), %rdi
23101         leaq    foo@TLSLD(%rip), %rdi
23102         leaq    foo@DTPOFF(%rax), %rdx
23103         movq    foo@GOTTPOFF(%rip), %rax
23104         movq    $foo@TPOFF, %rax'
23105         tls_first_major=2
23106         tls_first_minor=14
23107         tls_as_opt=--fatal-warnings
23108         ;;
23109   ia64-*-*)
23110     conftest_s='
23111         .section ".tdata","awT",@progbits
23112 foo:    data8   25
23113         .text
23114         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23115         addl    r17 = @ltoff(@dtprel(foo#)), gp
23116         addl    r18 = @ltoff(@tprel(foo#)), gp
23117         addl    r19 = @dtprel(foo#), gp
23118         adds    r21 = @dtprel(foo#), r13
23119         movl    r23 = @dtprel(foo#)
23120         addl    r20 = @tprel(foo#), gp
23121         adds    r22 = @tprel(foo#), r13
23122         movl    r24 = @tprel(foo#)'
23123         tls_first_major=2
23124         tls_first_minor=13
23125         tls_as_opt=--fatal-warnings
23126         ;;
23127   mips*-*-*)
23128     conftest_s='
23129         .section .tdata,"awT",@progbits
23130 x:
23131         .word 2
23132         .text
23133         addiu $4, $28, %tlsgd(x)
23134         addiu $4, $28, %tlsldm(x)
23135         lui $4, %dtprel_hi(x)
23136         addiu $4, $4, %dtprel_lo(x)
23137         lw $4, %gottprel(x)($28)
23138         lui $4, %tprel_hi(x)
23139         addiu $4, $4, %tprel_lo(x)'
23140         tls_first_major=2
23141         tls_first_minor=16
23142         tls_as_opt='-32 --fatal-warnings'
23143         ;;
23144   m68k-*-*)
23145     conftest_s='
23146         .section .tdata,"awT",@progbits
23147 x:
23148         .word 2
23149         .text
23150 foo:
23151         move.l x@TLSGD(%a5),%a0
23152         move.l x@TLSLDM(%a5),%a0
23153         move.l x@TLSLDO(%a5),%a0
23154         move.l x@TLSIE(%a5),%a0
23155         move.l x@TLSLE(%a5),%a0'
23156         tls_first_major=2
23157         tls_first_minor=19
23158         tls_as_opt='--fatal-warnings'
23159         ;;
23160   powerpc-*-*)
23161     conftest_s='
23162         .section ".tdata","awT",@progbits
23163         .align 2
23164 ld0:    .space 4
23165 ld1:    .space 4
23166 x1:     .space 4
23167 x2:     .space 4
23168 x3:     .space 4
23169         .text
23170         addi 3,31,ld0@got@tlsgd
23171         bl __tls_get_addr
23172         addi 3,31,x1@got@tlsld
23173         bl __tls_get_addr
23174         addi 9,3,x1@dtprel
23175         addis 9,3,x2@dtprel@ha
23176         addi 9,9,x2@dtprel@l
23177         lwz 9,x3@got@tprel(31)
23178         add 9,9,x@tls
23179         addi 9,2,x1@tprel
23180         addis 9,2,x2@tprel@ha
23181         addi 9,9,x2@tprel@l'
23182         tls_first_major=2
23183         tls_first_minor=14
23184         tls_as_opt="-a32 --fatal-warnings"
23185         ;;
23186   powerpc64-*-*)
23187     conftest_s='
23188         .section ".tdata","awT",@progbits
23189         .align 3
23190 ld0:    .space 8
23191 ld1:    .space 8
23192 x1:     .space 8
23193 x2:     .space 8
23194 x3:     .space 8
23195         .text
23196         addi 3,2,ld0@got@tlsgd
23197         bl .__tls_get_addr
23198         nop
23199         addi 3,2,ld1@toc
23200         bl .__tls_get_addr
23201         nop
23202         addi 3,2,x1@got@tlsld
23203         bl .__tls_get_addr
23204         nop
23205         addi 9,3,x1@dtprel
23206         bl .__tls_get_addr
23207         nop
23208         addis 9,3,x2@dtprel@ha
23209         addi 9,9,x2@dtprel@l
23210         bl .__tls_get_addr
23211         nop
23212         ld 9,x3@got@dtprel(2)
23213         add 9,9,3
23214         bl .__tls_get_addr
23215         nop'
23216         tls_first_major=2
23217         tls_first_minor=14
23218         tls_as_opt="-a64 --fatal-warnings"
23219         ;;
23220   s390-*-*)
23221     conftest_s='
23222         .section ".tdata","awT",@progbits
23223 foo:    .long   25
23224         .text
23225         .long   foo@TLSGD
23226         .long   foo@TLSLDM
23227         .long   foo@DTPOFF
23228         .long   foo@NTPOFF
23229         .long   foo@GOTNTPOFF
23230         .long   foo@INDNTPOFF
23231         l       %r1,foo@GOTNTPOFF(%r12)
23232         l       %r1,0(%r1):tls_load:foo
23233         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23234         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23235         tls_first_major=2
23236         tls_first_minor=14
23237         tls_as_opt="-m31 --fatal-warnings"
23238         ;;
23239   s390x-*-*)
23240     conftest_s='
23241         .section ".tdata","awT",@progbits
23242 foo:    .long   25
23243         .text
23244         .quad   foo@TLSGD
23245         .quad   foo@TLSLDM
23246         .quad   foo@DTPOFF
23247         .quad   foo@NTPOFF
23248         .quad   foo@GOTNTPOFF
23249         lg      %r1,foo@GOTNTPOFF(%r12)
23250         larl    %r1,foo@INDNTPOFF
23251         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23252         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23253         tls_first_major=2
23254         tls_first_minor=14
23255         tls_as_opt="-m64 -Aesame --fatal-warnings"
23256         ;;
23257   sh-*-* | sh[34]-*-*)
23258     conftest_s='
23259         .section ".tdata","awT",@progbits
23260 foo:    .long   25
23261         .text
23262         .long   foo@TLSGD
23263         .long   foo@TLSLDM
23264         .long   foo@DTPOFF
23265         .long   foo@GOTTPOFF
23266         .long   foo@TPOFF'
23267         tls_first_major=2
23268         tls_first_minor=13
23269         tls_as_opt=--fatal-warnings
23270         ;;
23271   sparc*-*-*)
23272     case "$target" in
23273       sparc*-sun-solaris2.*)
23274         on_solaris=yes
23275         tga_func=__tls_get_addr
23276         ;;
23277       *)
23278         on_solaris=no
23279         ;;
23280     esac
23281     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23282       conftest_s='
23283         .section ".tdata",#alloc,#write,#tls'
23284         tls_first_major=0
23285         tls_first_minor=0
23286     else
23287       conftest_s='
23288         .section ".tdata","awT",@progbits'
23289         tls_first_major=2
23290         tls_first_minor=14
23291         tls_as_opt="-32 --fatal-warnings"
23292     fi
23293     conftest_s="$conftest_s
23294 foo:    .long   25
23295         .text
23296         sethi   %tgd_hi22(foo), %o0
23297         add     %o0, %tgd_lo10(foo), %o1
23298         add     %l7, %o1, %o0, %tgd_add(foo)
23299         call    __tls_get_addr, %tgd_call(foo)
23300         sethi   %tldm_hi22(foo), %l1
23301         add     %l1, %tldm_lo10(foo), %l2
23302         add     %l7, %l2, %o0, %tldm_add(foo)
23303         call    __tls_get_addr, %tldm_call(foo)
23304         sethi   %tldo_hix22(foo), %l3
23305         xor     %l3, %tldo_lox10(foo), %l4
23306         add     %o0, %l4, %l5, %tldo_add(foo)
23307         sethi   %tie_hi22(foo), %o3
23308         add     %o3, %tie_lo10(foo), %o3
23309         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23310         add     %g7, %o2, %o4, %tie_add(foo)
23311         sethi   %tle_hix22(foo), %l1
23312         xor     %l1, %tle_lox10(foo), %o5
23313         ld      [%g7 + %o5], %o1"
23314         ;;
23315   xtensa*-*-*)
23316     conftest_s='
23317         .section ".tdata","awT",@progbits
23318 foo:    .long   25
23319         .text
23320         movi    a8, foo@TLSFUNC
23321         movi    a10, foo@TLSARG
23322         callx8.tls a8, foo@TLSCALL'
23323         tls_first_major=2
23324         tls_first_minor=19
23325         ;;
23326 esac
23327 set_have_as_tls=no
23328 if test "x$enable_tls" = xno ; then
23329   : # TLS explicitly disabled.
23330 elif test "x$enable_tls" = xyes ; then
23331   set_have_as_tls=yes # TLS explicitly enabled.
23332 elif test -z "$tls_first_major"; then
23333   : # If we don't have a check, assume no support.
23334 else
23335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23336 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23337 if test "${gcc_cv_as_tls+set}" = set; then :
23338   $as_echo_n "(cached) " >&6
23339 else
23340   gcc_cv_as_tls=no
23341     if test $in_tree_gas = yes; then
23342     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23343   then gcc_cv_as_tls=yes
23344 fi
23345   elif test x$gcc_cv_as != x; then
23346     $as_echo "$conftest_s" > conftest.s
23347     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23348   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23349   (eval $ac_try) 2>&5
23350   ac_status=$?
23351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352   test $ac_status = 0; }; }
23353     then
23354         gcc_cv_as_tls=yes
23355     else
23356       echo "configure: failed program was" >&5
23357       cat conftest.s >&5
23358     fi
23359     rm -f conftest.o conftest.s
23360   fi
23361 fi
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23363 $as_echo "$gcc_cv_as_tls" >&6; }
23364 if test $gcc_cv_as_tls = yes; then
23365   set_have_as_tls=yes
23366 fi
23367 fi
23368 case "$target" in
23369   *-*-irix6*)
23370     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23371     # with TLS support are in use, native TLS cannot work.
23372     set_have_as_tls=no
23373     ;;
23374   *-*-osf*)
23375     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23376     # gld with TLS support are in use, native TLS cannot work.
23377     set_have_as_tls=no
23378     ;;
23379   # TLS was introduced in the Solaris 9 FCS release and backported to
23380   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23381   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23382   # ld and GCC don't support any longer.
23383   *-*-solaris2.*)
23384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23385 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23386     ld_tls_support=no
23387     # Check ld and ld.so.1 TLS support.
23388     if echo "$ld_ver" | grep GNU > /dev/null; then
23389       # Assume all interesting versions of GNU ld have TLS support.
23390       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23391       ld_tls_support=yes
23392     else
23393       case "$target" in
23394         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23395         i?86-*-solaris2.8)
23396           min_tls_ld_vers_minor=280
23397           ;;
23398         # Solaris 8/SPARC ld has TLS support since version 1.272.
23399         sparc*-*-solaris2.8)
23400           min_tls_ld_vers_minor=272
23401           ;;
23402         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23403         i?86-*-solaris2.9)
23404           min_tls_ld_vers_minor=374
23405           ;;
23406         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23407         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23408           min_tls_ld_vers_minor=343
23409           ;;
23410       esac
23411       if test "$ld_vers_major" -gt 1 || \
23412         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23413         ld_tls_support=yes
23414       else
23415         set_have_as_tls=no
23416       fi
23417     fi
23418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23419 $as_echo "$ld_tls_support" >&6; }
23420
23421     save_LIBS="$LIBS"
23422     save_LDFLAGS="$LDFLAGS"
23423     LIBS=
23424     LDFLAGS=
23425
23426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23427 $as_echo_n "checking alternate thread library... " >&6; }
23428     case "$target" in
23429       # TLS support was backported to Solaris 8 patches, but only lives in
23430       # the alternate thread library which became the default in Solaris 9.
23431       # We want to always use that, irrespective of TLS support.
23432       *-*-solaris2.8)
23433         # Take multilib subdir into account.  There's no spec to handle
23434         # this.  The 64 symlink exists since Solaris 8.
23435         lwp_dir=/usr/lib/lwp
23436         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23437         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23438         ;;
23439       *-*-solaris2*)
23440         lwp_dir="none"
23441         lwp_spec=""
23442         ;;
23443     esac
23444     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23445
23446 cat >>confdefs.h <<_ACEOF
23447 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23448 _ACEOF
23449
23450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23451 $as_echo "$lwp_dir" >&6; }
23452
23453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23454 $as_echo_n "checking library containing $tga_func... " >&6; }
23455     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23456     # (32-bit x86) only lived in libthread, so check for that.  Keep
23457     # set_have_as_tls if found, disable if not.
23458     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23460 $as_echo_n "checking for library containing $tga_func... " >&6; }
23461 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23462   $as_echo_n "(cached) " >&6
23463 else
23464   ac_func_search_save_LIBS=$LIBS
23465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23466 /* end confdefs.h.  */
23467
23468 /* Override any GCC internal prototype to avoid an error.
23469    Use char because int might match the return type of a GCC
23470    builtin and then its argument prototype would still apply.  */
23471 #ifdef __cplusplus
23472 extern "C"
23473 #endif
23474 char $tga_func ();
23475 int
23476 main ()
23477 {
23478 return $tga_func ();
23479   ;
23480   return 0;
23481 }
23482 _ACEOF
23483 for ac_lib in '' thread; do
23484   if test -z "$ac_lib"; then
23485     ac_res="none required"
23486   else
23487     ac_res=-l$ac_lib
23488     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23489   fi
23490   if ac_fn_c_try_link "$LINENO"; then :
23491   eval "$as_ac_Search=\$ac_res"
23492 fi
23493 rm -f core conftest.err conftest.$ac_objext \
23494     conftest$ac_exeext
23495   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23496   break
23497 fi
23498 done
23499 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23500
23501 else
23502   eval "$as_ac_Search=no"
23503 fi
23504 rm conftest.$ac_ext
23505 LIBS=$ac_func_search_save_LIBS
23506 fi
23507 eval ac_res=\$$as_ac_Search
23508                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23509 $as_echo "$ac_res" >&6; }
23510 eval ac_res=\$$as_ac_Search
23511 if test "$ac_res" != no; then :
23512   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23513
23514 else
23515   set_have_as_tls=no
23516 fi
23517
23518     # Clear LIBS if we cannot support TLS.
23519     if test $set_have_as_tls = no; then
23520       LIBS=
23521     fi
23522     # Always define LIB_TLS_SPEC, even without TLS support.
23523
23524 cat >>confdefs.h <<_ACEOF
23525 #define LIB_TLS_SPEC "$LIBS"
23526 _ACEOF
23527
23528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23529 $as_echo "$LIBS" >&6; }
23530
23531     LIBS="$save_LIBS"
23532     LDFLAGS="$save_LDFLAGS"
23533     ;;
23534 esac
23535 if test $set_have_as_tls = yes ; then
23536
23537 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23538
23539 fi
23540
23541 # Target-specific assembler checks.
23542
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23544 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23545 gcc_cv_ld_static_dynamic=no
23546 gcc_cv_ld_static_option='-Bstatic'
23547 gcc_cv_ld_dynamic_option='-Bdynamic'
23548 if test $in_tree_ld = yes ; then
23549   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
23550     gcc_cv_ld_static_dynamic=yes
23551   fi
23552 elif test x$gcc_cv_ld != x; then
23553   # Check if linker supports -Bstatic/-Bdynamic option
23554   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23555      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23556       gcc_cv_ld_static_dynamic=yes
23557   else
23558     case "$target" in
23559       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23560       alpha*-dec-osf*)
23561         gcc_cv_ld_static_dynamic=yes
23562         gcc_cv_ld_static_option="-noso"
23563         gcc_cv_ld_dynamic_option="-so_archive"
23564         ;;
23565       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23566       mips-sgi-irix6*)
23567         gcc_cv_ld_static_dynamic=yes
23568         ;;
23569       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23570       *-*-solaris2*)
23571         gcc_cv_ld_static_dynamic=yes
23572         ;;
23573     esac
23574   fi
23575 fi
23576 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23577
23578 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23579
23580
23581 cat >>confdefs.h <<_ACEOF
23582 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23583 _ACEOF
23584
23585
23586 cat >>confdefs.h <<_ACEOF
23587 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23588 _ACEOF
23589
23590 fi
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23592 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23593
23594 if test x"$demangler_in_ld" = xyes; then
23595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23596 $as_echo_n "checking linker --demangle support... " >&6; }
23597   gcc_cv_ld_demangle=no
23598   if test $in_tree_ld = yes; then
23599     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 \
23600       gcc_cv_ld_demangle=yes
23601     fi
23602   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23603     # Check if the GNU linker supports --demangle option
23604     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23605       gcc_cv_ld_demangle=yes
23606     fi
23607   fi
23608   if test x"$gcc_cv_ld_demangle" = xyes; then
23609
23610 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23611
23612   fi
23613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23614 $as_echo "$gcc_cv_ld_demangle" >&6; }
23615 fi
23616
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23618 $as_echo_n "checking linker plugin support... " >&6; }
23619 gcc_cv_lto_plugin=0
23620 if test -f liblto_plugin.la; then
23621   save_ld_ver="$ld_ver"
23622   save_ld_vers_major="$ld_vers_major"
23623   save_ld_vers_minor="$ld_vers_minor"
23624   save_ld_is_gold="$ld_is_gold"
23625
23626   ld_is_gold=no
23627
23628   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23629     ld_ver="GNU ld"
23630     # FIXME: ld_is_gold?
23631     ld_vers_major="$gcc_cv_gld_major_version"
23632     ld_vers_minor="$gcc_cv_gld_minor_version"
23633   else
23634     # Determine plugin linker version.
23635     # FIXME: Partial duplicate from above, generalize.
23636     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23637     if echo "$ld_ver" | grep GNU > /dev/null; then
23638       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23639         ld_is_gold=yes
23640         ld_vers=`echo $ld_ver | sed -n \
23641             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23642       else
23643         ld_vers=`echo $ld_ver | sed -n \
23644             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23645       fi
23646       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23647       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23648     fi
23649   fi
23650
23651   # Determine plugin support.
23652   if echo "$ld_ver" | grep GNU > /dev/null; then
23653     # Require GNU ld or gold 2.21+ for plugin support by default.
23654     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23655       gcc_cv_lto_plugin=2
23656     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23657     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23658       gcc_cv_lto_plugin=1
23659     fi
23660   fi
23661
23662   ld_ver="$save_ld_ver"
23663   ld_vers_major="$save_ld_vers_major"
23664   ld_vers_minor="$save_ld_vers_minor"
23665   ld_is_gold="$save_ld_is_gold"
23666 fi
23667
23668 cat >>confdefs.h <<_ACEOF
23669 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23670 _ACEOF
23671
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23673 $as_echo "$gcc_cv_lto_plugin" >&6; }
23674
23675 case "$target" in
23676   # All TARGET_ABI_OSF targets.
23677   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23679 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23680 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23681   $as_echo_n "(cached) " >&6
23682 else
23683   gcc_cv_as_alpha_explicit_relocs=no
23684     if test $in_tree_gas = yes; then
23685     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23686   then gcc_cv_as_alpha_explicit_relocs=yes
23687 fi
23688   elif test x$gcc_cv_as != x; then
23689     $as_echo '  .set nomacro
23690         .text
23691         extbl   $3, $2, $3      !lituse_bytoff!1
23692         ldq     $2, a($29)      !literal!1
23693         ldq     $4, b($29)      !literal!2
23694         ldq_u   $3, 0($2)       !lituse_base!1
23695         ldq     $27, f($29)     !literal!5
23696         jsr     $26, ($27), f   !lituse_jsr!5
23697         ldah    $29, 0($26)     !gpdisp!3
23698         lda     $0, c($29)      !gprel
23699         ldah    $1, d($29)      !gprelhigh
23700         lda     $1, d($1)       !gprellow
23701         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23702     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23703   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23704   (eval $ac_try) 2>&5
23705   ac_status=$?
23706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23707   test $ac_status = 0; }; }
23708     then
23709         gcc_cv_as_alpha_explicit_relocs=yes
23710     else
23711       echo "configure: failed program was" >&5
23712       cat conftest.s >&5
23713     fi
23714     rm -f conftest.o conftest.s
23715   fi
23716 fi
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23718 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23719 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23720
23721 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23722
23723 fi
23724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23725 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23726 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23727   $as_echo_n "(cached) " >&6
23728 else
23729   gcc_cv_as_alpha_jsrdirect_relocs=no
23730     if test $in_tree_gas = yes; then
23731     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23732   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23733 fi
23734   elif test x$gcc_cv_as != x; then
23735     $as_echo '  .set nomacro
23736         .text
23737         ldq     $27, a($29)     !literal!1
23738         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23739     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23740   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23741   (eval $ac_try) 2>&5
23742   ac_status=$?
23743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23744   test $ac_status = 0; }; }
23745     then
23746         gcc_cv_as_alpha_jsrdirect_relocs=yes
23747     else
23748       echo "configure: failed program was" >&5
23749       cat conftest.s >&5
23750     fi
23751     rm -f conftest.o conftest.s
23752   fi
23753 fi
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23755 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23756 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23757
23758 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23759
23760 fi
23761     ;;
23762
23763   cris-*-*)
23764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23765 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23766 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23767   $as_echo_n "(cached) " >&6
23768 else
23769   gcc_cv_as_cris_no_mul_bug=no
23770     if test $in_tree_gas = yes; then
23771     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23772   then gcc_cv_as_cris_no_mul_bug=yes
23773 fi
23774   elif test x$gcc_cv_as != x; then
23775     $as_echo '.text' > conftest.s
23776     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23777   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23778   (eval $ac_try) 2>&5
23779   ac_status=$?
23780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23781   test $ac_status = 0; }; }
23782     then
23783         gcc_cv_as_cris_no_mul_bug=yes
23784     else
23785       echo "configure: failed program was" >&5
23786       cat conftest.s >&5
23787     fi
23788     rm -f conftest.o conftest.s
23789   fi
23790 fi
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23792 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23793 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23794
23795 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23796
23797 fi
23798     ;;
23799
23800   sparc*-*-*)
23801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23802 $as_echo_n "checking assembler for .register... " >&6; }
23803 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23804   $as_echo_n "(cached) " >&6
23805 else
23806   gcc_cv_as_sparc_register_op=no
23807   if test x$gcc_cv_as != x; then
23808     $as_echo '.register %g2, #scratch' > conftest.s
23809     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23810   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23811   (eval $ac_try) 2>&5
23812   ac_status=$?
23813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23814   test $ac_status = 0; }; }
23815     then
23816         gcc_cv_as_sparc_register_op=yes
23817     else
23818       echo "configure: failed program was" >&5
23819       cat conftest.s >&5
23820     fi
23821     rm -f conftest.o conftest.s
23822   fi
23823 fi
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23825 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23826 if test $gcc_cv_as_sparc_register_op = yes; then
23827
23828 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23829
23830 fi
23831
23832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23833 $as_echo_n "checking assembler for -relax option... " >&6; }
23834 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23835   $as_echo_n "(cached) " >&6
23836 else
23837   gcc_cv_as_sparc_relax=no
23838   if test x$gcc_cv_as != x; then
23839     $as_echo '.text' > conftest.s
23840     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23841   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23842   (eval $ac_try) 2>&5
23843   ac_status=$?
23844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23845   test $ac_status = 0; }; }
23846     then
23847         gcc_cv_as_sparc_relax=yes
23848     else
23849       echo "configure: failed program was" >&5
23850       cat conftest.s >&5
23851     fi
23852     rm -f conftest.o conftest.s
23853   fi
23854 fi
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23856 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23857 if test $gcc_cv_as_sparc_relax = yes; then
23858
23859 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23860
23861 fi
23862
23863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23864 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23865 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23866   $as_echo_n "(cached) " >&6
23867 else
23868   gcc_cv_as_sparc_gotdata_op=no
23869   if test x$gcc_cv_as != x; then
23870     $as_echo '.text
23871 .align 4
23872 foo:
23873         nop
23874 bar:
23875         sethi %gdop_hix22(foo), %g1
23876         xor    %g1, %gdop_lox10(foo), %g1
23877         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23878     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23879   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23880   (eval $ac_try) 2>&5
23881   ac_status=$?
23882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23883   test $ac_status = 0; }; }
23884     then
23885         if test x$gcc_cv_ld != x \
23886        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23887          if test x$gcc_cv_objdump != x; then
23888            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23889               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23890                gcc_cv_as_sparc_gotdata_op=no
23891            else
23892                gcc_cv_as_sparc_gotdata_op=yes
23893            fi
23894          fi
23895        fi
23896        rm -f conftest
23897     else
23898       echo "configure: failed program was" >&5
23899       cat conftest.s >&5
23900     fi
23901     rm -f conftest.o conftest.s
23902   fi
23903 fi
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23905 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23906 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23907
23908 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23909
23910 fi
23911
23912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23913 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23914 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23915   $as_echo_n "(cached) " >&6
23916 else
23917   gcc_cv_as_sparc_ua_pcrel=no
23918   if test x$gcc_cv_as != x; then
23919     $as_echo '.text
23920 foo:
23921         nop
23922 .data
23923 .align 4
23924 .byte 0
23925 .uaword %r_disp32(foo)' > conftest.s
23926     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23927   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928   (eval $ac_try) 2>&5
23929   ac_status=$?
23930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931   test $ac_status = 0; }; }
23932     then
23933         if test x$gcc_cv_ld != x \
23934        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23935          gcc_cv_as_sparc_ua_pcrel=yes
23936        fi
23937        rm -f conftest
23938     else
23939       echo "configure: failed program was" >&5
23940       cat conftest.s >&5
23941     fi
23942     rm -f conftest.o conftest.s
23943   fi
23944 fi
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23946 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23947 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23948
23949 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23950
23951
23952       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23953 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23954 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23955   $as_echo_n "(cached) " >&6
23956 else
23957   gcc_cv_as_sparc_ua_pcrel_hidden=no
23958   if test x$gcc_cv_as != x; then
23959     $as_echo '.data
23960 .align 4
23961 .byte 0x31
23962 .uaword %r_disp32(foo)
23963 .byte 0x32, 0x33, 0x34
23964 .global foo
23965 .hidden foo
23966 foo:
23967 .skip 4' > conftest.s
23968     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23969   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970   (eval $ac_try) 2>&5
23971   ac_status=$?
23972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973   test $ac_status = 0; }; }
23974     then
23975         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23976          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23977          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23978             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23979             if $gcc_cv_objdump -R conftest 2> /dev/null \
23980                | grep 'DISP32' > /dev/null 2>&1; then
23981                 :
23982             else
23983                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23984             fi
23985          fi
23986          rm -f conftest
23987     else
23988       echo "configure: failed program was" >&5
23989       cat conftest.s >&5
23990     fi
23991     rm -f conftest.o conftest.s
23992   fi
23993 fi
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23995 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23996 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23997
23998 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23999
24000 fi
24001
24002 fi # unaligned pcrel relocs
24003
24004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24005 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24006 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24007   $as_echo_n "(cached) " >&6
24008 else
24009   gcc_cv_as_sparc_offsetable_lo10=no
24010   if test x$gcc_cv_as != x; then
24011     $as_echo '.text
24012         or %g1, %lo(ab) + 12, %g1
24013         or %g1, %lo(ab + 12), %g1' > conftest.s
24014     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24015   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24016   (eval $ac_try) 2>&5
24017   ac_status=$?
24018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24019   test $ac_status = 0; }; }
24020     then
24021         if test x$gcc_cv_objdump != x \
24022        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24023           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24024          gcc_cv_as_sparc_offsetable_lo10=yes
24025        fi
24026     else
24027       echo "configure: failed program was" >&5
24028       cat conftest.s >&5
24029     fi
24030     rm -f conftest.o conftest.s
24031   fi
24032 fi
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24034 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24035 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24036
24037 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24038
24039 fi
24040     ;;
24041
24042   i[34567]86-*-* | x86_64-*-*)
24043     case $target_os in
24044       cygwin*)
24045         # Full C++ conformance when using a shared libstdc++-v3 requires some
24046         # support from the Cygwin DLL, which in more recent versions exports
24047         # wrappers to aid in interposing and redirecting operators new, delete,
24048         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24049         # are configuring for a version of Cygwin that exports the wrappers.
24050         if test x$host = x$target; then
24051           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24052 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24053   gcc_ac_cygwin_dll_wrappers=yes
24054 else
24055   gcc_ac_cygwin_dll_wrappers=no
24056 fi
24057
24058         else
24059           # Can't check presence of libc functions during cross-compile, so
24060           # we just have to assume we're building for an up-to-date target.
24061           gcc_ac_cygwin_dll_wrappers=yes
24062         fi
24063
24064 cat >>confdefs.h <<_ACEOF
24065 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24066 _ACEOF
24067
24068     esac
24069     case $target_os in
24070       cygwin* | pe | mingw32*)
24071         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24072         # definition is used unconditionally to initialise the default state of
24073         # the target option variable that governs usage of the feature.
24074         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24075 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24076 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24077   $as_echo_n "(cached) " >&6
24078 else
24079   gcc_cv_as_comm_has_align=no
24080     if test $in_tree_gas = yes; then
24081     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24082   then gcc_cv_as_comm_has_align=yes
24083 fi
24084   elif test x$gcc_cv_as != x; then
24085     $as_echo '.comm foo,1,32' > conftest.s
24086     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -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_comm_has_align=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_comm_has_align" >&5
24102 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24103
24104
24105 cat >>confdefs.h <<_ACEOF
24106 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24107 _ACEOF
24108
24109         # Used for DWARF 2 in PE
24110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24111 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24112 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24113   $as_echo_n "(cached) " >&6
24114 else
24115   gcc_cv_as_ix86_pe_secrel32=no
24116     if test $in_tree_gas = yes; then
24117     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24118   then gcc_cv_as_ix86_pe_secrel32=yes
24119 fi
24120   elif test x$gcc_cv_as != x; then
24121     $as_echo '.text
24122 foo:    nop
24123 .data
24124         .secrel32 foo' > conftest.s
24125     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24126   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24127   (eval $ac_try) 2>&5
24128   ac_status=$?
24129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130   test $ac_status = 0; }; }
24131     then
24132         if test x$gcc_cv_ld != x \
24133            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24134              gcc_cv_as_ix86_pe_secrel32=yes
24135            fi
24136            rm -f conftest
24137     else
24138       echo "configure: failed program was" >&5
24139       cat conftest.s >&5
24140     fi
24141     rm -f conftest.o conftest.s
24142   fi
24143 fi
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24145 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24146 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24147
24148 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24149
24150 fi
24151         # Test if the assembler supports the extended form of the .section
24152         # directive that specifies section alignment.  LTO support uses this,
24153         # but normally only after installation, so we warn but don't fail the
24154         # configure if LTO is enabled but the assembler does not support it.
24155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24156 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24157 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24158   $as_echo_n "(cached) " >&6
24159 else
24160   gcc_cv_as_section_has_align=no
24161     if test $in_tree_gas = yes; then
24162     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24163   then gcc_cv_as_section_has_align=yes
24164 fi
24165   elif test x$gcc_cv_as != x; then
24166     $as_echo '.section lto_test,"dr0"' > conftest.s
24167     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24168   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169   (eval $ac_try) 2>&5
24170   ac_status=$?
24171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172   test $ac_status = 0; }; }
24173     then
24174         gcc_cv_as_section_has_align=yes
24175     else
24176       echo "configure: failed program was" >&5
24177       cat conftest.s >&5
24178     fi
24179     rm -f conftest.o conftest.s
24180   fi
24181 fi
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24183 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24184
24185         if test x$gcc_cv_as_section_has_align != xyes; then
24186           case ",$enable_languages," in
24187             *,lto,*)
24188               { $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
24189 $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;}
24190               ;;
24191           esac
24192         fi
24193         ;;
24194     esac
24195
24196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24197 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24198 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24199   $as_echo_n "(cached) " >&6
24200 else
24201   gcc_cv_as_ix86_filds=no
24202   if test x$gcc_cv_as != x; then
24203     $as_echo 'filds mem; fists mem' > conftest.s
24204     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24205   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24206   (eval $ac_try) 2>&5
24207   ac_status=$?
24208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209   test $ac_status = 0; }; }
24210     then
24211         gcc_cv_as_ix86_filds=yes
24212     else
24213       echo "configure: failed program was" >&5
24214       cat conftest.s >&5
24215     fi
24216     rm -f conftest.o conftest.s
24217   fi
24218 fi
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24220 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24221 if test $gcc_cv_as_ix86_filds = yes; then
24222
24223 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24224
24225 fi
24226
24227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24228 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24229 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24230   $as_echo_n "(cached) " >&6
24231 else
24232   gcc_cv_as_ix86_fildq=no
24233   if test x$gcc_cv_as != x; then
24234     $as_echo 'fildq mem; fistpq mem' > conftest.s
24235     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24236   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237   (eval $ac_try) 2>&5
24238   ac_status=$?
24239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240   test $ac_status = 0; }; }
24241     then
24242         gcc_cv_as_ix86_fildq=yes
24243     else
24244       echo "configure: failed program was" >&5
24245       cat conftest.s >&5
24246     fi
24247     rm -f conftest.o conftest.s
24248   fi
24249 fi
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24251 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24252 if test $gcc_cv_as_ix86_fildq = yes; then
24253
24254 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24255
24256 fi
24257
24258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24259 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24260 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24261   $as_echo_n "(cached) " >&6
24262 else
24263   gcc_cv_as_ix86_cmov_sun_syntax=no
24264   if test x$gcc_cv_as != x; then
24265     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24266     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24267   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24268   (eval $ac_try) 2>&5
24269   ac_status=$?
24270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24271   test $ac_status = 0; }; }
24272     then
24273         gcc_cv_as_ix86_cmov_sun_syntax=yes
24274     else
24275       echo "configure: failed program was" >&5
24276       cat conftest.s >&5
24277     fi
24278     rm -f conftest.o conftest.s
24279   fi
24280 fi
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24282 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24283 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24284
24285 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24286
24287 fi
24288
24289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24290 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24291 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24292   $as_echo_n "(cached) " >&6
24293 else
24294   gcc_cv_as_ix86_ffreep=no
24295   if test x$gcc_cv_as != x; then
24296     $as_echo 'ffreep %st(1)' > conftest.s
24297     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24298   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24299   (eval $ac_try) 2>&5
24300   ac_status=$?
24301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302   test $ac_status = 0; }; }
24303     then
24304         gcc_cv_as_ix86_ffreep=yes
24305     else
24306       echo "configure: failed program was" >&5
24307       cat conftest.s >&5
24308     fi
24309     rm -f conftest.o conftest.s
24310   fi
24311 fi
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24313 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24314 if test $gcc_cv_as_ix86_ffreep = yes; then
24315
24316 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24317
24318 fi
24319
24320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24321 $as_echo_n "checking assembler for .quad directive... " >&6; }
24322 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24323   $as_echo_n "(cached) " >&6
24324 else
24325   gcc_cv_as_ix86_quad=no
24326   if test x$gcc_cv_as != x; then
24327     $as_echo '.quad 0' > conftest.s
24328     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24329   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330   (eval $ac_try) 2>&5
24331   ac_status=$?
24332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333   test $ac_status = 0; }; }
24334     then
24335         gcc_cv_as_ix86_quad=yes
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_ix86_quad" >&5
24344 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24345 if test $gcc_cv_as_ix86_quad = yes; then
24346
24347 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24348
24349 fi
24350
24351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24352 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24353 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24354   $as_echo_n "(cached) " >&6
24355 else
24356   gcc_cv_as_ix86_sahf=no
24357   if test x$gcc_cv_as != x; then
24358     $as_echo '.code64
24359        sahf' > conftest.s
24360     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24361   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24362   (eval $ac_try) 2>&5
24363   ac_status=$?
24364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24365   test $ac_status = 0; }; }
24366     then
24367         gcc_cv_as_ix86_sahf=yes
24368     else
24369       echo "configure: failed program was" >&5
24370       cat conftest.s >&5
24371     fi
24372     rm -f conftest.o conftest.s
24373   fi
24374 fi
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24376 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24377 if test $gcc_cv_as_ix86_sahf = yes; then
24378
24379 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24380
24381 fi
24382
24383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24384 $as_echo_n "checking assembler for swap suffix... " >&6; }
24385 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24386   $as_echo_n "(cached) " >&6
24387 else
24388   gcc_cv_as_ix86_swap=no
24389   if test x$gcc_cv_as != x; then
24390     $as_echo 'movl.s %esp, %ebp' > conftest.s
24391     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24392   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24393   (eval $ac_try) 2>&5
24394   ac_status=$?
24395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24396   test $ac_status = 0; }; }
24397     then
24398         gcc_cv_as_ix86_swap=yes
24399     else
24400       echo "configure: failed program was" >&5
24401       cat conftest.s >&5
24402     fi
24403     rm -f conftest.o conftest.s
24404   fi
24405 fi
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24407 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24408 if test $gcc_cv_as_ix86_swap = yes; then
24409
24410 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24411
24412 fi
24413
24414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24415 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24416 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24417   $as_echo_n "(cached) " >&6
24418 else
24419   gcc_cv_as_ix86_diff_sect_delta=no
24420   if test x$gcc_cv_as != x; then
24421     $as_echo '.section .rodata
24422 .L1:
24423         .long .L2-.L1
24424         .long .L3-.L1
24425         .text
24426 .L3:    nop
24427 .L2:    nop' > conftest.s
24428     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24429   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24430   (eval $ac_try) 2>&5
24431   ac_status=$?
24432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24433   test $ac_status = 0; }; }
24434     then
24435         gcc_cv_as_ix86_diff_sect_delta=yes
24436     else
24437       echo "configure: failed program was" >&5
24438       cat conftest.s >&5
24439     fi
24440     rm -f conftest.o conftest.s
24441   fi
24442 fi
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24444 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24445 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24446
24447 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24448
24449 fi
24450
24451     # These two are used unconditionally by i386.[ch]; it is to be defined
24452     # to 1 if the feature is present, 0 otherwise.
24453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24454 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24455 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24456   $as_echo_n "(cached) " >&6
24457 else
24458   gcc_cv_as_ix86_gotoff_in_data=no
24459     if test $in_tree_gas = yes; then
24460     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24461   then gcc_cv_as_ix86_gotoff_in_data=yes
24462 fi
24463   elif test x$gcc_cv_as != x; then
24464     $as_echo '  .text
24465 .L0:
24466         nop
24467         .data
24468         .long .L0@GOTOFF' > conftest.s
24469     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24470   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24471   (eval $ac_try) 2>&5
24472   ac_status=$?
24473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474   test $ac_status = 0; }; }
24475     then
24476         gcc_cv_as_ix86_gotoff_in_data=yes
24477     else
24478       echo "configure: failed program was" >&5
24479       cat conftest.s >&5
24480     fi
24481     rm -f conftest.o conftest.s
24482   fi
24483 fi
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24485 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24486
24487
24488 cat >>confdefs.h <<_ACEOF
24489 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24490 _ACEOF
24491
24492
24493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24494 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24495 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24496   $as_echo_n "(cached) " >&6
24497 else
24498   gcc_cv_as_ix86_rep_lock_prefix=no
24499   if test x$gcc_cv_as != x; then
24500     $as_echo 'rep movsl
24501          lock addl %edi, (%eax,%esi)
24502          lock orl $0, (%esp)' > conftest.s
24503     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24504   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505   (eval $ac_try) 2>&5
24506   ac_status=$?
24507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508   test $ac_status = 0; }; }
24509     then
24510         gcc_cv_as_ix86_rep_lock_prefix=yes
24511     else
24512       echo "configure: failed program was" >&5
24513       cat conftest.s >&5
24514     fi
24515     rm -f conftest.o conftest.s
24516   fi
24517 fi
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24519 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24520 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24521
24522 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24523
24524 fi
24525
24526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24527 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24528 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24529   $as_echo_n "(cached) " >&6
24530 else
24531   gcc_cv_as_ix86_tlsgdplt=no
24532   if test x$gcc_cv_as != x; then
24533     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24534     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24535   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536   (eval $ac_try) 2>&5
24537   ac_status=$?
24538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539   test $ac_status = 0; }; }
24540     then
24541         gcc_cv_as_ix86_tlsgdplt=yes
24542     else
24543       echo "configure: failed program was" >&5
24544       cat conftest.s >&5
24545     fi
24546     rm -f conftest.o conftest.s
24547   fi
24548 fi
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24550 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24551 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24552
24553 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24554
24555 fi
24556
24557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24558 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24559 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24560   $as_echo_n "(cached) " >&6
24561 else
24562   gcc_cv_as_ix86_tlsldmplt=no
24563   if test x$gcc_cv_as != x; then
24564     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24565     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24566   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567   (eval $ac_try) 2>&5
24568   ac_status=$?
24569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570   test $ac_status = 0; }; }
24571     then
24572         gcc_cv_as_ix86_tlsldmplt=yes
24573     else
24574       echo "configure: failed program was" >&5
24575       cat conftest.s >&5
24576     fi
24577     rm -f conftest.o conftest.s
24578   fi
24579 fi
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24581 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24582 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24583
24584 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24585
24586 fi
24587
24588     ;;
24589
24590   ia64*-*-*)
24591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24592 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24593 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24594   $as_echo_n "(cached) " >&6
24595 else
24596   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24597     if test $in_tree_gas = yes; then
24598     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24599   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24600 fi
24601   elif test x$gcc_cv_as != x; then
24602     $as_echo '  .text
24603         addl r15 = @ltoffx(x#), gp
24604         ;;
24605         ld8.mov r16 = [r15], x#' > conftest.s
24606     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24607   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611   test $ac_status = 0; }; }
24612     then
24613         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24614     else
24615       echo "configure: failed program was" >&5
24616       cat conftest.s >&5
24617     fi
24618     rm -f conftest.o conftest.s
24619   fi
24620 fi
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24622 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24623 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24624
24625 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24626
24627 fi
24628
24629     ;;
24630
24631   powerpc*-*-*)
24632     case $target in
24633       *-*-aix*) conftest_s='    .machine "pwr5"
24634         .csect .text[PR]
24635         mfcr 3,128';;
24636       *-*-darwin*)
24637         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24638 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24639 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24640   $as_echo_n "(cached) " >&6
24641 else
24642   gcc_cv_as_machine_directive=no
24643   if test x$gcc_cv_as != x; then
24644     $as_echo '  .machine ppc7400' > conftest.s
24645     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24646   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647   (eval $ac_try) 2>&5
24648   ac_status=$?
24649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650   test $ac_status = 0; }; }
24651     then
24652         gcc_cv_as_machine_directive=yes
24653     else
24654       echo "configure: failed program was" >&5
24655       cat conftest.s >&5
24656     fi
24657     rm -f conftest.o conftest.s
24658   fi
24659 fi
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24661 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24662
24663         if test x$gcc_cv_as_machine_directive != xyes; then
24664           echo "*** This target requires an assembler supporting \".machine\"" >&2
24665           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24666           test x$build = x$target && exit 1
24667         fi
24668         conftest_s='    .text
24669         mfcr r3,128';;
24670       *) conftest_s='   .machine power4
24671         .text
24672         mfcr 3,128';;
24673     esac
24674
24675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24676 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24677 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24678   $as_echo_n "(cached) " >&6
24679 else
24680   gcc_cv_as_powerpc_mfcrf=no
24681     if test $in_tree_gas = yes; then
24682     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24683   then gcc_cv_as_powerpc_mfcrf=yes
24684 fi
24685   elif test x$gcc_cv_as != x; then
24686     $as_echo "$conftest_s" > conftest.s
24687     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24688   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689   (eval $ac_try) 2>&5
24690   ac_status=$?
24691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692   test $ac_status = 0; }; }
24693     then
24694         gcc_cv_as_powerpc_mfcrf=yes
24695     else
24696       echo "configure: failed program was" >&5
24697       cat conftest.s >&5
24698     fi
24699     rm -f conftest.o conftest.s
24700   fi
24701 fi
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24703 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24704 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24705
24706 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24707
24708 fi
24709
24710     case $target in
24711       *-*-aix*) conftest_s='    .machine "pwr5"
24712         .csect .text[PR]
24713         popcntb 3,3';;
24714       *) conftest_s='   .machine power5
24715         .text
24716         popcntb 3,3';;
24717     esac
24718
24719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24720 $as_echo_n "checking assembler for popcntb support... " >&6; }
24721 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24722   $as_echo_n "(cached) " >&6
24723 else
24724   gcc_cv_as_powerpc_popcntb=no
24725     if test $in_tree_gas = yes; then
24726     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24727   then gcc_cv_as_powerpc_popcntb=yes
24728 fi
24729   elif test x$gcc_cv_as != x; then
24730     $as_echo "$conftest_s" > conftest.s
24731     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24732   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733   (eval $ac_try) 2>&5
24734   ac_status=$?
24735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736   test $ac_status = 0; }; }
24737     then
24738         gcc_cv_as_powerpc_popcntb=yes
24739     else
24740       echo "configure: failed program was" >&5
24741       cat conftest.s >&5
24742     fi
24743     rm -f conftest.o conftest.s
24744   fi
24745 fi
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24747 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24748 if test $gcc_cv_as_powerpc_popcntb = yes; then
24749
24750 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24751
24752 fi
24753
24754     case $target in
24755       *-*-aix*) conftest_s='    .machine "pwr5x"
24756         .csect .text[PR]
24757         frin 1,1';;
24758       *) conftest_s='   .machine power5
24759         .text
24760         frin 1,1';;
24761     esac
24762
24763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24764 $as_echo_n "checking assembler for fp round support... " >&6; }
24765 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24766   $as_echo_n "(cached) " >&6
24767 else
24768   gcc_cv_as_powerpc_fprnd=no
24769     if test $in_tree_gas = yes; then
24770     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24771   then gcc_cv_as_powerpc_fprnd=yes
24772 fi
24773   elif test x$gcc_cv_as != x; then
24774     $as_echo "$conftest_s" > conftest.s
24775     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24776   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24777   (eval $ac_try) 2>&5
24778   ac_status=$?
24779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24780   test $ac_status = 0; }; }
24781     then
24782         gcc_cv_as_powerpc_fprnd=yes
24783     else
24784       echo "configure: failed program was" >&5
24785       cat conftest.s >&5
24786     fi
24787     rm -f conftest.o conftest.s
24788   fi
24789 fi
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24791 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24792 if test $gcc_cv_as_powerpc_fprnd = yes; then
24793
24794 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24795
24796 fi
24797
24798     case $target in
24799       *-*-aix*) conftest_s='    .machine "pwr6"
24800         .csect .text[PR]
24801         mffgpr 1,3';;
24802       *) conftest_s='   .machine power6
24803         .text
24804         mffgpr 1,3';;
24805     esac
24806
24807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24808 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24809 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24810   $as_echo_n "(cached) " >&6
24811 else
24812   gcc_cv_as_powerpc_mfpgpr=no
24813     if test $in_tree_gas = yes; then
24814     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24815   then gcc_cv_as_powerpc_mfpgpr=yes
24816 fi
24817   elif test x$gcc_cv_as != x; then
24818     $as_echo "$conftest_s" > conftest.s
24819     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24820   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821   (eval $ac_try) 2>&5
24822   ac_status=$?
24823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824   test $ac_status = 0; }; }
24825     then
24826         gcc_cv_as_powerpc_mfpgpr=yes
24827     else
24828       echo "configure: failed program was" >&5
24829       cat conftest.s >&5
24830     fi
24831     rm -f conftest.o conftest.s
24832   fi
24833 fi
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24835 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24836 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24837
24838 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24839
24840 fi
24841
24842     case $target in
24843       *-*-aix*) conftest_s='    .csect .text[PR]
24844 LCF..0:
24845         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24846       *-*-darwin*)
24847         conftest_s='    .text
24848 LCF0:
24849         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24850       *) conftest_s='   .text
24851 .LCF0:
24852         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24853     esac
24854
24855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24856 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24857 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24858   $as_echo_n "(cached) " >&6
24859 else
24860   gcc_cv_as_powerpc_rel16=no
24861     if test $in_tree_gas = yes; then
24862     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24863   then gcc_cv_as_powerpc_rel16=yes
24864 fi
24865   elif test x$gcc_cv_as != x; then
24866     $as_echo "$conftest_s" > conftest.s
24867     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24868   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869   (eval $ac_try) 2>&5
24870   ac_status=$?
24871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872   test $ac_status = 0; }; }
24873     then
24874         gcc_cv_as_powerpc_rel16=yes
24875     else
24876       echo "configure: failed program was" >&5
24877       cat conftest.s >&5
24878     fi
24879     rm -f conftest.o conftest.s
24880   fi
24881 fi
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24883 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24884 if test $gcc_cv_as_powerpc_rel16 = yes; then
24885
24886 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24887
24888 fi
24889
24890     case $target in
24891       *-*-aix*) conftest_s='    .machine "pwr6"
24892         .csect .text[PR]
24893         cmpb 3,4,5';;
24894       *) conftest_s='   .machine power6
24895         .text
24896         cmpb 3,4,5';;
24897     esac
24898
24899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24900 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24901 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24902   $as_echo_n "(cached) " >&6
24903 else
24904   gcc_cv_as_powerpc_cmpb=no
24905     if test $in_tree_gas = yes; then
24906     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24907   then gcc_cv_as_powerpc_cmpb=yes
24908 fi
24909   elif test x$gcc_cv_as != x; then
24910     $as_echo "$conftest_s" > conftest.s
24911     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24912   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913   (eval $ac_try) 2>&5
24914   ac_status=$?
24915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916   test $ac_status = 0; }; }
24917     then
24918         gcc_cv_as_powerpc_cmpb=yes
24919     else
24920       echo "configure: failed program was" >&5
24921       cat conftest.s >&5
24922     fi
24923     rm -f conftest.o conftest.s
24924   fi
24925 fi
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24927 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24928 if test $gcc_cv_as_powerpc_cmpb = yes; then
24929
24930 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24931
24932 fi
24933
24934     case $target in
24935       *-*-aix*) conftest_s='    .machine "pwr6"
24936         .csect .text[PR]
24937         dadd 1,2,3';;
24938       *) conftest_s='   .machine power6
24939         .text
24940         dadd 1,2,3';;
24941     esac
24942
24943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24944 $as_echo_n "checking assembler for decimal float support... " >&6; }
24945 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24946   $as_echo_n "(cached) " >&6
24947 else
24948   gcc_cv_as_powerpc_dfp=no
24949     if test $in_tree_gas = yes; then
24950     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24951   then gcc_cv_as_powerpc_dfp=yes
24952 fi
24953   elif test x$gcc_cv_as != x; then
24954     $as_echo "$conftest_s" > conftest.s
24955     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24956   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24957   (eval $ac_try) 2>&5
24958   ac_status=$?
24959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24960   test $ac_status = 0; }; }
24961     then
24962         gcc_cv_as_powerpc_dfp=yes
24963     else
24964       echo "configure: failed program was" >&5
24965       cat conftest.s >&5
24966     fi
24967     rm -f conftest.o conftest.s
24968   fi
24969 fi
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24971 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24972 if test $gcc_cv_as_powerpc_dfp = yes; then
24973
24974 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24975
24976 fi
24977
24978     case $target in
24979       *-*-aix*) conftest_s='    .machine "pwr7"
24980         .csect .text[PR]
24981         lxvd2x 1,2,3';;
24982       *) conftest_s='   .machine power7
24983         .text
24984         lxvd2x 1,2,3';;
24985     esac
24986
24987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24988 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24989 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24990   $as_echo_n "(cached) " >&6
24991 else
24992   gcc_cv_as_powerpc_vsx=no
24993     if test $in_tree_gas = yes; then
24994     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24995   then gcc_cv_as_powerpc_vsx=yes
24996 fi
24997   elif test x$gcc_cv_as != x; then
24998     $as_echo "$conftest_s" > conftest.s
24999     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25000   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25001   (eval $ac_try) 2>&5
25002   ac_status=$?
25003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25004   test $ac_status = 0; }; }
25005     then
25006         gcc_cv_as_powerpc_vsx=yes
25007     else
25008       echo "configure: failed program was" >&5
25009       cat conftest.s >&5
25010     fi
25011     rm -f conftest.o conftest.s
25012   fi
25013 fi
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25015 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25016 if test $gcc_cv_as_powerpc_vsx = yes; then
25017
25018 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25019
25020 fi
25021
25022     case $target in
25023       *-*-aix*) conftest_s='    .machine "pwr7"
25024         .csect .text[PR]
25025         popcntd 3,3';;
25026       *) conftest_s='   .machine power7
25027         .text
25028         popcntd 3,3';;
25029     esac
25030
25031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25032 $as_echo_n "checking assembler for popcntd support... " >&6; }
25033 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25034   $as_echo_n "(cached) " >&6
25035 else
25036   gcc_cv_as_powerpc_popcntd=no
25037     if test $in_tree_gas = yes; then
25038     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25039   then gcc_cv_as_powerpc_popcntd=yes
25040 fi
25041   elif test x$gcc_cv_as != x; then
25042     $as_echo "$conftest_s" > conftest.s
25043     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25044   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25045   (eval $ac_try) 2>&5
25046   ac_status=$?
25047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25048   test $ac_status = 0; }; }
25049     then
25050         gcc_cv_as_powerpc_popcntd=yes
25051     else
25052       echo "configure: failed program was" >&5
25053       cat conftest.s >&5
25054     fi
25055     rm -f conftest.o conftest.s
25056   fi
25057 fi
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25059 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25060 if test $gcc_cv_as_powerpc_popcntd = yes; then
25061
25062 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25063
25064 fi
25065
25066     case $target in
25067       *-*-aix*) conftest_s='    .csect .text[PR]
25068         lwsync';;
25069       *) conftest_s='   .text
25070         lwsync';;
25071     esac
25072
25073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25074 $as_echo_n "checking assembler for lwsync support... " >&6; }
25075 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25076   $as_echo_n "(cached) " >&6
25077 else
25078   gcc_cv_as_powerpc_lwsync=no
25079     if test $in_tree_gas = yes; then
25080     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25081   then gcc_cv_as_powerpc_lwsync=yes
25082 fi
25083   elif test x$gcc_cv_as != x; then
25084     $as_echo "$conftest_s" > conftest.s
25085     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25086   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25087   (eval $ac_try) 2>&5
25088   ac_status=$?
25089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25090   test $ac_status = 0; }; }
25091     then
25092         gcc_cv_as_powerpc_lwsync=yes
25093     else
25094       echo "configure: failed program was" >&5
25095       cat conftest.s >&5
25096     fi
25097     rm -f conftest.o conftest.s
25098   fi
25099 fi
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25101 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25102 if test $gcc_cv_as_powerpc_lwsync = yes; then
25103
25104 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25105
25106 fi
25107
25108     case $target in
25109       *-*-aix*) conftest_s='    .machine "476"
25110         .csect .text[PR]
25111         dci 0';;
25112       *) conftest_s='   .machine "476"
25113         .text
25114         dci 0';;
25115     esac
25116
25117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25118 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25119 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25120   $as_echo_n "(cached) " >&6
25121 else
25122   gcc_cv_as_powerpc_dci=no
25123     if test $in_tree_gas = yes; then
25124     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25125   then gcc_cv_as_powerpc_dci=yes
25126 fi
25127   elif test x$gcc_cv_as != x; then
25128     $as_echo "$conftest_s" > conftest.s
25129     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25130   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25131   (eval $ac_try) 2>&5
25132   ac_status=$?
25133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25134   test $ac_status = 0; }; }
25135     then
25136         gcc_cv_as_powerpc_dci=yes
25137     else
25138       echo "configure: failed program was" >&5
25139       cat conftest.s >&5
25140     fi
25141     rm -f conftest.o conftest.s
25142   fi
25143 fi
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25145 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25146 if test $gcc_cv_as_powerpc_dci = yes; then
25147
25148 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25149
25150 fi
25151
25152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25153 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25154 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25155   $as_echo_n "(cached) " >&6
25156 else
25157   gcc_cv_as_powerpc_gnu_attribute=no
25158     if test $in_tree_gas = yes; then
25159     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25160   then gcc_cv_as_powerpc_gnu_attribute=yes
25161 fi
25162   elif test x$gcc_cv_as != x; then
25163     $as_echo '.gnu_attribute 4,1' > conftest.s
25164     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25165   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25166   (eval $ac_try) 2>&5
25167   ac_status=$?
25168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25169   test $ac_status = 0; }; }
25170     then
25171         gcc_cv_as_powerpc_gnu_attribute=yes
25172     else
25173       echo "configure: failed program was" >&5
25174       cat conftest.s >&5
25175     fi
25176     rm -f conftest.o conftest.s
25177   fi
25178 fi
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25180 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25181 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25182
25183 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25184
25185 fi
25186
25187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25188 $as_echo_n "checking assembler for tls marker support... " >&6; }
25189 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25190   $as_echo_n "(cached) " >&6
25191 else
25192   gcc_cv_as_powerpc_tls_markers=no
25193     if test $in_tree_gas = yes; then
25194     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25195   then gcc_cv_as_powerpc_tls_markers=yes
25196 fi
25197   elif test x$gcc_cv_as != x; then
25198     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25199     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25200   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25201   (eval $ac_try) 2>&5
25202   ac_status=$?
25203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25204   test $ac_status = 0; }; }
25205     then
25206         gcc_cv_as_powerpc_tls_markers=yes
25207     else
25208       echo "configure: failed program was" >&5
25209       cat conftest.s >&5
25210     fi
25211     rm -f conftest.o conftest.s
25212   fi
25213 fi
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25215 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25216 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25217
25218 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25219
25220 fi
25221
25222     case $target in
25223       *-*-aix*)
25224         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25225 $as_echo_n "checking assembler for .ref support... " >&6; }
25226 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25227   $as_echo_n "(cached) " >&6
25228 else
25229   gcc_cv_as_aix_ref=no
25230     if test $in_tree_gas = yes; then
25231     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25232   then :
25233 fi
25234   elif test x$gcc_cv_as != x; then
25235     $as_echo '  .csect stuff[rw]
25236              stuff:
25237                 .long 1
25238                 .extern sym
25239                 .ref sym
25240           ' > conftest.s
25241     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25242   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25243   (eval $ac_try) 2>&5
25244   ac_status=$?
25245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25246   test $ac_status = 0; }; }
25247     then
25248         gcc_cv_as_aix_ref=yes
25249     else
25250       echo "configure: failed program was" >&5
25251       cat conftest.s >&5
25252     fi
25253     rm -f conftest.o conftest.s
25254   fi
25255 fi
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25257 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25258 if test $gcc_cv_as_aix_ref = yes; then
25259
25260 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25261
25262 fi
25263         ;;
25264     esac
25265     ;;
25266
25267   mips*-*-*)
25268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25269 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25270 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25271   $as_echo_n "(cached) " >&6
25272 else
25273   gcc_cv_as_mips_explicit_relocs=no
25274     if test $in_tree_gas = yes; then
25275     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25276   then gcc_cv_as_mips_explicit_relocs=yes
25277 fi
25278   elif test x$gcc_cv_as != x; then
25279     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25280     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25281   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285   test $ac_status = 0; }; }
25286     then
25287         gcc_cv_as_mips_explicit_relocs=yes
25288     else
25289       echo "configure: failed program was" >&5
25290       cat conftest.s >&5
25291     fi
25292     rm -f conftest.o conftest.s
25293   fi
25294 fi
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25296 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25297 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25298   if test x$target_cpu_default = x
25299        then target_cpu_default=MASK_EXPLICIT_RELOCS
25300        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25301        fi
25302 fi
25303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25304 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25305 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25306   $as_echo_n "(cached) " >&6
25307 else
25308   gcc_cv_as_mips_no_shared=no
25309     if test $in_tree_gas = yes; then
25310     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25311   then gcc_cv_as_mips_no_shared=yes
25312 fi
25313   elif test x$gcc_cv_as != x; then
25314     $as_echo 'nop' > conftest.s
25315     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25316   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317   (eval $ac_try) 2>&5
25318   ac_status=$?
25319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320   test $ac_status = 0; }; }
25321     then
25322         gcc_cv_as_mips_no_shared=yes
25323     else
25324       echo "configure: failed program was" >&5
25325       cat conftest.s >&5
25326     fi
25327     rm -f conftest.o conftest.s
25328   fi
25329 fi
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25331 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25332 if test $gcc_cv_as_mips_no_shared = yes; then
25333
25334 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25335
25336 fi
25337
25338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25339 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25340 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25341   $as_echo_n "(cached) " >&6
25342 else
25343   gcc_cv_as_mips_gnu_attribute=no
25344     if test $in_tree_gas = yes; then
25345     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25346   then gcc_cv_as_mips_gnu_attribute=yes
25347 fi
25348   elif test x$gcc_cv_as != x; then
25349     $as_echo '.gnu_attribute 4,1' > conftest.s
25350     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -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_mips_gnu_attribute=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_mips_gnu_attribute" >&5
25366 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25367 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25368
25369 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25370
25371 fi
25372
25373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25374 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25375 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25376   $as_echo_n "(cached) " >&6
25377 else
25378   gcc_cv_as_mips_dtprelword=no
25379     if test $in_tree_gas = yes; then
25380     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25381   then gcc_cv_as_mips_dtprelword=yes
25382 fi
25383   elif test x$gcc_cv_as != x; then
25384     $as_echo '.section .tdata,"awT",@progbits
25385 x:
25386         .word 2
25387         .text
25388         .dtprelword x+0x8000' > conftest.s
25389     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25390   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25391   (eval $ac_try) 2>&5
25392   ac_status=$?
25393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25394   test $ac_status = 0; }; }
25395     then
25396         gcc_cv_as_mips_dtprelword=yes
25397     else
25398       echo "configure: failed program was" >&5
25399       cat conftest.s >&5
25400     fi
25401     rm -f conftest.o conftest.s
25402   fi
25403 fi
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25405 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25406 if test $gcc_cv_as_mips_dtprelword = yes; then
25407
25408 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25409
25410 fi
25411
25412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25413 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25414 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25415   $as_echo_n "(cached) " >&6
25416 else
25417   gcc_cv_as_mips_dspr1_mult=no
25418   if test x$gcc_cv_as != x; then
25419     $as_echo '  .set    mips32r2
25420         .set    nodspr2
25421         .set    dsp
25422         madd    $ac3,$4,$5
25423         maddu   $ac3,$4,$5
25424         msub    $ac3,$4,$5
25425         msubu   $ac3,$4,$5
25426         mult    $ac3,$4,$5
25427         multu   $ac3,$4,$5' > conftest.s
25428     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25429   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430   (eval $ac_try) 2>&5
25431   ac_status=$?
25432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433   test $ac_status = 0; }; }
25434     then
25435         gcc_cv_as_mips_dspr1_mult=yes
25436     else
25437       echo "configure: failed program was" >&5
25438       cat conftest.s >&5
25439     fi
25440     rm -f conftest.o conftest.s
25441   fi
25442 fi
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25444 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25445 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25446
25447 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25448
25449 fi
25450
25451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25452 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25453     gcc_cv_as_ld_jalr_reloc=no
25454     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25455       if test $in_tree_ld = yes ; then
25456         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 \
25457            && test $in_tree_ld_is_elf = yes; then
25458           gcc_cv_as_ld_jalr_reloc=yes
25459         fi
25460       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25461         echo '  .ent x' > conftest.s
25462         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25463         echo '  ld $25,%call16(y)($28)' >> conftest.s
25464         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25465         echo '1:        jalr $25' >> conftest.s
25466         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25467         echo '1:        jalr $25' >> conftest.s
25468         echo '  .end x' >> conftest.s
25469         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25470            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25471           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25472              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25473             gcc_cv_as_ld_jalr_reloc=yes
25474           fi
25475         fi
25476         rm -f conftest.*
25477       fi
25478     fi
25479     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25480       if test x$target_cpu_default = x; then
25481         target_cpu_default=MASK_RELAX_PIC_CALLS
25482       else
25483         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25484       fi
25485     fi
25486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25487 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25488
25489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25490 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25491 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25492   $as_echo_n "(cached) " >&6
25493 else
25494   gcc_cv_ld_mips_personality_relaxation=no
25495        if test $in_tree_ld = yes ; then
25496          if test "$gcc_cv_gld_major_version" -eq 2 \
25497                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25498                  -o "$gcc_cv_gld_major_version" -gt 2; then
25499            gcc_cv_ld_mips_personality_relaxation=yes
25500          fi
25501        elif test x$gcc_cv_as != x \
25502                  -a x$gcc_cv_ld != x \
25503                  -a x$gcc_cv_readelf != x ; then
25504          cat > conftest.s <<EOF
25505         .cfi_startproc
25506         .cfi_personality 0x80,indirect_ptr
25507         .ent test
25508 test:
25509         nop
25510         .end test
25511         .cfi_endproc
25512
25513         .section .data,"aw",@progbits
25514 indirect_ptr:
25515         .dc.a personality
25516 EOF
25517          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25518             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25519            if $gcc_cv_readelf -d conftest 2>&1 \
25520               | grep TEXTREL > /dev/null 2>&1; then
25521              :
25522            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25523                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25524              :
25525            else
25526              gcc_cv_ld_mips_personality_relaxation=yes
25527            fi
25528          fi
25529        fi
25530        rm -f conftest.s conftest.o conftest
25531 fi
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25533 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25534     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25535
25536 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25537
25538     fi
25539     ;;
25540 esac
25541
25542 # Mips and HP-UX need the GNU assembler.
25543 # Linux on IA64 might be able to use the Intel assembler.
25544
25545 case "$target" in
25546   mips*-*-* | *-*-hpux* )
25547     if test x$gas_flag = xyes \
25548        || test x"$host" != x"$build" \
25549        || test ! -x "$gcc_cv_as" \
25550        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25551       :
25552     else
25553       echo "*** This configuration requires the GNU assembler" >&2
25554       exit 1
25555     fi
25556     ;;
25557 esac
25558
25559 # ??? Not all targets support dwarf2 debug_line, even within a version
25560 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25561 # info to the output file.  So, as supported targets are added to gas 2.11,
25562 # add some instruction here to (also) show we expect this might work.
25563 # ??? Once 2.11 is released, probably need to add first known working
25564 # version to the per-target configury.
25565 case "$cpu_type" in
25566   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25567   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25568     insn="nop"
25569     ;;
25570   ia64 | s390)
25571     insn="nop 0"
25572     ;;
25573   mmix)
25574     insn="swym 0"
25575     ;;
25576 esac
25577 if test x"$insn" != x; then
25578  conftest_s="\
25579         .file 1 \"conftest.s\"
25580         .loc 1 3 0
25581         $insn"
25582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25583 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25584 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25585   $as_echo_n "(cached) " >&6
25586 else
25587   gcc_cv_as_dwarf2_debug_line=no
25588     if test $in_tree_gas = yes; then
25589     if test $in_tree_gas_is_elf = yes \
25590   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25591   then gcc_cv_as_dwarf2_debug_line=yes
25592 fi
25593   elif test x$gcc_cv_as != x; then
25594     $as_echo "$conftest_s" > conftest.s
25595     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25596   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25597   (eval $ac_try) 2>&5
25598   ac_status=$?
25599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25600   test $ac_status = 0; }; }
25601     then
25602         if test x$gcc_cv_objdump != x \
25603    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25604       | grep debug_line > /dev/null 2>&1; then
25605      gcc_cv_as_dwarf2_debug_line=yes
25606    fi
25607     else
25608       echo "configure: failed program was" >&5
25609       cat conftest.s >&5
25610     fi
25611     rm -f conftest.o conftest.s
25612   fi
25613 fi
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25615 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25616
25617
25618 # The .debug_line file table must be in the exact order that
25619 # we specified the files, since these indices are also used
25620 # by DW_AT_decl_file.  Approximate this test by testing if
25621 # the assembler bitches if the same index is assigned twice.
25622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25623 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25624 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25625   $as_echo_n "(cached) " >&6
25626 else
25627   gcc_cv_as_dwarf2_file_buggy=no
25628   if test x$gcc_cv_as != x; then
25629     $as_echo '  .file 1 "foo.s"
25630         .file 1 "bar.s"' > conftest.s
25631     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25632   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25633   (eval $ac_try) 2>&5
25634   ac_status=$?
25635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25636   test $ac_status = 0; }; }
25637     then
25638         gcc_cv_as_dwarf2_file_buggy=yes
25639     else
25640       echo "configure: failed program was" >&5
25641       cat conftest.s >&5
25642     fi
25643     rm -f conftest.o conftest.s
25644   fi
25645 fi
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25647 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25648
25649
25650  if test $gcc_cv_as_dwarf2_debug_line = yes \
25651  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25652
25653 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25654
25655  fi
25656
25657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25658 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25659 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25660   $as_echo_n "(cached) " >&6
25661 else
25662   gcc_cv_as_gdwarf2_flag=no
25663     if test $in_tree_gas = yes; then
25664     if test $in_tree_gas_is_elf = yes \
25665   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25666   then gcc_cv_as_gdwarf2_flag=yes
25667 fi
25668   elif test x$gcc_cv_as != x; then
25669     $as_echo "$insn" > conftest.s
25670     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25671   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25672   (eval $ac_try) 2>&5
25673   ac_status=$?
25674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25675   test $ac_status = 0; }; }
25676     then
25677         gcc_cv_as_gdwarf2_flag=yes
25678     else
25679       echo "configure: failed program was" >&5
25680       cat conftest.s >&5
25681     fi
25682     rm -f conftest.o conftest.s
25683   fi
25684 fi
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25686 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25687 if test $gcc_cv_as_gdwarf2_flag = yes; then
25688
25689 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25690
25691 fi
25692
25693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25694 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25695 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25696   $as_echo_n "(cached) " >&6
25697 else
25698   gcc_cv_as_gstabs_flag=no
25699     if test $in_tree_gas = yes; then
25700     if test $in_tree_gas_is_elf = yes \
25701   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25702   then gcc_cv_as_gstabs_flag=yes
25703 fi
25704   elif test x$gcc_cv_as != x; then
25705     $as_echo "$insn" > conftest.s
25706     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25707   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25708   (eval $ac_try) 2>&5
25709   ac_status=$?
25710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25711   test $ac_status = 0; }; }
25712     then
25713         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25714    # and warns about it, but still exits successfully.  So check for
25715    # this.
25716    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25717   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25718   (eval $ac_try) 2>&5
25719   ac_status=$?
25720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25721   test $ac_status = 0; }; }
25722    then :
25723    else gcc_cv_as_gstabs_flag=yes
25724    fi
25725     else
25726       echo "configure: failed program was" >&5
25727       cat conftest.s >&5
25728     fi
25729     rm -f conftest.o conftest.s
25730   fi
25731 fi
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25733 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25734 if test $gcc_cv_as_gstabs_flag = yes; then
25735
25736 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25737
25738 fi
25739
25740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25741 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25742 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25743   $as_echo_n "(cached) " >&6
25744 else
25745   gcc_cv_as_debug_prefix_map_flag=no
25746     if test $in_tree_gas = yes; then
25747     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25748   then gcc_cv_as_debug_prefix_map_flag=yes
25749 fi
25750   elif test x$gcc_cv_as != x; then
25751     $as_echo "$insn" > conftest.s
25752     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25753   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754   (eval $ac_try) 2>&5
25755   ac_status=$?
25756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757   test $ac_status = 0; }; }
25758     then
25759         gcc_cv_as_debug_prefix_map_flag=yes
25760     else
25761       echo "configure: failed program was" >&5
25762       cat conftest.s >&5
25763     fi
25764     rm -f conftest.o conftest.s
25765   fi
25766 fi
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25768 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25769 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25770
25771 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25772
25773 fi
25774 fi
25775
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25777 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25778 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25779   $as_echo_n "(cached) " >&6
25780 else
25781   gcc_cv_as_lcomm_with_alignment=no
25782   if test x$gcc_cv_as != x; then
25783     $as_echo '.lcomm bar,4,16' > 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_lcomm_with_alignment=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_lcomm_with_alignment" >&5
25800 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25801 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25802
25803 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25804
25805 fi
25806
25807 # Check whether --enable-gnu-unique-object was given.
25808 if test "${enable_gnu_unique_object+set}" = set; then :
25809   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25810     yes | no) ;;
25811     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25812 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25813   esac
25814 else
25815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25816 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25817 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25818   $as_echo_n "(cached) " >&6
25819 else
25820   gcc_cv_as_gnu_unique_object=no
25821     if test $in_tree_gas = yes; then
25822     if test $in_tree_gas_is_elf = yes \
25823   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25824   then gcc_cv_as_gnu_unique_object=yes
25825 fi
25826   elif test x$gcc_cv_as != x; then
25827     $as_echo '.type foo, @gnu_unique_object' > conftest.s
25828     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25829   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25830   (eval $ac_try) 2>&5
25831   ac_status=$?
25832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25833   test $ac_status = 0; }; }
25834     then
25835         gcc_cv_as_gnu_unique_object=yes
25836     else
25837       echo "configure: failed program was" >&5
25838       cat conftest.s >&5
25839     fi
25840     rm -f conftest.o conftest.s
25841   fi
25842 fi
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25844 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25845 if test $gcc_cv_as_gnu_unique_object = yes; then
25846   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25847    if test x$host = x$build -a x$host = x$target &&
25848        ldd --version 2>/dev/null &&
25849        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25850       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25851       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25852       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25853       if test "$glibcnum" -ge 2011 ; then
25854         enable_gnu_unique_object=yes
25855       fi
25856     fi
25857 fi
25858 fi
25859
25860 if test x$enable_gnu_unique_object = xyes; then
25861
25862 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25863
25864 fi
25865
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25867 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25868 if test "${gcc_cv_as_line_zero+set}" = set; then :
25869   $as_echo_n "(cached) " >&6
25870 else
25871   gcc_cv_as_line_zero=no
25872   if test $in_tree_gas = yes; then
25873     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25874   then gcc_cv_as_line_zero=yes
25875 fi
25876   elif test "x$gcc_cv_as" != x; then
25877     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25878     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25879   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25880   (eval $ac_try) 2>&5
25881   ac_status=$?
25882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25883   test $ac_status = 0; }; } &&
25884        test "x`cat conftest.out`" = x
25885     then
25886       gcc_cv_as_line_zero=yes
25887     else
25888       echo "configure: failed program was" >&5
25889       cat conftest.s >&5
25890       echo "configure: error output was" >&5
25891       cat conftest.out >&5
25892     fi
25893     rm -f conftest.o conftest.s conftest.out
25894   fi
25895 fi
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25897 $as_echo "$gcc_cv_as_line_zero" >&6; }
25898 if test "x$gcc_cv_as_line_zero" = xyes; then
25899
25900 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25901
25902 fi
25903
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25905 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25906 gcc_cv_ld_eh_frame_hdr=no
25907 if test $in_tree_ld = yes ; then
25908   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 \
25909      && test $in_tree_ld_is_elf = yes; then
25910     gcc_cv_ld_eh_frame_hdr=yes
25911   fi
25912 elif test x$gcc_cv_ld != x; then
25913   if echo "$ld_ver" | grep GNU > /dev/null; then
25914     # Check if linker supports --eh-frame-hdr option
25915     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25916       gcc_cv_ld_eh_frame_hdr=yes
25917     fi
25918   else
25919     case "$target" in
25920       *-*-solaris2*)
25921         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25922         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25923           gcc_cv_ld_eh_frame_hdr=yes
25924         fi
25925         ;;
25926     esac
25927   fi
25928 fi
25929
25930 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25931
25932 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25933
25934 fi
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25936 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25937
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25939 $as_echo_n "checking linker position independent executable support... " >&6; }
25940 gcc_cv_ld_pie=no
25941 if test $in_tree_ld = yes ; then
25942   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 \
25943      && test $in_tree_ld_is_elf = yes; then
25944     gcc_cv_ld_pie=yes
25945   fi
25946 elif test x$gcc_cv_ld != x; then
25947         # Check if linker supports -pie option
25948         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25949                 gcc_cv_ld_pie=yes
25950         fi
25951 fi
25952 if test x"$gcc_cv_ld_pie" = xyes; then
25953
25954 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25955
25956 fi
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25958 $as_echo "$gcc_cv_ld_pie" >&6; }
25959
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25961 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25962 gcc_cv_ld_eh_gc_sections=no
25963 if test $in_tree_ld = yes ; then
25964   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 \
25965      && test $in_tree_ld_is_elf = yes; then
25966     gcc_cv_ld_eh_gc_sections=yes
25967   fi
25968 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25969   cat > conftest.s <<EOF
25970         .section        .text
25971 .globl _start
25972         .type _start, @function
25973 _start:
25974         .long foo
25975         .size _start, .-_start
25976         .section        .text.foo,"ax",@progbits
25977         .type foo, @function
25978 foo:
25979         .long 0
25980         .size foo, .-foo
25981         .section        .gcc_except_table.foo,"a",@progbits
25982 .L0:
25983         .long 0
25984         .section        .eh_frame,"a",@progbits
25985         .long .L0
25986 EOF
25987   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25988     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25989          | grep "gc-sections option ignored" > /dev/null; then
25990       gcc_cv_ld_eh_gc_sections=no
25991     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25992          | grep gcc_except_table > /dev/null; then
25993       gcc_cv_ld_eh_gc_sections=yes
25994       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25995       if test x$gcc_cv_as_comdat_group != xyes; then
25996         gcc_cv_ld_eh_gc_sections=no
25997         cat > conftest.s <<EOF
25998         .section        .text
25999 .globl _start
26000         .type _start, @function
26001 _start:
26002         .long foo
26003         .size _start, .-_start
26004         .section        .gnu.linkonce.t.foo,"ax",@progbits
26005         .type foo, @function
26006 foo:
26007         .long 0
26008         .size foo, .-foo
26009         .section        .gcc_except_table.foo,"a",@progbits
26010 .L0:
26011         .long 0
26012         .section        .eh_frame,"a",@progbits
26013         .long .L0
26014 EOF
26015         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26016           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26017                | grep "gc-sections option ignored" > /dev/null; then
26018             gcc_cv_ld_eh_gc_sections=no
26019           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26020                | grep gcc_except_table > /dev/null; then
26021             gcc_cv_ld_eh_gc_sections=yes
26022           fi
26023         fi
26024       fi
26025     fi
26026   fi
26027   rm -f conftest.s conftest.o conftest
26028 fi
26029 case "$target" in
26030   hppa*-*-linux*)
26031     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26032     gcc_cv_ld_eh_gc_sections=no
26033     ;;
26034 esac
26035 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26036
26037 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26038
26039 fi
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26041 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26042
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26044 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26045 gcc_cv_ld_eh_gc_sections_bug=no
26046 if test $in_tree_ld = yes ; then
26047   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 \
26048      && test $in_tree_ld_is_elf = yes; then
26049     gcc_cv_ld_eh_gc_sections_bug=yes
26050   fi
26051 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
26052   gcc_cv_ld_eh_gc_sections_bug=yes
26053   cat > conftest.s <<EOF
26054         .section        .text
26055 .globl _start
26056         .type _start, @function
26057 _start:
26058         .long foo
26059         .size _start, .-_start
26060         .section        .text.startup.foo,"ax",@progbits
26061         .type foo, @function
26062 foo:
26063         .long 0
26064         .size foo, .-foo
26065         .section        .gcc_except_table.foo,"a",@progbits
26066 .L0:
26067         .long 0
26068         .section        .eh_frame,"a",@progbits
26069         .long .L0
26070 EOF
26071   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26072     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26073          | grep "gc-sections option ignored" > /dev/null; then
26074       :
26075     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26076          | grep gcc_except_table > /dev/null; then
26077       gcc_cv_ld_eh_gc_sections_bug=no
26078     fi
26079   fi
26080   rm -f conftest.s conftest.o conftest
26081 fi
26082 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26083
26084 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26085
26086 fi
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26088 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26089
26090 # --------
26091 # UNSORTED
26092 # --------
26093
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26095 $as_echo_n "checking linker --as-needed support... " >&6; }
26096 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26097   $as_echo_n "(cached) " >&6
26098 else
26099   gcc_cv_ld_as_needed=no
26100 if test $in_tree_ld = yes ; then
26101   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 \
26102      && test $in_tree_ld_is_elf = yes; then
26103     gcc_cv_ld_as_needed=yes
26104   fi
26105 elif test x$gcc_cv_ld != x; then
26106         # Check if linker supports --as-needed and --no-as-needed options
26107         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26108                 gcc_cv_ld_as_needed=yes
26109         fi
26110 fi
26111
26112 fi
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26114 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26115 if test x"$gcc_cv_ld_as_needed" = xyes; then
26116
26117 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26118
26119 fi
26120
26121 case "$target:$tm_file" in
26122   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26124 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26125 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26126   $as_echo_n "(cached) " >&6
26127 else
26128   gcc_cv_ld_no_dot_syms=no
26129     if test $in_tree_ld = yes ; then
26130       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
26131         gcc_cv_ld_no_dot_syms=yes
26132       fi
26133     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26134       cat > conftest1.s <<EOF
26135         .text
26136         bl .foo
26137 EOF
26138       cat > conftest2.s <<EOF
26139         .section ".opd","aw"
26140         .align 3
26141         .globl foo
26142         .type foo,@function
26143 foo:
26144         .quad .LEfoo,.TOC.@tocbase,0
26145         .text
26146 .LEfoo:
26147         blr
26148         .size foo,.-.LEfoo
26149 EOF
26150       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26151          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26152          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26153         gcc_cv_ld_no_dot_syms=yes
26154       fi
26155       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26156     fi
26157
26158 fi
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26160 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26161     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26162
26163 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26164
26165     fi
26166
26167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26168 $as_echo_n "checking linker large toc support... " >&6; }
26169 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26170   $as_echo_n "(cached) " >&6
26171 else
26172   gcc_cv_ld_large_toc=no
26173     if test $in_tree_ld = yes ; then
26174       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
26175         gcc_cv_ld_large_toc=yes
26176       fi
26177     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26178       cat > conftest.s <<EOF
26179         .section ".tbss","awT",@nobits
26180         .align 3
26181 ie0:    .space 8
26182         .global _start
26183         .text
26184 _start:
26185         addis 9,13,ie0@got@tprel@ha
26186         ld 9,ie0@got@tprel@l(9)
26187 EOF
26188       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26189          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26190         gcc_cv_ld_large_toc=yes
26191       fi
26192       rm -f conftest conftest.o conftest.s
26193     fi
26194
26195 fi
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26197 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26198     if test x"$gcc_cv_ld_large_toc" = xyes; then
26199
26200 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26201
26202     fi
26203     ;;
26204 esac
26205
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26207 $as_echo_n "checking linker --build-id support... " >&6; }
26208 if test "${gcc_cv_ld_buildid+set}" = set; then :
26209   $as_echo_n "(cached) " >&6
26210 else
26211   gcc_cv_ld_buildid=no
26212   if test $in_tree_ld = yes ; then
26213     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26214        "$gcc_cv_gld_minor_version" -ge 18 -o \
26215        "$gcc_cv_gld_major_version" -gt 2 \
26216        && test $in_tree_ld_is_elf = yes; then
26217       gcc_cv_ld_buildid=yes
26218     fi
26219   elif test x$gcc_cv_ld != x; then
26220     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26221       gcc_cv_ld_buildid=yes
26222     fi
26223   fi
26224 fi
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26226 $as_echo "$gcc_cv_ld_buildid" >&6; }
26227 if test x"$gcc_cv_ld_buildid" = xyes; then
26228
26229 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26230
26231 fi
26232
26233 # Check whether --enable-linker-build-id was given.
26234 if test "${enable_linker_build_id+set}" = set; then :
26235   enableval=$enable_linker_build_id;
26236 else
26237   enable_linker_build_id=no
26238 fi
26239
26240
26241 if test x"$enable_linker_build_id" = xyes; then
26242   if test x"$gcc_cv_ld_buildid" = xyes; then
26243
26244 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26245
26246   else
26247     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26248 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26249   fi
26250 fi
26251
26252 # In binutils 2.21, GNU ld gained support for new emulations fully
26253 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26255 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26256 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26257   $as_echo_n "(cached) " >&6
26258 else
26259   gcc_cv_ld_sol2_emulation=no
26260   if test $in_tree_ld = yes ; then
26261     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26262        "$gcc_cv_gld_minor_version" -ge 21 -o \
26263        "$gcc_cv_gld_major_version" -gt 2 \
26264        && test $in_tree_ld_is_elf = yes; then
26265       gcc_cv_ld_sol2_emulation=yes
26266     fi
26267   elif test x$gcc_cv_ld != x; then
26268     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26269        grep _sol2 > /dev/null; then
26270       gcc_cv_ld_sol2_emulation=yes
26271     fi
26272   fi
26273 fi
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26275 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26276 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26277
26278 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26279
26280 fi
26281
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26283 $as_echo_n "checking linker --sysroot support... " >&6; }
26284 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26285   $as_echo_n "(cached) " >&6
26286 else
26287   gcc_cv_ld_sysroot=no
26288   if test $in_tree_ld = yes ; then
26289       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
26290         gcc_cv_ld_sysroot=yes
26291       fi
26292   elif test x$gcc_cv_ld != x; then
26293     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26294       gcc_cv_ld_sysroot=yes
26295     fi
26296   fi
26297 fi
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26299 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26300 if test x"$gcc_cv_ld_sysroot" = xyes; then
26301
26302 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26303
26304 fi
26305
26306 if test x$with_sysroot = x && test x$host = x$target \
26307    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26308    && test "$prefix" != "NONE"; then
26309
26310 cat >>confdefs.h <<_ACEOF
26311 #define PREFIX_INCLUDE_DIR "$prefix/include"
26312 _ACEOF
26313
26314 fi
26315
26316 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26317   if test "x$with_headers" != x; then
26318     target_header_dir=$with_headers
26319   elif test "x$with_sysroot" = x; then
26320     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26321   elif test "x$with_build_sysroot" != "x"; then
26322     target_header_dir="${with_build_sysroot}/usr/include"
26323   elif test "x$with_sysroot" = xyes; then
26324     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26325   else
26326     target_header_dir="${with_sysroot}/usr/include"
26327   fi
26328 else
26329   target_header_dir=/usr/include
26330 fi
26331
26332 # Test for stack protector support in target C library.
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26334 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26335 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26336   $as_echo_n "(cached) " >&6
26337 else
26338   gcc_cv_libc_provides_ssp=no
26339     case "$target" in
26340        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26341       # glibc 2.4 and later provides __stack_chk_fail and
26342       # either __stack_chk_guard, or TLS access to stack guard canary.
26343       if test -f $target_header_dir/features.h \
26344          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26345             $target_header_dir/features.h > /dev/null; then
26346         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26347            $target_header_dir/features.h > /dev/null; then
26348           gcc_cv_libc_provides_ssp=yes
26349         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26350              $target_header_dir/features.h > /dev/null \
26351              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26352              $target_header_dir/features.h > /dev/null; then
26353           gcc_cv_libc_provides_ssp=yes
26354         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26355              $target_header_dir/features.h > /dev/null && \
26356              test -f $target_header_dir/bits/uClibc_config.h && \
26357              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26358              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26359           gcc_cv_libc_provides_ssp=yes
26360         fi
26361       fi
26362         ;;
26363        *-*-gnu*)
26364          # Avoid complicated tests (see
26365          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26366          # simply assert that glibc does provide this, which is true for all
26367          # realistically usable GNU/Hurd configurations.
26368          gcc_cv_libc_provides_ssp=yes;;
26369        *-*-darwin* | *-*-freebsd*)
26370          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26371 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26372   gcc_cv_libc_provides_ssp=yes
26373 else
26374   echo "no __stack_chk_fail on this target"
26375 fi
26376
26377         ;;
26378   *) gcc_cv_libc_provides_ssp=no ;;
26379     esac
26380 fi
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26382 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26383
26384 if test x$gcc_cv_libc_provides_ssp = xyes; then
26385
26386 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26387
26388 fi
26389
26390 # Test for <sys/sdt.h> on the target.
26391
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26393 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26394 have_sys_sdt_h=no
26395 if test -f $target_header_dir/sys/sdt.h; then
26396
26397 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26398
26399 fi
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26401 $as_echo "$have_sys_sdt_h" >&6; }
26402
26403 # Check if TFmode long double should be used by default or not.
26404 # Some glibc targets used DFmode long double, but with glibc 2.4
26405 # and later they can use TFmode.
26406 case "$target" in
26407   powerpc*-*-linux* | \
26408   sparc*-*-linux* | \
26409   s390*-*-linux* | \
26410   alpha*-*-linux*)
26411
26412 # Check whether --with-long-double-128 was given.
26413 if test "${with_long_double_128+set}" = set; then :
26414   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26415 else
26416   gcc_cv_target_ldbl128=no
26417       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26418         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26419       && gcc_cv_target_ldbl128=yes
26420
26421 fi
26422
26423     ;;
26424 esac
26425 if test x$gcc_cv_target_ldbl128 = xyes; then
26426
26427 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26428
26429 fi
26430
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26432 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26433 gcc_cv_target_dl_iterate_phdr=unknown
26434 case "$target" in
26435   *-*-solaris2*)
26436     # <link.h> needs both a dl_iterate_phdr declaration and support for
26437     # compilation with largefile support.
26438     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26439       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26440       gcc_cv_target_dl_iterate_phdr=yes
26441     else
26442       gcc_cv_target_dl_iterate_phdr=no
26443     fi
26444     ;;
26445 esac
26446
26447 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26448
26449 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26450
26451 fi
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26453 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26454
26455 # Find out what GC implementation we want, or may, use.
26456
26457 # Check whether --with-gc was given.
26458 if test "${with_gc+set}" = set; then :
26459   withval=$with_gc; case "$withval" in
26460   page)
26461     GGC=ggc-$withval
26462     ;;
26463   zone)
26464     GGC=ggc-$withval
26465
26466 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26467
26468     ;;
26469   *)
26470     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26471     ;;
26472 esac
26473 else
26474   GGC=ggc-page
26475 fi
26476
26477
26478 echo "Using $GGC for garbage collection."
26479
26480 # Libraries to use on the host.  This will normally be set by the top
26481 # level Makefile.  Here we simply capture the value for our Makefile.
26482 if test -z "${HOST_LIBS+set}"; then
26483   HOST_LIBS=
26484 fi
26485
26486
26487 # Use the system's zlib library.
26488 zlibdir=-L../zlib
26489 zlibinc="-I\$(srcdir)/../zlib"
26490
26491 # Check whether --with-system-zlib was given.
26492 if test "${with_system_zlib+set}" = set; then :
26493   withval=$with_system_zlib; zlibdir=
26494 zlibinc=
26495
26496 fi
26497
26498
26499
26500
26501
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26503 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26504     # Check whether --enable-maintainer-mode was given.
26505 if test "${enable_maintainer_mode+set}" = set; then :
26506   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26507 else
26508   maintainer_mode=no
26509 fi
26510
26511
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26513 $as_echo "$maintainer_mode" >&6; }
26514
26515 if test "$maintainer_mode" = "yes"; then
26516   MAINT=''
26517 else
26518   MAINT='#'
26519 fi
26520
26521 # --------------
26522 # Language hooks
26523 # --------------
26524
26525 # Make empty files to contain the specs and options for each language.
26526 # Then add #include lines to for a compiler that has specs and/or options.
26527
26528 subdirs=
26529 lang_opt_files=
26530 lang_specs_files=
26531 lang_tree_files=
26532 # These (without "all_") are set in each config-lang.in.
26533 # `language' must be a single word so is spelled singularly.
26534 all_languages=
26535 all_compilers=
26536 all_outputs='Makefile'
26537 # List of language makefile fragments.
26538 all_lang_makefrags=
26539 # Additional files for gengtype
26540 all_gtfiles="$target_gtfiles"
26541
26542 # These are the languages that are set in --enable-languages,
26543 # and are available in the GCC tree.
26544 all_selected_languages=
26545
26546 # Add the language fragments.
26547 # Languages are added via two mechanisms.  Some information must be
26548 # recorded in makefile variables, these are defined in config-lang.in.
26549 # We accumulate them and plug them into the main Makefile.
26550 # The other mechanism is a set of hooks for each of the main targets
26551 # like `clean', `install', etc.
26552
26553 language_hooks="Make-hooks"
26554
26555 for lang in ${srcdir}/*/config-lang.in
26556 do
26557         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26558
26559         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26560         if test "x$lang_alias" = x
26561         then
26562               echo "$lang doesn't set \$language." 1>&2
26563               exit 1
26564         fi
26565         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26566         subdirs="$subdirs $subdir"
26567
26568         # $gcc_subdir is where the gcc integration files are to be found
26569         # for a language, both for internal compiler purposes (compiler
26570         # sources implementing front-end to GCC tree converters), and for
26571         # build infrastructure purposes (Make-lang.in, etc.)
26572         #
26573         # This will be <subdir> (relative to $srcdir) if a line like
26574         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26575         # is found in <langdir>/config-lang.in, and will remain <langdir>
26576         # otherwise.
26577         #
26578         # Except for the language alias (fetched above), the regular
26579         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26580         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26581         # only this and the language alias.
26582
26583         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26584         if [ "$gcc_subdir" = "" ]; then
26585            gcc_subdir="$subdir"
26586         fi
26587
26588         case ",$enable_languages," in
26589         *,$lang_alias,*)
26590             all_selected_languages="$all_selected_languages $lang_alias"
26591             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26592                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26593             fi
26594             ;;
26595         esac
26596
26597         language=
26598         boot_language=
26599         compilers=
26600         outputs=
26601         gtfiles=
26602         subdir_requires=
26603         . ${srcdir}/$gcc_subdir/config-lang.in
26604         if test "x$language" = x
26605         then
26606                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26607                 exit 1
26608         fi
26609
26610         ok=:
26611         case ",$enable_languages," in
26612                 *,$lang_alias,*) ;;
26613                 *)
26614                         for i in $subdir_requires; do
26615                                 test -f "${srcdir}/$i/config-lang.in" && continue
26616                                 ok=false
26617                                 break
26618                         done
26619                 ;;
26620         esac
26621         $ok || continue
26622
26623         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26624         if test -f $srcdir/$gcc_subdir/lang.opt; then
26625             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26626             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26627         fi
26628         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26629             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26630         fi
26631         all_languages="$all_languages $language"
26632         all_compilers="$all_compilers $compilers"
26633         all_outputs="$all_outputs $outputs"
26634         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26635         case ",$enable_languages," in
26636                 *,lto,*)
26637
26638 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26639
26640                     enable_lto=yes
26641
26642                     ;;
26643                 *) ;;
26644         esac
26645 done
26646
26647 # Pick up gtfiles for c
26648 gtfiles=
26649 . ${srcdir}/c-config-lang.in
26650 all_gtfiles="$all_gtfiles [c] $gtfiles"
26651
26652 check_languages=
26653 for language in $all_selected_languages
26654 do
26655         check_languages="$check_languages check-$language"
26656 done
26657
26658 # We link each language in with a set of hooks, reached indirectly via
26659 # lang.${target}.  Only do so for selected languages.
26660
26661 rm -f Make-hooks
26662 touch Make-hooks
26663 target_list="all.cross start.encap rest.encap tags \
26664         install-common install-man install-info install-pdf install-html dvi \
26665         pdf html uninstall info man srcextra srcman srcinfo \
26666         mostlyclean clean distclean maintainer-clean install-plugin"
26667
26668 for t in $target_list
26669 do
26670         x=
26671         for lang in $all_selected_languages
26672         do
26673                 x="$x $lang.$t"
26674         done
26675         echo "lang.$t: $x" >> Make-hooks
26676 done
26677
26678 # --------
26679 # Option include files
26680 # --------
26681
26682 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26683 option_includes="option-includes.mk"
26684
26685
26686 # --------
26687 # UNSORTED
26688 # --------
26689
26690 # Create .gdbinit.
26691
26692 echo "dir ." > .gdbinit
26693 echo "dir ${srcdir}" >> .gdbinit
26694 if test x$gdb_needs_out_file_path = xyes
26695 then
26696         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26697 fi
26698 if test "x$subdirs" != x; then
26699         for s in $subdirs
26700         do
26701                 echo "dir ${srcdir}/$s" >> .gdbinit
26702         done
26703 fi
26704 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26705
26706 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26707
26708
26709
26710 # Find a directory in which to install a shared libgcc.
26711
26712 # Check whether --enable-version-specific-runtime-libs was given.
26713 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26714   enableval=$enable_version_specific_runtime_libs;
26715 fi
26716
26717
26718
26719 # Check whether --with-slibdir was given.
26720 if test "${with_slibdir+set}" = set; then :
26721   withval=$with_slibdir; slibdir="$with_slibdir"
26722 else
26723   if test "${enable_version_specific_runtime_libs+set}" = set; then
26724   slibdir='$(libsubdir)'
26725 elif test "$host" != "$target"; then
26726   slibdir='$(build_tooldir)/lib'
26727 else
26728   slibdir='$(libdir)'
26729 fi
26730 fi
26731
26732
26733
26734 # Substitute configuration variables
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801 # Echo link setup.
26802 if test x${build} = x${host} ; then
26803   if test x${host} = x${target} ; then
26804     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26805   else
26806     echo "Links are now set up to build a cross-compiler" 1>&2
26807     echo " from ${host} to ${target}." 1>&2
26808   fi
26809 else
26810   if test x${host} = x${target} ; then
26811     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26812     echo " for ${target}." 1>&2
26813   else
26814     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26815     echo " from ${host} to ${target}." 1>&2
26816   fi
26817 fi
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827 if test "x${CLOOGLIBS}" != "x" ; then
26828
26829 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26830
26831 fi
26832
26833 # Check for plugin support
26834 # Check whether --enable-plugin was given.
26835 if test "${enable_plugin+set}" = set; then :
26836   enableval=$enable_plugin; enable_plugin=$enableval
26837 else
26838   enable_plugin=yes; default_plugin=yes
26839 fi
26840
26841
26842 pluginlibs=
26843
26844 case "${host}" in
26845   *-*-darwin*)
26846     if test x$build = x$host; then
26847       export_sym_check="nm${exeext} -g"
26848     elif test x$host = x$target; then
26849       export_sym_check="$gcc_cv_nm -g"
26850     else
26851       export_sym_check=
26852     fi
26853   ;;
26854   *)
26855     if test x$build = x$host; then
26856       export_sym_check="objdump${exeext} -T"
26857     elif test x$host = x$target; then
26858       export_sym_check="$gcc_cv_objdump -T"
26859     else
26860       export_sym_check=
26861     fi
26862   ;;
26863 esac
26864
26865 if test x"$enable_plugin" = x"yes"; then
26866
26867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26868 $as_echo_n "checking for exported symbols... " >&6; }
26869   if test "x$export_sym_check" != x; then
26870     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26871     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26872     if $export_sym_check conftest | grep foobar > /dev/null; then
26873       : # No need to use a flag
26874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26875 $as_echo "yes" >&6; }
26876     else
26877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26878 $as_echo "yes" >&6; }
26879       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26880 $as_echo_n "checking for -rdynamic... " >&6; }
26881       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26882       if $export_sym_check conftest | grep foobar > /dev/null; then
26883         plugin_rdynamic=yes
26884         pluginlibs="-rdynamic"
26885       else
26886         plugin_rdynamic=no
26887         enable_plugin=no
26888       fi
26889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26890 $as_echo "$plugin_rdynamic" >&6; }
26891     fi
26892   else
26893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26894 $as_echo "unable to check" >&6; }
26895   fi
26896
26897   # Check -ldl
26898   saved_LIBS="$LIBS"
26899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26900 $as_echo_n "checking for library containing dlopen... " >&6; }
26901 if test "${ac_cv_search_dlopen+set}" = set; then :
26902   $as_echo_n "(cached) " >&6
26903 else
26904   ac_func_search_save_LIBS=$LIBS
26905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26906 /* end confdefs.h.  */
26907
26908 /* Override any GCC internal prototype to avoid an error.
26909    Use char because int might match the return type of a GCC
26910    builtin and then its argument prototype would still apply.  */
26911 #ifdef __cplusplus
26912 extern "C"
26913 #endif
26914 char dlopen ();
26915 int
26916 main ()
26917 {
26918 return dlopen ();
26919   ;
26920   return 0;
26921 }
26922 _ACEOF
26923 for ac_lib in '' dl; do
26924   if test -z "$ac_lib"; then
26925     ac_res="none required"
26926   else
26927     ac_res=-l$ac_lib
26928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26929   fi
26930   if ac_fn_c_try_link "$LINENO"; then :
26931   ac_cv_search_dlopen=$ac_res
26932 fi
26933 rm -f core conftest.err conftest.$ac_objext \
26934     conftest$ac_exeext
26935   if test "${ac_cv_search_dlopen+set}" = set; then :
26936   break
26937 fi
26938 done
26939 if test "${ac_cv_search_dlopen+set}" = set; then :
26940
26941 else
26942   ac_cv_search_dlopen=no
26943 fi
26944 rm conftest.$ac_ext
26945 LIBS=$ac_func_search_save_LIBS
26946 fi
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26948 $as_echo "$ac_cv_search_dlopen" >&6; }
26949 ac_res=$ac_cv_search_dlopen
26950 if test "$ac_res" != no; then :
26951   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26952
26953 fi
26954
26955   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26956     pluginlibs="$pluginlibs -ldl"
26957   fi
26958   LIBS="$saved_LIBS"
26959
26960   # Check that we can build shared objects with -fPIC -shared
26961   saved_LDFLAGS="$LDFLAGS"
26962   saved_CFLAGS="$CFLAGS"
26963   case "${host}" in
26964     *-*-darwin*)
26965       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26966       CFLAGS="$CFLAGS -fPIC"
26967       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26968     ;;
26969     *)
26970       CFLAGS="$CFLAGS -fPIC"
26971       LDFLAGS="$LDFLAGS -fPIC -shared"
26972     ;;
26973   esac
26974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26975 $as_echo_n "checking for -fPIC -shared... " >&6; }
26976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26977 /* end confdefs.h.  */
26978 extern int X;
26979 int
26980 main ()
26981 {
26982 return X == 0;
26983   ;
26984   return 0;
26985 }
26986 _ACEOF
26987 if ac_fn_c_try_link "$LINENO"; then :
26988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26989 $as_echo "yes" >&6; }; have_pic_shared=yes
26990 else
26991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26992 $as_echo "no" >&6; }; have_pic_shared=no
26993 fi
26994 rm -f core conftest.err conftest.$ac_objext \
26995     conftest$ac_exeext conftest.$ac_ext
26996   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26997     pluginlibs=
26998     enable_plugin=no
26999   fi
27000   LDFLAGS="$saved_LDFLAGS"
27001   CFLAGS="$saved_CFLAGS"
27002
27003   # If plugin support had been requested but not available, fail.
27004   if test x"$enable_plugin" = x"no" ; then
27005     if test x"$default_plugin" != x"yes"; then
27006       as_fn_error "
27007 Building GCC with plugin support requires a host that supports
27008 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27009     fi
27010   fi
27011 fi
27012
27013
27014
27015 if test x"$enable_plugin" = x"yes"; then
27016
27017 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27018
27019 fi
27020
27021
27022 # Check whether --enable-libquadmath-support was given.
27023 if test "${enable_libquadmath_support+set}" = set; then :
27024   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27025 else
27026   ENABLE_LIBQUADMATH_SUPPORT=yes
27027 fi
27028
27029 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27030
27031 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27032
27033 fi
27034
27035
27036 # Specify what hash style to use by default.
27037
27038 # Check whether --with-linker-hash-style was given.
27039 if test "${with_linker_hash_style+set}" = set; then :
27040   withval=$with_linker_hash_style; case x"$withval" in
27041    xsysv)
27042      LINKER_HASH_STYLE=sysv
27043      ;;
27044    xgnu)
27045      LINKER_HASH_STYLE=gnu
27046      ;;
27047    xboth)
27048      LINKER_HASH_STYLE=both
27049      ;;
27050    *)
27051      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27052      ;;
27053  esac
27054 else
27055   LINKER_HASH_STYLE=''
27056 fi
27057
27058 if test x"${LINKER_HASH_STYLE}" != x; then
27059
27060 cat >>confdefs.h <<_ACEOF
27061 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27062 _ACEOF
27063
27064 fi
27065
27066 # Configure the subdirectories
27067 # AC_CONFIG_SUBDIRS($subdirs)
27068
27069 # Create the Makefile
27070 # and configure language subdirectories
27071 ac_config_files="$ac_config_files $all_outputs"
27072
27073
27074 ac_config_commands="$ac_config_commands default"
27075
27076 cat >confcache <<\_ACEOF
27077 # This file is a shell script that caches the results of configure
27078 # tests run on this system so they can be shared between configure
27079 # scripts and configure runs, see configure's option --config-cache.
27080 # It is not useful on other systems.  If it contains results you don't
27081 # want to keep, you may remove or edit it.
27082 #
27083 # config.status only pays attention to the cache file if you give it
27084 # the --recheck option to rerun configure.
27085 #
27086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27088 # following values.
27089
27090 _ACEOF
27091
27092 # The following way of writing the cache mishandles newlines in values,
27093 # but we know of no workaround that is simple, portable, and efficient.
27094 # So, we kill variables containing newlines.
27095 # Ultrix sh set writes to stderr and can't be redirected directly,
27096 # and sets the high bit in the cache file unless we assign to the vars.
27097 (
27098   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27099     eval ac_val=\$$ac_var
27100     case $ac_val in #(
27101     *${as_nl}*)
27102       case $ac_var in #(
27103       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27105       esac
27106       case $ac_var in #(
27107       _ | IFS | as_nl) ;; #(
27108       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27109       *) { eval $ac_var=; unset $ac_var;} ;;
27110       esac ;;
27111     esac
27112   done
27113
27114   (set) 2>&1 |
27115     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27116     *${as_nl}ac_space=\ *)
27117       # `set' does not quote correctly, so add quotes: double-quote
27118       # substitution turns \\\\ into \\, and sed turns \\ into \.
27119       sed -n \
27120         "s/'/'\\\\''/g;
27121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27122       ;; #(
27123     *)
27124       # `set' quotes correctly as required by POSIX, so do not add quotes.
27125       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27126       ;;
27127     esac |
27128     sort
27129 ) |
27130   sed '
27131      /^ac_cv_env_/b end
27132      t clear
27133      :clear
27134      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27135      t end
27136      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27137      :end' >>confcache
27138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27139   if test -w "$cache_file"; then
27140     test "x$cache_file" != "x/dev/null" &&
27141       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27142 $as_echo "$as_me: updating cache $cache_file" >&6;}
27143     cat confcache >$cache_file
27144   else
27145     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27147   fi
27148 fi
27149 rm -f confcache
27150
27151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27152 # Let make expand exec_prefix.
27153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27154
27155 DEFS=-DHAVE_CONFIG_H
27156
27157 ac_libobjs=
27158 ac_ltlibobjs=
27159 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27160   # 1. Remove the extension, and $U if already installed.
27161   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27162   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27163   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27164   #    will be set to the directory where LIBOBJS objects are built.
27165   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27166   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27167 done
27168 LIBOBJS=$ac_libobjs
27169
27170 LTLIBOBJS=$ac_ltlibobjs
27171
27172
27173
27174
27175 : ${CONFIG_STATUS=./config.status}
27176 ac_write_fail=0
27177 ac_clean_files_save=$ac_clean_files
27178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27181 as_write_fail=0
27182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27183 #! $SHELL
27184 # Generated by $as_me.
27185 # Run this file to recreate the current configuration.
27186 # Compiler output produced by configure, useful for debugging
27187 # configure, is in config.log if it exists.
27188
27189 debug=false
27190 ac_cs_recheck=false
27191 ac_cs_silent=false
27192
27193 SHELL=\${CONFIG_SHELL-$SHELL}
27194 export SHELL
27195 _ASEOF
27196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27197 ## -------------------- ##
27198 ## M4sh Initialization. ##
27199 ## -------------------- ##
27200
27201 # Be more Bourne compatible
27202 DUALCASE=1; export DUALCASE # for MKS sh
27203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27204   emulate sh
27205   NULLCMD=:
27206   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27207   # is contrary to our usage.  Disable this feature.
27208   alias -g '${1+"$@"}'='"$@"'
27209   setopt NO_GLOB_SUBST
27210 else
27211   case `(set -o) 2>/dev/null` in #(
27212   *posix*) :
27213     set -o posix ;; #(
27214   *) :
27215      ;;
27216 esac
27217 fi
27218
27219
27220 as_nl='
27221 '
27222 export as_nl
27223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27227 # Prefer a ksh shell builtin over an external printf program on Solaris,
27228 # but without wasting forks for bash or zsh.
27229 if test -z "$BASH_VERSION$ZSH_VERSION" \
27230     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27231   as_echo='print -r --'
27232   as_echo_n='print -rn --'
27233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27234   as_echo='printf %s\n'
27235   as_echo_n='printf %s'
27236 else
27237   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27238     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27239     as_echo_n='/usr/ucb/echo -n'
27240   else
27241     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27242     as_echo_n_body='eval
27243       arg=$1;
27244       case $arg in #(
27245       *"$as_nl"*)
27246         expr "X$arg" : "X\\(.*\\)$as_nl";
27247         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27248       esac;
27249       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27250     '
27251     export as_echo_n_body
27252     as_echo_n='sh -c $as_echo_n_body as_echo'
27253   fi
27254   export as_echo_body
27255   as_echo='sh -c $as_echo_body as_echo'
27256 fi
27257
27258 # The user is always right.
27259 if test "${PATH_SEPARATOR+set}" != set; then
27260   PATH_SEPARATOR=:
27261   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27262     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27263       PATH_SEPARATOR=';'
27264   }
27265 fi
27266
27267
27268 # IFS
27269 # We need space, tab and new line, in precisely that order.  Quoting is
27270 # there to prevent editors from complaining about space-tab.
27271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27272 # splitting by setting IFS to empty value.)
27273 IFS=" ""        $as_nl"
27274
27275 # Find who we are.  Look in the path if we contain no directory separator.
27276 case $0 in #((
27277   *[\\/]* ) as_myself=$0 ;;
27278   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27279 for as_dir in $PATH
27280 do
27281   IFS=$as_save_IFS
27282   test -z "$as_dir" && as_dir=.
27283     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27284   done
27285 IFS=$as_save_IFS
27286
27287      ;;
27288 esac
27289 # We did not find ourselves, most probably we were run as `sh COMMAND'
27290 # in which case we are not to be found in the path.
27291 if test "x$as_myself" = x; then
27292   as_myself=$0
27293 fi
27294 if test ! -f "$as_myself"; then
27295   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27296   exit 1
27297 fi
27298
27299 # Unset variables that we do not need and which cause bugs (e.g. in
27300 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27301 # suppresses any "Segmentation fault" message there.  '((' could
27302 # trigger a bug in pdksh 5.2.14.
27303 for as_var in BASH_ENV ENV MAIL MAILPATH
27304 do eval test x\${$as_var+set} = xset \
27305   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27306 done
27307 PS1='$ '
27308 PS2='> '
27309 PS4='+ '
27310
27311 # NLS nuisances.
27312 LC_ALL=C
27313 export LC_ALL
27314 LANGUAGE=C
27315 export LANGUAGE
27316
27317 # CDPATH.
27318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27319
27320
27321 # as_fn_error ERROR [LINENO LOG_FD]
27322 # ---------------------------------
27323 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27324 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27325 # script with status $?, using 1 if that was 0.
27326 as_fn_error ()
27327 {
27328   as_status=$?; test $as_status -eq 0 && as_status=1
27329   if test "$3"; then
27330     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27331     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27332   fi
27333   $as_echo "$as_me: error: $1" >&2
27334   as_fn_exit $as_status
27335 } # as_fn_error
27336
27337
27338 # as_fn_set_status STATUS
27339 # -----------------------
27340 # Set $? to STATUS, without forking.
27341 as_fn_set_status ()
27342 {
27343   return $1
27344 } # as_fn_set_status
27345
27346 # as_fn_exit STATUS
27347 # -----------------
27348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27349 as_fn_exit ()
27350 {
27351   set +e
27352   as_fn_set_status $1
27353   exit $1
27354 } # as_fn_exit
27355
27356 # as_fn_unset VAR
27357 # ---------------
27358 # Portably unset VAR.
27359 as_fn_unset ()
27360 {
27361   { eval $1=; unset $1;}
27362 }
27363 as_unset=as_fn_unset
27364 # as_fn_append VAR VALUE
27365 # ----------------------
27366 # Append the text in VALUE to the end of the definition contained in VAR. Take
27367 # advantage of any shell optimizations that allow amortized linear growth over
27368 # repeated appends, instead of the typical quadratic growth present in naive
27369 # implementations.
27370 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27371   eval 'as_fn_append ()
27372   {
27373     eval $1+=\$2
27374   }'
27375 else
27376   as_fn_append ()
27377   {
27378     eval $1=\$$1\$2
27379   }
27380 fi # as_fn_append
27381
27382 # as_fn_arith ARG...
27383 # ------------------
27384 # Perform arithmetic evaluation on the ARGs, and store the result in the
27385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27386 # must be portable across $(()) and expr.
27387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27388   eval 'as_fn_arith ()
27389   {
27390     as_val=$(( $* ))
27391   }'
27392 else
27393   as_fn_arith ()
27394   {
27395     as_val=`expr "$@" || test $? -eq 1`
27396   }
27397 fi # as_fn_arith
27398
27399
27400 if expr a : '\(a\)' >/dev/null 2>&1 &&
27401    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27402   as_expr=expr
27403 else
27404   as_expr=false
27405 fi
27406
27407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27408   as_basename=basename
27409 else
27410   as_basename=false
27411 fi
27412
27413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27414   as_dirname=dirname
27415 else
27416   as_dirname=false
27417 fi
27418
27419 as_me=`$as_basename -- "$0" ||
27420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27421          X"$0" : 'X\(//\)$' \| \
27422          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27423 $as_echo X/"$0" |
27424     sed '/^.*\/\([^/][^/]*\)\/*$/{
27425             s//\1/
27426             q
27427           }
27428           /^X\/\(\/\/\)$/{
27429             s//\1/
27430             q
27431           }
27432           /^X\/\(\/\).*/{
27433             s//\1/
27434             q
27435           }
27436           s/.*/./; q'`
27437
27438 # Avoid depending upon Character Ranges.
27439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27442 as_cr_digits='0123456789'
27443 as_cr_alnum=$as_cr_Letters$as_cr_digits
27444
27445 ECHO_C= ECHO_N= ECHO_T=
27446 case `echo -n x` in #(((((
27447 -n*)
27448   case `echo 'xy\c'` in
27449   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27450   xy)  ECHO_C='\c';;
27451   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27452        ECHO_T=' ';;
27453   esac;;
27454 *)
27455   ECHO_N='-n';;
27456 esac
27457
27458 rm -f conf$$ conf$$.exe conf$$.file
27459 if test -d conf$$.dir; then
27460   rm -f conf$$.dir/conf$$.file
27461 else
27462   rm -f conf$$.dir
27463   mkdir conf$$.dir 2>/dev/null
27464 fi
27465 if (echo >conf$$.file) 2>/dev/null; then
27466   if ln -s conf$$.file conf$$ 2>/dev/null; then
27467     as_ln_s='ln -s'
27468     # ... but there are two gotchas:
27469     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27470     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27471     # In both cases, we have to default to `cp -p'.
27472     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27473       as_ln_s='cp -p'
27474   elif ln conf$$.file conf$$ 2>/dev/null; then
27475     as_ln_s=ln
27476   else
27477     as_ln_s='cp -p'
27478   fi
27479 else
27480   as_ln_s='cp -p'
27481 fi
27482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27483 rmdir conf$$.dir 2>/dev/null
27484
27485
27486 # as_fn_mkdir_p
27487 # -------------
27488 # Create "$as_dir" as a directory, including parents if necessary.
27489 as_fn_mkdir_p ()
27490 {
27491
27492   case $as_dir in #(
27493   -*) as_dir=./$as_dir;;
27494   esac
27495   test -d "$as_dir" || eval $as_mkdir_p || {
27496     as_dirs=
27497     while :; do
27498       case $as_dir in #(
27499       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27500       *) as_qdir=$as_dir;;
27501       esac
27502       as_dirs="'$as_qdir' $as_dirs"
27503       as_dir=`$as_dirname -- "$as_dir" ||
27504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27505          X"$as_dir" : 'X\(//\)[^/]' \| \
27506          X"$as_dir" : 'X\(//\)$' \| \
27507          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27508 $as_echo X"$as_dir" |
27509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27510             s//\1/
27511             q
27512           }
27513           /^X\(\/\/\)[^/].*/{
27514             s//\1/
27515             q
27516           }
27517           /^X\(\/\/\)$/{
27518             s//\1/
27519             q
27520           }
27521           /^X\(\/\).*/{
27522             s//\1/
27523             q
27524           }
27525           s/.*/./; q'`
27526       test -d "$as_dir" && break
27527     done
27528     test -z "$as_dirs" || eval "mkdir $as_dirs"
27529   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27530
27531
27532 } # as_fn_mkdir_p
27533 if mkdir -p . 2>/dev/null; then
27534   as_mkdir_p='mkdir -p "$as_dir"'
27535 else
27536   test -d ./-p && rmdir ./-p
27537   as_mkdir_p=false
27538 fi
27539
27540 if test -x / >/dev/null 2>&1; then
27541   as_test_x='test -x'
27542 else
27543   if ls -dL / >/dev/null 2>&1; then
27544     as_ls_L_option=L
27545   else
27546     as_ls_L_option=
27547   fi
27548   as_test_x='
27549     eval sh -c '\''
27550       if test -d "$1"; then
27551         test -d "$1/.";
27552       else
27553         case $1 in #(
27554         -*)set "./$1";;
27555         esac;
27556         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27557         ???[sx]*):;;*)false;;esac;fi
27558     '\'' sh
27559   '
27560 fi
27561 as_executable_p=$as_test_x
27562
27563 # Sed expression to map a string onto a valid CPP name.
27564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27565
27566 # Sed expression to map a string onto a valid variable name.
27567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27568
27569
27570 exec 6>&1
27571 ## ----------------------------------- ##
27572 ## Main body of $CONFIG_STATUS script. ##
27573 ## ----------------------------------- ##
27574 _ASEOF
27575 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27576
27577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27578 # Save the log message, to keep $0 and so on meaningful, and to
27579 # report actual input values of CONFIG_FILES etc. instead of their
27580 # values after options handling.
27581 ac_log="
27582 This file was extended by $as_me, which was
27583 generated by GNU Autoconf 2.64.  Invocation command line was
27584
27585   CONFIG_FILES    = $CONFIG_FILES
27586   CONFIG_HEADERS  = $CONFIG_HEADERS
27587   CONFIG_LINKS    = $CONFIG_LINKS
27588   CONFIG_COMMANDS = $CONFIG_COMMANDS
27589   $ $0 $@
27590
27591 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27592 "
27593
27594 _ACEOF
27595
27596 case $ac_config_files in *"
27597 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27598 esac
27599
27600 case $ac_config_headers in *"
27601 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27602 esac
27603
27604
27605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27606 # Files that config.status was made for.
27607 config_files="$ac_config_files"
27608 config_headers="$ac_config_headers"
27609 config_commands="$ac_config_commands"
27610
27611 _ACEOF
27612
27613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27614 ac_cs_usage="\
27615 \`$as_me' instantiates files and other configuration actions
27616 from templates according to the current configuration.  Unless the files
27617 and actions are specified as TAGs, all are instantiated by default.
27618
27619 Usage: $0 [OPTION]... [TAG]...
27620
27621   -h, --help       print this help, then exit
27622   -V, --version    print version number and configuration settings, then exit
27623   -q, --quiet, --silent
27624                    do not print progress messages
27625   -d, --debug      don't remove temporary files
27626       --recheck    update $as_me by reconfiguring in the same conditions
27627       --file=FILE[:TEMPLATE]
27628                    instantiate the configuration file FILE
27629       --header=FILE[:TEMPLATE]
27630                    instantiate the configuration header FILE
27631
27632 Configuration files:
27633 $config_files
27634
27635 Configuration headers:
27636 $config_headers
27637
27638 Configuration commands:
27639 $config_commands
27640
27641 Report bugs to the package provider."
27642
27643 _ACEOF
27644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27645 ac_cs_version="\\
27646 config.status
27647 configured by $0, generated by GNU Autoconf 2.64,
27648   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27649
27650 Copyright (C) 2009 Free Software Foundation, Inc.
27651 This config.status script is free software; the Free Software Foundation
27652 gives unlimited permission to copy, distribute and modify it."
27653
27654 ac_pwd='$ac_pwd'
27655 srcdir='$srcdir'
27656 AWK='$AWK'
27657 test -n "\$AWK" || AWK=awk
27658 _ACEOF
27659
27660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27661 # The default lists apply if the user does not specify any file.
27662 ac_need_defaults=:
27663 while test $# != 0
27664 do
27665   case $1 in
27666   --*=*)
27667     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27668     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27669     ac_shift=:
27670     ;;
27671   *)
27672     ac_option=$1
27673     ac_optarg=$2
27674     ac_shift=shift
27675     ;;
27676   esac
27677
27678   case $ac_option in
27679   # Handling of the options.
27680   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27681     ac_cs_recheck=: ;;
27682   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27683     $as_echo "$ac_cs_version"; exit ;;
27684   --debug | --debu | --deb | --de | --d | -d )
27685     debug=: ;;
27686   --file | --fil | --fi | --f )
27687     $ac_shift
27688     case $ac_optarg in
27689     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27690     esac
27691     as_fn_append CONFIG_FILES " '$ac_optarg'"
27692     ac_need_defaults=false;;
27693   --header | --heade | --head | --hea )
27694     $ac_shift
27695     case $ac_optarg in
27696     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27697     esac
27698     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27699     ac_need_defaults=false;;
27700   --he | --h)
27701     # Conflict between --help and --header
27702     as_fn_error "ambiguous option: \`$1'
27703 Try \`$0 --help' for more information.";;
27704   --help | --hel | -h )
27705     $as_echo "$ac_cs_usage"; exit ;;
27706   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27707   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27708     ac_cs_silent=: ;;
27709
27710   # This is an error.
27711   -*) as_fn_error "unrecognized option: \`$1'
27712 Try \`$0 --help' for more information." ;;
27713
27714   *) as_fn_append ac_config_targets " $1"
27715      ac_need_defaults=false ;;
27716
27717   esac
27718   shift
27719 done
27720
27721 ac_configure_extra_args=
27722
27723 if $ac_cs_silent; then
27724   exec 6>/dev/null
27725   ac_configure_extra_args="$ac_configure_extra_args --silent"
27726 fi
27727
27728 _ACEOF
27729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27730 if \$ac_cs_recheck; then
27731   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27732   shift
27733   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27734   CONFIG_SHELL='$SHELL'
27735   export CONFIG_SHELL
27736   exec "\$@"
27737 fi
27738
27739 _ACEOF
27740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27741 exec 5>>config.log
27742 {
27743   echo
27744   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27745 ## Running $as_me. ##
27746 _ASBOX
27747   $as_echo "$ac_log"
27748 } >&5
27749
27750 _ACEOF
27751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27752 #
27753 # INIT-COMMANDS
27754 #
27755 subdirs='$subdirs'
27756
27757 _ACEOF
27758
27759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27760
27761 # Handling of arguments.
27762 for ac_config_target in $ac_config_targets
27763 do
27764   case $ac_config_target in
27765     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27766     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27767     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27768     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27769     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27770     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27771
27772   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27773   esac
27774 done
27775
27776
27777 # If the user did not use the arguments to specify the items to instantiate,
27778 # then the envvar interface is used.  Set only those that are not.
27779 # We use the long form for the default assignment because of an extremely
27780 # bizarre bug on SunOS 4.1.3.
27781 if $ac_need_defaults; then
27782   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27783   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27784   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27785 fi
27786
27787 # Have a temporary directory for convenience.  Make it in the build tree
27788 # simply because there is no reason against having it here, and in addition,
27789 # creating and moving files from /tmp can sometimes cause problems.
27790 # Hook for its removal unless debugging.
27791 # Note that there is a small window in which the directory will not be cleaned:
27792 # after its creation but before its name has been assigned to `$tmp'.
27793 $debug ||
27794 {
27795   tmp=
27796   trap 'exit_status=$?
27797   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27798 ' 0
27799   trap 'as_fn_exit 1' 1 2 13 15
27800 }
27801 # Create a (secure) tmp directory for tmp files.
27802
27803 {
27804   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27805   test -n "$tmp" && test -d "$tmp"
27806 }  ||
27807 {
27808   tmp=./conf$$-$RANDOM
27809   (umask 077 && mkdir "$tmp")
27810 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27811
27812 # Set up the scripts for CONFIG_FILES section.
27813 # No need to generate them if there are no CONFIG_FILES.
27814 # This happens for instance with `./config.status config.h'.
27815 if test -n "$CONFIG_FILES"; then
27816
27817 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27818   ac_cs_awk_getline=:
27819   ac_cs_awk_pipe_init=
27820   ac_cs_awk_read_file='
27821       while ((getline aline < (F[key])) > 0)
27822         print(aline)
27823       close(F[key])'
27824   ac_cs_awk_pipe_fini=
27825 else
27826   ac_cs_awk_getline=false
27827   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27828   ac_cs_awk_read_file='
27829       print "|#_!!_#|"
27830       print "cat " F[key] " &&"
27831       '$ac_cs_awk_pipe_init
27832   # The final `:' finishes the AND list.
27833   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27834 fi
27835 ac_cr=`echo X | tr X '\015'`
27836 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27837 # But we know of no other shell where ac_cr would be empty at this
27838 # point, so we can use a bashism as a fallback.
27839 if test "x$ac_cr" = x; then
27840   eval ac_cr=\$\'\\r\'
27841 fi
27842 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27843 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27844   ac_cs_awk_cr='\r'
27845 else
27846   ac_cs_awk_cr=$ac_cr
27847 fi
27848
27849 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27850 _ACEOF
27851
27852 # Create commands to substitute file output variables.
27853 {
27854   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27855   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27856   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27857   echo "_ACAWK" &&
27858   echo "_ACEOF"
27859 } >conf$$files.sh &&
27860 . ./conf$$files.sh ||
27861   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27862 rm -f conf$$files.sh
27863
27864 {
27865   echo "cat >conf$$subs.awk <<_ACEOF" &&
27866   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27867   echo "_ACEOF"
27868 } >conf$$subs.sh ||
27869   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27871 ac_delim='%!_!# '
27872 for ac_last_try in false false false false false :; do
27873   . ./conf$$subs.sh ||
27874     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27875
27876   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27877   if test $ac_delim_n = $ac_delim_num; then
27878     break
27879   elif $ac_last_try; then
27880     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27881   else
27882     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27883   fi
27884 done
27885 rm -f conf$$subs.sh
27886
27887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27888 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27889 _ACEOF
27890 sed -n '
27891 h
27892 s/^/S["/; s/!.*/"]=/
27893 p
27894 g
27895 s/^[^!]*!//
27896 :repl
27897 t repl
27898 s/'"$ac_delim"'$//
27899 t delim
27900 :nl
27901 h
27902 s/\(.\{148\}\).*/\1/
27903 t more1
27904 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27905 p
27906 n
27907 b repl
27908 :more1
27909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27910 p
27911 g
27912 s/.\{148\}//
27913 t nl
27914 :delim
27915 h
27916 s/\(.\{148\}\).*/\1/
27917 t more2
27918 s/["\\]/\\&/g; s/^/"/; s/$/"/
27919 p
27920 b
27921 :more2
27922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27923 p
27924 g
27925 s/.\{148\}//
27926 t delim
27927 ' <conf$$subs.awk | sed '
27928 /^[^""]/{
27929   N
27930   s/\n//
27931 }
27932 ' >>$CONFIG_STATUS || ac_write_fail=1
27933 rm -f conf$$subs.awk
27934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27935 _ACAWK
27936 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27937   for (key in S) S_is_set[key] = 1
27938   FS = "\a"
27939   \$ac_cs_awk_pipe_init
27940 }
27941 {
27942   line = $ 0
27943   nfields = split(line, field, "@")
27944   substed = 0
27945   len = length(field[1])
27946   for (i = 2; i < nfields; i++) {
27947     key = field[i]
27948     keylen = length(key)
27949     if (S_is_set[key]) {
27950       value = S[key]
27951       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27952       len += length(value) + length(field[++i])
27953       substed = 1
27954     } else
27955       len += 1 + keylen
27956   }
27957   if (nfields == 3 && !substed) {
27958     key = field[2]
27959     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27960       \$ac_cs_awk_read_file
27961       next
27962     }
27963   }
27964   print line
27965 }
27966 \$ac_cs_awk_pipe_fini
27967 _ACAWK
27968 _ACEOF
27969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27970 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27971   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27972 else
27973   cat
27974 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27975   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27976 _ACEOF
27977
27978 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27979 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27980 # trailing colons and then remove the whole line if VPATH becomes empty
27981 # (actually we leave an empty line to preserve line numbers).
27982 if test "x$srcdir" = x.; then
27983   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27984 s/:*\$(srcdir):*/:/
27985 s/:*\${srcdir}:*/:/
27986 s/:*@srcdir@:*/:/
27987 s/^\([^=]*=[     ]*\):*/\1/
27988 s/:*$//
27989 s/^[^=]*=[       ]*$//
27990 }'
27991 fi
27992
27993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27994 fi # test -n "$CONFIG_FILES"
27995
27996 # Set up the scripts for CONFIG_HEADERS section.
27997 # No need to generate them if there are no CONFIG_HEADERS.
27998 # This happens for instance with `./config.status Makefile'.
27999 if test -n "$CONFIG_HEADERS"; then
28000 cat >"$tmp/defines.awk" <<\_ACAWK ||
28001 BEGIN {
28002 _ACEOF
28003
28004 # Transform confdefs.h into an awk script `defines.awk', embedded as
28005 # here-document in config.status, that substitutes the proper values into
28006 # config.h.in to produce config.h.
28007
28008 # Create a delimiter string that does not exist in confdefs.h, to ease
28009 # handling of long lines.
28010 ac_delim='%!_!# '
28011 for ac_last_try in false false :; do
28012   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28013   if test -z "$ac_t"; then
28014     break
28015   elif $ac_last_try; then
28016     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28017   else
28018     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28019   fi
28020 done
28021
28022 # For the awk script, D is an array of macro values keyed by name,
28023 # likewise P contains macro parameters if any.  Preserve backslash
28024 # newline sequences.
28025
28026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28027 sed -n '
28028 s/.\{148\}/&'"$ac_delim"'/g
28029 t rset
28030 :rset
28031 s/^[     ]*#[    ]*define[       ][      ]*/ /
28032 t def
28033 d
28034 :def
28035 s/\\$//
28036 t bsnl
28037 s/["\\]/\\&/g
28038 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28039 D["\1"]=" \3"/p
28040 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28041 d
28042 :bsnl
28043 s/["\\]/\\&/g
28044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28045 D["\1"]=" \3\\\\\\n"\\/p
28046 t cont
28047 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28048 t cont
28049 d
28050 :cont
28051 n
28052 s/.\{148\}/&'"$ac_delim"'/g
28053 t clear
28054 :clear
28055 s/\\$//
28056 t bsnlc
28057 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28058 d
28059 :bsnlc
28060 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28061 b cont
28062 ' <confdefs.h | sed '
28063 s/'"$ac_delim"'/"\\\
28064 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28065
28066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28067   for (key in D) D_is_set[key] = 1
28068   FS = "\a"
28069 }
28070 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28071   line = \$ 0
28072   split(line, arg, " ")
28073   if (arg[1] == "#") {
28074     defundef = arg[2]
28075     mac1 = arg[3]
28076   } else {
28077     defundef = substr(arg[1], 2)
28078     mac1 = arg[2]
28079   }
28080   split(mac1, mac2, "(") #)
28081   macro = mac2[1]
28082   prefix = substr(line, 1, index(line, defundef) - 1)
28083   if (D_is_set[macro]) {
28084     # Preserve the white space surrounding the "#".
28085     print prefix "define", macro P[macro] D[macro]
28086     next
28087   } else {
28088     # Replace #undef with comments.  This is necessary, for example,
28089     # in the case of _POSIX_SOURCE, which is predefined and required
28090     # on some systems where configure will not decide to define it.
28091     if (defundef == "undef") {
28092       print "/*", prefix defundef, macro, "*/"
28093       next
28094     }
28095   }
28096 }
28097 { print }
28098 _ACAWK
28099 _ACEOF
28100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28101   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28102 fi # test -n "$CONFIG_HEADERS"
28103
28104
28105 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28106 shift
28107 for ac_tag
28108 do
28109   case $ac_tag in
28110   :[FHLC]) ac_mode=$ac_tag; continue;;
28111   esac
28112   case $ac_mode$ac_tag in
28113   :[FHL]*:*);;
28114   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28115   :[FH]-) ac_tag=-:-;;
28116   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28117   esac
28118   ac_save_IFS=$IFS
28119   IFS=:
28120   set x $ac_tag
28121   IFS=$ac_save_IFS
28122   shift
28123   ac_file=$1
28124   shift
28125
28126   case $ac_mode in
28127   :L) ac_source=$1;;
28128   :[FH])
28129     ac_file_inputs=
28130     for ac_f
28131     do
28132       case $ac_f in
28133       -) ac_f="$tmp/stdin";;
28134       *) # Look for the file first in the build tree, then in the source tree
28135          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28136          # because $ac_f cannot contain `:'.
28137          test -f "$ac_f" ||
28138            case $ac_f in
28139            [\\/$]*) false;;
28140            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28141            esac ||
28142            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28143       esac
28144       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28145       as_fn_append ac_file_inputs " '$ac_f'"
28146     done
28147
28148     # Let's still pretend it is `configure' which instantiates (i.e., don't
28149     # use $as_me), people would be surprised to read:
28150     #    /* config.h.  Generated by config.status.  */
28151     configure_input='Generated from '`
28152           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28153         `' by configure.'
28154     if test x"$ac_file" != x-; then
28155       configure_input="$ac_file.  $configure_input"
28156       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28157 $as_echo "$as_me: creating $ac_file" >&6;}
28158     fi
28159     # Neutralize special characters interpreted by sed in replacement strings.
28160     case $configure_input in #(
28161     *\&* | *\|* | *\\* )
28162        ac_sed_conf_input=`$as_echo "$configure_input" |
28163        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28164     *) ac_sed_conf_input=$configure_input;;
28165     esac
28166
28167     case $ac_tag in
28168     *:-:* | *:-) cat >"$tmp/stdin" \
28169       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28170     esac
28171     ;;
28172   esac
28173
28174   ac_dir=`$as_dirname -- "$ac_file" ||
28175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28176          X"$ac_file" : 'X\(//\)[^/]' \| \
28177          X"$ac_file" : 'X\(//\)$' \| \
28178          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28179 $as_echo X"$ac_file" |
28180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28181             s//\1/
28182             q
28183           }
28184           /^X\(\/\/\)[^/].*/{
28185             s//\1/
28186             q
28187           }
28188           /^X\(\/\/\)$/{
28189             s//\1/
28190             q
28191           }
28192           /^X\(\/\).*/{
28193             s//\1/
28194             q
28195           }
28196           s/.*/./; q'`
28197   as_dir="$ac_dir"; as_fn_mkdir_p
28198   ac_builddir=.
28199
28200 case "$ac_dir" in
28201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28202 *)
28203   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28204   # A ".." for each directory in $ac_dir_suffix.
28205   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28206   case $ac_top_builddir_sub in
28207   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28208   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28209   esac ;;
28210 esac
28211 ac_abs_top_builddir=$ac_pwd
28212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28213 # for backward compatibility:
28214 ac_top_builddir=$ac_top_build_prefix
28215
28216 case $srcdir in
28217   .)  # We are building in place.
28218     ac_srcdir=.
28219     ac_top_srcdir=$ac_top_builddir_sub
28220     ac_abs_top_srcdir=$ac_pwd ;;
28221   [\\/]* | ?:[\\/]* )  # Absolute name.
28222     ac_srcdir=$srcdir$ac_dir_suffix;
28223     ac_top_srcdir=$srcdir
28224     ac_abs_top_srcdir=$srcdir ;;
28225   *) # Relative name.
28226     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28227     ac_top_srcdir=$ac_top_build_prefix$srcdir
28228     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28229 esac
28230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28231
28232
28233   case $ac_mode in
28234   :F)
28235   #
28236   # CONFIG_FILE
28237   #
28238
28239 _ACEOF
28240
28241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28242 # If the template does not know about datarootdir, expand it.
28243 # FIXME: This hack should be removed a few years after 2.60.
28244 ac_datarootdir_hack=; ac_datarootdir_seen=
28245 ac_sed_dataroot='
28246 /datarootdir/ {
28247   p
28248   q
28249 }
28250 /@datadir@/p
28251 /@docdir@/p
28252 /@infodir@/p
28253 /@localedir@/p
28254 /@mandir@/p'
28255 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28256 *datarootdir*) ac_datarootdir_seen=yes;;
28257 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28258   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28259 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28260 _ACEOF
28261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28262   ac_datarootdir_hack='
28263   s&@datadir@&$datadir&g
28264   s&@docdir@&$docdir&g
28265   s&@infodir@&$infodir&g
28266   s&@localedir@&$localedir&g
28267   s&@mandir@&$mandir&g
28268   s&\\\${datarootdir}&$datarootdir&g' ;;
28269 esac
28270 _ACEOF
28271
28272 # Neutralize VPATH when `$srcdir' = `.'.
28273 # Shell code in configure.ac might set extrasub.
28274 # FIXME: do we really want to maintain this feature?
28275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28276 ac_sed_extra="$ac_vpsub
28277 $extrasub
28278 _ACEOF
28279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28280 :t
28281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28282 s|@configure_input@|$ac_sed_conf_input|;t t
28283 s&@top_builddir@&$ac_top_builddir_sub&;t t
28284 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28285 s&@srcdir@&$ac_srcdir&;t t
28286 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28287 s&@top_srcdir@&$ac_top_srcdir&;t t
28288 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28289 s&@builddir@&$ac_builddir&;t t
28290 s&@abs_builddir@&$ac_abs_builddir&;t t
28291 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28292 $ac_datarootdir_hack
28293 "
28294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28295 if $ac_cs_awk_getline; then
28296   $AWK -f "$tmp/subs.awk"
28297 else
28298   $AWK -f "$tmp/subs.awk" | $SHELL
28299 fi >$tmp/out \
28300   || as_fn_error "could not create $ac_file" "$LINENO" 5
28301
28302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28303   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28304   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28305   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28306 which seems to be undefined.  Please make sure it is defined." >&5
28307 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28308 which seems to be undefined.  Please make sure it is defined." >&2;}
28309
28310   rm -f "$tmp/stdin"
28311   case $ac_file in
28312   -) cat "$tmp/out" && rm -f "$tmp/out";;
28313   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28314   esac \
28315   || as_fn_error "could not create $ac_file" "$LINENO" 5
28316  ;;
28317   :H)
28318   #
28319   # CONFIG_HEADER
28320   #
28321   if test x"$ac_file" != x-; then
28322     {
28323       $as_echo "/* $configure_input  */" \
28324       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28325     } >"$tmp/config.h" \
28326       || as_fn_error "could not create $ac_file" "$LINENO" 5
28327     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28328       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28329 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28330     else
28331       rm -f "$ac_file"
28332       mv "$tmp/config.h" "$ac_file" \
28333         || as_fn_error "could not create $ac_file" "$LINENO" 5
28334     fi
28335   else
28336     $as_echo "/* $configure_input  */" \
28337       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28338       || as_fn_error "could not create -" "$LINENO" 5
28339   fi
28340  ;;
28341
28342   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28343 $as_echo "$as_me: executing $ac_file commands" >&6;}
28344  ;;
28345   esac
28346
28347
28348   case $ac_file$ac_mode in
28349     "as":F) chmod +x as ;;
28350     "collect-ld":F) chmod +x collect-ld ;;
28351     "nm":F) chmod +x nm ;;
28352     "default":C)
28353 case ${CONFIG_HEADERS} in
28354   *auto-host.h:config.in*)
28355   echo > cstamp-h ;;
28356 esac
28357 # Make sure all the subdirs exist.
28358 for d in $subdirs doc build common c-family
28359 do
28360     test -d $d || mkdir $d
28361 done
28362  ;;
28363
28364   esac
28365 done # for ac_tag
28366
28367
28368 as_fn_exit 0
28369 _ACEOF
28370 ac_clean_files=$ac_clean_files_save
28371
28372 test $ac_write_fail = 0 ||
28373   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28374
28375
28376 # configure is writing to config.log, and then calls config.status.
28377 # config.status does its own redirection, appending to config.log.
28378 # Unfortunately, on DOS this fails, as config.log is still kept open
28379 # by configure, so config.status won't be able to write to it; its
28380 # output is simply discarded.  So we exec the FD to /dev/null,
28381 # effectively closing config.log, so it can be properly (re)opened and
28382 # appended to by config.status.  When coming back to configure, we
28383 # need to make the FD available again.
28384 if test "$no_create" != yes; then
28385   ac_cs_success=:
28386   ac_config_status_args=
28387   test "$silent" = yes &&
28388     ac_config_status_args="$ac_config_status_args --quiet"
28389   exec 5>/dev/null
28390   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28391   exec 5>>config.log
28392   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28393   # would make configure fail if this is the last instruction.
28394   $ac_cs_success || as_fn_exit $?
28395 fi
28396 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28397   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28398 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28399 fi
28400
28401