OSDN Git Service

* system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 thread_file
625 out_object_file
626 out_file
627 objc_boehm_gc
628 md_file
629 local_prefix
630 lang_tree_files
631 lang_specs_files
632 lang_opt_files
633 install
634 out_host_hook_obj
635 host_xm_defines
636 host_xm_include_list
637 host_xm_file_list
638 host_exeext
639 gcc_gxx_include_dir
640 gcc_config_arguments
641 float_h_file
642 extra_programs
643 extra_passes
644 extra_parts
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 slibdir
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 GGC
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 CXXCPP
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 SED
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CFLAGS
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
712 ALL
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 gthread_flags
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 enable_shared
763 enable_fixed_point
764 enable_decimal_float
765 enable_multilib
766 ENABLE_BUILD_WITH_CXX
767 coverage_flags
768 valgrind_command
769 valgrind_path_defines
770 valgrind_path
771 TREEBROWSER
772 nocommon_flag
773 warn_cxxflags
774 warn_cflags
775 c_strict_warn
776 strict_warn
777 c_loose_warn
778 loose_warn
779 EGREP
780 GREP
781 CPP
782 OUTPUT_OPTION
783 NO_MINUS_C_MINUS_O
784 GNATMAKE
785 GNATBIND
786 ac_ct_CXX
787 CXXFLAGS
788 CXX
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 GENINSRC
797 target_subdir
798 host_subdir
799 build_subdir
800 build_libsubdir
801 target_noncanonical
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files='option_includes
853 language_hooks'
854 ac_user_opts='
855 enable_option_checking
856 with_build_libsubdir
857 with_local_prefix
858 with_gxx_include_dir
859 with_cpp_install_dir
860 enable_generated_files_in_srcdir
861 with_gnu_ld
862 with_ld
863 with_demangler_in_ld
864 with_gnu_as
865 with_as
866 enable_largefile
867 enable_werror_always
868 enable_checking
869 enable_coverage
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
872 with_stabs
873 enable_multilib
874 enable___cxa_atexit
875 enable_decimal_float
876 enable_fixed_point
877 enable_threads
878 enable_tls
879 enable_objc_gc
880 with_dwarf2
881 enable_shared
882 with_build_sysroot
883 with_sysroot
884 with_specs
885 with_pkgversion
886 with_bugurl
887 enable_languages
888 with_multilib_list
889 enable_rpath
890 with_libiconv_prefix
891 enable_initfini_array
892 enable_sjlj_exceptions
893 with_system_libunwind
894 enable_secureplt
895 enable_leading_mingw64_underscores
896 enable_cld
897 enable_frame_pointer
898 enable_win32_registry
899 enable_static
900 with_pic
901 enable_fast_install
902 enable_libtool_lock
903 with_plugin_ld
904 enable_gnu_indirect_function
905 enable_comdat
906 enable_gnu_unique_object
907 enable_linker_build_id
908 with_long_double_128
909 with_gc
910 with_system_zlib
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
913 with_slibdir
914 enable_plugin
915 '
916       ac_precious_vars='build_alias
917 host_alias
918 target_alias
919 CC
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
924 CXX
925 CXXFLAGS
926 CCC
927 CPP
928 CXXCPP
929 GMPLIBS
930 GMPINC
931 PPLLIBS
932 PPLINC
933 CLOOGLIBS
934 CLOOGINC'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
984
985 ac_prev=
986 ac_dashdash=
987 for ac_option
988 do
989   # If the previous option needs an argument, assign it.
990   if test -n "$ac_prev"; then
991     eval $ac_prev=\$ac_option
992     ac_prev=
993     continue
994   fi
995
996   case $ac_option in
997   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998   *)    ac_optarg=yes ;;
999   esac
1000
1001   # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003   case $ac_dashdash$ac_option in
1004   --)
1005     ac_dashdash=yes ;;
1006
1007   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008     ac_prev=bindir ;;
1009   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010     bindir=$ac_optarg ;;
1011
1012   -build | --build | --buil | --bui | --bu)
1013     ac_prev=build_alias ;;
1014   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015     build_alias=$ac_optarg ;;
1016
1017   -cache-file | --cache-file | --cache-fil | --cache-fi \
1018   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019     ac_prev=cache_file ;;
1020   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022     cache_file=$ac_optarg ;;
1023
1024   --config-cache | -C)
1025     cache_file=config.cache ;;
1026
1027   -datadir | --datadir | --datadi | --datad)
1028     ac_prev=datadir ;;
1029   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030     datadir=$ac_optarg ;;
1031
1032   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033   | --dataroo | --dataro | --datar)
1034     ac_prev=datarootdir ;;
1035   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037     datarootdir=$ac_optarg ;;
1038
1039   -disable-* | --disable-*)
1040     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043       as_fn_error "invalid feature name: $ac_useropt"
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=no ;;
1054
1055   -docdir | --docdir | --docdi | --doc | --do)
1056     ac_prev=docdir ;;
1057   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058     docdir=$ac_optarg ;;
1059
1060   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061     ac_prev=dvidir ;;
1062   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063     dvidir=$ac_optarg ;;
1064
1065   -enable-* | --enable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       as_fn_error "invalid feature name: $ac_useropt"
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273       as_fn_error "invalid package name: $ac_useropt"
1274     ac_useropt_orig=$ac_useropt
1275     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276     case $ac_user_opts in
1277       *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281          ac_unrecognized_sep=', ';;
1282     esac
1283     eval with_$ac_useropt=\$ac_optarg ;;
1284
1285   -without-* | --without-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       as_fn_error "invalid package name: $ac_useropt"
1290     ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293       *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=no ;;
1300
1301   --x)
1302     # Obsolete; use --with-x.
1303     with_x=yes ;;
1304
1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306   | --x-incl | --x-inc | --x-in | --x-i)
1307     ac_prev=x_includes ;;
1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310     x_includes=$ac_optarg ;;
1311
1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314     ac_prev=x_libraries ;;
1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317     x_libraries=$ac_optarg ;;
1318
1319   -*) as_fn_error "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1321     ;;
1322
1323   *=*)
1324     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325     # Reject names that are not valid shell variable names.
1326     case $ac_envvar in #(
1327       '' | [0-9]* | *[!_$as_cr_alnum]* )
1328       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329     esac
1330     eval $ac_envvar=\$ac_optarg
1331     export $ac_envvar ;;
1332
1333   *)
1334     # FIXME: should be removed in autoconf 3.0.
1335     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339     ;;
1340
1341   esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346   as_fn_error "missing argument to $ac_option"
1347 fi
1348
1349 if test -n "$ac_unrecognized_opts"; then
1350   case $enable_option_checking in
1351     no) ;;
1352     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354   esac
1355 fi
1356
1357 # Check all directory arguments for consistency.
1358 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                 datadir sysconfdir sharedstatedir localstatedir includedir \
1360                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                 libdir localedir mandir
1362 do
1363   eval ac_val=\$$ac_var
1364   # Remove trailing slashes.
1365   case $ac_val in
1366     */ )
1367       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368       eval $ac_var=\$ac_val;;
1369   esac
1370   # Be sure to have absolute directory names.
1371   case $ac_val in
1372     [\\/$]* | ?:[\\/]* )  continue;;
1373     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374   esac
1375   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1377
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1384
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387   if test "x$build_alias" = x; then
1388     cross_compiling=maybe
1389     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390     If a cross compiler is detected then cross compile mode will be used." >&2
1391   elif test "x$build_alias" != "x$host_alias"; then
1392     cross_compiling=yes
1393   fi
1394 fi
1395
1396 ac_tool_prefix=
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399 test "$silent" = yes && exec 6>/dev/null
1400
1401
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405   as_fn_error "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407   as_fn_error "pwd does not report name of working directory"
1408
1409
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412   ac_srcdir_defaulted=yes
1413   # Try the directory containing this script, then the parent directory.
1414   ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416          X"$as_myself" : 'X\(//\)[^/]' \| \
1417          X"$as_myself" : 'X\(//\)$' \| \
1418          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)[^/].*/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\).*/{
1433             s//\1/
1434             q
1435           }
1436           s/.*/./; q'`
1437   srcdir=$ac_confdir
1438   if test ! -r "$srcdir/$ac_unique_file"; then
1439     srcdir=..
1440   fi
1441 else
1442   ac_srcdir_defaulted=no
1443 fi
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447 fi
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451         pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454   srcdir=.
1455 fi
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_env_${ac_var}_value=\$${ac_var}
1465   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1468
1469 #
1470 # Report the --help message.
1471 #
1472 if test "$ac_init_help" = "long"; then
1473   # Omit some internal or obsolete options to make the list less imposing.
1474   # This message is too long to be a string in the A/UX 3.1 sh.
1475   cat <<_ACEOF
1476 \`configure' configures this package to adapt to many kinds of systems.
1477
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483 Defaults for the options are specified in brackets.
1484
1485 Configuration:
1486   -h, --help              display this help and exit
1487       --help=short        display options specific to this package
1488       --help=recursive    display the short help of all the included packages
1489   -V, --version           display version information and exit
1490   -q, --quiet, --silent   do not print \`checking...' messages
1491       --cache-file=FILE   cache test results in FILE [disabled]
1492   -C, --config-cache      alias for \`--cache-file=config.cache'
1493   -n, --no-create         do not create output files
1494       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496 Installation directories:
1497   --prefix=PREFIX         install architecture-independent files in PREFIX
1498                           [$ac_default_prefix]
1499   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                           [PREFIX]
1501
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1506
1507 For better control, use the options below.
1508
1509 Fine tuning of the installation directories:
1510   --bindir=DIR            user executables [EPREFIX/bin]
1511   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512   --libexecdir=DIR        program executables [EPREFIX/libexec]
1513   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516   --libdir=DIR            object code libraries [EPREFIX/lib]
1517   --includedir=DIR        C header files [PREFIX/include]
1518   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521   --infodir=DIR           info documentation [DATAROOTDIR/info]
1522   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523   --mandir=DIR            man documentation [DATAROOTDIR/man]
1524   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1525   --htmldir=DIR           html documentation [DOCDIR]
1526   --dvidir=DIR            dvi documentation [DOCDIR]
1527   --pdfdir=DIR            pdf documentation [DOCDIR]
1528   --psdir=DIR             ps documentation [DOCDIR]
1529 _ACEOF
1530
1531   cat <<\_ACEOF
1532
1533 Program names:
1534   --program-prefix=PREFIX            prepend PREFIX to installed program names
1535   --program-suffix=SUFFIX            append SUFFIX to installed program names
1536   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
1538 System types:
1539   --build=BUILD     configure for building on BUILD [guessed]
1540   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541   --target=TARGET   configure for building compilers for TARGET [HOST]
1542 _ACEOF
1543 fi
1544
1545 if test -n "$ac_init_help"; then
1546
1547   cat <<\_ACEOF
1548
1549 Optional Features:
1550   --disable-option-checking  ignore unrecognized --enable/--with options
1551   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1552   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1553   --enable-generated-files-in-srcdir
1554                           put copies of generated files in source dir
1555                           intended for creating source tarballs for users
1556                           without texinfo bison or flex.
1557   --disable-largefile     omit support for large files
1558   --enable-werror-always  enable -Werror despite compiler version
1559   --enable-checking=LIST
1560                           enable expensive run-time checks.  With LIST,
1561                           enable only specific categories of checks.
1562                           Categories are: yes,no,all,none,release.
1563                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1564                           rtlflag,rtl,runtime,tree,valgrind,types.
1565   --enable-coverage=LEVEL
1566                           enable compiler's code coverage collection.
1567                           Use to measure compiler performance and locate
1568                           unused parts of the compiler. With LEVEL, specify
1569                           optimization. Values are opt, noopt,
1570                           default is noopt
1571   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1572   --enable-build-with-cxx build with C++ compiler instead of C compiler
1573   --enable-multilib       enable library support for multiple ABIs
1574   --enable-__cxa_atexit   enable __cxa_atexit for C++
1575   --enable-decimal-float={no,yes,bid,dpd}
1576                         enable decimal float extension to C.  Selecting 'bid'
1577                         or 'dpd' choses which decimal floating point format
1578                         to use
1579   --enable-fixed-point    enable fixed-point arithmetic extension to C
1580   --enable-threads        enable thread usage for target GCC
1581   --enable-threads=LIB    use LIB thread package for target GCC
1582   --enable-tls            enable or disable generation of tls code
1583                           overriding the assembler check for tls support
1584   --enable-objc-gc        enable the use of Boehm's garbage collector with
1585                           the GNU Objective-C runtime
1586   --disable-shared        don't provide a shared libgcc
1587   --enable-languages=LIST specify which front-ends to build
1588   --disable-rpath         do not hardcode runtime library paths
1589   --enable-initfini-array       use .init_array/.fini_array sections
1590   --enable-sjlj-exceptions
1591                           arrange to use setjmp/longjmp exception handling
1592   --enable-secureplt      enable -msecure-plt by default for PowerPC
1593   --enable-leading-mingw64-underscores
1594                           Enable leading underscores on 64 bit mingw targets
1595   --enable-cld            enable -mcld by default for 32bit x86
1596   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1597   --disable-win32-registry
1598                           disable lookup of installation paths in the
1599                           Registry on Windows hosts
1600   --enable-win32-registry enable registry lookup (default)
1601   --enable-win32-registry=KEY
1602                           use KEY instead of GCC version as the last portion
1603                           of the registry key
1604   --enable-shared[=PKGS]  build shared libraries [default=yes]
1605   --enable-static[=PKGS]  build static libraries [default=yes]
1606   --enable-fast-install[=PKGS]
1607                           optimize for fast installation [default=yes]
1608   --disable-libtool-lock  avoid locking (might break parallel builds)
1609   --enable-gnu-indirect-function
1610                           enable the use of the @gnu_indirect_function to
1611                           glibc systems
1612   --enable-comdat         enable COMDAT group support
1613   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1614                                 glibc systems
1615   --enable-linker-build-id
1616                           compiler will always pass --build-id to linker
1617   --enable-maintainer-mode
1618                           enable make rules and dependencies not useful
1619                           (and sometimes confusing) to the casual installer
1620   --enable-version-specific-runtime-libs
1621                           specify that runtime libraries should be
1622                           installed in a compiler-specific directory
1623   --enable-plugin         enable plugin support
1624
1625 Optional Packages:
1626   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1627   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1628   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1629   --with-local-prefix=DIR specifies directory to put local include
1630   --with-gxx-include-dir=DIR
1631                           specifies directory to put g++ header files
1632   --with-cpp-install-dir=DIR
1633                           install the user visible C preprocessor in DIR
1634                           (relative to PREFIX) as well as PREFIX/bin
1635   --with-gnu-ld           arrange to work with GNU ld.
1636   --with-ld               arrange to use the specified ld (full pathname)
1637   --with-demangler-in-ld  try to use demangler in GNU ld.
1638   --with-gnu-as           arrange to work with GNU as
1639   --with-as               arrange to use the specified as (full pathname)
1640   --with-stabs            arrange to use stabs instead of host debug format
1641   --with-dwarf2           force the default debug format to be DWARF 2
1642   --with-build-sysroot=sysroot
1643                           use sysroot as the system root during the build
1644   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1645   --with-specs=SPECS      add SPECS to driver command-line processing
1646   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1647   --with-bugurl=URL       Direct users to URL to report a bug
1648   --with-multilib-list    Select multilibs (SH only)
1649   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1650   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1651   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1652   --with-system-libunwind use installed libunwind
1653   --with-pic              try to use only PIC/non-PIC objects [default=use
1654                           both]
1655   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1656   --with-plugin-ld=[ARG]  specify the plugin linker
1657   --with-long-double-128  Use 128-bit long double by default.
1658   --with-gc={page,zone}   choose the garbage collection mechanism to use
1659                           with the compiler
1660   --with-system-zlib      use installed libz
1661   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1662
1663 Some influential environment variables:
1664   CC          C compiler command
1665   CFLAGS      C compiler flags
1666   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1667               nonstandard directory <lib dir>
1668   LIBS        libraries to pass to the linker, e.g. -l<library>
1669   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1670               you have headers in a nonstandard directory <include dir>
1671   CXX         C++ compiler command
1672   CXXFLAGS    C++ compiler flags
1673   CPP         C preprocessor
1674   CXXCPP      C++ preprocessor
1675   GMPLIBS     How to link GMP
1676   GMPINC      How to find GMP include files
1677   PPLLIBS     How to link PPL
1678   PPLINC      How to find PPL include files
1679   CLOOGLIBS   How to link CLOOG
1680   CLOOGINC    How to find CLOOG include files
1681
1682 Use these variables to override the choices made by `configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1684
1685 Report bugs to the package provider.
1686 _ACEOF
1687 ac_status=$?
1688 fi
1689
1690 if test "$ac_init_help" = "recursive"; then
1691   # If there are subdirs, report their specific --help.
1692   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693     test -d "$ac_dir" ||
1694       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695       continue
1696     ac_builddir=.
1697
1698 case "$ac_dir" in
1699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *)
1701   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702   # A ".." for each directory in $ac_dir_suffix.
1703   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704   case $ac_top_builddir_sub in
1705   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707   esac ;;
1708 esac
1709 ac_abs_top_builddir=$ac_pwd
1710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711 # for backward compatibility:
1712 ac_top_builddir=$ac_top_build_prefix
1713
1714 case $srcdir in
1715   .)  # We are building in place.
1716     ac_srcdir=.
1717     ac_top_srcdir=$ac_top_builddir_sub
1718     ac_abs_top_srcdir=$ac_pwd ;;
1719   [\\/]* | ?:[\\/]* )  # Absolute name.
1720     ac_srcdir=$srcdir$ac_dir_suffix;
1721     ac_top_srcdir=$srcdir
1722     ac_abs_top_srcdir=$srcdir ;;
1723   *) # Relative name.
1724     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725     ac_top_srcdir=$ac_top_build_prefix$srcdir
1726     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727 esac
1728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729
1730     cd "$ac_dir" || { ac_status=$?; continue; }
1731     # Check for guested configure.
1732     if test -f "$ac_srcdir/configure.gnu"; then
1733       echo &&
1734       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735     elif test -f "$ac_srcdir/configure"; then
1736       echo &&
1737       $SHELL "$ac_srcdir/configure" --help=recursive
1738     else
1739       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740     fi || ac_status=$?
1741     cd "$ac_pwd" || { ac_status=$?; break; }
1742   done
1743 fi
1744
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1747   cat <<\_ACEOF
1748 configure
1749 generated by GNU Autoconf 2.64
1750
1751 Copyright (C) 2009 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755   exit
1756 fi
1757
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1761
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   rm -f conftest.$ac_objext
1769   if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_compile") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && {
1785          test -z "$ac_c_werror_flag" ||
1786          test ! -s conftest.err
1787        } && test -s conftest.$ac_objext; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793         ac_retval=1
1794 fi
1795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796   return $ac_retval
1797
1798 } # ac_fn_c_try_compile
1799
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   rm -f conftest.$ac_objext
1807   if { { ac_try="$ac_compile"
1808 case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_compile") 2>conftest.err
1815   ac_status=$?
1816   if test -s conftest.err; then
1817     grep -v '^ *+' conftest.err >conftest.er1
1818     cat conftest.er1 >&5
1819     mv -f conftest.er1 conftest.err
1820   fi
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; } && {
1823          test -z "$ac_cxx_werror_flag" ||
1824          test ! -s conftest.err
1825        } && test -s conftest.$ac_objext; then :
1826   ac_retval=0
1827 else
1828   $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831         ac_retval=1
1832 fi
1833   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834   return $ac_retval
1835
1836 } # ac_fn_cxx_try_compile
1837
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_cpp ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852   ac_status=$?
1853   if test -s conftest.err; then
1854     grep -v '^ *+' conftest.err >conftest.er1
1855     cat conftest.er1 >&5
1856     mv -f conftest.er1 conftest.err
1857   fi
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; } >/dev/null && {
1860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861          test ! -s conftest.err
1862        }; then :
1863   ac_retval=0
1864 else
1865   $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868     ac_retval=1
1869 fi
1870   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871   return $ac_retval
1872
1873 } # ac_fn_c_try_cpp
1874
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887   $as_echo_n "(cached) " >&6
1888 fi
1889 eval ac_res=\$$3
1890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893   # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h.  */
1898 $4
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902   ac_header_compiler=yes
1903 else
1904   ac_header_compiler=no
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1909
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918   ac_header_preproc=yes
1919 else
1920   ac_header_preproc=no
1921 fi
1922 rm -f conftest.err conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1925
1926 # So?  What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928   yes:no: )
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933     ;;
1934   no:yes:* )
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&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 esac
1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950   $as_echo_n "(cached) " >&6
1951 else
1952   eval "$3=\$ac_header_compiler"
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 fi
1958   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960 } # ac_fn_c_check_header_mongrel
1961
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1966 ac_fn_c_try_run ()
1967 {
1968   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969   if { { ac_try="$ac_link"
1970 case "(($ac_try" in
1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972   *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976   (eval "$ac_link") 2>&5
1977   ac_status=$?
1978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980   { { case "(($ac_try" in
1981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982   *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986   (eval "$ac_try") 2>&5
1987   ac_status=$?
1988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989   test $ac_status = 0; }; }; then :
1990   ac_retval=0
1991 else
1992   $as_echo "$as_me: program exited with status $ac_status" >&5
1993        $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996        ac_retval=$ac_status
1997 fi
1998   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000   return $ac_retval
2001
2002 } # ac_fn_c_try_run
2003
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022   eval "$3=yes"
2023 else
2024   eval "$3=no"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$3
2029                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032
2033 } # ac_fn_c_check_header_compile
2034
2035 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036 # --------------------------------------------
2037 # Tries to find the compile-time value of EXPR in a program that includes
2038 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2039 # computed
2040 ac_fn_c_compute_int ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   if test "$cross_compiling" = yes; then
2044     # Depending upon the size, compute the lo and hi bounds.
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h.  */
2047 $4
2048 int
2049 main ()
2050 {
2051 static int test_array [1 - 2 * !(($2) >= 0)];
2052 test_array [0] = 0
2053
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059   ac_lo=0 ac_mid=0
2060   while :; do
2061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 test_array [0] = 0
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075   ac_hi=$ac_mid; break
2076 else
2077   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2078                         if test $ac_lo -le $ac_mid; then
2079                           ac_lo= ac_hi=
2080                           break
2081                         fi
2082                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085   done
2086 else
2087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h.  */
2089 $4
2090 int
2091 main ()
2092 {
2093 static int test_array [1 - 2 * !(($2) < 0)];
2094 test_array [0] = 0
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101   ac_hi=-1 ac_mid=-1
2102   while :; do
2103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 int
2107 main ()
2108 {
2109 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2110 test_array [0] = 0
2111
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117   ac_lo=$ac_mid; break
2118 else
2119   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120                         if test $ac_mid -le $ac_hi; then
2121                           ac_lo= ac_hi=
2122                           break
2123                         fi
2124                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127   done
2128 else
2129   ac_lo= ac_hi=
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 $4
2140 int
2141 main ()
2142 {
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 test_array [0] = 0
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151   ac_hi=$ac_mid
2152 else
2153   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 done
2157 case $ac_lo in #((
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2159 '') ac_retval=1 ;;
2160 esac
2161   else
2162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2167 #include <stdio.h>
2168 #include <stdlib.h>
2169 int
2170 main ()
2171 {
2172
2173   FILE *f = fopen ("conftest.val", "w");
2174   if (! f)
2175     return 1;
2176   if (($2) < 0)
2177     {
2178       long int i = longval ();
2179       if (i != ($2))
2180         return 1;
2181       fprintf (f, "%ld", i);
2182     }
2183   else
2184     {
2185       unsigned long int i = ulongval ();
2186       if (i != ($2))
2187         return 1;
2188       fprintf (f, "%lu", i);
2189     }
2190   /* Do not output a trailing newline, as this causes \r\n confusion
2191      on some platforms.  */
2192   return ferror (f) || fclose (f) != 0;
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_run "$LINENO"; then :
2199   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2200 else
2201   ac_retval=1
2202 fi
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204   conftest.$ac_objext conftest.beam conftest.$ac_ext
2205 rm -f conftest.val
2206
2207   fi
2208   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209   return $ac_retval
2210
2211 } # ac_fn_c_compute_int
2212
2213 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2214 # -------------------------------------------
2215 # Tests whether TYPE exists after having included INCLUDES, setting cache
2216 # variable VAR accordingly.
2217 ac_fn_c_check_type ()
2218 {
2219   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223   $as_echo_n "(cached) " >&6
2224 else
2225   eval "$3=no"
2226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 $4
2229 int
2230 main ()
2231 {
2232 if (sizeof ($2))
2233          return 0;
2234   ;
2235   return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h.  */
2241 $4
2242 int
2243 main ()
2244 {
2245 if (sizeof (($2)))
2246             return 0;
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252
2253 else
2254   eval "$3=yes"
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 eval ac_res=\$$3
2261                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264
2265 } # ac_fn_c_check_type
2266
2267 # ac_fn_c_find_intX_t LINENO BITS VAR
2268 # -----------------------------------
2269 # Finds a signed integer type with width BITS, setting cache variable VAR
2270 # accordingly.
2271 ac_fn_c_find_intX_t ()
2272 {
2273   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2275 $as_echo_n "checking for int$2_t... " >&6; }
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277   $as_echo_n "(cached) " >&6
2278 else
2279   eval "$3=no"
2280      for ac_type in int$2_t 'int' 'long int' \
2281          'long long int' 'short int' 'signed char'; do
2282        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $ac_includes_default
2285 int
2286 main ()
2287 {
2288 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2289 test_array [0] = 0
2290
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 $ac_includes_default
2299 int
2300 main ()
2301 {
2302 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2303                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2304 test_array [0] = 0
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2311
2312 else
2313   case $ac_type in #(
2314   int$2_t) :
2315     eval "$3=yes" ;; #(
2316   *) :
2317     eval "$3=\$ac_type" ;;
2318 esac
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323        eval as_val=\$$3
2324    if test "x$as_val" = x""no; then :
2325
2326 else
2327   break
2328 fi
2329      done
2330 fi
2331 eval ac_res=\$$3
2332                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2335
2336 } # ac_fn_c_find_intX_t
2337
2338 # ac_fn_c_try_link LINENO
2339 # -----------------------
2340 # Try to link conftest.$ac_ext, and return whether this succeeded.
2341 ac_fn_c_try_link ()
2342 {
2343   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344   rm -f conftest.$ac_objext conftest$ac_exeext
2345   if { { ac_try="$ac_link"
2346 case "(($ac_try" in
2347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348   *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352   (eval "$ac_link") 2>conftest.err
2353   ac_status=$?
2354   if test -s conftest.err; then
2355     grep -v '^ *+' conftest.err >conftest.er1
2356     cat conftest.er1 >&5
2357     mv -f conftest.er1 conftest.err
2358   fi
2359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360   test $ac_status = 0; } && {
2361          test -z "$ac_c_werror_flag" ||
2362          test ! -s conftest.err
2363        } && test -s conftest$ac_exeext && {
2364          test "$cross_compiling" = yes ||
2365          $as_test_x conftest$ac_exeext
2366        }; then :
2367   ac_retval=0
2368 else
2369   $as_echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372         ac_retval=1
2373 fi
2374   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376   # interfere with the next link command; also delete a directory that is
2377   # left behind by Apple's compiler.  We do this before executing the actions.
2378   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2379   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380   return $ac_retval
2381
2382 } # ac_fn_c_try_link
2383
2384 # ac_fn_c_find_uintX_t LINENO BITS VAR
2385 # ------------------------------------
2386 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2387 # accordingly.
2388 ac_fn_c_find_uintX_t ()
2389 {
2390   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2392 $as_echo_n "checking for uint$2_t... " >&6; }
2393 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2394   $as_echo_n "(cached) " >&6
2395 else
2396   eval "$3=no"
2397      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2398          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2399        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h.  */
2401 $ac_includes_default
2402 int
2403 main ()
2404 {
2405 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2406 test_array [0] = 0
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413   case $ac_type in #(
2414   uint$2_t) :
2415     eval "$3=yes" ;; #(
2416   *) :
2417     eval "$3=\$ac_type" ;;
2418 esac
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421        eval as_val=\$$3
2422    if test "x$as_val" = x""no; then :
2423
2424 else
2425   break
2426 fi
2427      done
2428 fi
2429 eval ac_res=\$$3
2430                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433
2434 } # ac_fn_c_find_uintX_t
2435
2436 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2437 # ----------------------------------------------
2438 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2439 ac_fn_c_check_header_preproc ()
2440 {
2441   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445   $as_echo_n "(cached) " >&6
2446 else
2447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h.  */
2449 #include <$2>
2450 _ACEOF
2451 if ac_fn_c_try_cpp "$LINENO"; then :
2452   eval "$3=yes"
2453 else
2454   eval "$3=no"
2455 fi
2456 rm -f conftest.err conftest.$ac_ext
2457 fi
2458 eval ac_res=\$$3
2459                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462
2463 } # ac_fn_c_check_header_preproc
2464
2465 # ac_fn_c_check_func LINENO FUNC VAR
2466 # ----------------------------------
2467 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2468 ac_fn_c_check_func ()
2469 {
2470   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474   $as_echo_n "(cached) " >&6
2475 else
2476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h.  */
2478 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2480 #define $2 innocuous_$2
2481
2482 /* System header to define __stub macros and hopefully few prototypes,
2483     which can conflict with char $2 (); below.
2484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485     <limits.h> exists even on freestanding compilers.  */
2486
2487 #ifdef __STDC__
2488 # include <limits.h>
2489 #else
2490 # include <assert.h>
2491 #endif
2492
2493 #undef $2
2494
2495 /* Override any GCC internal prototype to avoid an error.
2496    Use char because int might match the return type of a GCC
2497    builtin and then its argument prototype would still apply.  */
2498 #ifdef __cplusplus
2499 extern "C"
2500 #endif
2501 char $2 ();
2502 /* The GNU C library defines this for functions which it implements
2503     to always fail with ENOSYS.  Some functions are actually named
2504     something starting with __ and the normal name is an alias.  */
2505 #if defined __stub_$2 || defined __stub___$2
2506 choke me
2507 #endif
2508
2509 int
2510 main ()
2511 {
2512 return $2 ();
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 if ac_fn_c_try_link "$LINENO"; then :
2518   eval "$3=yes"
2519 else
2520   eval "$3=no"
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext \
2523     conftest$ac_exeext conftest.$ac_ext
2524 fi
2525 eval ac_res=\$$3
2526                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2529
2530 } # ac_fn_c_check_func
2531
2532 # ac_fn_cxx_try_cpp LINENO
2533 # ------------------------
2534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2535 ac_fn_cxx_try_cpp ()
2536 {
2537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538   if { { ac_try="$ac_cpp conftest.$ac_ext"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2544 $as_echo "$ac_try_echo"; } >&5
2545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2546   ac_status=$?
2547   if test -s conftest.err; then
2548     grep -v '^ *+' conftest.err >conftest.er1
2549     cat conftest.er1 >&5
2550     mv -f conftest.er1 conftest.err
2551   fi
2552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2553   test $ac_status = 0; } >/dev/null && {
2554          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2555          test ! -s conftest.err
2556        }; then :
2557   ac_retval=0
2558 else
2559   $as_echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562     ac_retval=1
2563 fi
2564   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565   return $ac_retval
2566
2567 } # ac_fn_cxx_try_cpp
2568
2569 # ac_fn_cxx_try_link LINENO
2570 # -------------------------
2571 # Try to link conftest.$ac_ext, and return whether this succeeded.
2572 ac_fn_cxx_try_link ()
2573 {
2574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575   rm -f conftest.$ac_objext conftest$ac_exeext
2576   if { { ac_try="$ac_link"
2577 case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2582 $as_echo "$ac_try_echo"; } >&5
2583   (eval "$ac_link") 2>conftest.err
2584   ac_status=$?
2585   if test -s conftest.err; then
2586     grep -v '^ *+' conftest.err >conftest.er1
2587     cat conftest.er1 >&5
2588     mv -f conftest.er1 conftest.err
2589   fi
2590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591   test $ac_status = 0; } && {
2592          test -z "$ac_cxx_werror_flag" ||
2593          test ! -s conftest.err
2594        } && test -s conftest$ac_exeext && {
2595          test "$cross_compiling" = yes ||
2596          $as_test_x conftest$ac_exeext
2597        }; then :
2598   ac_retval=0
2599 else
2600   $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603         ac_retval=1
2604 fi
2605   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2606   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2607   # interfere with the next link command; also delete a directory that is
2608   # left behind by Apple's compiler.  We do this before executing the actions.
2609   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2610   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611   return $ac_retval
2612
2613 } # ac_fn_cxx_try_link
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2617
2618 It was created by $as_me, which was
2619 generated by GNU Autoconf 2.64.  Invocation command line was
2620
2621   $ $0 $@
2622
2623 _ACEOF
2624 exec 5>>config.log
2625 {
2626 cat <<_ASUNAME
2627 ## --------- ##
2628 ## Platform. ##
2629 ## --------- ##
2630
2631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2636
2637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2638 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2639
2640 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2641 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2643 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2644 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2645 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2646 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2647
2648 _ASUNAME
2649
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     $as_echo "PATH: $as_dir"
2656   done
2657 IFS=$as_save_IFS
2658
2659 } >&5
2660
2661 cat >&5 <<_ACEOF
2662
2663
2664 ## ----------- ##
2665 ## Core tests. ##
2666 ## ----------- ##
2667
2668 _ACEOF
2669
2670
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2676 ac_configure_args=
2677 ac_configure_args0=
2678 ac_configure_args1=
2679 ac_must_keep_next=false
2680 for ac_pass in 1 2
2681 do
2682   for ac_arg
2683   do
2684     case $ac_arg in
2685     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687     | -silent | --silent | --silen | --sile | --sil)
2688       continue ;;
2689     *\'*)
2690       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2691     esac
2692     case $ac_pass in
2693     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2694     2)
2695       as_fn_append ac_configure_args1 " '$ac_arg'"
2696       if test $ac_must_keep_next = true; then
2697         ac_must_keep_next=false # Got value, back to normal.
2698       else
2699         case $ac_arg in
2700           *=* | --config-cache | -C | -disable-* | --disable-* \
2701           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703           | -with-* | --with-* | -without-* | --without-* | --x)
2704             case "$ac_configure_args0 " in
2705               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706             esac
2707             ;;
2708           -* ) ac_must_keep_next=true ;;
2709         esac
2710       fi
2711       as_fn_append ac_configure_args " '$ac_arg'"
2712       ;;
2713     esac
2714   done
2715 done
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2718
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log.  We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725   # Save into config.log some information that might help in debugging.
2726   {
2727     echo
2728
2729     cat <<\_ASBOX
2730 ## ---------------- ##
2731 ## Cache variables. ##
2732 ## ---------------- ##
2733 _ASBOX
2734     echo
2735     # The following way of writing the cache mishandles newlines in values,
2736 (
2737   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2738     eval ac_val=\$$ac_var
2739     case $ac_val in #(
2740     *${as_nl}*)
2741       case $ac_var in #(
2742       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2744       esac
2745       case $ac_var in #(
2746       _ | IFS | as_nl) ;; #(
2747       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2748       *) { eval $ac_var=; unset $ac_var;} ;;
2749       esac ;;
2750     esac
2751   done
2752   (set) 2>&1 |
2753     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2754     *${as_nl}ac_space=\ *)
2755       sed -n \
2756         "s/'\''/'\''\\\\'\'''\''/g;
2757           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2758       ;; #(
2759     *)
2760       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2761       ;;
2762     esac |
2763     sort
2764 )
2765     echo
2766
2767     cat <<\_ASBOX
2768 ## ----------------- ##
2769 ## Output variables. ##
2770 ## ----------------- ##
2771 _ASBOX
2772     echo
2773     for ac_var in $ac_subst_vars
2774     do
2775       eval ac_val=\$$ac_var
2776       case $ac_val in
2777       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2778       esac
2779       $as_echo "$ac_var='\''$ac_val'\''"
2780     done | sort
2781     echo
2782
2783     if test -n "$ac_subst_files"; then
2784       cat <<\_ASBOX
2785 ## ------------------- ##
2786 ## File substitutions. ##
2787 ## ------------------- ##
2788 _ASBOX
2789       echo
2790       for ac_var in $ac_subst_files
2791       do
2792         eval ac_val=\$$ac_var
2793         case $ac_val in
2794         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2795         esac
2796         $as_echo "$ac_var='\''$ac_val'\''"
2797       done | sort
2798       echo
2799     fi
2800
2801     if test -s confdefs.h; then
2802       cat <<\_ASBOX
2803 ## ----------- ##
2804 ## confdefs.h. ##
2805 ## ----------- ##
2806 _ASBOX
2807       echo
2808       cat confdefs.h
2809       echo
2810     fi
2811     test "$ac_signal" != 0 &&
2812       $as_echo "$as_me: caught signal $ac_signal"
2813     $as_echo "$as_me: exit $exit_status"
2814   } >&5
2815   rm -f core *.core core.conftest.* &&
2816     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2817     exit $exit_status
2818 ' 0
2819 for ac_signal in 1 2 13 15; do
2820   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2821 done
2822 ac_signal=0
2823
2824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2825 rm -f -r conftest* confdefs.h
2826
2827 $as_echo "/* confdefs.h */" > confdefs.h
2828
2829 # Predefined preprocessor variables.
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_NAME "$PACKAGE_NAME"
2833 _ACEOF
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_STRING "$PACKAGE_STRING"
2845 _ACEOF
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_URL "$PACKAGE_URL"
2853 _ACEOF
2854
2855
2856 # Let the site file select an alternate cache file if it wants to.
2857 # Prefer an explicitly selected file to automatically selected ones.
2858 ac_site_file1=NONE
2859 ac_site_file2=NONE
2860 if test -n "$CONFIG_SITE"; then
2861   ac_site_file1=$CONFIG_SITE
2862 elif test "x$prefix" != xNONE; then
2863   ac_site_file1=$prefix/share/config.site
2864   ac_site_file2=$prefix/etc/config.site
2865 else
2866   ac_site_file1=$ac_default_prefix/share/config.site
2867   ac_site_file2=$ac_default_prefix/etc/config.site
2868 fi
2869 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2870 do
2871   test "x$ac_site_file" = xNONE && continue
2872   if test -r "$ac_site_file"; then
2873     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2874 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2875     sed 's/^/| /' "$ac_site_file" >&5
2876     . "$ac_site_file"
2877   fi
2878 done
2879
2880 if test -r "$cache_file"; then
2881   # Some versions of bash will fail to source /dev/null (special
2882   # files actually), so we avoid doing that.
2883   if test -f "$cache_file"; then
2884     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2885 $as_echo "$as_me: loading cache $cache_file" >&6;}
2886     case $cache_file in
2887       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2888       *)                      . "./$cache_file";;
2889     esac
2890   fi
2891 else
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2893 $as_echo "$as_me: creating cache $cache_file" >&6;}
2894   >$cache_file
2895 fi
2896
2897 # Check that the precious variables saved in the cache have kept the same
2898 # value.
2899 ac_cache_corrupted=false
2900 for ac_var in $ac_precious_vars; do
2901   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2902   eval ac_new_set=\$ac_env_${ac_var}_set
2903   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2904   eval ac_new_val=\$ac_env_${ac_var}_value
2905   case $ac_old_set,$ac_new_set in
2906     set,)
2907       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2908 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2909       ac_cache_corrupted=: ;;
2910     ,set)
2911       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2913       ac_cache_corrupted=: ;;
2914     ,);;
2915     *)
2916       if test "x$ac_old_val" != "x$ac_new_val"; then
2917         # differences in whitespace do not lead to failure.
2918         ac_old_val_w=`echo x $ac_old_val`
2919         ac_new_val_w=`echo x $ac_new_val`
2920         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2921           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2922 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2923           ac_cache_corrupted=:
2924         else
2925           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2926 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2927           eval $ac_var=\$ac_old_val
2928         fi
2929         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2930 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2931         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2932 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2933       fi;;
2934   esac
2935   # Pass precious variables to config.status.
2936   if test "$ac_new_set" = set; then
2937     case $ac_new_val in
2938     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2939     *) ac_arg=$ac_var=$ac_new_val ;;
2940     esac
2941     case " $ac_configure_args " in
2942       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2943       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2944     esac
2945   fi
2946 done
2947 if $ac_cache_corrupted; then
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2951 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2952   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2953 fi
2954 ## -------------------- ##
2955 ## Main body of script. ##
2956 ## -------------------- ##
2957
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963
2964
2965
2966
2967
2968
2969 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2970
2971
2972 gcc_version=`cat $srcdir/BASE-VER`
2973
2974 # Determine the host, build, and target systems
2975 ac_aux_dir=
2976 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2977   for ac_t in install-sh install.sh shtool; do
2978     if test -f "$ac_dir/$ac_t"; then
2979       ac_aux_dir=$ac_dir
2980       ac_install_sh="$ac_aux_dir/$ac_t -c"
2981       break 2
2982     fi
2983   done
2984 done
2985 if test -z "$ac_aux_dir"; then
2986   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2987 fi
2988
2989 # These three variables are undocumented and unsupported,
2990 # and are intended to be withdrawn in a future Autoconf release.
2991 # They can cause serious problems if a builder's source tree is in a directory
2992 # whose full name contains unusual characters.
2993 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2994 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2995 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2996
2997
2998 # Make sure we can run config.sub.
2999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3000   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3001
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3003 $as_echo_n "checking build system type... " >&6; }
3004 if test "${ac_cv_build+set}" = set; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   ac_build_alias=$build_alias
3008 test "x$ac_build_alias" = x &&
3009   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3010 test "x$ac_build_alias" = x &&
3011   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3013   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3014
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3017 $as_echo "$ac_cv_build" >&6; }
3018 case $ac_cv_build in
3019 *-*-*) ;;
3020 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3021 esac
3022 build=$ac_cv_build
3023 ac_save_IFS=$IFS; IFS='-'
3024 set x $ac_cv_build
3025 shift
3026 build_cpu=$1
3027 build_vendor=$2
3028 shift; shift
3029 # Remember, the first character of IFS is used to create $*,
3030 # except with old shells:
3031 build_os=$*
3032 IFS=$ac_save_IFS
3033 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3034
3035
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3037 $as_echo_n "checking host system type... " >&6; }
3038 if test "${ac_cv_host+set}" = set; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if test "x$host_alias" = x; then
3042   ac_cv_host=$ac_cv_build
3043 else
3044   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3045     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3046 fi
3047
3048 fi
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3050 $as_echo "$ac_cv_host" >&6; }
3051 case $ac_cv_host in
3052 *-*-*) ;;
3053 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3054 esac
3055 host=$ac_cv_host
3056 ac_save_IFS=$IFS; IFS='-'
3057 set x $ac_cv_host
3058 shift
3059 host_cpu=$1
3060 host_vendor=$2
3061 shift; shift
3062 # Remember, the first character of IFS is used to create $*,
3063 # except with old shells:
3064 host_os=$*
3065 IFS=$ac_save_IFS
3066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3067
3068
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3070 $as_echo_n "checking target system type... " >&6; }
3071 if test "${ac_cv_target+set}" = set; then :
3072   $as_echo_n "(cached) " >&6
3073 else
3074   if test "x$target_alias" = x; then
3075   ac_cv_target=$ac_cv_host
3076 else
3077   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3078     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3079 fi
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3083 $as_echo "$ac_cv_target" >&6; }
3084 case $ac_cv_target in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3087 esac
3088 target=$ac_cv_target
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_target
3091 shift
3092 target_cpu=$1
3093 target_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 target_os=$*
3098 IFS=$ac_save_IFS
3099 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3100
3101
3102 # The aliases save the names the user supplied, while $host etc.
3103 # will get canonicalized.
3104 test -n "$target_alias" &&
3105   test "$program_prefix$program_suffix$program_transform_name" = \
3106     NONENONEs,x,x, &&
3107   program_prefix=${target_alias}-
3108
3109 # Determine the noncanonical target name, for directory use.
3110  case ${build_alias} in
3111   "") build_noncanonical=${build} ;;
3112   *) build_noncanonical=${build_alias} ;;
3113 esac
3114
3115  case ${host_alias} in
3116   "") host_noncanonical=${build_noncanonical} ;;
3117   *) host_noncanonical=${host_alias} ;;
3118 esac
3119
3120  case ${target_alias} in
3121   "") target_noncanonical=${host_noncanonical} ;;
3122   *) target_noncanonical=${target_alias} ;;
3123 esac
3124
3125
3126
3127
3128 # Determine the target- and build-specific subdirectories
3129
3130 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3131 # have matching libraries, they should use host libraries: Makefile.tpl
3132 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3133 # However, they still use the build modules, because the corresponding
3134 # host modules (e.g. bison) are only built for the host when bootstrap
3135 # finishes. So:
3136 # - build_subdir is where we find build modules, and never changes.
3137 # - build_libsubdir is where we find build libraries, and can be overridden.
3138
3139 # Prefix 'build-' so this never conflicts with target_subdir.
3140 build_subdir="build-${build_noncanonical}"
3141
3142 # Check whether --with-build-libsubdir was given.
3143 if test "${with_build_libsubdir+set}" = set; then :
3144   withval=$with_build_libsubdir; build_libsubdir="$withval"
3145 else
3146   build_libsubdir="$build_subdir"
3147 fi
3148
3149 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3150 if ( test $srcdir = . && test -d gcc ) \
3151    || test -d $srcdir/../host-${host_noncanonical}; then
3152   host_subdir="host-${host_noncanonical}"
3153 else
3154   host_subdir=.
3155 fi
3156 # No prefix.
3157 target_subdir=${target_noncanonical}
3158
3159
3160 # Set program_transform_name
3161 test "$program_prefix" != NONE &&
3162   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3166 # Double any \ or $.
3167 # By default was `s,x,x', remove it if useless.
3168 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3169 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3170
3171
3172 # Check for bogus environment variables.
3173 # Test if LIBRARY_PATH contains the notation for the current directory
3174 # since this would lead to problems installing/building glibc.
3175 # LIBRARY_PATH contains the current directory if one of the following
3176 # is true:
3177 # - one of the terminals (":" and ";") is the first or last sign
3178 # - two terminals occur directly after each other
3179 # - the path contains an element with a dot in it
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3181 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3182 case ${LIBRARY_PATH} in
3183   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3184     library_path_setting="contains current directory"
3185     ;;
3186   *)
3187     library_path_setting="ok"
3188     ;;
3189 esac
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3191 $as_echo "$library_path_setting" >&6; }
3192 if test "$library_path_setting" != "ok"; then
3193 as_fn_error "
3194 *** LIBRARY_PATH shouldn't contain the current directory when
3195 *** building gcc. Please change the environment variable
3196 *** and run configure again." "$LINENO" 5
3197 fi
3198
3199 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3200 # since this would lead to problems installing/building glibc.
3201 # GCC_EXEC_PREFIX contains the current directory if one of the following
3202 # is true:
3203 # - one of the terminals (":" and ";") is the first or last sign
3204 # - two terminals occur directly after each other
3205 # - the path contains an element with a dot in it
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3207 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3208 case ${GCC_EXEC_PREFIX} in
3209   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3210     gcc_exec_prefix_setting="contains current directory"
3211     ;;
3212   *)
3213     gcc_exec_prefix_setting="ok"
3214     ;;
3215 esac
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3217 $as_echo "$gcc_exec_prefix_setting" >&6; }
3218 if test "$gcc_exec_prefix_setting" != "ok"; then
3219 as_fn_error "
3220 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3221 *** building gcc. Please change the environment variable
3222 *** and run configure again." "$LINENO" 5
3223 fi
3224
3225 # -----------
3226 # Directories
3227 # -----------
3228
3229 # Specify the local prefix
3230 local_prefix=
3231
3232 # Check whether --with-local-prefix was given.
3233 if test "${with_local_prefix+set}" = set; then :
3234   withval=$with_local_prefix; case "${withval}" in
3235 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3236 no)     ;;
3237 *)      local_prefix=$with_local_prefix ;;
3238 esac
3239 fi
3240
3241
3242 # Default local prefix if it is empty
3243 if test x$local_prefix = x; then
3244         local_prefix=/usr/local
3245 fi
3246
3247 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3248 # passed in by the toplevel make and thus we'd get different behavior
3249 # depending on where we built the sources.
3250 gcc_gxx_include_dir=
3251 # Specify the g++ header file directory
3252
3253 # Check whether --with-gxx-include-dir was given.
3254 if test "${with_gxx_include_dir+set}" = set; then :
3255   withval=$with_gxx_include_dir; case "${withval}" in
3256 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3257 no)     ;;
3258 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3259 esac
3260 fi
3261
3262
3263 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3264 if test x${gcc_gxx_include_dir} = x; then
3265   if test x${enable_version_specific_runtime_libs} = xyes; then
3266     gcc_gxx_include_dir='${libsubdir}/include/c++'
3267   else
3268     libstdcxx_incdir='include/c++/$(version)'
3269     if test x$host != x$target; then
3270        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3271     fi
3272     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3273   fi
3274 fi
3275
3276
3277 # Check whether --with-cpp_install_dir was given.
3278 if test "${with_cpp_install_dir+set}" = set; then :
3279   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3280   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3281 elif test x$withval != xno; then
3282   cpp_install_dir=$withval
3283 fi
3284 fi
3285
3286
3287 # We would like to our source tree to be readonly.  However when releases or
3288 # pre-releases are generated, the flex/bison generated files as well as the
3289 # various formats of manuals need to be included along with the rest of the
3290 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3291 # just that.
3292
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3294 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3295     # Check whether --enable-generated-files-in-srcdir was given.
3296 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3297   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3298 else
3299   generated_files_in_srcdir=no
3300 fi
3301
3302
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3304 $as_echo "$generated_files_in_srcdir" >&6; }
3305
3306 if test "$generated_files_in_srcdir" = "yes"; then
3307   GENINSRC=''
3308 else
3309   GENINSRC='#'
3310 fi
3311
3312
3313 # -------------------
3314 # Find default linker
3315 # -------------------
3316
3317 # With GNU ld
3318
3319 # Check whether --with-gnu-ld was given.
3320 if test "${with_gnu_ld+set}" = set; then :
3321   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3322 else
3323   gnu_ld_flag=no
3324 fi
3325
3326
3327 # With pre-defined ld
3328
3329 # Check whether --with-ld was given.
3330 if test "${with_ld+set}" = set; then :
3331   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3332 fi
3333
3334 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3335   if test ! -x "$DEFAULT_LINKER"; then
3336     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3337   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3338     gnu_ld_flag=yes
3339   fi
3340
3341 cat >>confdefs.h <<_ACEOF
3342 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3343 _ACEOF
3344
3345 fi
3346
3347 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3348
3349 cat >>confdefs.h <<_ACEOF
3350 #define HAVE_GNU_LD $gnu_ld
3351 _ACEOF
3352
3353
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3355 $as_echo_n "checking whether a default linker was specified... " >&6; }
3356 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3357   if test x"$gnu_ld_flag" = x"no"; then
3358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3359 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3360   else
3361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3362 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3363   fi
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369 # With demangler in GNU ld
3370
3371 # Check whether --with-demangler-in-ld was given.
3372 if test "${with_demangler_in_ld+set}" = set; then :
3373   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3374 else
3375   demangler_in_ld=no
3376 fi
3377
3378
3379 # ----------------------
3380 # Find default assembler
3381 # ----------------------
3382
3383 # With GNU as
3384
3385 # Check whether --with-gnu-as was given.
3386 if test "${with_gnu_as+set}" = set; then :
3387   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3388 else
3389   gas_flag=no
3390 fi
3391
3392
3393
3394 # Check whether --with-as was given.
3395 if test "${with_as+set}" = set; then :
3396   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3397 fi
3398
3399 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3400   if test ! -x "$DEFAULT_ASSEMBLER"; then
3401     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3402   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3403     gas_flag=yes
3404   fi
3405
3406 cat >>confdefs.h <<_ACEOF
3407 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3408 _ACEOF
3409
3410 fi
3411
3412 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3413
3414 cat >>confdefs.h <<_ACEOF
3415 #define HAVE_GNU_AS $gnu_as
3416 _ACEOF
3417
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3420 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3421 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3422   if test x"$gas_flag" = x"no"; then
3423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3424 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3425   else
3426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3427 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3428   fi
3429 else
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434 # ---------------
3435 # Find C compiler
3436 # ---------------
3437
3438 # If a non-executable a.out is present (e.g. created by GNU as above even if
3439 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3440 # file, even when creating an executable, so an execution test fails.
3441 # Remove possible default executable files to avoid this.
3442 #
3443 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3444 # Autoconf includes it.
3445 rm -f a.out a.exe b.out
3446
3447 # Find the native compiler
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 if test -n "$ac_tool_prefix"; then
3454   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3455 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_CC+set}" = set; then :
3459   $as_echo_n "(cached) " >&6
3460 else
3461   if test -n "$CC"; then
3462   ac_cv_prog_CC="$CC" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467   IFS=$as_save_IFS
3468   test -z "$as_dir" && as_dir=.
3469     for ac_exec_ext in '' $ac_executable_extensions; do
3470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473     break 2
3474   fi
3475 done
3476   done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490
3491 fi
3492 if test -z "$ac_cv_prog_CC"; then
3493   ac_ct_CC=$CC
3494   # Extract the first word of "gcc", so it can be a program name with args.
3495 set dummy gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   if test -n "$ac_ct_CC"; then
3502   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509     for ac_exec_ext in '' $ac_executable_extensions; do
3510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511     ac_cv_prog_ac_ct_CC="gcc"
3512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516   done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3525 else
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530   if test "x$ac_ct_CC" = x; then
3531     CC=""
3532   else
3533     case $cross_compiling:$ac_tool_warned in
3534 yes:)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned=yes ;;
3538 esac
3539     CC=$ac_ct_CC
3540   fi
3541 else
3542   CC="$ac_cv_prog_CC"
3543 fi
3544
3545 if test -z "$CC"; then
3546           if test -n "$ac_tool_prefix"; then
3547     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}cc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_CC+set}" = set; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   if test -n "$CC"; then
3555   ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562     for ac_exec_ext in '' $ac_executable_extensions; do
3563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564     ac_cv_prog_CC="${ac_tool_prefix}cc"
3565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569   done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584   fi
3585 fi
3586 if test -z "$CC"; then
3587   # Extract the first word of "cc", so it can be a program name with args.
3588 set dummy cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592   $as_echo_n "(cached) " >&6
3593 else
3594   if test -n "$CC"; then
3595   ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597   ac_prog_rejected=no
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     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606        ac_prog_rejected=yes
3607        continue
3608      fi
3609     ac_cv_prog_CC="cc"
3610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614   done
3615 IFS=$as_save_IFS
3616
3617 if test $ac_prog_rejected = yes; then
3618   # We found a bogon in the path, so make sure we never use it.
3619   set dummy $ac_cv_prog_CC
3620   shift
3621   if test $# != 0; then
3622     # We chose a different compiler from the bogus one.
3623     # However, it has the same basename, so the bogon will be chosen
3624     # first if we set CC to just the basename; use the full file name.
3625     shift
3626     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3627   fi
3628 fi
3629 fi
3630 fi
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3635 else
3636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 fi
3639
3640
3641 fi
3642 if test -z "$CC"; then
3643   if test -n "$ac_tool_prefix"; then
3644   for ac_prog in cl.exe
3645   do
3646     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if test "${ac_cv_prog_CC+set}" = set; then :
3651   $as_echo_n "(cached) " >&6
3652 else
3653   if test -n "$CC"; then
3654   ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661     for ac_exec_ext in '' $ac_executable_extensions; do
3662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668   done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683     test -n "$CC" && break
3684   done
3685 fi
3686 if test -z "$CC"; then
3687   ac_ct_CC=$CC
3688   for ac_prog in cl.exe
3689 do
3690   # Extract the first word of "$ac_prog", so it can be a program name with args.
3691 set dummy $ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3695   $as_echo_n "(cached) " >&6
3696 else
3697   if test -n "$ac_ct_CC"; then
3698   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705     for ac_exec_ext in '' $ac_executable_extensions; do
3706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707     ac_cv_prog_ac_ct_CC="$ac_prog"
3708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712   done
3713 IFS=$as_save_IFS
3714
3715 fi
3716 fi
3717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3720 $as_echo "$ac_ct_CC" >&6; }
3721 else
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 fi
3725
3726
3727   test -n "$ac_ct_CC" && break
3728 done
3729
3730   if test "x$ac_ct_CC" = x; then
3731     CC=""
3732   else
3733     case $cross_compiling:$ac_tool_warned in
3734 yes:)
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3738 esac
3739     CC=$ac_ct_CC
3740   fi
3741 fi
3742
3743 fi
3744
3745
3746 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error "no acceptable C compiler found in \$PATH
3749 See \`config.log' for more details." "$LINENO" 5; }
3750
3751 # Provide some information about the compiler.
3752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3753 set X $ac_compile
3754 ac_compiler=$2
3755 for ac_option in --version -v -V -qversion; do
3756   { { ac_try="$ac_compiler $ac_option >&5"
3757 case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3764   ac_status=$?
3765   if test -s conftest.err; then
3766     sed '10a\
3767 ... rest of stderr output deleted ...
3768          10q' conftest.err >conftest.er1
3769     cat conftest.er1 >&5
3770     rm -f conftest.er1 conftest.err
3771   fi
3772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773   test $ac_status = 0; }
3774 done
3775
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778
3779 int
3780 main ()
3781 {
3782
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 ac_clean_files_save=$ac_clean_files
3788 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3789 # Try to create an executable without -o first, disregard a.out.
3790 # It will help us diagnose broken compilers, and finding out an intuition
3791 # of exeext.
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3793 $as_echo_n "checking for C compiler default output file name... " >&6; }
3794 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3795
3796 # The possible output files:
3797 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3798
3799 ac_rmfiles=
3800 for ac_file in $ac_files
3801 do
3802   case $ac_file in
3803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3805   esac
3806 done
3807 rm -f $ac_rmfiles
3808
3809 if { { ac_try="$ac_link_default"
3810 case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816   (eval "$ac_link_default") 2>&5
3817   ac_status=$?
3818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819   test $ac_status = 0; }; then :
3820   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3822 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3823 # so that the user can short-circuit this test for compilers unknown to
3824 # Autoconf.
3825 for ac_file in $ac_files ''
3826 do
3827   test -f "$ac_file" || continue
3828   case $ac_file in
3829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3830         ;;
3831     [ab].out )
3832         # We found the default executable, but exeext='' is most
3833         # certainly right.
3834         break;;
3835     *.* )
3836         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3837         then :; else
3838            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3839         fi
3840         # We set ac_cv_exeext here because the later test for it is not
3841         # safe: cross compilers may not add the suffix if given an `-o'
3842         # argument, so we may need to know it at that point already.
3843         # Even if this section looks crufty: it has the advantage of
3844         # actually working.
3845         break;;
3846     * )
3847         break;;
3848   esac
3849 done
3850 test "$ac_cv_exeext" = no && ac_cv_exeext=
3851
3852 else
3853   ac_file=''
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3856 $as_echo "$ac_file" >&6; }
3857 if test -z "$ac_file"; then :
3858   $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 { as_fn_set_status 77
3864 as_fn_error "C compiler cannot create executables
3865 See \`config.log' for more details." "$LINENO" 5; }; }
3866 fi
3867 ac_exeext=$ac_cv_exeext
3868
3869 # Check that the compiler produces executables we can run.  If not, either
3870 # the compiler is broken, or we cross compile.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3872 $as_echo_n "checking whether the C compiler works... " >&6; }
3873 # If not cross compiling, check that we can run a simple program.
3874 if test "$cross_compiling" != yes; then
3875   if { ac_try='./$ac_file'
3876   { { case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882   (eval "$ac_try") 2>&5
3883   ac_status=$?
3884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885   test $ac_status = 0; }; }; then
3886     cross_compiling=no
3887   else
3888     if test "$cross_compiling" = maybe; then
3889         cross_compiling=yes
3890     else
3891         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error "cannot run C compiled programs.
3894 If you meant to cross compile, use \`--host'.
3895 See \`config.log' for more details." "$LINENO" 5; }
3896     fi
3897   fi
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 $as_echo "yes" >&6; }
3901
3902 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3903 ac_clean_files=$ac_clean_files_save
3904 # Check that the compiler produces executables we can run.  If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3907 $as_echo_n "checking whether we are cross compiling... " >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3909 $as_echo "$cross_compiling" >&6; }
3910
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920   (eval "$ac_link") 2>&5
3921   ac_status=$?
3922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923   test $ac_status = 0; }; then :
3924   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3927 # `rm'.
3928 for ac_file in conftest.exe conftest conftest.*; do
3929   test -f "$ac_file" || continue
3930   case $ac_file in
3931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933           break;;
3934     * ) break;;
3935   esac
3936 done
3937 else
3938   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details." "$LINENO" 5; }
3942 fi
3943 rm -f conftest$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3946
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3949 ac_exeext=$EXEEXT
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3951 $as_echo_n "checking for suffix of object files... " >&6; }
3952 if test "${ac_cv_objext+set}" = set; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.o conftest.obj
3967 if { { ac_try="$ac_compile"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974   (eval "$ac_compile") 2>&5
3975   ac_status=$?
3976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977   test $ac_status = 0; }; then :
3978   for ac_file in conftest.o conftest.obj conftest.*; do
3979   test -f "$ac_file" || continue;
3980   case $ac_file in
3981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3983        break;;
3984   esac
3985 done
3986 else
3987   $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error "cannot compute suffix of object files: cannot compile
3993 See \`config.log' for more details." "$LINENO" 5; }
3994 fi
3995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3998 $as_echo "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext
4000 ac_objext=$OBJEXT
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4004   $as_echo_n "(cached) " >&6
4005 else
4006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h.  */
4008
4009 int
4010 main ()
4011 {
4012 #ifndef __GNUC__
4013        choke me
4014 #endif
4015
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021   ac_compiler_gnu=yes
4022 else
4023   ac_compiler_gnu=no
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then
4032   GCC=yes
4033 else
4034   GCC=
4035 fi
4036 ac_test_CFLAGS=${CFLAGS+set}
4037 ac_save_CFLAGS=$CFLAGS
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4040 if test "${ac_cv_prog_cc_g+set}" = set; then :
4041   $as_echo_n "(cached) " >&6
4042 else
4043   ac_save_c_werror_flag=$ac_c_werror_flag
4044    ac_c_werror_flag=yes
4045    ac_cv_prog_cc_g=no
4046    CFLAGS="-g"
4047    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059   ac_cv_prog_cc_g=yes
4060 else
4061   CFLAGS=""
4062       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064
4065 int
4066 main ()
4067 {
4068
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"; then :
4074
4075 else
4076   ac_c_werror_flag=$ac_save_c_werror_flag
4077          CFLAGS="-g"
4078          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h.  */
4080
4081 int
4082 main ()
4083 {
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090   ac_cv_prog_cc_g=yes
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097    ac_c_werror_flag=$ac_save_c_werror_flag
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4100 $as_echo "$ac_cv_prog_cc_g" >&6; }
4101 if test "$ac_test_CFLAGS" = set; then
4102   CFLAGS=$ac_save_CFLAGS
4103 elif test $ac_cv_prog_cc_g = yes; then
4104   if test "$GCC" = yes; then
4105     CFLAGS="-g -O2"
4106   else
4107     CFLAGS="-g"
4108   fi
4109 else
4110   if test "$GCC" = yes; then
4111     CFLAGS="-O2"
4112   else
4113     CFLAGS=
4114   fi
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4117 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4118 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   ac_cv_prog_cc_c89=no
4122 ac_save_CC=$CC
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h.  */
4125 #include <stdarg.h>
4126 #include <stdio.h>
4127 #include <sys/types.h>
4128 #include <sys/stat.h>
4129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4130 struct buf { int x; };
4131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4132 static char *e (p, i)
4133      char **p;
4134      int i;
4135 {
4136   return p[i];
4137 }
4138 static char *f (char * (*g) (char **, int), char **p, ...)
4139 {
4140   char *s;
4141   va_list v;
4142   va_start (v,p);
4143   s = g (p, va_arg (v,int));
4144   va_end (v);
4145   return s;
4146 }
4147
4148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4149    function prototypes and stuff, but not '\xHH' hex character constants.
4150    These don't provoke an error unfortunately, instead are silently treated
4151    as 'x'.  The following induces an error, until -std is added to get
4152    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4153    array size at least.  It's necessary to write '\x00'==0 to get something
4154    that's true only with -std.  */
4155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4156
4157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4158    inside strings and character constants.  */
4159 #define FOO(x) 'x'
4160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4161
4162 int test (int i, double x);
4163 struct s1 {int (*f) (int a);};
4164 struct s2 {int (*f) (double a);};
4165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4166 int argc;
4167 char **argv;
4168 int
4169 main ()
4170 {
4171 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4177         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4178 do
4179   CC="$ac_save_CC $ac_arg"
4180   if ac_fn_c_try_compile "$LINENO"; then :
4181   ac_cv_prog_cc_c89=$ac_arg
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext
4184   test "x$ac_cv_prog_cc_c89" != "xno" && break
4185 done
4186 rm -f conftest.$ac_ext
4187 CC=$ac_save_CC
4188
4189 fi
4190 # AC_CACHE_VAL
4191 case "x$ac_cv_prog_cc_c89" in
4192   x)
4193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194 $as_echo "none needed" >&6; } ;;
4195   xno)
4196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197 $as_echo "unsupported" >&6; } ;;
4198   *)
4199     CC="$CC $ac_cv_prog_cc_c89"
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4202 esac
4203 if test "x$ac_cv_prog_cc_c89" != xno; then :
4204
4205 fi
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 if test "x$CC" != xcc; then
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4215 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4216 else
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4218 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4219 fi
4220 set dummy $CC; ac_cc=`$as_echo "$2" |
4221                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4222 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h.  */
4227
4228 int
4229 main ()
4230 {
4231
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 # Make sure it works both with $CC and with simple cc.
4237 # We do the test twice because some compilers refuse to overwrite an
4238 # existing .o file with -o, though they will create one.
4239 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4240 rm -f conftest2.*
4241 if { { case "(($ac_try" in
4242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243   *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247   (eval "$ac_try") 2>&5
4248   ac_status=$?
4249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250   test $ac_status = 0; } &&
4251    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257   (eval "$ac_try") 2>&5
4258   ac_status=$?
4259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260   test $ac_status = 0; };
4261 then
4262   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4263   if test "x$CC" != xcc; then
4264     # Test first that cc exists at all.
4265     if { ac_try='cc -c conftest.$ac_ext >&5'
4266   { { case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272   (eval "$ac_try") 2>&5
4273   ac_status=$?
4274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275   test $ac_status = 0; }; }; then
4276       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4277       rm -f conftest2.*
4278       if { { case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284   (eval "$ac_try") 2>&5
4285   ac_status=$?
4286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287   test $ac_status = 0; } &&
4288          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294   (eval "$ac_try") 2>&5
4295   ac_status=$?
4296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297   test $ac_status = 0; };
4298       then
4299         # cc works too.
4300         :
4301       else
4302         # cc exists but doesn't like -o.
4303         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4304       fi
4305     fi
4306   fi
4307 else
4308   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4309 fi
4310 rm -f core conftest*
4311
4312 fi
4313 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4315 $as_echo "yes" >&6; }
4316 else
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319
4320 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4321
4322 fi
4323
4324 # expand $ac_aux_dir to an absolute path
4325 am_aux_dir=`cd $ac_aux_dir && pwd`
4326
4327 # FIXME: we rely on the cache variable name because
4328 # there is no other way.
4329 set dummy $CC
4330 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4331 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4332 if test "$am_t" != yes; then
4333    # Losing compiler, so override with the script.
4334    # FIXME: It is wrong to rewrite CC.
4335    # But if we don't then we get into trouble of one sort or another.
4336    # A longer-term fix would be to have automake use am__CC in this case,
4337    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4338    CC="$am_aux_dir/compile $CC"
4339 fi
4340
4341
4342 ac_ext=cpp
4343 ac_cpp='$CXXCPP $CPPFLAGS'
4344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4347 if test -z "$CXX"; then
4348   if test -n "$CCC"; then
4349     CXX=$CCC
4350   else
4351     if test -n "$ac_tool_prefix"; then
4352   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4353   do
4354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_prog_CXX+set}" = set; then :
4359   $as_echo_n "(cached) " >&6
4360 else
4361   if test -n "$CXX"; then
4362   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367   IFS=$as_save_IFS
4368   test -z "$as_dir" && as_dir=.
4369     for ac_exec_ext in '' $ac_executable_extensions; do
4370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376   done
4377 IFS=$as_save_IFS
4378
4379 fi
4380 fi
4381 CXX=$ac_cv_prog_CXX
4382 if test -n "$CXX"; then
4383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4384 $as_echo "$CXX" >&6; }
4385 else
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389
4390
4391     test -n "$CXX" && break
4392   done
4393 fi
4394 if test -z "$CXX"; then
4395   ac_ct_CXX=$CXX
4396   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4397 do
4398   # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4403   $as_echo_n "(cached) " >&6
4404 else
4405   if test -n "$ac_ct_CXX"; then
4406   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413     for ac_exec_ext in '' $ac_executable_extensions; do
4414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415     ac_cv_prog_ac_ct_CXX="$ac_prog"
4416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420   done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4426 if test -n "$ac_ct_CXX"; then
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4428 $as_echo "$ac_ct_CXX" >&6; }
4429 else
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435   test -n "$ac_ct_CXX" && break
4436 done
4437
4438   if test "x$ac_ct_CXX" = x; then
4439     CXX="g++"
4440   else
4441     case $cross_compiling:$ac_tool_warned in
4442 yes:)
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4446 esac
4447     CXX=$ac_ct_CXX
4448   fi
4449 fi
4450
4451   fi
4452 fi
4453 # Provide some information about the compiler.
4454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4455 set X $ac_compile
4456 ac_compiler=$2
4457 for ac_option in --version -v -V -qversion; do
4458   { { ac_try="$ac_compiler $ac_option >&5"
4459 case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4466   ac_status=$?
4467   if test -s conftest.err; then
4468     sed '10a\
4469 ... rest of stderr output deleted ...
4470          10q' conftest.err >conftest.er1
4471     cat conftest.er1 >&5
4472     rm -f conftest.er1 conftest.err
4473   fi
4474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475   test $ac_status = 0; }
4476 done
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4479 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4480 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h.  */
4485
4486 int
4487 main ()
4488 {
4489 #ifndef __GNUC__
4490        choke me
4491 #endif
4492
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_cxx_try_compile "$LINENO"; then :
4498   ac_compiler_gnu=yes
4499 else
4500   ac_compiler_gnu=no
4501 fi
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4504
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4507 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4508 if test $ac_compiler_gnu = yes; then
4509   GXX=yes
4510 else
4511   GXX=
4512 fi
4513 ac_test_CXXFLAGS=${CXXFLAGS+set}
4514 ac_save_CXXFLAGS=$CXXFLAGS
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4516 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4517 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4521    ac_cxx_werror_flag=yes
4522    ac_cv_prog_cxx_g=no
4523    CXXFLAGS="-g"
4524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536   ac_cv_prog_cxx_g=yes
4537 else
4538   CXXFLAGS=""
4539       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h.  */
4541
4542 int
4543 main ()
4544 {
4545
4546   ;
4547   return 0;
4548 }
4549 _ACEOF
4550 if ac_fn_cxx_try_compile "$LINENO"; then :
4551
4552 else
4553   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4554          CXXFLAGS="-g"
4555          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h.  */
4557
4558 int
4559 main ()
4560 {
4561
4562   ;
4563   return 0;
4564 }
4565 _ACEOF
4566 if ac_fn_cxx_try_compile "$LINENO"; then :
4567   ac_cv_prog_cxx_g=yes
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4577 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4578 if test "$ac_test_CXXFLAGS" = set; then
4579   CXXFLAGS=$ac_save_CXXFLAGS
4580 elif test $ac_cv_prog_cxx_g = yes; then
4581   if test "$GXX" = yes; then
4582     CXXFLAGS="-g -O2"
4583   else
4584     CXXFLAGS="-g"
4585   fi
4586 else
4587   if test "$GXX" = yes; then
4588     CXXFLAGS="-O2"
4589   else
4590     CXXFLAGS=
4591   fi
4592 fi
4593 ac_ext=c
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599
4600
4601
4602 if test -n "$ac_tool_prefix"; then
4603   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610   if test -n "$GNATBIND"; then
4611   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618     for ac_exec_ext in '' $ac_executable_extensions; do
4619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622     break 2
4623   fi
4624 done
4625   done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 GNATBIND=$ac_cv_prog_GNATBIND
4631 if test -n "$GNATBIND"; then
4632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4633 $as_echo "$GNATBIND" >&6; }
4634 else
4635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638
4639
4640 fi
4641 if test -z "$ac_cv_prog_GNATBIND"; then
4642   ac_ct_GNATBIND=$GNATBIND
4643   # Extract the first word of "gnatbind", so it can be a program name with args.
4644 set dummy gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4648   $as_echo_n "(cached) " >&6
4649 else
4650   if test -n "$ac_ct_GNATBIND"; then
4651   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665   done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4671 if test -n "$ac_ct_GNATBIND"; then
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4673 $as_echo "$ac_ct_GNATBIND" >&6; }
4674 else
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679   if test "x$ac_ct_GNATBIND" = x; then
4680     GNATBIND="no"
4681   else
4682     case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688     GNATBIND=$ac_ct_GNATBIND
4689   fi
4690 else
4691   GNATBIND="$ac_cv_prog_GNATBIND"
4692 fi
4693
4694 if test -n "$ac_tool_prefix"; then
4695   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test -n "$GNATMAKE"; then
4703   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710     for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717   done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 GNATMAKE=$ac_cv_prog_GNATMAKE
4723 if test -n "$GNATMAKE"; then
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4725 $as_echo "$GNATMAKE" >&6; }
4726 else
4727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732 fi
4733 if test -z "$ac_cv_prog_GNATMAKE"; then
4734   ac_ct_GNATMAKE=$GNATMAKE
4735   # Extract the first word of "gnatmake", so it can be a program name with args.
4736 set dummy gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   if test -n "$ac_ct_GNATMAKE"; then
4743   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757   done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4763 if test -n "$ac_ct_GNATMAKE"; then
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4765 $as_echo "$ac_ct_GNATMAKE" >&6; }
4766 else
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771   if test "x$ac_ct_GNATMAKE" = x; then
4772     GNATMAKE="no"
4773   else
4774     case $cross_compiling:$ac_tool_warned in
4775 yes:)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4779 esac
4780     GNATMAKE=$ac_ct_GNATMAKE
4781   fi
4782 else
4783   GNATMAKE="$ac_cv_prog_GNATMAKE"
4784 fi
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4787 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4788 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   cat >conftest.adb <<EOF
4792 procedure conftest is begin null; end conftest;
4793 EOF
4794 acx_cv_cc_gcc_supports_ada=no
4795 # There is a bug in old released versions of GCC which causes the
4796 # driver to exit successfully when the appropriate language module
4797 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4798 # Therefore we must check for the error message as well as an
4799 # unsuccessful exit.
4800 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4801 # given a .adb file, but produce no object file.  So we must check
4802 # if an object file was really produced to guard against this.
4803 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4804 if test x"$errors" = x && test -f conftest.$ac_objext; then
4805   acx_cv_cc_gcc_supports_ada=yes
4806 fi
4807 rm -f conftest.*
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4810 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4811
4812 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4813   have_gnat=yes
4814 else
4815   have_gnat=no
4816 fi
4817
4818
4819 # autoconf is lame and doesn't give us any substitution variable for this.
4820 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4821   NO_MINUS_C_MINUS_O=yes
4822 else
4823   OUTPUT_OPTION='-o $@'
4824 fi
4825
4826
4827
4828 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4829 # optimizations to be activated explicitly by the toplevel.
4830 case "$CC" in
4831   */prev-gcc/xgcc*) ;;
4832   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4833 esac
4834
4835
4836 # -------------------------
4837 # Check C compiler features
4838 # -------------------------
4839
4840
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4848 # On Suns, sometimes $CPP names a directory.
4849 if test -n "$CPP" && test -d "$CPP"; then
4850   CPP=
4851 fi
4852 if test -z "$CPP"; then
4853   if test "${ac_cv_prog_CPP+set}" = set; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856       # Double quotes because CPP needs to be expanded
4857     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4858     do
4859       ac_preproc_ok=false
4860 for ac_c_preproc_warn_flag in '' yes
4861 do
4862   # Use a header file that comes with gcc, so configuring glibc
4863   # with a fresh cross-compiler works.
4864   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865   # <limits.h> exists even on freestanding compilers.
4866   # On the NeXT, cc -E runs the code through the compiler's parser,
4867   # not just through cpp. "Syntax error" is here to catch this case.
4868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h.  */
4870 #ifdef __STDC__
4871 # include <limits.h>
4872 #else
4873 # include <assert.h>
4874 #endif
4875                      Syntax error
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878
4879 else
4880   # Broken: fails on valid input.
4881 continue
4882 fi
4883 rm -f conftest.err conftest.$ac_ext
4884
4885   # OK, works on sane cases.  Now check whether nonexistent headers
4886   # can be detected and how.
4887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h.  */
4889 #include <ac_nonexistent.h>
4890 _ACEOF
4891 if ac_fn_c_try_cpp "$LINENO"; then :
4892   # Broken: success on invalid input.
4893 continue
4894 else
4895   # Passes both tests.
4896 ac_preproc_ok=:
4897 break
4898 fi
4899 rm -f conftest.err conftest.$ac_ext
4900
4901 done
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then :
4905   break
4906 fi
4907
4908     done
4909     ac_cv_prog_CPP=$CPP
4910
4911 fi
4912   CPP=$ac_cv_prog_CPP
4913 else
4914   ac_cv_prog_CPP=$CPP
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4917 $as_echo "$CPP" >&6; }
4918 ac_preproc_ok=false
4919 for ac_c_preproc_warn_flag in '' yes
4920 do
4921   # Use a header file that comes with gcc, so configuring glibc
4922   # with a fresh cross-compiler works.
4923   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924   # <limits.h> exists even on freestanding compilers.
4925   # On the NeXT, cc -E runs the code through the compiler's parser,
4926   # not just through cpp. "Syntax error" is here to catch this case.
4927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h.  */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934                      Syntax error
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937
4938 else
4939   # Broken: fails on valid input.
4940 continue
4941 fi
4942 rm -f conftest.err conftest.$ac_ext
4943
4944   # OK, works on sane cases.  Now check whether nonexistent headers
4945   # can be detected and how.
4946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h.  */
4948 #include <ac_nonexistent.h>
4949 _ACEOF
4950 if ac_fn_c_try_cpp "$LINENO"; then :
4951   # Broken: success on invalid input.
4952 continue
4953 else
4954   # Passes both tests.
4955 ac_preproc_ok=:
4956 break
4957 fi
4958 rm -f conftest.err conftest.$ac_ext
4959
4960 done
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.$ac_ext
4963 if $ac_preproc_ok; then :
4964
4965 else
4966   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details." "$LINENO" 5; }
4970 fi
4971
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4980 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4981 if test "${ac_cv_path_GREP+set}" = set; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   if test -z "$GREP"; then
4985   ac_path_GREP_found=false
4986   # Loop through the user's path and test for each of PROGNAME-LIST
4987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992     for ac_prog in grep ggrep; do
4993     for ac_exec_ext in '' $ac_executable_extensions; do
4994       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4995       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4996 # Check for GNU ac_path_GREP and select it if it is found.
4997   # Check for GNU $ac_path_GREP
4998 case `"$ac_path_GREP" --version 2>&1` in
4999 *GNU*)
5000   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5001 *)
5002   ac_count=0
5003   $as_echo_n 0123456789 >"conftest.in"
5004   while :
5005   do
5006     cat "conftest.in" "conftest.in" >"conftest.tmp"
5007     mv "conftest.tmp" "conftest.in"
5008     cp "conftest.in" "conftest.nl"
5009     $as_echo 'GREP' >> "conftest.nl"
5010     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012     as_fn_arith $ac_count + 1 && ac_count=$as_val
5013     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5014       # Best one so far, save it but keep looking for a better one
5015       ac_cv_path_GREP="$ac_path_GREP"
5016       ac_path_GREP_max=$ac_count
5017     fi
5018     # 10*(2^10) chars as input seems more than enough
5019     test $ac_count -gt 10 && break
5020   done
5021   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022 esac
5023
5024       $ac_path_GREP_found && break 3
5025     done
5026   done
5027   done
5028 IFS=$as_save_IFS
5029   if test -z "$ac_cv_path_GREP"; then
5030     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5031   fi
5032 else
5033   ac_cv_path_GREP=$GREP
5034 fi
5035
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5038 $as_echo "$ac_cv_path_GREP" >&6; }
5039  GREP="$ac_cv_path_GREP"
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5043 $as_echo_n "checking for egrep... " >&6; }
5044 if test "${ac_cv_path_EGREP+set}" = set; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5048    then ac_cv_path_EGREP="$GREP -E"
5049    else
5050      if test -z "$EGREP"; then
5051   ac_path_EGREP_found=false
5052   # Loop through the user's path and test for each of PROGNAME-LIST
5053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058     for ac_prog in egrep; do
5059     for ac_exec_ext in '' $ac_executable_extensions; do
5060       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5061       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5062 # Check for GNU ac_path_EGREP and select it if it is found.
5063   # Check for GNU $ac_path_EGREP
5064 case `"$ac_path_EGREP" --version 2>&1` in
5065 *GNU*)
5066   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5067 *)
5068   ac_count=0
5069   $as_echo_n 0123456789 >"conftest.in"
5070   while :
5071   do
5072     cat "conftest.in" "conftest.in" >"conftest.tmp"
5073     mv "conftest.tmp" "conftest.in"
5074     cp "conftest.in" "conftest.nl"
5075     $as_echo 'EGREP' >> "conftest.nl"
5076     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5077     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5078     as_fn_arith $ac_count + 1 && ac_count=$as_val
5079     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5080       # Best one so far, save it but keep looking for a better one
5081       ac_cv_path_EGREP="$ac_path_EGREP"
5082       ac_path_EGREP_max=$ac_count
5083     fi
5084     # 10*(2^10) chars as input seems more than enough
5085     test $ac_count -gt 10 && break
5086   done
5087   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5088 esac
5089
5090       $ac_path_EGREP_found && break 3
5091     done
5092   done
5093   done
5094 IFS=$as_save_IFS
5095   if test -z "$ac_cv_path_EGREP"; then
5096     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097   fi
5098 else
5099   ac_cv_path_EGREP=$EGREP
5100 fi
5101
5102    fi
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5105 $as_echo "$ac_cv_path_EGREP" >&6; }
5106  EGREP="$ac_cv_path_EGREP"
5107
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5110 $as_echo_n "checking for ANSI C header files... " >&6; }
5111 if test "${ac_cv_header_stdc+set}" = set; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h.  */
5116 #include <stdlib.h>
5117 #include <stdarg.h>
5118 #include <string.h>
5119 #include <float.h>
5120
5121 int
5122 main ()
5123 {
5124
5125   ;
5126   return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130   ac_cv_header_stdc=yes
5131 else
5132   ac_cv_header_stdc=no
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135
5136 if test $ac_cv_header_stdc = yes; then
5137   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h.  */
5140 #include <string.h>
5141
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144   $EGREP "memchr" >/dev/null 2>&1; then :
5145
5146 else
5147   ac_cv_header_stdc=no
5148 fi
5149 rm -f conftest*
5150
5151 fi
5152
5153 if test $ac_cv_header_stdc = yes; then
5154   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #include <stdlib.h>
5158
5159 _ACEOF
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161   $EGREP "free" >/dev/null 2>&1; then :
5162
5163 else
5164   ac_cv_header_stdc=no
5165 fi
5166 rm -f conftest*
5167
5168 fi
5169
5170 if test $ac_cv_header_stdc = yes; then
5171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172   if test "$cross_compiling" = yes; then :
5173   :
5174 else
5175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h.  */
5177 #include <ctype.h>
5178 #include <stdlib.h>
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5182 #else
5183 # define ISLOWER(c) \
5184                    (('a' <= (c) && (c) <= 'i') \
5185                      || ('j' <= (c) && (c) <= 'r') \
5186                      || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5188 #endif
5189
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5191 int
5192 main ()
5193 {
5194   int i;
5195   for (i = 0; i < 256; i++)
5196     if (XOR (islower (i), ISLOWER (i))
5197         || toupper (i) != TOUPPER (i))
5198       return 2;
5199   return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_run "$LINENO"; then :
5203
5204 else
5205   ac_cv_header_stdc=no
5206 fi
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5208   conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 fi
5210
5211 fi
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5216
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5218
5219 fi
5220
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5223                   inttypes.h stdint.h unistd.h
5224 do :
5225   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5227 "
5228 eval as_val=\$$as_ac_Header
5229    if test "x$as_val" = x""yes; then :
5230   cat >>confdefs.h <<_ACEOF
5231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232 _ACEOF
5233
5234 fi
5235
5236 done
5237
5238
5239
5240   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5242   MINIX=yes
5243 else
5244   MINIX=
5245 fi
5246
5247
5248   if test "$MINIX" = yes; then
5249
5250 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5251
5252
5253 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5254
5255
5256 $as_echo "#define _MINIX 1" >>confdefs.h
5257
5258   fi
5259
5260
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5262 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5263 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h.  */
5268
5269 #         define __EXTENSIONS__ 1
5270           $ac_includes_default
5271 int
5272 main ()
5273 {
5274
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280   ac_cv_safe_to_define___extensions__=yes
5281 else
5282   ac_cv_safe_to_define___extensions__=no
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5287 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5288   test $ac_cv_safe_to_define___extensions__ = yes &&
5289     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5290
5291   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5292
5293   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5294
5295   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5296
5297   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5298
5299
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5307 # On Suns, sometimes $CPP names a directory.
5308 if test -n "$CPP" && test -d "$CPP"; then
5309   CPP=
5310 fi
5311 if test -z "$CPP"; then
5312   if test "${ac_cv_prog_CPP+set}" = set; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315       # Double quotes because CPP needs to be expanded
5316     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5317     do
5318       ac_preproc_ok=false
5319 for ac_c_preproc_warn_flag in '' yes
5320 do
5321   # Use a header file that comes with gcc, so configuring glibc
5322   # with a fresh cross-compiler works.
5323   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324   # <limits.h> exists even on freestanding compilers.
5325   # On the NeXT, cc -E runs the code through the compiler's parser,
5326   # not just through cpp. "Syntax error" is here to catch this case.
5327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h.  */
5329 #ifdef __STDC__
5330 # include <limits.h>
5331 #else
5332 # include <assert.h>
5333 #endif
5334                      Syntax error
5335 _ACEOF
5336 if ac_fn_c_try_cpp "$LINENO"; then :
5337
5338 else
5339   # Broken: fails on valid input.
5340 continue
5341 fi
5342 rm -f conftest.err conftest.$ac_ext
5343
5344   # OK, works on sane cases.  Now check whether nonexistent headers
5345   # can be detected and how.
5346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h.  */
5348 #include <ac_nonexistent.h>
5349 _ACEOF
5350 if ac_fn_c_try_cpp "$LINENO"; then :
5351   # Broken: success on invalid input.
5352 continue
5353 else
5354   # Passes both tests.
5355 ac_preproc_ok=:
5356 break
5357 fi
5358 rm -f conftest.err conftest.$ac_ext
5359
5360 done
5361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362 rm -f conftest.err conftest.$ac_ext
5363 if $ac_preproc_ok; then :
5364   break
5365 fi
5366
5367     done
5368     ac_cv_prog_CPP=$CPP
5369
5370 fi
5371   CPP=$ac_cv_prog_CPP
5372 else
5373   ac_cv_prog_CPP=$CPP
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5376 $as_echo "$CPP" >&6; }
5377 ac_preproc_ok=false
5378 for ac_c_preproc_warn_flag in '' yes
5379 do
5380   # Use a header file that comes with gcc, so configuring glibc
5381   # with a fresh cross-compiler works.
5382   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383   # <limits.h> exists even on freestanding compilers.
5384   # On the NeXT, cc -E runs the code through the compiler's parser,
5385   # not just through cpp. "Syntax error" is here to catch this case.
5386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h.  */
5388 #ifdef __STDC__
5389 # include <limits.h>
5390 #else
5391 # include <assert.h>
5392 #endif
5393                      Syntax error
5394 _ACEOF
5395 if ac_fn_c_try_cpp "$LINENO"; then :
5396
5397 else
5398   # Broken: fails on valid input.
5399 continue
5400 fi
5401 rm -f conftest.err conftest.$ac_ext
5402
5403   # OK, works on sane cases.  Now check whether nonexistent headers
5404   # can be detected and how.
5405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h.  */
5407 #include <ac_nonexistent.h>
5408 _ACEOF
5409 if ac_fn_c_try_cpp "$LINENO"; then :
5410   # Broken: success on invalid input.
5411 continue
5412 else
5413   # Passes both tests.
5414 ac_preproc_ok=:
5415 break
5416 fi
5417 rm -f conftest.err conftest.$ac_ext
5418
5419 done
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.$ac_ext
5422 if $ac_preproc_ok; then :
5423
5424 else
5425   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." "$LINENO" 5; }
5429 fi
5430
5431 ac_ext=c
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5438 $as_echo_n "checking for inline... " >&6; }
5439 if test "${ac_cv_c_inline+set}" = set; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   ac_cv_c_inline=no
5443 for ac_kw in inline __inline__ __inline; do
5444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h.  */
5446 #ifndef __cplusplus
5447 typedef int foo_t;
5448 static $ac_kw foo_t static_foo () {return 0; }
5449 $ac_kw foo_t foo () {return 0; }
5450 #endif
5451
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454   ac_cv_c_inline=$ac_kw
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457   test "$ac_cv_c_inline" != no && break
5458 done
5459
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5462 $as_echo "$ac_cv_c_inline" >&6; }
5463
5464 case $ac_cv_c_inline in
5465   inline | yes) ;;
5466   *)
5467     case $ac_cv_c_inline in
5468       no) ac_val=;;
5469       *) ac_val=$ac_cv_c_inline;;
5470     esac
5471     cat >>confdefs.h <<_ACEOF
5472 #ifndef __cplusplus
5473 #define inline $ac_val
5474 #endif
5475 _ACEOF
5476     ;;
5477 esac
5478
5479
5480 # Check whether --enable-largefile was given.
5481 if test "${enable_largefile+set}" = set; then :
5482   enableval=$enable_largefile;
5483 fi
5484
5485 if test "$enable_largefile" != no; then
5486
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5488 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5489 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   ac_cv_sys_largefile_CC=no
5493      if test "$GCC" != yes; then
5494        ac_save_CC=$CC
5495        while :; do
5496          # IRIX 6.2 and later do not support large files by default,
5497          # so use the C compiler's -n32 option if that helps.
5498          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h.  */
5500 #include <sys/types.h>
5501  /* Check that off_t can represent 2**63 - 1 correctly.
5502     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503     since some C++ compilers masquerading as C compilers
5504     incorrectly reject 9223372036854775807.  */
5505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507                        && LARGE_OFF_T % 2147483647 == 1)
5508                       ? 1 : -1];
5509 int
5510 main ()
5511 {
5512
5513   ;
5514   return 0;
5515 }
5516 _ACEOF
5517          if ac_fn_c_try_compile "$LINENO"; then :
5518   break
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext
5521          CC="$CC -n32"
5522          if ac_fn_c_try_compile "$LINENO"; then :
5523   ac_cv_sys_largefile_CC=' -n32'; break
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext
5526          break
5527        done
5528        CC=$ac_save_CC
5529        rm -f conftest.$ac_ext
5530     fi
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5533 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5534   if test "$ac_cv_sys_largefile_CC" != no; then
5535     CC=$CC$ac_cv_sys_largefile_CC
5536   fi
5537
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5539 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5540 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   while :; do
5544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h.  */
5546 #include <sys/types.h>
5547  /* Check that off_t can represent 2**63 - 1 correctly.
5548     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5549     since some C++ compilers masquerading as C compilers
5550     incorrectly reject 9223372036854775807.  */
5551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5552   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5553                        && LARGE_OFF_T % 2147483647 == 1)
5554                       ? 1 : -1];
5555 int
5556 main ()
5557 {
5558
5559   ;
5560   return 0;
5561 }
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564   ac_cv_sys_file_offset_bits=no; break
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h.  */
5569 #define _FILE_OFFSET_BITS 64
5570 #include <sys/types.h>
5571  /* Check that off_t can represent 2**63 - 1 correctly.
5572     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5573     since some C++ compilers masquerading as C compilers
5574     incorrectly reject 9223372036854775807.  */
5575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5576   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5577                        && LARGE_OFF_T % 2147483647 == 1)
5578                       ? 1 : -1];
5579 int
5580 main ()
5581 {
5582
5583   ;
5584   return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588   ac_cv_sys_file_offset_bits=64; break
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591   ac_cv_sys_file_offset_bits=unknown
5592   break
5593 done
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5596 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5597 case $ac_cv_sys_file_offset_bits in #(
5598   no | unknown) ;;
5599   *)
5600 cat >>confdefs.h <<_ACEOF
5601 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5602 _ACEOF
5603 ;;
5604 esac
5605 rm -rf conftest*
5606   if test $ac_cv_sys_file_offset_bits = unknown; then
5607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5608 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5609 if test "${ac_cv_sys_large_files+set}" = set; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   while :; do
5613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h.  */
5615 #include <sys/types.h>
5616  /* Check that off_t can represent 2**63 - 1 correctly.
5617     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5618     since some C++ compilers masquerading as C compilers
5619     incorrectly reject 9223372036854775807.  */
5620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5621   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5622                        && LARGE_OFF_T % 2147483647 == 1)
5623                       ? 1 : -1];
5624 int
5625 main ()
5626 {
5627
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633   ac_cv_sys_large_files=no; break
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h.  */
5638 #define _LARGE_FILES 1
5639 #include <sys/types.h>
5640  /* Check that off_t can represent 2**63 - 1 correctly.
5641     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642     since some C++ compilers masquerading as C compilers
5643     incorrectly reject 9223372036854775807.  */
5644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646                        && LARGE_OFF_T % 2147483647 == 1)
5647                       ? 1 : -1];
5648 int
5649 main ()
5650 {
5651
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657   ac_cv_sys_large_files=1; break
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660   ac_cv_sys_large_files=unknown
5661   break
5662 done
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5665 $as_echo "$ac_cv_sys_large_files" >&6; }
5666 case $ac_cv_sys_large_files in #(
5667   no | unknown) ;;
5668   *)
5669 cat >>confdefs.h <<_ACEOF
5670 #define _LARGE_FILES $ac_cv_sys_large_files
5671 _ACEOF
5672 ;;
5673 esac
5674 rm -rf conftest*
5675   fi
5676 fi
5677
5678
5679 # sizeof(char) is 1 by definition.
5680 # The cast to long int works around a bug in the HP C Compiler
5681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683 # This bug is HP SR number 8606223364.
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5685 $as_echo_n "checking size of void *... " >&6; }
5686 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5690
5691 else
5692   if test "$ac_cv_type_void_p" = yes; then
5693      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 { as_fn_set_status 77
5696 as_fn_error "cannot compute sizeof (void *)
5697 See \`config.log' for more details." "$LINENO" 5; }; }
5698    else
5699      ac_cv_sizeof_void_p=0
5700    fi
5701 fi
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5705 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5706
5707
5708
5709 cat >>confdefs.h <<_ACEOF
5710 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5711 _ACEOF
5712
5713
5714 # The cast to long int works around a bug in the HP C Compiler
5715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717 # This bug is HP SR number 8606223364.
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5719 $as_echo_n "checking size of short... " >&6; }
5720 if test "${ac_cv_sizeof_short+set}" = set; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5724
5725 else
5726   if test "$ac_cv_type_short" = yes; then
5727      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5729 { as_fn_set_status 77
5730 as_fn_error "cannot compute sizeof (short)
5731 See \`config.log' for more details." "$LINENO" 5; }; }
5732    else
5733      ac_cv_sizeof_short=0
5734    fi
5735 fi
5736
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5739 $as_echo "$ac_cv_sizeof_short" >&6; }
5740
5741
5742
5743 cat >>confdefs.h <<_ACEOF
5744 #define SIZEOF_SHORT $ac_cv_sizeof_short
5745 _ACEOF
5746
5747
5748 # The cast to long int works around a bug in the HP C Compiler
5749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5751 # This bug is HP SR number 8606223364.
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5753 $as_echo_n "checking size of int... " >&6; }
5754 if test "${ac_cv_sizeof_int+set}" = set; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5758
5759 else
5760   if test "$ac_cv_type_int" = yes; then
5761      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5763 { as_fn_set_status 77
5764 as_fn_error "cannot compute sizeof (int)
5765 See \`config.log' for more details." "$LINENO" 5; }; }
5766    else
5767      ac_cv_sizeof_int=0
5768    fi
5769 fi
5770
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5773 $as_echo "$ac_cv_sizeof_int" >&6; }
5774
5775
5776
5777 cat >>confdefs.h <<_ACEOF
5778 #define SIZEOF_INT $ac_cv_sizeof_int
5779 _ACEOF
5780
5781
5782 # The cast to long int works around a bug in the HP C Compiler
5783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5785 # This bug is HP SR number 8606223364.
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5787 $as_echo_n "checking size of long... " >&6; }
5788 if test "${ac_cv_sizeof_long+set}" = set; then :
5789   $as_echo_n "(cached) " >&6
5790 else
5791   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5792
5793 else
5794   if test "$ac_cv_type_long" = yes; then
5795      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5797 { as_fn_set_status 77
5798 as_fn_error "cannot compute sizeof (long)
5799 See \`config.log' for more details." "$LINENO" 5; }; }
5800    else
5801      ac_cv_sizeof_long=0
5802    fi
5803 fi
5804
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5807 $as_echo "$ac_cv_sizeof_long" >&6; }
5808
5809
5810
5811 cat >>confdefs.h <<_ACEOF
5812 #define SIZEOF_LONG $ac_cv_sizeof_long
5813 _ACEOF
5814
5815
5816 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5817 if test "x$ac_cv_type_long_long" = x""yes; then :
5818
5819 cat >>confdefs.h <<_ACEOF
5820 #define HAVE_LONG_LONG 1
5821 _ACEOF
5822
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5828 $as_echo_n "checking size of long long... " >&6; }
5829 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5833
5834 else
5835   if test "$ac_cv_type_long_long" = yes; then
5836      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { as_fn_set_status 77
5839 as_fn_error "cannot compute sizeof (long long)
5840 See \`config.log' for more details." "$LINENO" 5; }; }
5841    else
5842      ac_cv_sizeof_long_long=0
5843    fi
5844 fi
5845
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5848 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5849
5850
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5854 _ACEOF
5855
5856
5857 fi
5858
5859 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5860 if test "x$ac_cv_type___int64" = x""yes; then :
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define HAVE___INT64 1
5864 _ACEOF
5865
5866 # The cast to long int works around a bug in the HP C Compiler
5867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5869 # This bug is HP SR number 8606223364.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5871 $as_echo_n "checking size of __int64... " >&6; }
5872 if test "${ac_cv_sizeof___int64+set}" = set; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5876
5877 else
5878   if test "$ac_cv_type___int64" = yes; then
5879      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5881 { as_fn_set_status 77
5882 as_fn_error "cannot compute sizeof (__int64)
5883 See \`config.log' for more details." "$LINENO" 5; }; }
5884    else
5885      ac_cv_sizeof___int64=0
5886    fi
5887 fi
5888
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5891 $as_echo "$ac_cv_sizeof___int64" >&6; }
5892
5893
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5897 _ACEOF
5898
5899
5900 fi
5901
5902 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5903 case $ac_cv_c_int8_t in #(
5904   no|yes) ;; #(
5905   *)
5906
5907 cat >>confdefs.h <<_ACEOF
5908 #define int8_t $ac_cv_c_int8_t
5909 _ACEOF
5910 ;;
5911 esac
5912
5913 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5914 case $ac_cv_c_int16_t in #(
5915   no|yes) ;; #(
5916   *)
5917
5918 cat >>confdefs.h <<_ACEOF
5919 #define int16_t $ac_cv_c_int16_t
5920 _ACEOF
5921 ;;
5922 esac
5923
5924 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5925 case $ac_cv_c_int32_t in #(
5926   no|yes) ;; #(
5927   *)
5928
5929 cat >>confdefs.h <<_ACEOF
5930 #define int32_t $ac_cv_c_int32_t
5931 _ACEOF
5932 ;;
5933 esac
5934
5935 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5936 case $ac_cv_c_int64_t in #(
5937   no|yes) ;; #(
5938   *)
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define int64_t $ac_cv_c_int64_t
5942 _ACEOF
5943 ;;
5944 esac
5945
5946
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5948 $as_echo_n "checking for long long int... " >&6; }
5949 if test "${ac_cv_type_long_long_int+set}" = set; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h.  */
5954
5955   /* For now, do not test the preprocessor; as of 2007 there are too many
5956          implementations with broken preprocessors.  Perhaps this can
5957          be revisited in 2012.  In the meantime, code should not expect
5958          #if to work with literals wider than 32 bits.  */
5959       /* Test literals.  */
5960       long long int ll = 9223372036854775807ll;
5961       long long int nll = -9223372036854775807LL;
5962       unsigned long long int ull = 18446744073709551615ULL;
5963       /* Test constant expressions.   */
5964       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5965                      ? 1 : -1)];
5966       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5967                      ? 1 : -1)];
5968       int i = 63;
5969 int
5970 main ()
5971 {
5972 /* Test availability of runtime routines for shift and division.  */
5973       long long int llmax = 9223372036854775807ll;
5974       unsigned long long int ullmax = 18446744073709551615ull;
5975       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5976               | (llmax / ll) | (llmax % ll)
5977               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5978               | (ullmax / ull) | (ullmax % ull));
5979   ;
5980   return 0;
5981 }
5982
5983 _ACEOF
5984 if ac_fn_c_try_link "$LINENO"; then :
5985                         if test "$cross_compiling" = yes; then :
5986   ac_cv_type_long_long_int=yes
5987 else
5988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h.  */
5990 #include <limits.h>
5991                #ifndef LLONG_MAX
5992                # define HALF \
5993                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5994                # define LLONG_MAX (HALF - 1 + HALF)
5995                #endif
5996 int
5997 main ()
5998 {
5999 long long int n = 1;
6000                int i;
6001                for (i = 0; ; i++)
6002                  {
6003                    long long int m = n << i;
6004                    if (m >> i != n)
6005                      return 1;
6006                    if (LLONG_MAX / 2 < m)
6007                      break;
6008                  }
6009                return 0;
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 if ac_fn_c_try_run "$LINENO"; then :
6015   ac_cv_type_long_long_int=yes
6016 else
6017   ac_cv_type_long_long_int=no
6018 fi
6019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020   conftest.$ac_objext conftest.beam conftest.$ac_ext
6021 fi
6022
6023 else
6024   ac_cv_type_long_long_int=no
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext \
6027     conftest$ac_exeext conftest.$ac_ext
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6030 $as_echo "$ac_cv_type_long_long_int" >&6; }
6031   if test $ac_cv_type_long_long_int = yes; then
6032
6033 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6034
6035   fi
6036
6037
6038
6039   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6040 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6041
6042 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6043
6044 else
6045   test $ac_cv_type_long_long_int = yes \
6046        && ac_type='long long int' \
6047        || ac_type='long int'
6048
6049 cat >>confdefs.h <<_ACEOF
6050 #define intmax_t $ac_type
6051 _ACEOF
6052
6053 fi
6054
6055
6056
6057   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6058 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6059
6060 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6061
6062 else
6063   for ac_type in 'int' 'long int' 'long long int'; do
6064        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h.  */
6066 $ac_includes_default
6067 int
6068 main ()
6069 {
6070 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6071 test_array [0] = 0
6072
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078
6079 cat >>confdefs.h <<_ACEOF
6080 #define intptr_t $ac_type
6081 _ACEOF
6082
6083           ac_type=
6084 fi
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086        test -z "$ac_type" && break
6087      done
6088 fi
6089
6090
6091 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6092 case $ac_cv_c_uint8_t in #(
6093   no|yes) ;; #(
6094   *)
6095
6096 $as_echo "#define _UINT8_T 1" >>confdefs.h
6097
6098
6099 cat >>confdefs.h <<_ACEOF
6100 #define uint8_t $ac_cv_c_uint8_t
6101 _ACEOF
6102 ;;
6103   esac
6104
6105 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6106 case $ac_cv_c_uint16_t in #(
6107   no|yes) ;; #(
6108   *)
6109
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint16_t $ac_cv_c_uint16_t
6113 _ACEOF
6114 ;;
6115   esac
6116
6117 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6118 case $ac_cv_c_uint32_t in #(
6119   no|yes) ;; #(
6120   *)
6121
6122 $as_echo "#define _UINT32_T 1" >>confdefs.h
6123
6124
6125 cat >>confdefs.h <<_ACEOF
6126 #define uint32_t $ac_cv_c_uint32_t
6127 _ACEOF
6128 ;;
6129   esac
6130
6131 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6132 case $ac_cv_c_uint64_t in #(
6133   no|yes) ;; #(
6134   *)
6135
6136 $as_echo "#define _UINT64_T 1" >>confdefs.h
6137
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define uint64_t $ac_cv_c_uint64_t
6141 _ACEOF
6142 ;;
6143   esac
6144
6145
6146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6147 $as_echo_n "checking for unsigned long long int... " >&6; }
6148 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6149   $as_echo_n "(cached) " >&6
6150 else
6151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h.  */
6153
6154   /* For now, do not test the preprocessor; as of 2007 there are too many
6155          implementations with broken preprocessors.  Perhaps this can
6156          be revisited in 2012.  In the meantime, code should not expect
6157          #if to work with literals wider than 32 bits.  */
6158       /* Test literals.  */
6159       long long int ll = 9223372036854775807ll;
6160       long long int nll = -9223372036854775807LL;
6161       unsigned long long int ull = 18446744073709551615ULL;
6162       /* Test constant expressions.   */
6163       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6164                      ? 1 : -1)];
6165       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6166                      ? 1 : -1)];
6167       int i = 63;
6168 int
6169 main ()
6170 {
6171 /* Test availability of runtime routines for shift and division.  */
6172       long long int llmax = 9223372036854775807ll;
6173       unsigned long long int ullmax = 18446744073709551615ull;
6174       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6175               | (llmax / ll) | (llmax % ll)
6176               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6177               | (ullmax / ull) | (ullmax % ull));
6178   ;
6179   return 0;
6180 }
6181
6182 _ACEOF
6183 if ac_fn_c_try_link "$LINENO"; then :
6184   ac_cv_type_unsigned_long_long_int=yes
6185 else
6186   ac_cv_type_unsigned_long_long_int=no
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext \
6189     conftest$ac_exeext conftest.$ac_ext
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6192 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6193   if test $ac_cv_type_unsigned_long_long_int = yes; then
6194
6195 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6196
6197   fi
6198
6199
6200
6201   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6202 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6203
6204 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6205
6206 else
6207   test $ac_cv_type_unsigned_long_long_int = yes \
6208        && ac_type='unsigned long long int' \
6209        || ac_type='unsigned long int'
6210
6211 cat >>confdefs.h <<_ACEOF
6212 #define uintmax_t $ac_type
6213 _ACEOF
6214
6215 fi
6216
6217
6218
6219   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6220 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6221
6222 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6223
6224 else
6225   for ac_type in 'unsigned int' 'unsigned long int' \
6226         'unsigned long long int'; do
6227        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h.  */
6229 $ac_includes_default
6230 int
6231 main ()
6232 {
6233 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6234 test_array [0] = 0
6235
6236   ;
6237   return 0;
6238 }
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241
6242 cat >>confdefs.h <<_ACEOF
6243 #define uintptr_t $ac_type
6244 _ACEOF
6245
6246           ac_type=
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249        test -z "$ac_type" && break
6250      done
6251 fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 # ---------------------
6268 # Warnings and checking
6269 # ---------------------
6270
6271 # Check $CC warning features (if it's GCC).
6272 # We want to use -pedantic, but we don't want warnings about
6273 # * 'long long'
6274 # * variadic macros
6275 # * overlong strings
6276 # So, we only use -pedantic if we can disable those warnings.
6277
6278 loose_warn=
6279 save_CFLAGS="$CFLAGS"
6280 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6281   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6282
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6284 $as_echo_n "checking whether $CC supports $option... " >&6; }
6285 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   CFLAGS="$option"
6289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h.  */
6291
6292 int
6293 main ()
6294 {
6295
6296   ;
6297   return 0;
6298 }
6299 _ACEOF
6300 if ac_fn_c_try_compile "$LINENO"; then :
6301   eval "$as_acx_Woption=yes"
6302 else
6303   eval "$as_acx_Woption=no"
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306
6307 fi
6308 eval ac_res=\$$as_acx_Woption
6309                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6310 $as_echo "$ac_res" >&6; }
6311   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6312   loose_warn="$loose_warn${loose_warn:+ }$option"
6313 fi
6314   done
6315 CFLAGS="$save_CFLAGS"
6316
6317 c_loose_warn=
6318 save_CFLAGS="$CFLAGS"
6319 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6320   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6321
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6323 $as_echo_n "checking whether $CC supports $option... " >&6; }
6324 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   CFLAGS="$option"
6328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h.  */
6330
6331 int
6332 main ()
6333 {
6334
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_compile "$LINENO"; then :
6340   eval "$as_acx_Woption=yes"
6341 else
6342   eval "$as_acx_Woption=no"
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345
6346 fi
6347 eval ac_res=\$$as_acx_Woption
6348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6350   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6351   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6352 fi
6353   done
6354 CFLAGS="$save_CFLAGS"
6355
6356 strict_warn=
6357 save_CFLAGS="$CFLAGS"
6358 for option in -Wmissing-format-attribute; do
6359   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6360
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6362 $as_echo_n "checking whether $CC supports $option... " >&6; }
6363 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6364   $as_echo_n "(cached) " >&6
6365 else
6366   CFLAGS="$option"
6367     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h.  */
6369
6370 int
6371 main ()
6372 {
6373
6374   ;
6375   return 0;
6376 }
6377 _ACEOF
6378 if ac_fn_c_try_compile "$LINENO"; then :
6379   eval "$as_acx_Woption=yes"
6380 else
6381   eval "$as_acx_Woption=no"
6382 fi
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384
6385 fi
6386 eval ac_res=\$$as_acx_Woption
6387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6388 $as_echo "$ac_res" >&6; }
6389   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6390   strict_warn="$strict_warn${strict_warn:+ }$option"
6391 fi
6392   done
6393 CFLAGS="$save_CFLAGS"
6394
6395 c_strict_warn=
6396 save_CFLAGS="$CFLAGS"
6397 for option in -Wold-style-definition -Wc++-compat; do
6398   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6399
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6401 $as_echo_n "checking whether $CC supports $option... " >&6; }
6402 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   CFLAGS="$option"
6406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408
6409 int
6410 main ()
6411 {
6412
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418   eval "$as_acx_Woption=yes"
6419 else
6420   eval "$as_acx_Woption=no"
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423
6424 fi
6425 eval ac_res=\$$as_acx_Woption
6426                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6427 $as_echo "$ac_res" >&6; }
6428   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6429   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6430 fi
6431   done
6432 CFLAGS="$save_CFLAGS"
6433
6434 if test "$GCC" = yes; then :
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6436 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6437 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   save_CFLAGS="$CFLAGS"
6441 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h.  */
6444
6445 int
6446 main ()
6447 {
6448
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_c_try_compile "$LINENO"; then :
6454   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6455 else
6456   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 CFLAGS="$save_CFLAGS"
6460 fi
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6462 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6463 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6464   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6465 fi
6466
6467 fi
6468
6469 # Check whether --enable-werror-always was given.
6470 if test "${enable_werror_always+set}" = set; then :
6471   enableval=$enable_werror_always;
6472 else
6473   enable_werror_always=no
6474 fi
6475
6476 if test $enable_werror_always = yes; then :
6477   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6478 fi
6479
6480
6481
6482 # The above macros do nothing if the compiler is not GCC.  However, the
6483 # Makefile has more goo to add other flags, so these variables are used
6484 # to enable warnings only for GCC.
6485 warn_cflags=
6486 warn_cxxflags=
6487 if test "x$GCC" = "xyes"; then
6488   warn_cflags='$(GCC_WARN_CFLAGS)'
6489   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6490 fi
6491
6492
6493
6494 # Enable expensive internal checks
6495 is_release=
6496 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6497   is_release=yes
6498 fi
6499
6500 # Check whether --enable-checking was given.
6501 if test "${enable_checking+set}" = set; then :
6502   enableval=$enable_checking; ac_checking_flags="${enableval}"
6503 else
6504
6505 # Determine the default checks.
6506 if test x$is_release = x ; then
6507   ac_checking_flags=yes
6508 else
6509   ac_checking_flags=release
6510 fi
6511 fi
6512
6513 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6514 for check in release $ac_checking_flags
6515 do
6516         case $check in
6517         # these set all the flags to specific states
6518         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6519                         ac_fold_checking= ; ac_gc_checking=1 ;
6520                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6521                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6522                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6523                         ac_types_checking=1 ;;
6524         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6525                         ac_fold_checking= ; ac_gc_checking= ;
6526                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6527                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6528                         ac_tree_checking= ; ac_valgrind_checking= ;
6529                         ac_types_checking= ;;
6530         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6531                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6532                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6533                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6534                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6535                         ac_types_checking=1 ;;
6536         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6537                         ac_fold_checking= ; ac_gc_checking= ;
6538                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6539                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6540                         ac_tree_checking= ; ac_valgrind_checking= ;
6541                         ac_types_checking= ;;
6542         # these enable particular checks
6543         assert)         ac_assert_checking=1 ;;
6544         df)             ac_df_checking=1 ;;
6545         fold)           ac_fold_checking=1 ;;
6546         gc)             ac_gc_checking=1 ;;
6547         gcac)           ac_gc_always_collect=1 ;;
6548         gimple)         ac_gimple_checking=1 ;;
6549         misc)           ac_checking=1 ;;
6550         rtl)            ac_rtl_checking=1 ;;
6551         rtlflag)        ac_rtlflag_checking=1 ;;
6552         runtime)        ac_runtime_checking=1 ;;
6553         tree)           ac_tree_checking=1 ;;
6554         types)          ac_types_checking=1 ;;
6555         valgrind)       ac_valgrind_checking=1 ;;
6556         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6557         esac
6558 done
6559 IFS="$ac_save_IFS"
6560
6561 nocommon_flag=""
6562 if test x$ac_checking != x ; then
6563
6564 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6565
6566   nocommon_flag=-fno-common
6567 fi
6568
6569 if test x$ac_df_checking != x ; then
6570
6571 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6572
6573 fi
6574 if test x$ac_assert_checking != x ; then
6575
6576 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6577
6578 fi
6579 if test x$ac_gimple_checking != x ; then
6580
6581 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6582
6583 fi
6584
6585 if test x$ac_runtime_checking != x ; then
6586
6587 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6588
6589 fi
6590 if test x$ac_tree_checking != x ; then
6591
6592 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6593
6594   TREEBROWSER=tree-browser.o
6595 fi
6596 if test x$ac_types_checking != x ; then
6597
6598 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6599
6600 fi
6601
6602 if test x$ac_rtl_checking != x ; then
6603
6604 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6605
6606 fi
6607 if test x$ac_rtlflag_checking != x ; then
6608
6609 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6610
6611 fi
6612 if test x$ac_gc_checking != x ; then
6613
6614 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6615
6616 fi
6617 if test x$ac_gc_always_collect != x ; then
6618
6619 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6620
6621 fi
6622 if test x$ac_fold_checking != x ; then
6623
6624 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6625
6626 fi
6627 valgrind_path_defines=
6628 valgrind_command=
6629
6630 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6631 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6632   have_valgrind_h=yes
6633 else
6634   have_valgrind_h=no
6635 fi
6636
6637
6638
6639 if test x$ac_valgrind_checking != x ; then
6640   # It is certainly possible that there's valgrind but no valgrind.h.
6641   # GCC relies on making annotations so we must have both.
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6643 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h.  */
6646 #include <valgrind/memcheck.h>
6647 #ifndef VALGRIND_DISCARD
6648 #error VALGRIND_DISCARD not defined
6649 #endif
6650 _ACEOF
6651 if ac_fn_c_try_cpp "$LINENO"; then :
6652   gcc_cv_header_valgrind_memcheck_h=yes
6653 else
6654   gcc_cv_header_valgrind_memcheck_h=no
6655 fi
6656 rm -f conftest.err conftest.$ac_ext
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6658 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6660 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h.  */
6663 #include <memcheck.h>
6664 #ifndef VALGRIND_DISCARD
6665 #error VALGRIND_DISCARD not defined
6666 #endif
6667 _ACEOF
6668 if ac_fn_c_try_cpp "$LINENO"; then :
6669   gcc_cv_header_memcheck_h=yes
6670 else
6671   gcc_cv_header_memcheck_h=no
6672 fi
6673 rm -f conftest.err conftest.$ac_ext
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6675 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6676
6677 # Prepare PATH_SEPARATOR.
6678 # The user is always right.
6679 if test "${PATH_SEPARATOR+set}" != set; then
6680   echo "#! /bin/sh" >conf$$.sh
6681   echo  "exit 0"   >>conf$$.sh
6682   chmod +x conf$$.sh
6683   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6684     PATH_SEPARATOR=';'
6685   else
6686     PATH_SEPARATOR=:
6687   fi
6688   rm -f conf$$.sh
6689 fi
6690
6691 # Find out how to test for executable files. Don't use a zero-byte file,
6692 # as systems may use methods other than mode bits to determine executability.
6693 cat >conf$$.file <<_ASEOF
6694 #! /bin/sh
6695 exit 0
6696 _ASEOF
6697 chmod +x conf$$.file
6698 if test -x conf$$.file >/dev/null 2>&1; then
6699   ac_executable_p="test -x"
6700 else
6701   ac_executable_p="test -f"
6702 fi
6703 rm -f conf$$.file
6704
6705 # Extract the first word of "valgrind", so it can be a program name with args.
6706 set dummy valgrind; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   case "$valgrind_path" in
6713   [\\/]* | ?:[\\/]*)
6714     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6715     ;;
6716   *)
6717     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6718     for ac_dir in $PATH; do
6719       IFS="$ac_save_IFS"
6720       test -z "$ac_dir" && ac_dir=.
6721       for ac_exec_ext in '' $ac_executable_extensions; do
6722         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6723           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6724             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6725             break 2
6726           fi
6727         fi
6728       done
6729     done
6730     IFS="$ac_save_IFS"
6731     ;;
6732 esac
6733 fi
6734 valgrind_path="$ac_cv_path_valgrind_path"
6735 if test -n "$valgrind_path"; then
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6737 $as_echo "$valgrind_path" >&6; }
6738 else
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742
6743   if test "x$valgrind_path" = "x" \
6744     || (test $have_valgrind_h = no \
6745         && test $gcc_cv_header_memcheck_h = no \
6746         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6747         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6748   fi
6749   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6750   valgrind_command="$valgrind_path -q"
6751
6752 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6753
6754   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6755
6756 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6757
6758   fi
6759   if test $gcc_cv_header_memcheck_h = yes; then
6760
6761 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6762
6763   fi
6764 fi
6765
6766
6767
6768 # Enable code coverage collection
6769 # Check whether --enable-coverage was given.
6770 if test "${enable_coverage+set}" = set; then :
6771   enableval=$enable_coverage; case "${enableval}" in
6772   yes|noopt)
6773     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6774     ;;
6775   opt)
6776     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6777     ;;
6778   no)
6779     # a.k.a. --disable-coverage
6780     coverage_flags=""
6781     ;;
6782   *)
6783     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6784     ;;
6785 esac
6786 else
6787   coverage_flags=""
6788 fi
6789
6790
6791
6792 # Check whether --enable-gather-detailed-mem-stats was given.
6793 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6794   enableval=$enable_gather_detailed_mem_stats;
6795 else
6796   enable_gather_detailed_mem_stats=no
6797 fi
6798
6799 if test x$enable_gather_detailed_mem_stats = xyes ; then
6800
6801 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6802
6803 fi
6804
6805 # -------------------------------
6806 # Miscenalleous configure options
6807 # -------------------------------
6808
6809 # See if we are building gcc with C++.
6810 # Check whether --enable-build-with-cxx was given.
6811 if test "${enable_build_with_cxx+set}" = set; then :
6812   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6813 else
6814   ENABLE_BUILD_WITH_CXX=no
6815 fi
6816
6817
6818
6819 # With stabs
6820
6821 # Check whether --with-stabs was given.
6822 if test "${with_stabs+set}" = set; then :
6823   withval=$with_stabs; stabs="$with_stabs"
6824 else
6825   stabs=no
6826 fi
6827
6828
6829 # Determine whether or not multilibs are enabled.
6830 # Check whether --enable-multilib was given.
6831 if test "${enable_multilib+set}" = set; then :
6832   enableval=$enable_multilib;
6833 else
6834   enable_multilib=yes
6835 fi
6836
6837
6838
6839 # Enable __cxa_atexit for C++.
6840 # Check whether --enable-__cxa_atexit was given.
6841 if test "${enable___cxa_atexit+set}" = set; then :
6842   enableval=$enable___cxa_atexit;
6843 fi
6844
6845
6846 # Enable C extension for decimal float if target supports it.
6847
6848 # Check whether --enable-decimal-float was given.
6849 if test "${enable_decimal_float+set}" = set; then :
6850   enableval=$enable_decimal_float;
6851   case $enable_decimal_float in
6852     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6853     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6854 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6855   esac
6856
6857 else
6858
6859   case $target in
6860     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6861     i?86*-*-mingw* | x86_64*-*-mingw* | \
6862     i?86*-*-cygwin*)
6863       enable_decimal_float=yes
6864       ;;
6865     *)
6866       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6867 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6868       enable_decimal_float=no
6869       ;;
6870   esac
6871
6872 fi
6873
6874
6875 # x86's use BID format instead of DPD
6876 case x$enable_decimal_float in
6877   xyes)
6878     case $target in
6879       i?86*-*-* | x86_64*-*-*)
6880         enable_decimal_float=bid
6881         ;;
6882       *)
6883         enable_decimal_float=dpd
6884         ;;
6885     esac
6886     default_decimal_float=$enable_decimal_float
6887     ;;
6888   xno)
6889     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6890     # dependency on libdecnumber.
6891     default_decimal_float=dpd
6892     ;;
6893 esac
6894
6895
6896
6897
6898 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6899
6900 cat >>confdefs.h <<_ACEOF
6901 #define ENABLE_DECIMAL_FLOAT $dfp
6902 _ACEOF
6903
6904
6905 # Use default_decimal_float for dependency.
6906 enable_decimal_float=$default_decimal_float
6907
6908 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6909
6910 cat >>confdefs.h <<_ACEOF
6911 #define ENABLE_DECIMAL_BID_FORMAT $bid
6912 _ACEOF
6913
6914
6915 # Enable C extension for fixed-point arithmetic.
6916 # Check whether --enable-fixed-point was given.
6917 if test "${enable_fixed_point+set}" = set; then :
6918   enableval=$enable_fixed_point;
6919
6920 else
6921
6922   case $target in
6923     mips*-*-*)
6924       case $host in
6925         mips*-sgi-irix*)
6926           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6927 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6928           enable_fixed_point=no
6929           ;;
6930         *)
6931           enable_fixed_point=yes
6932           ;;
6933       esac
6934       ;;
6935     *)
6936       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6937 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6938       enable_fixed_point=no
6939       ;;
6940   esac
6941
6942 fi
6943
6944
6945
6946 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6947
6948 cat >>confdefs.h <<_ACEOF
6949 #define ENABLE_FIXED_POINT $fixedpoint
6950 _ACEOF
6951
6952
6953 # Enable threads
6954 # Pass with no value to take the default
6955 # Pass with a value to specify a thread package
6956 # Check whether --enable-threads was given.
6957 if test "${enable_threads+set}" = set; then :
6958   enableval=$enable_threads;
6959 else
6960   enable_threads=''
6961 fi
6962
6963
6964 # Check whether --enable-tls was given.
6965 if test "${enable_tls+set}" = set; then :
6966   enableval=$enable_tls;
6967   case $enable_tls in
6968     yes | no) ;;
6969     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6970 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6971   esac
6972
6973 else
6974   enable_tls=''
6975 fi
6976
6977
6978 # Check whether --enable-objc-gc was given.
6979 if test "${enable_objc_gc+set}" = set; then :
6980   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6981         objc_boehm_gc=''
6982 else
6983         objc_boehm_gc=1
6984 fi
6985 else
6986   objc_boehm_gc=''
6987 fi
6988
6989
6990
6991 # Check whether --with-dwarf2 was given.
6992 if test "${with_dwarf2+set}" = set; then :
6993   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6994 else
6995   dwarf2=no
6996 fi
6997
6998
6999 # Check whether --enable-shared was given.
7000 if test "${enable_shared+set}" = set; then :
7001   enableval=$enable_shared;
7002   case $enable_shared in
7003   yes | no) ;;
7004   *)
7005     enable_shared=no
7006     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7007     for pkg in $enableval; do
7008       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7009         enable_shared=yes
7010       fi
7011     done
7012     IFS="$ac_save_ifs"
7013     ;;
7014   esac
7015
7016 else
7017   enable_shared=yes
7018 fi
7019
7020
7021
7022
7023 # Check whether --with-build-sysroot was given.
7024 if test "${with_build_sysroot+set}" = set; then :
7025   withval=$with_build_sysroot;
7026 fi
7027
7028
7029
7030 # Check whether --with-sysroot was given.
7031 if test "${with_sysroot+set}" = set; then :
7032   withval=$with_sysroot;
7033  case ${with_sysroot} in
7034  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7035  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7036  esac
7037
7038  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7039  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7040
7041  if test "x$prefix" = xNONE; then
7042   test_prefix=/usr/local
7043  else
7044   test_prefix=$prefix
7045  fi
7046  if test "x$exec_prefix" = xNONE; then
7047   test_exec_prefix=$test_prefix
7048  else
7049   test_exec_prefix=$exec_prefix
7050  fi
7051  case ${TARGET_SYSTEM_ROOT} in
7052  "${test_prefix}"|"${test_prefix}/"*|\
7053  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7054  '${prefix}'|'${prefix}/'*|\
7055  '${exec_prefix}'|'${exec_prefix}/'*)
7056    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7057    TARGET_SYSTEM_ROOT_DEFINE="$t"
7058    ;;
7059  esac
7060
7061 else
7062
7063  TARGET_SYSTEM_ROOT=
7064  TARGET_SYSTEM_ROOT_DEFINE=
7065  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7066
7067 fi
7068
7069
7070
7071
7072
7073
7074 # Check whether --with-specs was given.
7075 if test "${with_specs+set}" = set; then :
7076   withval=$with_specs; CONFIGURE_SPECS=$withval
7077 else
7078   CONFIGURE_SPECS=
7079
7080 fi
7081
7082
7083
7084
7085
7086 # Check whether --with-pkgversion was given.
7087 if test "${with_pkgversion+set}" = set; then :
7088   withval=$with_pkgversion; case "$withval" in
7089       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7090       no)  PKGVERSION= ;;
7091       *)   PKGVERSION="($withval) " ;;
7092      esac
7093 else
7094   PKGVERSION="(GCC) "
7095
7096 fi
7097
7098
7099
7100
7101
7102 # Check whether --with-bugurl was given.
7103 if test "${with_bugurl+set}" = set; then :
7104   withval=$with_bugurl; case "$withval" in
7105       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7106       no)  BUGURL=
7107            ;;
7108       *)   BUGURL="$withval"
7109            ;;
7110      esac
7111 else
7112   BUGURL="http://gcc.gnu.org/bugs.html"
7113
7114 fi
7115
7116   case ${BUGURL} in
7117   "")
7118     REPORT_BUGS_TO=
7119     REPORT_BUGS_TEXI=
7120     ;;
7121   *)
7122     REPORT_BUGS_TO="<$BUGURL>"
7123     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7124     ;;
7125   esac;
7126
7127
7128
7129
7130 # Sanity check enable_languages in case someone does not run the toplevel
7131 # configure # script.
7132 # Check whether --enable-languages was given.
7133 if test "${enable_languages+set}" = set; then :
7134   enableval=$enable_languages; case ,${enable_languages}, in
7135        ,,|,yes,)
7136                 # go safe -- we cannot be much sure without the toplevel
7137                 # configure's
7138                 # analysis of which target libs are present and usable
7139                 enable_languages=c
7140                 ;;
7141          *,all,*)
7142                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7143                 ;;
7144         *,c,*)
7145                 ;;
7146         *)
7147                 enable_languages=c,${enable_languages}
7148                 ;;
7149 esac
7150 else
7151   enable_languages=c
7152 fi
7153
7154
7155
7156 # Check whether --with-multilib-list was given.
7157 if test "${with_multilib_list+set}" = set; then :
7158   withval=$with_multilib_list; :
7159 else
7160   with_multilib_list=default
7161 fi
7162
7163
7164 # -------------------------
7165 # Checks for other programs
7166 # -------------------------
7167
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7169 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7170 set x ${MAKE-make}
7171 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7172 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7173   $as_echo_n "(cached) " >&6
7174 else
7175   cat >conftest.make <<\_ACEOF
7176 SHELL = /bin/sh
7177 all:
7178         @echo '@@@%%%=$(MAKE)=@@@%%%'
7179 _ACEOF
7180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7181 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7182   *@@@%%%=?*=@@@%%%*)
7183     eval ac_cv_prog_make_${ac_make}_set=yes;;
7184   *)
7185     eval ac_cv_prog_make_${ac_make}_set=no;;
7186 esac
7187 rm -f conftest.make
7188 fi
7189 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7191 $as_echo "yes" >&6; }
7192   SET_MAKE=
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196   SET_MAKE="MAKE=${MAKE-make}"
7197 fi
7198
7199
7200 # Find some useful tools
7201 for ac_prog in gawk mawk nawk awk
7202 do
7203   # Extract the first word of "$ac_prog", so it can be a program name with args.
7204 set dummy $ac_prog; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_prog_AWK+set}" = set; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   if test -n "$AWK"; then
7211   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218     for ac_exec_ext in '' $ac_executable_extensions; do
7219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220     ac_cv_prog_AWK="$ac_prog"
7221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225   done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 AWK=$ac_cv_prog_AWK
7231 if test -n "$AWK"; then
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7233 $as_echo "$AWK" >&6; }
7234 else
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239
7240   test -n "$AWK" && break
7241 done
7242
7243 # We need awk to create options.c and options.h.
7244 # Bail out if it's missing.
7245 case ${AWK} in
7246   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7247 esac
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7250 $as_echo_n "checking whether ln -s works... " >&6; }
7251 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   rm -f conftestdata_t
7255 echo >conftestdata_f
7256 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7257 then
7258   gcc_cv_prog_LN_S="ln -s"
7259 else
7260   if ln conftestdata_f conftestdata_t 2>/dev/null
7261   then
7262     gcc_cv_prog_LN_S=ln
7263   else
7264     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7265     then
7266       gcc_cv_prog_LN_S="cp -p"
7267     else
7268       gcc_cv_prog_LN_S=cp
7269     fi
7270   fi
7271 fi
7272 rm -f conftestdata_f conftestdata_t
7273
7274 fi
7275 LN_S="$gcc_cv_prog_LN_S"
7276 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7278 $as_echo "yes" >&6; }
7279 else
7280   if test "$gcc_cv_prog_LN_S" = "ln"; then
7281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7282 $as_echo "no, using ln" >&6; }
7283   else
7284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7285 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7286   fi
7287 fi
7288
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7290 $as_echo_n "checking whether ln works... " >&6; }
7291 if test "${acx_cv_prog_LN+set}" = set; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   rm -f conftestdata_t
7295 echo >conftestdata_f
7296 if ln conftestdata_f conftestdata_t 2>/dev/null
7297 then
7298   acx_cv_prog_LN=ln
7299 else
7300   acx_cv_prog_LN=no
7301 fi
7302 rm -f conftestdata_f conftestdata_t
7303
7304 fi
7305 if test $acx_cv_prog_LN = no; then
7306   LN="$LN_S"
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7308 $as_echo "no, using $LN" >&6; }
7309 else
7310   LN="$acx_cv_prog_LN"
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7312 $as_echo "yes" >&6; }
7313 fi
7314
7315 if test -n "$ac_tool_prefix"; then
7316   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   if test -n "$RANLIB"; then
7324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331     for ac_exec_ext in '' $ac_executable_extensions; do
7332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338   done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 RANLIB=$ac_cv_prog_RANLIB
7344 if test -n "$RANLIB"; then
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7346 $as_echo "$RANLIB" >&6; }
7347 else
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351
7352
7353 fi
7354 if test -z "$ac_cv_prog_RANLIB"; then
7355   ac_ct_RANLIB=$RANLIB
7356   # Extract the first word of "ranlib", so it can be a program name with args.
7357 set dummy ranlib; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   if test -n "$ac_ct_RANLIB"; then
7364   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371     for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_prog_ac_ct_RANLIB="ranlib"
7374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378   done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7384 if test -n "$ac_ct_RANLIB"; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7386 $as_echo "$ac_ct_RANLIB" >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 fi
7391
7392   if test "x$ac_ct_RANLIB" = x; then
7393     RANLIB=":"
7394   else
7395     case $cross_compiling:$ac_tool_warned in
7396 yes:)
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7400 esac
7401     RANLIB=$ac_ct_RANLIB
7402   fi
7403 else
7404   RANLIB="$ac_cv_prog_RANLIB"
7405 fi
7406
7407 case "${host}" in
7408 *-*-darwin*)
7409   # By default, the Darwin ranlib will not treat common symbols as
7410   # definitions when  building the archive table of contents.  Other
7411   # ranlibs do that; pass an option to the Darwin ranlib that makes
7412   # it behave similarly.
7413   ranlib_flags="-c"
7414   ;;
7415 *)
7416   ranlib_flags=""
7417 esac
7418
7419
7420 # Find a good install program.  We prefer a C program (faster),
7421 # so one script is as good as another.  But avoid the broken or
7422 # incompatible versions:
7423 # SysV /etc/install, /usr/sbin/install
7424 # SunOS /usr/etc/install
7425 # IRIX /sbin/install
7426 # AIX /bin/install
7427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7429 # ./install, which can be erroneously created by make from ./install.sh.
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7431 $as_echo_n "checking for a BSD compatible install... " >&6; }
7432 if test -z "$INSTALL"; then
7433 if test "${ac_cv_path_install+set}" = set; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7437   for ac_dir in $PATH; do
7438     # Account for people who put trailing slashes in PATH elements.
7439     case "$ac_dir/" in
7440     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7441     *)
7442       # OSF1 and SCO ODT 3.0 have their own names for install.
7443       for ac_prog in ginstall scoinst install; do
7444         if test -f $ac_dir/$ac_prog; then
7445           if test $ac_prog = install &&
7446             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7447             # AIX install.  It has an incompatible calling convention.
7448             # OSF/1 installbsd also uses dspmsg, but is usable.
7449             :
7450           else
7451             ac_cv_path_install="$ac_dir/$ac_prog -c"
7452             break 2
7453           fi
7454         fi
7455       done
7456       ;;
7457     esac
7458   done
7459   IFS="$ac_save_IFS"
7460
7461 fi
7462   if test "${ac_cv_path_install+set}" = set; then
7463     INSTALL="$ac_cv_path_install"
7464   else
7465     # As a last resort, use the slow shell script.  We don't cache a
7466     # path for INSTALL within a source directory, because that will
7467     # break other packages using the cache if that directory is
7468     # removed, or if the path is relative.
7469     INSTALL="$ac_install_sh"
7470   fi
7471 fi
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7473 $as_echo "$INSTALL" >&6; }
7474
7475 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7476 # It thinks the first close brace ends the variable substitution.
7477 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7478
7479 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7480
7481
7482 # See if cmp has --ignore-initial.
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7484 $as_echo_n "checking for cmp's capabilities... " >&6; }
7485 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7486   $as_echo_n "(cached) " >&6
7487 else
7488    echo abfoo >t1
7489   echo cdfoo >t2
7490   gcc_cv_prog_cmp_skip=slowcompare
7491   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7492     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7493       :
7494     else
7495       gcc_cv_prog_cmp_skip=gnucompare
7496     fi
7497   fi
7498   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7499     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7500       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7501         :
7502       else
7503         gcc_cv_prog_cmp_skip=fastcompare
7504       fi
7505     fi
7506   fi
7507   rm t1 t2
7508
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7511 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7512 make_compare_target=$gcc_cv_prog_cmp_skip
7513
7514
7515
7516 # See if we have the mktemp command.
7517 # Extract the first word of "mktemp", so it can be a program name with args.
7518 set dummy mktemp; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524   if test -n "$have_mktemp_command"; then
7525   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532     for ac_exec_ext in '' $ac_executable_extensions; do
7533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534     ac_cv_prog_have_mktemp_command="yes"
7535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536     break 2
7537   fi
7538 done
7539   done
7540 IFS=$as_save_IFS
7541
7542   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7543 fi
7544 fi
7545 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7546 if test -n "$have_mktemp_command"; then
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7548 $as_echo "$have_mktemp_command" >&6; }
7549 else
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7552 fi
7553
7554
7555
7556 # See if makeinfo has been installed and is modern enough
7557 # that we can use it.
7558
7559   # Extract the first word of "makeinfo", so it can be a program name with args.
7560 set dummy makeinfo; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7564   $as_echo_n "(cached) " >&6
7565 else
7566   if test -n "$MAKEINFO"; then
7567   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572   IFS=$as_save_IFS
7573   test -z "$as_dir" && as_dir=.
7574     for ac_exec_ext in '' $ac_executable_extensions; do
7575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576     ac_cv_prog_MAKEINFO="makeinfo"
7577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578     break 2
7579   fi
7580 done
7581   done
7582 IFS=$as_save_IFS
7583
7584 fi
7585 fi
7586 MAKEINFO=$ac_cv_prog_MAKEINFO
7587 if test -n "$MAKEINFO"; then
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7589 $as_echo "$MAKEINFO" >&6; }
7590 else
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7593 fi
7594
7595
7596   if test -n "$MAKEINFO"; then
7597     # Found it, now check the version.
7598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7599 $as_echo_n "checking for modern makeinfo... " >&6; }
7600 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7604                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7605
7606                     case $ac_prog_version in
7607                       '')  gcc_cv_prog_makeinfo_modern=no;;
7608                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7609                       *)   gcc_cv_prog_makeinfo_modern=no;;
7610                     esac
7611
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7614 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7615   else
7616     gcc_cv_prog_makeinfo_modern=no
7617   fi
7618   if test $gcc_cv_prog_makeinfo_modern = no; then
7619     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7620   fi
7621
7622 if test $gcc_cv_prog_makeinfo_modern = no; then
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7624 *** Makeinfo is missing or too old.
7625 *** Info documentation will not be built." >&5
7626 $as_echo "$as_me: WARNING:
7627 *** Makeinfo is missing or too old.
7628 *** Info documentation will not be built." >&2;}
7629   BUILD_INFO=
7630 else
7631   BUILD_INFO=info
7632 fi
7633
7634
7635 # Is pod2man recent enough to regenerate manpages?
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7637 $as_echo_n "checking for recent Pod::Man... " >&6; }
7638 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7640 $as_echo "yes" >&6; }
7641   GENERATED_MANPAGES=generated-manpages
7642 else
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7645   GENERATED_MANPAGES=
7646 fi
7647
7648
7649 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7650
7651 # How about lex?
7652 for ac_prog in flex
7653 do
7654   # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_FLEX+set}" = set; then :
7659   $as_echo_n "(cached) " >&6
7660 else
7661   if test -n "$FLEX"; then
7662   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667   IFS=$as_save_IFS
7668   test -z "$as_dir" && as_dir=.
7669     for ac_exec_ext in '' $ac_executable_extensions; do
7670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671     ac_cv_prog_FLEX="$ac_prog"
7672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673     break 2
7674   fi
7675 done
7676   done
7677 IFS=$as_save_IFS
7678
7679 fi
7680 fi
7681 FLEX=$ac_cv_prog_FLEX
7682 if test -n "$FLEX"; then
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7684 $as_echo "$FLEX" >&6; }
7685 else
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689
7690
7691   test -n "$FLEX" && break
7692 done
7693 test -n "$FLEX" || FLEX="$MISSING flex"
7694
7695
7696 # Bison?
7697 for ac_prog in bison
7698 do
7699   # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if test "${ac_cv_prog_BISON+set}" = set; then :
7704   $as_echo_n "(cached) " >&6
7705 else
7706   if test -n "$BISON"; then
7707   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714     for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_prog_BISON="$ac_prog"
7717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721   done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 BISON=$ac_cv_prog_BISON
7727 if test -n "$BISON"; then
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7729 $as_echo "$BISON" >&6; }
7730 else
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735
7736   test -n "$BISON" && break
7737 done
7738 test -n "$BISON" || BISON="$MISSING bison"
7739
7740
7741 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7742 # check for build == host before using them.
7743
7744 # NM
7745 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7746   && test -d ../binutils ; then
7747   NM='${objdir}/../binutils/nm-new'
7748 else
7749   # Extract the first word of "nm", so it can be a program name with args.
7750 set dummy nm; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_NM+set}" = set; then :
7754   $as_echo_n "(cached) " >&6
7755 else
7756   if test -n "$NM"; then
7757   ac_cv_prog_NM="$NM" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762   IFS=$as_save_IFS
7763   test -z "$as_dir" && as_dir=.
7764     for ac_exec_ext in '' $ac_executable_extensions; do
7765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766     ac_cv_prog_NM="nm"
7767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768     break 2
7769   fi
7770 done
7771   done
7772 IFS=$as_save_IFS
7773
7774   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7775 fi
7776 fi
7777 NM=$ac_cv_prog_NM
7778 if test -n "$NM"; then
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7780 $as_echo "$NM" >&6; }
7781 else
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786
7787 fi
7788
7789 # AR
7790 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7791   && test -d ../binutils ; then
7792   AR='${objdir}/../binutils/ar'
7793 else
7794   # Extract the first word of "ar", so it can be a program name with args.
7795 set dummy ar; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_AR+set}" = set; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   if test -n "$AR"; then
7802   ac_cv_prog_AR="$AR" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809     for ac_exec_ext in '' $ac_executable_extensions; do
7810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811     ac_cv_prog_AR="ar"
7812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816   done
7817 IFS=$as_save_IFS
7818
7819   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7820 fi
7821 fi
7822 AR=$ac_cv_prog_AR
7823 if test -n "$AR"; then
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7825 $as_echo "$AR" >&6; }
7826 else
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831
7832 fi
7833
7834
7835 # --------------------
7836 # Checks for C headers
7837 # --------------------
7838
7839 # Need to reject headers which give warnings, so that the -Werror bootstrap
7840 # works later. *sigh*  This needs to come before all header checks.
7841
7842 ac_c_preproc_warn_flag=yes
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7845 $as_echo_n "checking for ANSI C header files... " >&6; }
7846 if test "${ac_cv_header_stdc+set}" = set; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h.  */
7851 #include <stdlib.h>
7852 #include <stdarg.h>
7853 #include <string.h>
7854 #include <float.h>
7855
7856 int
7857 main ()
7858 {
7859
7860   ;
7861   return 0;
7862 }
7863 _ACEOF
7864 if ac_fn_c_try_compile "$LINENO"; then :
7865   ac_cv_header_stdc=yes
7866 else
7867   ac_cv_header_stdc=no
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870
7871 if test $ac_cv_header_stdc = yes; then
7872   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h.  */
7875 #include <string.h>
7876
7877 _ACEOF
7878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7879   $EGREP "memchr" >/dev/null 2>&1; then :
7880
7881 else
7882   ac_cv_header_stdc=no
7883 fi
7884 rm -f conftest*
7885
7886 fi
7887
7888 if test $ac_cv_header_stdc = yes; then
7889   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h.  */
7892 #include <stdlib.h>
7893
7894 _ACEOF
7895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7896   $EGREP "free" >/dev/null 2>&1; then :
7897
7898 else
7899   ac_cv_header_stdc=no
7900 fi
7901 rm -f conftest*
7902
7903 fi
7904
7905 if test $ac_cv_header_stdc = yes; then
7906   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7907   if test "$cross_compiling" = yes; then :
7908   :
7909 else
7910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h.  */
7912 #include <ctype.h>
7913 #include <stdlib.h>
7914 #if ((' ' & 0x0FF) == 0x020)
7915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7917 #else
7918 # define ISLOWER(c) \
7919                    (('a' <= (c) && (c) <= 'i') \
7920                      || ('j' <= (c) && (c) <= 'r') \
7921                      || ('s' <= (c) && (c) <= 'z'))
7922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7923 #endif
7924
7925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7926 int
7927 main ()
7928 {
7929   int i;
7930   for (i = 0; i < 256; i++)
7931     if (XOR (islower (i), ISLOWER (i))
7932         || toupper (i) != TOUPPER (i))
7933       return 2;
7934   return 0;
7935 }
7936 _ACEOF
7937 if ac_fn_c_try_run "$LINENO"; then :
7938
7939 else
7940   ac_cv_header_stdc=no
7941 fi
7942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7943   conftest.$ac_objext conftest.beam conftest.$ac_ext
7944 fi
7945
7946 fi
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7949 $as_echo "$ac_cv_header_stdc" >&6; }
7950 if test $ac_cv_header_stdc = yes; then
7951
7952 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7953
7954 fi
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7957 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7958 if test "${ac_cv_header_time+set}" = set; then :
7959   $as_echo_n "(cached) " >&6
7960 else
7961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h.  */
7963 #include <sys/types.h>
7964 #include <sys/time.h>
7965 #include <time.h>
7966
7967 int
7968 main ()
7969 {
7970 if ((struct tm *) 0)
7971 return 0;
7972   ;
7973   return 0;
7974 }
7975 _ACEOF
7976 if ac_fn_c_try_compile "$LINENO"; then :
7977   ac_cv_header_time=yes
7978 else
7979   ac_cv_header_time=no
7980 fi
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982 fi
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7984 $as_echo "$ac_cv_header_time" >&6; }
7985 if test $ac_cv_header_time = yes; then
7986
7987 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7988
7989 fi
7990
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7992 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7993 if test "${gcc_cv_header_string+set}" = set; then :
7994   $as_echo_n "(cached) " >&6
7995 else
7996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h.  */
7998 #include <string.h>
7999 #include <strings.h>
8000 int
8001 main ()
8002 {
8003
8004   ;
8005   return 0;
8006 }
8007 _ACEOF
8008 if ac_fn_c_try_compile "$LINENO"; then :
8009   gcc_cv_header_string=yes
8010 else
8011   gcc_cv_header_string=no
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 fi
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8016 $as_echo "$gcc_cv_header_string" >&6; }
8017 if test $gcc_cv_header_string = yes; then
8018
8019 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8020
8021 fi
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8024 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8025 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8026   $as_echo_n "(cached) " >&6
8027 else
8028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h.  */
8030 #include <sys/types.h>
8031 #include <sys/wait.h>
8032 #ifndef WEXITSTATUS
8033 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8034 #endif
8035 #ifndef WIFEXITED
8036 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8037 #endif
8038
8039 int
8040 main ()
8041 {
8042   int s;
8043   wait (&s);
8044   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8045   ;
8046   return 0;
8047 }
8048 _ACEOF
8049 if ac_fn_c_try_compile "$LINENO"; then :
8050   ac_cv_header_sys_wait_h=yes
8051 else
8052   ac_cv_header_sys_wait_h=no
8053 fi
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 fi
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8057 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8058 if test $ac_cv_header_sys_wait_h = yes; then
8059
8060 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8061
8062 fi
8063
8064 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8065                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8066                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8067                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8068 do :
8069   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8070 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8071 eval as_val=\$$as_ac_Header
8072    if test "x$as_val" = x""yes; then :
8073   cat >>confdefs.h <<_ACEOF
8074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8075 _ACEOF
8076
8077 fi
8078 done
8079
8080
8081 # Check for thread headers.
8082 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8083 if test "x$ac_cv_header_thread_h" = x""yes; then :
8084   have_thread_h=yes
8085 else
8086   have_thread_h=
8087 fi
8088
8089 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8090 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8091   have_pthread_h=yes
8092 else
8093   have_pthread_h=
8094 fi
8095
8096
8097 # These tests can't be done till we know if we have limits.h.
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8099 $as_echo_n "checking for CHAR_BIT... " >&6; }
8100 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8101   $as_echo_n "(cached) " >&6
8102 else
8103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h.  */
8105 #ifdef HAVE_LIMITS_H
8106 #include <limits.h>
8107 #endif
8108 #ifdef CHAR_BIT
8109 found
8110 #endif
8111 _ACEOF
8112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8113   $EGREP "found" >/dev/null 2>&1; then :
8114   gcc_cv_decl_char_bit=yes
8115 else
8116   gcc_cv_decl_char_bit=no
8117 fi
8118 rm -f conftest*
8119
8120
8121 fi
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8123 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8124 if test $gcc_cv_decl_char_bit = no; then
8125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8126 $as_echo_n "checking number of bits in a byte... " >&6; }
8127 if test "${gcc_cv_c_nbby+set}" = set; then :
8128   $as_echo_n "(cached) " >&6
8129 else
8130   i=8
8131  gcc_cv_c_nbby=
8132  while test $i -lt 65; do
8133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h.  */
8135
8136 int
8137 main ()
8138 {
8139 switch(0) {
8140   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8141   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8142   ; }
8143   ;
8144   return 0;
8145 }
8146 _ACEOF
8147 if ac_fn_c_try_compile "$LINENO"; then :
8148   gcc_cv_c_nbby=$i; break
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151    i=`expr $i + 1`
8152  done
8153  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8154
8155 fi
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8157 $as_echo "$gcc_cv_c_nbby" >&6; }
8158 if test $gcc_cv_c_nbby = failed; then
8159   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8160 else
8161
8162 cat >>confdefs.h <<_ACEOF
8163 #define CHAR_BIT $gcc_cv_c_nbby
8164 _ACEOF
8165
8166 fi
8167 fi
8168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8169 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8170 if test "${ac_cv_c_bigendian+set}" = set; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   ac_cv_c_bigendian=unknown
8174     # See if we're dealing with a universal compiler.
8175     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h.  */
8177 #ifndef __APPLE_CC__
8178                not a universal capable compiler
8179              #endif
8180              typedef int dummy;
8181
8182 _ACEOF
8183 if ac_fn_c_try_compile "$LINENO"; then :
8184
8185         # Check for potential -arch flags.  It is not universal unless
8186         # there are at least two -arch flags with different values.
8187         ac_arch=
8188         ac_prev=
8189         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8190          if test -n "$ac_prev"; then
8191            case $ac_word in
8192              i?86 | x86_64 | ppc | ppc64)
8193                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8194                  ac_arch=$ac_word
8195                else
8196                  ac_cv_c_bigendian=universal
8197                  break
8198                fi
8199                ;;
8200            esac
8201            ac_prev=
8202          elif test "x$ac_word" = "x-arch"; then
8203            ac_prev=arch
8204          fi
8205        done
8206 fi
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208     if test $ac_cv_c_bigendian = unknown; then
8209       # See if sys/param.h defines the BYTE_ORDER macro.
8210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h.  */
8212 #include <sys/types.h>
8213              #include <sys/param.h>
8214
8215 int
8216 main ()
8217 {
8218 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8219                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8220                      && LITTLE_ENDIAN)
8221               bogus endian macros
8222              #endif
8223
8224   ;
8225   return 0;
8226 }
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229   # It does; now see whether it defined to BIG_ENDIAN or not.
8230          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h.  */
8232 #include <sys/types.h>
8233                 #include <sys/param.h>
8234
8235 int
8236 main ()
8237 {
8238 #if BYTE_ORDER != BIG_ENDIAN
8239                  not big endian
8240                 #endif
8241
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_compile "$LINENO"; then :
8247   ac_cv_c_bigendian=yes
8248 else
8249   ac_cv_c_bigendian=no
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254     fi
8255     if test $ac_cv_c_bigendian = unknown; then
8256       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8257       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h.  */
8259 #include <limits.h>
8260
8261 int
8262 main ()
8263 {
8264 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8265               bogus endian macros
8266              #endif
8267
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_compile "$LINENO"; then :
8273   # It does; now see whether it defined to _BIG_ENDIAN or not.
8274          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h.  */
8276 #include <limits.h>
8277
8278 int
8279 main ()
8280 {
8281 #ifndef _BIG_ENDIAN
8282                  not big endian
8283                 #endif
8284
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 if ac_fn_c_try_compile "$LINENO"; then :
8290   ac_cv_c_bigendian=yes
8291 else
8292   ac_cv_c_bigendian=no
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297     fi
8298     if test $ac_cv_c_bigendian = unknown; then
8299       # Compile a test program.
8300       if test "$cross_compiling" = yes; then :
8301   # Try to guess by grepping values from an object file.
8302          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304 short int ascii_mm[] =
8305                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8306                 short int ascii_ii[] =
8307                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8308                 int use_ascii (int i) {
8309                   return ascii_mm[i] + ascii_ii[i];
8310                 }
8311                 short int ebcdic_ii[] =
8312                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8313                 short int ebcdic_mm[] =
8314                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8315                 int use_ebcdic (int i) {
8316                   return ebcdic_mm[i] + ebcdic_ii[i];
8317                 }
8318                 extern int foo;
8319
8320 int
8321 main ()
8322 {
8323 return use_ascii (foo) == use_ebcdic (foo);
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 if ac_fn_c_try_compile "$LINENO"; then :
8329   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8330               ac_cv_c_bigendian=yes
8331             fi
8332             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8333               if test "$ac_cv_c_bigendian" = unknown; then
8334                 ac_cv_c_bigendian=no
8335               else
8336                 # finding both strings is unlikely to happen, but who knows?
8337                 ac_cv_c_bigendian=unknown
8338               fi
8339             fi
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 else
8343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h.  */
8345 $ac_includes_default
8346 int
8347 main ()
8348 {
8349
8350              /* Are we little or big endian?  From Harbison&Steele.  */
8351              union
8352              {
8353                long int l;
8354                char c[sizeof (long int)];
8355              } u;
8356              u.l = 1;
8357              return u.c[sizeof (long int) - 1] == 1;
8358
8359   ;
8360   return 0;
8361 }
8362 _ACEOF
8363 if ac_fn_c_try_run "$LINENO"; then :
8364   ac_cv_c_bigendian=no
8365 else
8366   ac_cv_c_bigendian=yes
8367 fi
8368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8369   conftest.$ac_objext conftest.beam conftest.$ac_ext
8370 fi
8371
8372     fi
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8375 $as_echo "$ac_cv_c_bigendian" >&6; }
8376  case $ac_cv_c_bigendian in #(
8377    yes)
8378      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8379 ;; #(
8380    no)
8381       ;; #(
8382    universal)
8383
8384 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8385
8386      ;; #(
8387    *)
8388      as_fn_error "unknown endianness
8389  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8390  esac
8391
8392
8393 # --------
8394 # UNSORTED
8395 # --------
8396
8397
8398 # These libraries may be used by collect2.
8399 # We may need a special search path to get them linked.
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8401 $as_echo_n "checking for collect2 libraries... " >&6; }
8402 if test "${gcc_cv_collect2_libs+set}" = set; then :
8403   $as_echo_n "(cached) " >&6
8404 else
8405   save_LIBS="$LIBS"
8406 for libs in '' -lld -lmld \
8407                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8408                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8409 do
8410         LIBS="$libs"
8411         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h.  */
8413
8414 /* Override any GCC internal prototype to avoid an error.
8415    Use char because int might match the return type of a GCC
8416    builtin and then its argument prototype would still apply.  */
8417 #ifdef __cplusplus
8418 extern "C"
8419 #endif
8420 char ldopen ();
8421 int
8422 main ()
8423 {
8424 return ldopen ();
8425   ;
8426   return 0;
8427 }
8428 _ACEOF
8429 if ac_fn_c_try_link "$LINENO"; then :
8430   gcc_cv_collect2_libs="$libs"; break
8431 fi
8432 rm -f core conftest.err conftest.$ac_objext \
8433     conftest$ac_exeext conftest.$ac_ext
8434 done
8435 LIBS="$save_LIBS"
8436 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8437 fi
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8439 $as_echo "$gcc_cv_collect2_libs" >&6; }
8440 case $gcc_cv_collect2_libs in
8441         "none required")        ;;
8442         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8443 esac
8444
8445
8446 # When building Ada code on Alpha, we need exc_resume which is usually in
8447 # -lexc.  So test for it.
8448 save_LIBS="$LIBS"
8449 LIBS=
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8451 $as_echo_n "checking for library containing exc_resume... " >&6; }
8452 if test "${ac_cv_search_exc_resume+set}" = set; then :
8453   $as_echo_n "(cached) " >&6
8454 else
8455   ac_func_search_save_LIBS=$LIBS
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h.  */
8458
8459 /* Override any GCC internal prototype to avoid an error.
8460    Use char because int might match the return type of a GCC
8461    builtin and then its argument prototype would still apply.  */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 char exc_resume ();
8466 int
8467 main ()
8468 {
8469 return exc_resume ();
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 for ac_lib in '' exc; do
8475   if test -z "$ac_lib"; then
8476     ac_res="none required"
8477   else
8478     ac_res=-l$ac_lib
8479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8480   fi
8481   if ac_fn_c_try_link "$LINENO"; then :
8482   ac_cv_search_exc_resume=$ac_res
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext \
8485     conftest$ac_exeext
8486   if test "${ac_cv_search_exc_resume+set}" = set; then :
8487   break
8488 fi
8489 done
8490 if test "${ac_cv_search_exc_resume+set}" = set; then :
8491
8492 else
8493   ac_cv_search_exc_resume=no
8494 fi
8495 rm conftest.$ac_ext
8496 LIBS=$ac_func_search_save_LIBS
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8499 $as_echo "$ac_cv_search_exc_resume" >&6; }
8500 ac_res=$ac_cv_search_exc_resume
8501 if test "$ac_res" != no; then :
8502   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8503
8504 fi
8505
8506 GNAT_LIBEXC="$LIBS"
8507 LIBS="$save_LIBS"
8508
8509
8510 # Some systems put ldexp and frexp in libm instead of libc; assume
8511 # they're both in the same place.  jcf-dump needs them.
8512 save_LIBS="$LIBS"
8513 LIBS=
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8515 $as_echo_n "checking for library containing ldexp... " >&6; }
8516 if test "${ac_cv_search_ldexp+set}" = set; then :
8517   $as_echo_n "(cached) " >&6
8518 else
8519   ac_func_search_save_LIBS=$LIBS
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h.  */
8522
8523 /* Override any GCC internal prototype to avoid an error.
8524    Use char because int might match the return type of a GCC
8525    builtin and then its argument prototype would still apply.  */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 char ldexp ();
8530 int
8531 main ()
8532 {
8533 return ldexp ();
8534   ;
8535   return 0;
8536 }
8537 _ACEOF
8538 for ac_lib in '' m; do
8539   if test -z "$ac_lib"; then
8540     ac_res="none required"
8541   else
8542     ac_res=-l$ac_lib
8543     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8544   fi
8545   if ac_fn_c_try_link "$LINENO"; then :
8546   ac_cv_search_ldexp=$ac_res
8547 fi
8548 rm -f core conftest.err conftest.$ac_objext \
8549     conftest$ac_exeext
8550   if test "${ac_cv_search_ldexp+set}" = set; then :
8551   break
8552 fi
8553 done
8554 if test "${ac_cv_search_ldexp+set}" = set; then :
8555
8556 else
8557   ac_cv_search_ldexp=no
8558 fi
8559 rm conftest.$ac_ext
8560 LIBS=$ac_func_search_save_LIBS
8561 fi
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8563 $as_echo "$ac_cv_search_ldexp" >&6; }
8564 ac_res=$ac_cv_search_ldexp
8565 if test "$ac_res" != no; then :
8566   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8567
8568 fi
8569
8570 LDEXP_LIB="$LIBS"
8571 LIBS="$save_LIBS"
8572
8573
8574 # Use <inttypes.h> only if it exists,
8575 # doesn't clash with <sys/types.h>, and declares intmax_t.
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8577 $as_echo_n "checking for inttypes.h... " >&6; }
8578 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8579   $as_echo_n "(cached) " >&6
8580 else
8581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h.  */
8583 #include <sys/types.h>
8584 #include <inttypes.h>
8585 int
8586 main ()
8587 {
8588 intmax_t i = -1;
8589   ;
8590   return 0;
8591 }
8592 _ACEOF
8593 if ac_fn_c_try_compile "$LINENO"; then :
8594   gcc_cv_header_inttypes_h=yes
8595 else
8596   gcc_cv_header_inttypes_h=no
8597 fi
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 fi
8600
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8602 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8603 if test $gcc_cv_header_inttypes_h = yes; then
8604
8605 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8606
8607 fi
8608
8609
8610
8611 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8612         sysconf strsignal getrusage nl_langinfo \
8613         gettimeofday mbstowcs wcswidth mmap setlocale \
8614         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
8615 do :
8616   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8617 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8618 eval as_val=\$$as_ac_var
8619    if test "x$as_val" = x""yes; then :
8620   cat >>confdefs.h <<_ACEOF
8621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8622 _ACEOF
8623
8624 fi
8625 done
8626
8627
8628 if test x$ac_cv_func_mbstowcs = xyes; then
8629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8630 $as_echo_n "checking whether mbstowcs works... " >&6; }
8631 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634       if test "$cross_compiling" = yes; then :
8635   gcc_cv_func_mbstowcs_works=yes
8636 else
8637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h.  */
8639 #include <stdlib.h>
8640 int main()
8641 {
8642   mbstowcs(0, "", 0);
8643   return 0;
8644 }
8645 _ACEOF
8646 if ac_fn_c_try_run "$LINENO"; then :
8647   gcc_cv_func_mbstowcs_works=yes
8648 else
8649   gcc_cv_func_mbstowcs_works=no
8650 fi
8651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8652   conftest.$ac_objext conftest.beam conftest.$ac_ext
8653 fi
8654
8655 fi
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8657 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8658   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8659
8660 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8661
8662   fi
8663 fi
8664
8665 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8666 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8667
8668 else
8669
8670 cat >>confdefs.h <<_ACEOF
8671 #define ssize_t int
8672 _ACEOF
8673
8674 fi
8675
8676 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8677 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8678
8679 else
8680
8681 cat >>confdefs.h <<_ACEOF
8682 #define caddr_t char *
8683 _ACEOF
8684
8685 fi
8686
8687
8688
8689 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8690 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8691   gcc_header_sys_mman_h=yes
8692 else
8693   gcc_header_sys_mman_h=no
8694 fi
8695
8696 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8697 if test "x$ac_cv_func_mmap" = x""yes; then :
8698   gcc_func_mmap=yes
8699 else
8700   gcc_func_mmap=no
8701 fi
8702
8703 if test "$gcc_header_sys_mman_h" != yes \
8704  || test "$gcc_func_mmap" != yes; then
8705    gcc_cv_func_mmap_file=no
8706    gcc_cv_func_mmap_dev_zero=no
8707    gcc_cv_func_mmap_anon=no
8708 else
8709    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8710 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8711 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8712   $as_echo_n "(cached) " >&6
8713 else
8714   # Add a system to this blacklist if
8715    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8716    # memory area containing the same data that you'd get if you applied
8717    # read() to the same fd.  The only system known to have a problem here
8718    # is VMS, where text files have record structure.
8719    case "$host_os" in
8720      vms* | ultrix*)
8721         gcc_cv_func_mmap_file=no ;;
8722      *)
8723         gcc_cv_func_mmap_file=yes;;
8724    esac
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8727 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8729 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8730 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8731   $as_echo_n "(cached) " >&6
8732 else
8733   # Add a system to this blacklist if it has mmap() but /dev/zero
8734    # does not exist, or if mmapping /dev/zero does not give anonymous
8735    # zeroed pages with both the following properties:
8736    # 1. If you map N consecutive pages in with one call, and then
8737    #    unmap any subset of those pages, the pages that were not
8738    #    explicitly unmapped remain accessible.
8739    # 2. If you map two adjacent blocks of memory and then unmap them
8740    #    both at once, they must both go away.
8741    # Systems known to be in this category are Windows (all variants),
8742    # VMS, and Darwin.
8743    case "$host_os" in
8744      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8745         gcc_cv_func_mmap_dev_zero=no ;;
8746      *)
8747         gcc_cv_func_mmap_dev_zero=yes;;
8748    esac
8749 fi
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8751 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8752
8753    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8755 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8756 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8757   $as_echo_n "(cached) " >&6
8758 else
8759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h.  */
8761 #include <sys/types.h>
8762 #include <sys/mman.h>
8763 #include <unistd.h>
8764
8765 #ifndef MAP_ANONYMOUS
8766 #define MAP_ANONYMOUS MAP_ANON
8767 #endif
8768
8769 int
8770 main ()
8771 {
8772 int n = MAP_ANONYMOUS;
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_compile "$LINENO"; then :
8778   gcc_cv_decl_map_anon=yes
8779 else
8780   gcc_cv_decl_map_anon=no
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8785 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8786
8787    if test $gcc_cv_decl_map_anon = no; then
8788      gcc_cv_func_mmap_anon=no
8789    else
8790      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8791 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8792 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8796    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8797    # doesn't give anonymous zeroed pages with the same properties listed
8798    # above for use of /dev/zero.
8799    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8800    case "$host_os" in
8801      vms* | cygwin* | pe | mingw* | sco* | udk* )
8802         gcc_cv_func_mmap_anon=no ;;
8803      *)
8804         gcc_cv_func_mmap_anon=yes;;
8805    esac
8806 fi
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8808 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8809    fi
8810 fi
8811
8812 if test $gcc_cv_func_mmap_file = yes; then
8813
8814 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8815
8816 fi
8817 if test $gcc_cv_func_mmap_dev_zero = yes; then
8818
8819 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8820
8821 fi
8822 if test $gcc_cv_func_mmap_anon = yes; then
8823
8824 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8825
8826 fi
8827
8828
8829 case "${host}" in
8830 *-*-*vms*)
8831   # Under VMS, vfork works very differently than on Unix. The standard test
8832   # won't work, and it isn't easily adaptable. It makes more sense to
8833   # just force it.
8834   ac_cv_func_vfork_works=yes
8835   ;;
8836 esac
8837 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8838 if test "x$ac_cv_type_pid_t" = x""yes; then :
8839
8840 else
8841
8842 cat >>confdefs.h <<_ACEOF
8843 #define pid_t int
8844 _ACEOF
8845
8846 fi
8847
8848 for ac_header in vfork.h
8849 do :
8850   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8851 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8852   cat >>confdefs.h <<_ACEOF
8853 #define HAVE_VFORK_H 1
8854 _ACEOF
8855
8856 fi
8857 done
8858
8859 for ac_func in fork vfork
8860 do :
8861   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8863 eval as_val=\$$as_ac_var
8864    if test "x$as_val" = x""yes; then :
8865   cat >>confdefs.h <<_ACEOF
8866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8867 _ACEOF
8868
8869 fi
8870 done
8871
8872 if test "x$ac_cv_func_fork" = xyes; then
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8874 $as_echo_n "checking for working fork... " >&6; }
8875 if test "${ac_cv_func_fork_works+set}" = set; then :
8876   $as_echo_n "(cached) " >&6
8877 else
8878   if test "$cross_compiling" = yes; then :
8879   ac_cv_func_fork_works=cross
8880 else
8881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h.  */
8883 $ac_includes_default
8884 int
8885 main ()
8886 {
8887
8888           /* By Ruediger Kuhlmann. */
8889           return fork () < 0;
8890
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_c_try_run "$LINENO"; then :
8896   ac_cv_func_fork_works=yes
8897 else
8898   ac_cv_func_fork_works=no
8899 fi
8900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8901   conftest.$ac_objext conftest.beam conftest.$ac_ext
8902 fi
8903
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8906 $as_echo "$ac_cv_func_fork_works" >&6; }
8907
8908 else
8909   ac_cv_func_fork_works=$ac_cv_func_fork
8910 fi
8911 if test "x$ac_cv_func_fork_works" = xcross; then
8912   case $host in
8913     *-*-amigaos* | *-*-msdosdjgpp*)
8914       # Override, as these systems have only a dummy fork() stub
8915       ac_cv_func_fork_works=no
8916       ;;
8917     *)
8918       ac_cv_func_fork_works=yes
8919       ;;
8920   esac
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8922 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8923 fi
8924 ac_cv_func_vfork_works=$ac_cv_func_vfork
8925 if test "x$ac_cv_func_vfork" = xyes; then
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8927 $as_echo_n "checking for working vfork... " >&6; }
8928 if test "${ac_cv_func_vfork_works+set}" = set; then :
8929   $as_echo_n "(cached) " >&6
8930 else
8931   if test "$cross_compiling" = yes; then :
8932   ac_cv_func_vfork_works=cross
8933 else
8934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h.  */
8936 /* Thanks to Paul Eggert for this test.  */
8937 $ac_includes_default
8938 #include <sys/wait.h>
8939 #ifdef HAVE_VFORK_H
8940 # include <vfork.h>
8941 #endif
8942 /* On some sparc systems, changes by the child to local and incoming
8943    argument registers are propagated back to the parent.  The compiler
8944    is told about this with #include <vfork.h>, but some compilers
8945    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8946    static variable whose address is put into a register that is
8947    clobbered by the vfork.  */
8948 static void
8949 #ifdef __cplusplus
8950 sparc_address_test (int arg)
8951 # else
8952 sparc_address_test (arg) int arg;
8953 #endif
8954 {
8955   static pid_t child;
8956   if (!child) {
8957     child = vfork ();
8958     if (child < 0) {
8959       perror ("vfork");
8960       _exit(2);
8961     }
8962     if (!child) {
8963       arg = getpid();
8964       write(-1, "", 0);
8965       _exit (arg);
8966     }
8967   }
8968 }
8969
8970 int
8971 main ()
8972 {
8973   pid_t parent = getpid ();
8974   pid_t child;
8975
8976   sparc_address_test (0);
8977
8978   child = vfork ();
8979
8980   if (child == 0) {
8981     /* Here is another test for sparc vfork register problems.  This
8982        test uses lots of local variables, at least as many local
8983        variables as main has allocated so far including compiler
8984        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8985        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8986        reuse the register of parent for one of the local variables,
8987        since it will think that parent can't possibly be used any more
8988        in this routine.  Assigning to the local variable will thus
8989        munge parent in the parent process.  */
8990     pid_t
8991       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8992       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8993     /* Convince the compiler that p..p7 are live; otherwise, it might
8994        use the same hardware register for all 8 local variables.  */
8995     if (p != p1 || p != p2 || p != p3 || p != p4
8996         || p != p5 || p != p6 || p != p7)
8997       _exit(1);
8998
8999     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9000        from child file descriptors.  If the child closes a descriptor
9001        before it execs or exits, this munges the parent's descriptor
9002        as well.  Test for this by closing stdout in the child.  */
9003     _exit(close(fileno(stdout)) != 0);
9004   } else {
9005     int status;
9006     struct stat st;
9007
9008     while (wait(&status) != child)
9009       ;
9010     return (
9011          /* Was there some problem with vforking?  */
9012          child < 0
9013
9014          /* Did the child fail?  (This shouldn't happen.)  */
9015          || status
9016
9017          /* Did the vfork/compiler bug occur?  */
9018          || parent != getpid()
9019
9020          /* Did the file descriptor bug occur?  */
9021          || fstat(fileno(stdout), &st) != 0
9022          );
9023   }
9024 }
9025 _ACEOF
9026 if ac_fn_c_try_run "$LINENO"; then :
9027   ac_cv_func_vfork_works=yes
9028 else
9029   ac_cv_func_vfork_works=no
9030 fi
9031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9032   conftest.$ac_objext conftest.beam conftest.$ac_ext
9033 fi
9034
9035 fi
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9037 $as_echo "$ac_cv_func_vfork_works" >&6; }
9038
9039 fi;
9040 if test "x$ac_cv_func_fork_works" = xcross; then
9041   ac_cv_func_vfork_works=$ac_cv_func_vfork
9042   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9043 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9044 fi
9045
9046 if test "x$ac_cv_func_vfork_works" = xyes; then
9047
9048 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9049
9050 else
9051
9052 $as_echo "#define vfork fork" >>confdefs.h
9053
9054 fi
9055 if test "x$ac_cv_func_fork_works" = xyes; then
9056
9057 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9058
9059 fi
9060
9061
9062
9063       if test "X$prefix" = "XNONE"; then
9064     acl_final_prefix="$ac_default_prefix"
9065   else
9066     acl_final_prefix="$prefix"
9067   fi
9068   if test "X$exec_prefix" = "XNONE"; then
9069     acl_final_exec_prefix='${prefix}'
9070   else
9071     acl_final_exec_prefix="$exec_prefix"
9072   fi
9073   acl_save_prefix="$prefix"
9074   prefix="$acl_final_prefix"
9075   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9076   prefix="$acl_save_prefix"
9077
9078
9079 # Check whether --with-gnu-ld was given.
9080 if test "${with_gnu_ld+set}" = set; then :
9081   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9082 else
9083   with_gnu_ld=no
9084 fi
9085
9086 # Prepare PATH_SEPARATOR.
9087 # The user is always right.
9088 if test "${PATH_SEPARATOR+set}" != set; then
9089   echo "#! /bin/sh" >conf$$.sh
9090   echo  "exit 0"   >>conf$$.sh
9091   chmod +x conf$$.sh
9092   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9093     PATH_SEPARATOR=';'
9094   else
9095     PATH_SEPARATOR=:
9096   fi
9097   rm -f conf$$.sh
9098 fi
9099 ac_prog=ld
9100 if test "$GCC" = yes; then
9101   # Check if gcc -print-prog-name=ld gives a path.
9102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9103 $as_echo_n "checking for ld used by GCC... " >&6; }
9104   case $host in
9105   *-*-mingw*)
9106     # gcc leaves a trailing carriage return which upsets mingw
9107     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9108   *)
9109     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9110   esac
9111   case $ac_prog in
9112     # Accept absolute paths.
9113     [\\/]* | [A-Za-z]:[\\/]*)
9114       re_direlt='/[^/][^/]*/\.\./'
9115       # Canonicalize the path of ld
9116       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9117       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9118         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9119       done
9120       test -z "$LD" && LD="$ac_prog"
9121       ;;
9122   "")
9123     # If it fails, then pretend we aren't using GCC.
9124     ac_prog=ld
9125     ;;
9126   *)
9127     # If it is relative, then search for the first ld in PATH.
9128     with_gnu_ld=unknown
9129     ;;
9130   esac
9131 elif test "$with_gnu_ld" = yes; then
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9133 $as_echo_n "checking for GNU ld... " >&6; }
9134 else
9135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9136 $as_echo_n "checking for non-GNU ld... " >&6; }
9137 fi
9138 if test "${acl_cv_path_LD+set}" = set; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   if test -z "$LD"; then
9142   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9143   for ac_dir in $PATH; do
9144     test -z "$ac_dir" && ac_dir=.
9145     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9146       acl_cv_path_LD="$ac_dir/$ac_prog"
9147       # Check to see if the program is GNU ld.  I'd rather use --version,
9148       # but apparently some GNU ld's only accept -v.
9149       # Break only if it was the GNU/non-GNU ld that we prefer.
9150       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9151         test "$with_gnu_ld" != no && break
9152       else
9153         test "$with_gnu_ld" != yes && break
9154       fi
9155     fi
9156   done
9157   IFS="$ac_save_ifs"
9158 else
9159   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9160 fi
9161 fi
9162
9163 LD="$acl_cv_path_LD"
9164 if test -n "$LD"; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9166 $as_echo "$LD" >&6; }
9167 else
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9173 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9174 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9175   $as_echo_n "(cached) " >&6
9176 else
9177   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9178 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9179   acl_cv_prog_gnu_ld=yes
9180 else
9181   acl_cv_prog_gnu_ld=no
9182 fi
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9185 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9186 with_gnu_ld=$acl_cv_prog_gnu_ld
9187
9188
9189
9190                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9191 $as_echo_n "checking for shared library run path origin... " >&6; }
9192 if test "${acl_cv_rpath+set}" = set; then :
9193   $as_echo_n "(cached) " >&6
9194 else
9195
9196     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9197     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9198     . ./conftest.sh
9199     rm -f ./conftest.sh
9200     acl_cv_rpath=done
9201
9202 fi
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9204 $as_echo "$acl_cv_rpath" >&6; }
9205   wl="$acl_cv_wl"
9206   libext="$acl_cv_libext"
9207   shlibext="$acl_cv_shlibext"
9208   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9209   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9210   hardcode_direct="$acl_cv_hardcode_direct"
9211   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9212     # Check whether --enable-rpath was given.
9213 if test "${enable_rpath+set}" = set; then :
9214   enableval=$enable_rpath; :
9215 else
9216   enable_rpath=yes
9217 fi
9218
9219
9220
9221
9222
9223
9224
9225
9226     use_additional=yes
9227
9228   acl_save_prefix="$prefix"
9229   prefix="$acl_final_prefix"
9230   acl_save_exec_prefix="$exec_prefix"
9231   exec_prefix="$acl_final_exec_prefix"
9232
9233     eval additional_includedir=\"$includedir\"
9234     eval additional_libdir=\"$libdir\"
9235
9236   exec_prefix="$acl_save_exec_prefix"
9237   prefix="$acl_save_prefix"
9238
9239
9240 # Check whether --with-libiconv-prefix was given.
9241 if test "${with_libiconv_prefix+set}" = set; then :
9242   withval=$with_libiconv_prefix;
9243     if test "X$withval" = "Xno"; then
9244       use_additional=no
9245     else
9246       if test "X$withval" = "X"; then
9247
9248   acl_save_prefix="$prefix"
9249   prefix="$acl_final_prefix"
9250   acl_save_exec_prefix="$exec_prefix"
9251   exec_prefix="$acl_final_exec_prefix"
9252
9253           eval additional_includedir=\"$includedir\"
9254           eval additional_libdir=\"$libdir\"
9255
9256   exec_prefix="$acl_save_exec_prefix"
9257   prefix="$acl_save_prefix"
9258
9259       else
9260         additional_includedir="$withval/include"
9261         additional_libdir="$withval/lib"
9262       fi
9263     fi
9264
9265 fi
9266
9267       LIBICONV=
9268   LTLIBICONV=
9269   INCICONV=
9270   rpathdirs=
9271   ltrpathdirs=
9272   names_already_handled=
9273   names_next_round='iconv '
9274   while test -n "$names_next_round"; do
9275     names_this_round="$names_next_round"
9276     names_next_round=
9277     for name in $names_this_round; do
9278       already_handled=
9279       for n in $names_already_handled; do
9280         if test "$n" = "$name"; then
9281           already_handled=yes
9282           break
9283         fi
9284       done
9285       if test -z "$already_handled"; then
9286         names_already_handled="$names_already_handled $name"
9287                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9288         eval value=\"\$HAVE_LIB$uppername\"
9289         if test -n "$value"; then
9290           if test "$value" = yes; then
9291             eval value=\"\$LIB$uppername\"
9292             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9293             eval value=\"\$LTLIB$uppername\"
9294             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9295           else
9296                                     :
9297           fi
9298         else
9299                               found_dir=
9300           found_la=
9301           found_so=
9302           found_a=
9303           if test $use_additional = yes; then
9304             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9305               found_dir="$additional_libdir"
9306               found_so="$additional_libdir/lib$name.$shlibext"
9307               if test -f "$additional_libdir/lib$name.la"; then
9308                 found_la="$additional_libdir/lib$name.la"
9309               fi
9310             else
9311               if test -f "$additional_libdir/lib$name.$libext"; then
9312                 found_dir="$additional_libdir"
9313                 found_a="$additional_libdir/lib$name.$libext"
9314                 if test -f "$additional_libdir/lib$name.la"; then
9315                   found_la="$additional_libdir/lib$name.la"
9316                 fi
9317               fi
9318             fi
9319           fi
9320           if test "X$found_dir" = "X"; then
9321             for x in $LDFLAGS $LTLIBICONV; do
9322
9323   acl_save_prefix="$prefix"
9324   prefix="$acl_final_prefix"
9325   acl_save_exec_prefix="$exec_prefix"
9326   exec_prefix="$acl_final_exec_prefix"
9327   eval x=\"$x\"
9328   exec_prefix="$acl_save_exec_prefix"
9329   prefix="$acl_save_prefix"
9330
9331               case "$x" in
9332                 -L*)
9333                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9334                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9335                     found_dir="$dir"
9336                     found_so="$dir/lib$name.$shlibext"
9337                     if test -f "$dir/lib$name.la"; then
9338                       found_la="$dir/lib$name.la"
9339                     fi
9340                   else
9341                     if test -f "$dir/lib$name.$libext"; then
9342                       found_dir="$dir"
9343                       found_a="$dir/lib$name.$libext"
9344                       if test -f "$dir/lib$name.la"; then
9345                         found_la="$dir/lib$name.la"
9346                       fi
9347                     fi
9348                   fi
9349                   ;;
9350               esac
9351               if test "X$found_dir" != "X"; then
9352                 break
9353               fi
9354             done
9355           fi
9356           if test "X$found_dir" != "X"; then
9357                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9358             if test "X$found_so" != "X"; then
9359                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9360                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9361               else
9362                                                                                 haveit=
9363                 for x in $ltrpathdirs; do
9364                   if test "X$x" = "X$found_dir"; then
9365                     haveit=yes
9366                     break
9367                   fi
9368                 done
9369                 if test -z "$haveit"; then
9370                   ltrpathdirs="$ltrpathdirs $found_dir"
9371                 fi
9372                                 if test "$hardcode_direct" = yes; then
9373                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9374                 else
9375                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9376                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9377                                                             haveit=
9378                     for x in $rpathdirs; do
9379                       if test "X$x" = "X$found_dir"; then
9380                         haveit=yes
9381                         break
9382                       fi
9383                     done
9384                     if test -z "$haveit"; then
9385                       rpathdirs="$rpathdirs $found_dir"
9386                     fi
9387                   else
9388                                                                                 haveit=
9389                     for x in $LDFLAGS $LIBICONV; do
9390
9391   acl_save_prefix="$prefix"
9392   prefix="$acl_final_prefix"
9393   acl_save_exec_prefix="$exec_prefix"
9394   exec_prefix="$acl_final_exec_prefix"
9395   eval x=\"$x\"
9396   exec_prefix="$acl_save_exec_prefix"
9397   prefix="$acl_save_prefix"
9398
9399                       if test "X$x" = "X-L$found_dir"; then
9400                         haveit=yes
9401                         break
9402                       fi
9403                     done
9404                     if test -z "$haveit"; then
9405                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9406                     fi
9407                     if test "$hardcode_minus_L" != no; then
9408                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9409                     else
9410                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9411                     fi
9412                   fi
9413                 fi
9414               fi
9415             else
9416               if test "X$found_a" != "X"; then
9417                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9418               else
9419                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9420               fi
9421             fi
9422                         additional_includedir=
9423             case "$found_dir" in
9424               */lib | */lib/)
9425                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9426                 additional_includedir="$basedir/include"
9427                 ;;
9428             esac
9429             if test "X$additional_includedir" != "X"; then
9430                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9431                 haveit=
9432                 if test "X$additional_includedir" = "X/usr/local/include"; then
9433                   if test -n "$GCC"; then
9434                     case $host_os in
9435                       linux*) haveit=yes;;
9436                     esac
9437                   fi
9438                 fi
9439                 if test -z "$haveit"; then
9440                   for x in $CPPFLAGS $INCICONV; do
9441
9442   acl_save_prefix="$prefix"
9443   prefix="$acl_final_prefix"
9444   acl_save_exec_prefix="$exec_prefix"
9445   exec_prefix="$acl_final_exec_prefix"
9446   eval x=\"$x\"
9447   exec_prefix="$acl_save_exec_prefix"
9448   prefix="$acl_save_prefix"
9449
9450                     if test "X$x" = "X-I$additional_includedir"; then
9451                       haveit=yes
9452                       break
9453                     fi
9454                   done
9455                   if test -z "$haveit"; then
9456                     if test -d "$additional_includedir"; then
9457                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9458                     fi
9459                   fi
9460                 fi
9461               fi
9462             fi
9463                         if test -n "$found_la"; then
9464                                                         save_libdir="$libdir"
9465               case "$found_la" in
9466                 */* | *\\*) . "$found_la" ;;
9467                 *) . "./$found_la" ;;
9468               esac
9469               libdir="$save_libdir"
9470                             for dep in $dependency_libs; do
9471                 case "$dep" in
9472                   -L*)
9473                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9474                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9475                       haveit=
9476                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9477                         if test -n "$GCC"; then
9478                           case $host_os in
9479                             linux*) haveit=yes;;
9480                           esac
9481                         fi
9482                       fi
9483                       if test -z "$haveit"; then
9484                         haveit=
9485                         for x in $LDFLAGS $LIBICONV; do
9486
9487   acl_save_prefix="$prefix"
9488   prefix="$acl_final_prefix"
9489   acl_save_exec_prefix="$exec_prefix"
9490   exec_prefix="$acl_final_exec_prefix"
9491   eval x=\"$x\"
9492   exec_prefix="$acl_save_exec_prefix"
9493   prefix="$acl_save_prefix"
9494
9495                           if test "X$x" = "X-L$additional_libdir"; then
9496                             haveit=yes
9497                             break
9498                           fi
9499                         done
9500                         if test -z "$haveit"; then
9501                           if test -d "$additional_libdir"; then
9502                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9503                           fi
9504                         fi
9505                         haveit=
9506                         for x in $LDFLAGS $LTLIBICONV; do
9507
9508   acl_save_prefix="$prefix"
9509   prefix="$acl_final_prefix"
9510   acl_save_exec_prefix="$exec_prefix"
9511   exec_prefix="$acl_final_exec_prefix"
9512   eval x=\"$x\"
9513   exec_prefix="$acl_save_exec_prefix"
9514   prefix="$acl_save_prefix"
9515
9516                           if test "X$x" = "X-L$additional_libdir"; then
9517                             haveit=yes
9518                             break
9519                           fi
9520                         done
9521                         if test -z "$haveit"; then
9522                           if test -d "$additional_libdir"; then
9523                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9524                           fi
9525                         fi
9526                       fi
9527                     fi
9528                     ;;
9529                   -R*)
9530                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9531                     if test "$enable_rpath" != no; then
9532                                                                   haveit=
9533                       for x in $rpathdirs; do
9534                         if test "X$x" = "X$dir"; then
9535                           haveit=yes
9536                           break
9537                         fi
9538                       done
9539                       if test -z "$haveit"; then
9540                         rpathdirs="$rpathdirs $dir"
9541                       fi
9542                                                                   haveit=
9543                       for x in $ltrpathdirs; do
9544                         if test "X$x" = "X$dir"; then
9545                           haveit=yes
9546                           break
9547                         fi
9548                       done
9549                       if test -z "$haveit"; then
9550                         ltrpathdirs="$ltrpathdirs $dir"
9551                       fi
9552                     fi
9553                     ;;
9554                   -l*)
9555                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9556                     ;;
9557                   *.la)
9558                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9559                     ;;
9560                   *)
9561                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9562                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9563                     ;;
9564                 esac
9565               done
9566             fi
9567           else
9568                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9569             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9570           fi
9571         fi
9572       fi
9573     done
9574   done
9575   if test "X$rpathdirs" != "X"; then
9576     if test -n "$hardcode_libdir_separator"; then
9577                         alldirs=
9578       for found_dir in $rpathdirs; do
9579         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9580       done
9581             acl_save_libdir="$libdir"
9582       libdir="$alldirs"
9583       eval flag=\"$hardcode_libdir_flag_spec\"
9584       libdir="$acl_save_libdir"
9585       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9586     else
9587             for found_dir in $rpathdirs; do
9588         acl_save_libdir="$libdir"
9589         libdir="$found_dir"
9590         eval flag=\"$hardcode_libdir_flag_spec\"
9591         libdir="$acl_save_libdir"
9592         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9593       done
9594     fi
9595   fi
9596   if test "X$ltrpathdirs" != "X"; then
9597             for found_dir in $ltrpathdirs; do
9598       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9599     done
9600   fi
9601
9602
9603
9604
9605
9606
9607
9608           am_save_CPPFLAGS="$CPPFLAGS"
9609
9610   for element in $INCICONV; do
9611     haveit=
9612     for x in $CPPFLAGS; do
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   eval x=\"$x\"
9619   exec_prefix="$acl_save_exec_prefix"
9620   prefix="$acl_save_prefix"
9621
9622       if test "X$x" = "X$element"; then
9623         haveit=yes
9624         break
9625       fi
9626     done
9627     if test -z "$haveit"; then
9628       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9629     fi
9630   done
9631
9632
9633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9634 $as_echo_n "checking for iconv... " >&6; }
9635 if test "${am_cv_func_iconv+set}" = set; then :
9636   $as_echo_n "(cached) " >&6
9637 else
9638
9639     am_cv_func_iconv="no, consider installing GNU libiconv"
9640     am_cv_lib_iconv=no
9641     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h.  */
9643 #include <stdlib.h>
9644 #include <iconv.h>
9645 int
9646 main ()
9647 {
9648 iconv_t cd = iconv_open("","");
9649        iconv(cd,NULL,NULL,NULL,NULL);
9650        iconv_close(cd);
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 if ac_fn_c_try_link "$LINENO"; then :
9656   am_cv_func_iconv=yes
9657 fi
9658 rm -f core conftest.err conftest.$ac_objext \
9659     conftest$ac_exeext conftest.$ac_ext
9660     if test "$am_cv_func_iconv" != yes; then
9661       am_save_LIBS="$LIBS"
9662       LIBS="$LIBS $LIBICONV"
9663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h.  */
9665 #include <stdlib.h>
9666 #include <iconv.h>
9667 int
9668 main ()
9669 {
9670 iconv_t cd = iconv_open("","");
9671          iconv(cd,NULL,NULL,NULL,NULL);
9672          iconv_close(cd);
9673   ;
9674   return 0;
9675 }
9676 _ACEOF
9677 if ac_fn_c_try_link "$LINENO"; then :
9678   am_cv_lib_iconv=yes
9679         am_cv_func_iconv=yes
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext \
9682     conftest$ac_exeext conftest.$ac_ext
9683       LIBS="$am_save_LIBS"
9684     fi
9685
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9688 $as_echo "$am_cv_func_iconv" >&6; }
9689   if test "$am_cv_func_iconv" = yes; then
9690
9691 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9692
9693   fi
9694   if test "$am_cv_lib_iconv" = yes; then
9695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9696 $as_echo_n "checking how to link with libiconv... " >&6; }
9697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9698 $as_echo "$LIBICONV" >&6; }
9699   else
9700             CPPFLAGS="$am_save_CPPFLAGS"
9701     LIBICONV=
9702     LTLIBICONV=
9703   fi
9704
9705
9706
9707   if test "$am_cv_func_iconv" = yes; then
9708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9709 $as_echo_n "checking for iconv declaration... " >&6; }
9710     if test "${am_cv_proto_iconv+set}" = set; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713
9714       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h.  */
9716
9717 #include <stdlib.h>
9718 #include <iconv.h>
9719 extern
9720 #ifdef __cplusplus
9721 "C"
9722 #endif
9723 #if defined(__STDC__) || defined(__cplusplus)
9724 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9725 #else
9726 size_t iconv();
9727 #endif
9728
9729 int
9730 main ()
9731 {
9732
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_c_try_compile "$LINENO"; then :
9738   am_cv_proto_iconv_arg1=""
9739 else
9740   am_cv_proto_iconv_arg1="const"
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743       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);"
9744 fi
9745
9746     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9748          }$am_cv_proto_iconv" >&5
9749 $as_echo "${ac_t:-
9750          }$am_cv_proto_iconv" >&6; }
9751
9752 cat >>confdefs.h <<_ACEOF
9753 #define ICONV_CONST $am_cv_proto_iconv_arg1
9754 _ACEOF
9755
9756   fi
9757
9758 # Until we have in-tree GNU iconv:
9759 LIBICONV_DEP=
9760
9761
9762
9763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9764 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9765 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9766   $as_echo_n "(cached) " >&6
9767 else
9768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h.  */
9770 #include <locale.h>
9771 int
9772 main ()
9773 {
9774 return LC_MESSAGES
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"; then :
9780   am_cv_val_LC_MESSAGES=yes
9781 else
9782   am_cv_val_LC_MESSAGES=no
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext \
9785     conftest$ac_exeext conftest.$ac_ext
9786 fi
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9788 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9789   if test $am_cv_val_LC_MESSAGES = yes; then
9790
9791 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9792
9793   fi
9794
9795
9796
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9798 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9799 if test "${am_cv_langinfo_codeset+set}" = set; then :
9800   $as_echo_n "(cached) " >&6
9801 else
9802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h.  */
9804 #include <langinfo.h>
9805 int
9806 main ()
9807 {
9808 char* cs = nl_langinfo(CODESET);
9809   ;
9810   return 0;
9811 }
9812 _ACEOF
9813 if ac_fn_c_try_link "$LINENO"; then :
9814   am_cv_langinfo_codeset=yes
9815 else
9816   am_cv_langinfo_codeset=no
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext \
9819     conftest$ac_exeext conftest.$ac_ext
9820
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9823 $as_echo "$am_cv_langinfo_codeset" >&6; }
9824   if test $am_cv_langinfo_codeset = yes; then
9825
9826 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9827
9828   fi
9829
9830
9831 # We will need to find libiberty.h and ansidecl.h
9832 saved_CFLAGS="$CFLAGS"
9833 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9834 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9835         strsignal strstr strverscmp \
9836         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9837         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
9838 do
9839   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9841 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9842 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9843   $as_echo_n "(cached) " >&6
9844 else
9845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h.  */
9847 #undef $ac_tr_decl
9848 #define $ac_tr_decl 1
9849
9850 #include "ansidecl.h"
9851 #include "system.h"
9852
9853 int
9854 main ()
9855 {
9856 #ifndef $ac_func
9857 char *(*pfn) = (char *(*)) $ac_func ;
9858 #endif
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"; then :
9864   eval "gcc_cv_have_decl_$ac_func=yes"
9865 else
9866   eval "gcc_cv_have_decl_$ac_func=no"
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 fi
9870
9871 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9873 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9874 #define $ac_tr_decl 1
9875 _ACEOF
9876
9877 else
9878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9880 #define $ac_tr_decl 0
9881 _ACEOF
9882
9883 fi
9884
9885 done
9886
9887
9888 for ac_func in getrlimit setrlimit getrusage
9889 do
9890   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9892 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9893 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9894   $as_echo_n "(cached) " >&6
9895 else
9896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h.  */
9898 #undef $ac_tr_decl
9899 #define $ac_tr_decl 1
9900
9901 #include "ansidecl.h"
9902 #include "system.h"
9903 #ifdef HAVE_SYS_RESOURCE_H
9904 #include <sys/resource.h>
9905 #endif
9906
9907
9908 int
9909 main ()
9910 {
9911 #ifndef $ac_func
9912 char *(*pfn) = (char *(*)) $ac_func ;
9913 #endif
9914   ;
9915   return 0;
9916 }
9917 _ACEOF
9918 if ac_fn_c_try_compile "$LINENO"; then :
9919   eval "gcc_cv_have_decl_$ac_func=yes"
9920 else
9921   eval "gcc_cv_have_decl_$ac_func=no"
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 fi
9925
9926 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9928 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9929 #define $ac_tr_decl 1
9930 _ACEOF
9931
9932 else
9933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9935 #define $ac_tr_decl 0
9936 _ACEOF
9937
9938 fi
9939
9940 done
9941
9942
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h.  */
9945
9946 #include "ansidecl.h"
9947 #include "system.h"
9948 #ifdef HAVE_SYS_RESOURCE_H
9949 #include <sys/resource.h>
9950 #endif
9951
9952 int
9953 main ()
9954 {
9955 rlim_t l = 0;
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 if ac_fn_c_try_compile "$LINENO"; then :
9961
9962 else
9963
9964 $as_echo "#define rlim_t long" >>confdefs.h
9965
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968
9969 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9970 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9971 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9972 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9973 for ac_func in ldgetname
9974 do
9975   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9977 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9978 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9979   $as_echo_n "(cached) " >&6
9980 else
9981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h.  */
9983 #undef $ac_tr_decl
9984 #define $ac_tr_decl 1
9985
9986 #include "ansidecl.h"
9987 #include "system.h"
9988 #ifdef HAVE_LDFCN_H
9989 #undef FREAD
9990 #undef FWRITE
9991 #include <ldfcn.h>
9992 #endif
9993
9994
9995 int
9996 main ()
9997 {
9998 #ifndef $ac_func
9999 char *(*pfn) = (char *(*)) $ac_func ;
10000 #endif
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 if ac_fn_c_try_compile "$LINENO"; then :
10006   eval "gcc_cv_have_decl_$ac_func=yes"
10007 else
10008   eval "gcc_cv_have_decl_$ac_func=no"
10009 fi
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 fi
10012
10013 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10015 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10016 #define $ac_tr_decl 1
10017 _ACEOF
10018
10019 else
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10022 #define $ac_tr_decl 0
10023 _ACEOF
10024
10025 fi
10026
10027 done
10028
10029
10030 for ac_func in times
10031 do
10032   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10034 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10035 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10036   $as_echo_n "(cached) " >&6
10037 else
10038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h.  */
10040 #undef $ac_tr_decl
10041 #define $ac_tr_decl 1
10042
10043 #include "ansidecl.h"
10044 #include "system.h"
10045 #ifdef HAVE_SYS_TIMES_H
10046 #include <sys/times.h>
10047 #endif
10048
10049
10050 int
10051 main ()
10052 {
10053 #ifndef $ac_func
10054 char *(*pfn) = (char *(*)) $ac_func ;
10055 #endif
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 if ac_fn_c_try_compile "$LINENO"; then :
10061   eval "gcc_cv_have_decl_$ac_func=yes"
10062 else
10063   eval "gcc_cv_have_decl_$ac_func=no"
10064 fi
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 fi
10067
10068 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10070 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10071 #define $ac_tr_decl 1
10072 _ACEOF
10073
10074 else
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10077 #define $ac_tr_decl 0
10078 _ACEOF
10079
10080 fi
10081
10082 done
10083
10084
10085 for ac_func in sigaltstack
10086 do
10087   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10089 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10090 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h.  */
10095 #undef $ac_tr_decl
10096 #define $ac_tr_decl 1
10097
10098 #include "ansidecl.h"
10099 #include "system.h"
10100 #include <signal.h>
10101
10102
10103 int
10104 main ()
10105 {
10106 #ifndef $ac_func
10107 char *(*pfn) = (char *(*)) $ac_func ;
10108 #endif
10109   ;
10110   return 0;
10111 }
10112 _ACEOF
10113 if ac_fn_c_try_compile "$LINENO"; then :
10114   eval "gcc_cv_have_decl_$ac_func=yes"
10115 else
10116   eval "gcc_cv_have_decl_$ac_func=no"
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119 fi
10120
10121 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10123 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10124 #define $ac_tr_decl 1
10125 _ACEOF
10126
10127 else
10128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10130 #define $ac_tr_decl 0
10131 _ACEOF
10132
10133 fi
10134
10135 done
10136
10137
10138 # More time-related stuff.
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10140 $as_echo_n "checking for struct tms... " >&6; }
10141 if test "${ac_cv_struct_tms+set}" = set; then :
10142   $as_echo_n "(cached) " >&6
10143 else
10144
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h.  */
10147
10148 #include "ansidecl.h"
10149 #include "system.h"
10150 #ifdef HAVE_SYS_TIMES_H
10151 #include <sys/times.h>
10152 #endif
10153
10154 int
10155 main ()
10156 {
10157 struct tms tms;
10158   ;
10159   return 0;
10160 }
10161 _ACEOF
10162 if ac_fn_c_try_compile "$LINENO"; then :
10163   ac_cv_struct_tms=yes
10164 else
10165   ac_cv_struct_tms=no
10166 fi
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168 fi
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10170 $as_echo "$ac_cv_struct_tms" >&6; }
10171 if test $ac_cv_struct_tms = yes; then
10172
10173 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10174
10175 fi
10176
10177 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10178 # revisit after autoconf 2.50.
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10180 $as_echo_n "checking for clock_t... " >&6; }
10181 if test "${gcc_cv_type_clock_t+set}" = set; then :
10182   $as_echo_n "(cached) " >&6
10183 else
10184
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h.  */
10187
10188 #include "ansidecl.h"
10189 #include "system.h"
10190
10191 int
10192 main ()
10193 {
10194 clock_t x;
10195   ;
10196   return 0;
10197 }
10198 _ACEOF
10199 if ac_fn_c_try_compile "$LINENO"; then :
10200   gcc_cv_type_clock_t=yes
10201 else
10202   gcc_cv_type_clock_t=no
10203 fi
10204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205 fi
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10207 $as_echo "$gcc_cv_type_clock_t" >&6; }
10208 if test $gcc_cv_type_clock_t = yes; then
10209
10210 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10211
10212 fi
10213
10214 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10215 CFLAGS="$saved_CFLAGS"
10216
10217 # Check whether --enable-initfini-array was given.
10218 if test "${enable_initfini_array+set}" = set; then :
10219   enableval=$enable_initfini_array;
10220 else
10221
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10223 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10224 if test "${gcc_cv_initfini_array+set}" = set; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227     if test "$cross_compiling" = yes; then :
10228   gcc_cv_initfini_array=no
10229 else
10230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h.  */
10232
10233 static int x = -1;
10234 int main (void) { return x; }
10235 int foo (void) { x = 0; }
10236 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10237 _ACEOF
10238 if ac_fn_c_try_run "$LINENO"; then :
10239   gcc_cv_initfini_array=yes
10240 else
10241   gcc_cv_initfini_array=no
10242 fi
10243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10244   conftest.$ac_objext conftest.beam conftest.$ac_ext
10245 fi
10246
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10249 $as_echo "$gcc_cv_initfini_array" >&6; }
10250   enable_initfini_array=$gcc_cv_initfini_array
10251
10252 fi
10253
10254 if test $enable_initfini_array = yes; then
10255
10256 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10257
10258 fi
10259
10260 # mkdir takes a single argument on some systems.
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10262 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10263 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10264   $as_echo_n "(cached) " >&6
10265 else
10266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h.  */
10268
10269 #include <sys/types.h>
10270 #ifdef HAVE_SYS_STAT_H
10271 # include <sys/stat.h>
10272 #endif
10273 #ifdef HAVE_UNISTD_H
10274 # include <unistd.h>
10275 #endif
10276 #ifdef HAVE_DIRECT_H
10277 # include <direct.h>
10278 #endif
10279 int
10280 main ()
10281 {
10282 mkdir ("foo", 0);
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 if ac_fn_c_try_compile "$LINENO"; then :
10288   gcc_cv_mkdir_takes_one_arg=no
10289 else
10290   gcc_cv_mkdir_takes_one_arg=yes
10291 fi
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293 fi
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10295 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10296 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10297
10298 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10299
10300 fi
10301
10302
10303 # File extensions
10304 manext='.1'
10305 objext='.o'
10306
10307
10308
10309 # With Setjmp/Longjmp based exception handling.
10310 # Check whether --enable-sjlj-exceptions was given.
10311 if test "${enable_sjlj_exceptions+set}" = set; then :
10312   enableval=$enable_sjlj_exceptions; case $target in
10313   *-*-hpux10*)
10314     if test $enableval != yes; then
10315       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10316 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10317       enableval=yes
10318     fi
10319     ;;
10320 esac
10321 force_sjlj_exceptions=yes
10322 else
10323   case $target in
10324   *-*-hpux10*)
10325     force_sjlj_exceptions=yes
10326     enableval=yes
10327     ;;
10328   *)
10329     force_sjlj_exceptions=no
10330     ;;
10331 esac
10332 fi
10333
10334 if test $force_sjlj_exceptions = yes; then
10335   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10336
10337 cat >>confdefs.h <<_ACEOF
10338 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10339 _ACEOF
10340
10341 fi
10342
10343 # For platforms with the unwind ABI which includes an unwind library,
10344 # libunwind, we can choose to use the system libunwind.
10345 # config.gcc also contains tests of with_system_libunwind.
10346
10347
10348 # Check whether --with-system-libunwind was given.
10349 if test "${with_system_libunwind+set}" = set; then :
10350   withval=$with_system_libunwind;
10351 fi
10352
10353   # If system-libunwind was not specifically set, pick a default setting.
10354   if test x$with_system_libunwind = x; then
10355     case ${target} in
10356       ia64-*-hpux*) with_system_libunwind=yes ;;
10357       *) with_system_libunwind=no ;;
10358     esac
10359   fi
10360   # Based on system-libunwind and target, do we have ipinfo?
10361   if  test x$with_system_libunwind = xyes; then
10362     case ${target} in
10363       ia64-*-*) have_unwind_getipinfo=no ;;
10364       *) have_unwind_getipinfo=yes ;;
10365     esac
10366   else
10367     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10368
10369     case ${target} in
10370       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10371       *) have_unwind_getipinfo=yes ;;
10372     esac
10373
10374   fi
10375
10376   if test x$have_unwind_getipinfo = xyes; then
10377
10378 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10379
10380   fi
10381
10382
10383 # --------------------------------------------------------
10384 # Build, host, and target specific configuration fragments
10385 # --------------------------------------------------------
10386
10387 # Collect build-machine-specific information.
10388 . ${srcdir}/config.build
10389
10390 # Collect host-machine-specific information.
10391 . ${srcdir}/config.host
10392
10393 target_gtfiles=
10394
10395 # Collect target-machine-specific information.
10396 . ${srcdir}/config.gcc
10397
10398 extra_objs="${host_extra_objs} ${extra_objs}"
10399 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10400
10401 # Default the target-machine variables that were not explicitly set.
10402 if test x"$tm_file" = x
10403 then tm_file=$cpu_type/$cpu_type.h; fi
10404
10405 if test x"$extra_headers" = x
10406 then extra_headers=; fi
10407
10408 if test x$md_file = x
10409 then md_file=$cpu_type/$cpu_type.md; fi
10410
10411 if test x$out_file = x
10412 then out_file=$cpu_type/$cpu_type.c; fi
10413
10414 if test x"$tmake_file" = x
10415 then tmake_file=$cpu_type/t-$cpu_type
10416 fi
10417
10418 if test x"$dwarf2" = xyes
10419 then tm_file="$tm_file tm-dwarf2.h"
10420 fi
10421
10422 # Say what files are being used for the output code and MD file.
10423 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10424 echo "Using \`$srcdir/config/$md_file' as machine description file."
10425
10426 # If any of the xm_file variables contain nonexistent files, warn
10427 # about them and drop them.
10428
10429 bx=
10430 for x in $build_xm_file; do
10431   if    test -f $srcdir/config/$x
10432   then      bx="$bx $x"
10433   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10434 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10435   fi
10436 done
10437 build_xm_file="$bx"
10438
10439 hx=
10440 for x in $host_xm_file; do
10441   if    test -f $srcdir/config/$x
10442   then      hx="$hx $x"
10443   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10444 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10445   fi
10446 done
10447 host_xm_file="$hx"
10448
10449 tx=
10450 for x in $xm_file; do
10451   if    test -f $srcdir/config/$x
10452   then      tx="$tx $x"
10453   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10454 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10455   fi
10456 done
10457 xm_file="$tx"
10458
10459 count=a
10460 for f in $tm_file; do
10461         count=${count}x
10462 done
10463 if test $count = ax; then
10464         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10465 else
10466         echo "Using the following target machine macro files:"
10467         for f in $tm_file; do
10468                 echo "  $srcdir/config/$f"
10469         done
10470 fi
10471
10472 if test x$need_64bit_hwint = xyes; then
10473
10474 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10475
10476 fi
10477
10478 if test x$use_long_long_for_widest_fast_int = xyes; then
10479
10480 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10481
10482 fi
10483
10484 count=a
10485 for f in $host_xm_file; do
10486         count=${count}x
10487 done
10488 if test $count = a; then
10489         :
10490 elif test $count = ax; then
10491         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10492 else
10493         echo "Using the following host machine macro files:"
10494         for f in $host_xm_file; do
10495                 echo "  $srcdir/config/$f"
10496         done
10497 fi
10498 echo "Using ${out_host_hook_obj} for host machine hooks."
10499
10500 if test "$host_xm_file" != "$build_xm_file"; then
10501         count=a
10502         for f in $build_xm_file; do
10503                 count=${count}x
10504         done
10505         if test $count = a; then
10506                 :
10507         elif test $count = ax; then
10508                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10509         else
10510                 echo "Using the following build machine macro files:"
10511                 for f in $build_xm_file; do
10512                         echo "  $srcdir/config/$f"
10513                 done
10514         fi
10515 fi
10516
10517 case ${host} in
10518   powerpc*-*-darwin*)
10519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10520 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10521 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10522   $as_echo_n "(cached) " >&6
10523 else
10524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h.  */
10526
10527 #include <sys/cdefs.h>
10528 #include <sys/signal.h>
10529 #include <ucontext.h>
10530 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10531
10532 _ACEOF
10533 if ac_fn_c_try_compile "$LINENO"; then :
10534   gcc_cv_mcontext_underscores=no
10535 else
10536   gcc_cv_mcontext_underscores=yes
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 fi
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10541 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10542       if test $gcc_cv_mcontext_underscores = yes; then
10543
10544 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10545
10546       fi
10547     ;;
10548 esac
10549
10550 # ---------
10551 # Threading
10552 # ---------
10553
10554 # Check if a valid thread package
10555 case ${enable_threads} in
10556   "" | no)
10557     # No threads
10558     target_thread_file='single'
10559     ;;
10560   yes)
10561     # default
10562     target_thread_file='single'
10563     ;;
10564   aix | dce | gnat | irix | posix | posix95 | rtems | \
10565   single | solaris | vxworks | win32 | mipssde)
10566     target_thread_file=${enable_threads}
10567     ;;
10568   *)
10569     echo "${enable_threads} is an unknown thread package" 1>&2
10570     exit 1
10571     ;;
10572 esac
10573
10574 if test x${thread_file} = x; then
10575   # No thread file set by target-specific clauses in config.gcc,
10576   # so use file chosen by default logic above
10577   thread_file=${target_thread_file}
10578 fi
10579
10580 # Make gthr-default.h if we have a thread file.
10581 gthread_flags=
10582 if test $thread_file != single; then
10583   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10584   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10585     rm -f gthr-default.h-t
10586   else
10587     mv -f gthr-default.h-t gthr-default.h
10588   fi
10589   gthread_flags=-DHAVE_GTHR_DEFAULT
10590 fi
10591
10592
10593 # --------
10594 # UNSORTED
10595 # --------
10596
10597 use_cxa_atexit=no
10598 if test x$enable___cxa_atexit = xyes || \
10599    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10600   if test x$host = x$target; then
10601     case $host in
10602       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10603       # keyed to flag_use_cxa_atexit
10604       *-*-mingw32*)
10605         use_cxa_atexit=yes
10606         ;;
10607       *)
10608         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10609 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10610   use_cxa_atexit=yes
10611 else
10612   echo "__cxa_atexit can't be enabled on this target"
10613 fi
10614
10615         ;;
10616     esac
10617   else
10618     # We can't check for __cxa_atexit when building a cross, so assume
10619     # it is available
10620     use_cxa_atexit=yes
10621   fi
10622   if test x$use_cxa_atexit = xyes; then
10623
10624 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10625
10626   fi
10627 fi
10628
10629 # Look for a file containing extra machine modes.
10630 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10631   extra_modes_file='$(srcdir)'/config/${extra_modes}
10632
10633
10634 cat >>confdefs.h <<_ACEOF
10635 #define EXTRA_MODES_FILE "config/$extra_modes"
10636 _ACEOF
10637
10638 fi
10639
10640 # Convert extra_options into a form suitable for Makefile use.
10641 extra_opt_files=
10642 all_opt_files=
10643 for f in $extra_options; do
10644   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10645   all_opt_files="$all_opt_files $srcdir/config/$f"
10646 done
10647
10648
10649 # auto-host.h is the file containing items generated by autoconf and is
10650 # the first file included by config.h.
10651 # If host=build, it is correct to have bconfig include auto-host.h
10652 # as well.  If host!=build, we are in error and need to do more
10653 # work to find out the build config parameters.
10654 if test x$host = x$build
10655 then
10656         build_auto=auto-host.h
10657 else
10658         # We create a subdir, then run autoconf in the subdir.
10659         # To prevent recursion we set host and build for the new
10660         # invocation of configure to the build for this invocation
10661         # of configure.
10662         tempdir=build.$$
10663         rm -rf $tempdir
10664         mkdir $tempdir
10665         cd $tempdir
10666         case ${srcdir} in
10667         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10668         *) realsrcdir=../${srcdir};;
10669         esac
10670         saved_CFLAGS="${CFLAGS}"
10671         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10672         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10673         ${realsrcdir}/configure \
10674                 --enable-languages=${enable_languages-all} \
10675                 --target=$target_alias --host=$build_alias --build=$build_alias
10676         CFLAGS="${saved_CFLAGS}"
10677
10678         # We just finished tests for the build machine, so rename
10679         # the file auto-build.h in the gcc directory.
10680         mv auto-host.h ../auto-build.h
10681         cd ..
10682         rm -rf $tempdir
10683         build_auto=auto-build.h
10684 fi
10685
10686
10687 tm_file="${tm_file} defaults.h"
10688 tm_p_file="${tm_p_file} tm-preds.h"
10689 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10690 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10691 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10692 # put this back in temporarily.
10693 xm_file="auto-host.h ansidecl.h ${xm_file}"
10694
10695 # --------
10696 # UNSORTED
10697 # --------
10698
10699 # Compile in configure arguments.
10700 if test -f configargs.h ; then
10701         # Being re-configured.
10702         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10703         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10704 else
10705         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10706 fi
10707
10708 # Double all backslashes and backslash all quotes to turn
10709 # gcc_config_arguments into a C string.
10710 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10711 $gcc_config_arguments
10712 EOF
10713 gcc_config_arguments_str=`cat conftest.out`
10714 rm -f conftest.out
10715
10716 cat > configargs.h <<EOF
10717 /* Generated automatically. */
10718 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10719 static const char thread_model[] = "$thread_file";
10720
10721 static const struct {
10722   const char *name, *value;
10723 } configure_default_options[] = $configure_default_options;
10724 EOF
10725
10726 gcc_BASEVER=`cat $srcdir/BASE-VER`
10727 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10728 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10729 if test -f $srcdir/REVISION ; then
10730         gcc_REVISION=`cat $srcdir/REVISION`
10731 else
10732         gcc_REVISION=""
10733 fi
10734 cat > plugin-version.h <<EOF
10735 #include "configargs.h"
10736
10737 static char basever[] = "$gcc_BASEVER";
10738 static char datestamp[] = "$gcc_DATESTAMP";
10739 static char devphase[] = "$gcc_DEVPHASE";
10740 static char revision[] = "$gcc_REVISION";
10741
10742 /* FIXME plugins: We should make the version information more precise.
10743    One way to do is to add a checksum. */
10744
10745 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10746                                                 devphase, revision,
10747                                                 configuration_arguments};
10748 EOF
10749
10750 # Internationalization
10751 # If we haven't got the data from the intl directory,
10752 # assume NLS is disabled.
10753 USE_NLS=no
10754 LIBINTL=
10755 LIBINTL_DEP=
10756 INCINTL=
10757 XGETTEXT=
10758 GMSGFMT=
10759 POSUB=
10760
10761 if test -f  ../intl/config.intl; then
10762   .  ../intl/config.intl
10763 fi
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10765 $as_echo_n "checking whether NLS is requested... " >&6; }
10766 if test x"$USE_NLS" != xyes; then
10767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10769 else
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10771 $as_echo "yes" >&6; }
10772
10773 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10774
10775
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10777 $as_echo_n "checking for catalogs to be installed... " >&6; }
10778   # Look for .po and .gmo files in the source directory.
10779   CATALOGS=
10780   XLINGUAS=
10781   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10782     # If there aren't any .gmo files the shell will give us the
10783     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10784     # weeded out.
10785     case "$cat" in *\**)
10786       continue;;
10787     esac
10788     # The quadruple backslash is collapsed to a double backslash
10789     # by the backticks, then collapsed again by the double quotes,
10790     # leaving us with one backslash in the sed expression (right
10791     # before the dot that mustn't act as a wildcard).
10792     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10793     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10794     # The user is allowed to set LINGUAS to a list of languages to
10795     # install catalogs for.  If it's empty that means "all of them."
10796     if test "x$LINGUAS" = x; then
10797       CATALOGS="$CATALOGS $cat"
10798       XLINGUAS="$XLINGUAS $lang"
10799     else
10800       case "$LINGUAS" in *$lang*)
10801         CATALOGS="$CATALOGS $cat"
10802         XLINGUAS="$XLINGUAS $lang"
10803         ;;
10804       esac
10805     fi
10806   done
10807   LINGUAS="$XLINGUAS"
10808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10809 $as_echo "$LINGUAS" >&6; }
10810
10811
10812     DATADIRNAME=share
10813
10814   INSTOBJEXT=.mo
10815
10816   GENCAT=gencat
10817
10818   CATOBJEXT=.gmo
10819
10820 fi
10821
10822 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10823 # -liconv on the link line twice.
10824 case "$LIBINTL" in *$LIBICONV*)
10825         LIBICONV= ;;
10826 esac
10827
10828 # Check whether --enable-secureplt was given.
10829 if test "${enable_secureplt+set}" = set; then :
10830   enableval=$enable_secureplt;
10831 fi
10832
10833
10834 # Check whether --enable-leading-mingw64-underscores was given.
10835 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10836   enableval=$enable_leading_mingw64_underscores;
10837 fi
10838
10839 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
10840
10841 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10842
10843 fi
10844
10845 # Check whether --enable-cld was given.
10846 if test "${enable_cld+set}" = set; then :
10847   enableval=$enable_cld;
10848 else
10849   enable_cld=no
10850 fi
10851
10852
10853 # Check whether --enable-frame-pointer was given.
10854 if test "${enable_frame_pointer+set}" = set; then :
10855   enableval=$enable_frame_pointer;
10856 else
10857
10858 case $target_os in
10859 linux* | darwin[8912]*)
10860   # Enable -fomit-frame-pointer by default for Linux and Darwin with
10861   # DWARF2.
10862   enable_frame_pointer=no
10863   ;;
10864 *)
10865   enable_frame_pointer=yes
10866   ;;
10867 esac
10868
10869 fi
10870
10871
10872 # Windows32 Registry support for specifying GCC installation paths.
10873 # Check whether --enable-win32-registry was given.
10874 if test "${enable_win32_registry+set}" = set; then :
10875   enableval=$enable_win32_registry;
10876 fi
10877
10878
10879 case $host_os in
10880   win32 | pe | cygwin* | mingw32* | uwin*)
10881     if test "x$enable_win32_registry" != xno; then
10882       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10883 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10884 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10885   $as_echo_n "(cached) " >&6
10886 else
10887   ac_func_search_save_LIBS=$LIBS
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h.  */
10890
10891 /* Override any GCC internal prototype to avoid an error.
10892    Use char because int might match the return type of a GCC
10893    builtin and then its argument prototype would still apply.  */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 char RegOpenKeyExA ();
10898 int
10899 main ()
10900 {
10901 return RegOpenKeyExA ();
10902   ;
10903   return 0;
10904 }
10905 _ACEOF
10906 for ac_lib in '' advapi32; do
10907   if test -z "$ac_lib"; then
10908     ac_res="none required"
10909   else
10910     ac_res=-l$ac_lib
10911     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10912   fi
10913   if ac_fn_c_try_link "$LINENO"; then :
10914   ac_cv_search_RegOpenKeyExA=$ac_res
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext \
10917     conftest$ac_exeext
10918   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10919   break
10920 fi
10921 done
10922 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10923
10924 else
10925   ac_cv_search_RegOpenKeyExA=no
10926 fi
10927 rm conftest.$ac_ext
10928 LIBS=$ac_func_search_save_LIBS
10929 fi
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10931 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10932 ac_res=$ac_cv_search_RegOpenKeyExA
10933 if test "$ac_res" != no; then :
10934   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10935
10936 else
10937   enable_win32_registry=no
10938 fi
10939
10940     fi
10941
10942     if test "x$enable_win32_registry" != xno; then
10943
10944 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10945
10946
10947       if test "x$enable_win32_registry" != xyes \
10948          && test "x$enable_win32_registry" != x; then
10949
10950 cat >>confdefs.h <<_ACEOF
10951 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10952 _ACEOF
10953
10954       fi
10955     fi
10956   ;;
10957 esac
10958
10959 # Get an absolute path to the GCC top-level source directory
10960 holddir=`${PWDCMD-pwd}`
10961 cd $srcdir
10962 topdir=`${PWDCMD-pwd}`
10963 cd $holddir
10964
10965 # Conditionalize the makefile for this host machine.
10966 xmake_file=
10967 for f in ${host_xmake_file}
10968 do
10969         if test -f ${srcdir}/config/$f
10970         then
10971                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10972         fi
10973 done
10974
10975 # Conditionalize the makefile for this target machine.
10976 tmake_file_=
10977 for f in ${tmake_file}
10978 do
10979         if test -f ${srcdir}/config/$f
10980         then
10981                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10982         fi
10983 done
10984 tmake_file="${tmake_file_}"
10985
10986 out_object_file=`basename $out_file .c`.o
10987
10988 tm_file_list="options.h"
10989 tm_include_list="options.h insn-constants.h"
10990 for f in $tm_file; do
10991   case $f in
10992     ./* )
10993        f=`echo $f | sed 's/^..//'`
10994        tm_file_list="${tm_file_list} $f"
10995        tm_include_list="${tm_include_list} $f"
10996        ;;
10997     defaults.h )
10998        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10999        tm_include_list="${tm_include_list} $f"
11000        ;;
11001     * )
11002        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11003        tm_include_list="${tm_include_list} config/$f"
11004        ;;
11005   esac
11006 done
11007
11008 tm_p_file_list=
11009 tm_p_include_list=
11010 for f in $tm_p_file; do
11011   case $f in
11012     tm-preds.h )
11013        tm_p_file_list="${tm_p_file_list} $f"
11014        tm_p_include_list="${tm_p_include_list} $f"
11015        ;;
11016     * )
11017        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11018        tm_p_include_list="${tm_p_include_list} config/$f"
11019   esac
11020 done
11021
11022 xm_file_list=
11023 xm_include_list=
11024 for f in $xm_file; do
11025   case $f in
11026     ansidecl.h )
11027        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11028        xm_include_list="${xm_include_list} $f"
11029        ;;
11030     auto-host.h )
11031        xm_file_list="${xm_file_list} $f"
11032        xm_include_list="${xm_include_list} $f"
11033        ;;
11034     * )
11035        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11036        xm_include_list="${xm_include_list} config/$f"
11037        ;;
11038   esac
11039 done
11040
11041 host_xm_file_list=
11042 host_xm_include_list=
11043 for f in $host_xm_file; do
11044   case $f in
11045     ansidecl.h )
11046        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11047        host_xm_include_list="${host_xm_include_list} $f"
11048        ;;
11049     auto-host.h )
11050        host_xm_file_list="${host_xm_file_list} $f"
11051        host_xm_include_list="${host_xm_include_list} $f"
11052        ;;
11053     * )
11054        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11055        host_xm_include_list="${host_xm_include_list} config/$f"
11056        ;;
11057   esac
11058 done
11059
11060 build_xm_file_list=
11061 for f in $build_xm_file; do
11062   case $f in
11063     ansidecl.h )
11064        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11065        build_xm_include_list="${build_xm_include_list} $f"
11066        ;;
11067     auto-build.h | auto-host.h )
11068        build_xm_file_list="${build_xm_file_list} $f"
11069        build_xm_include_list="${build_xm_include_list} $f"
11070        ;;
11071     * )
11072        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11073        build_xm_include_list="${build_xm_include_list} config/$f"
11074        ;;
11075   esac
11076 done
11077
11078 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11079 # cross-compiler which does not use the native headers and libraries.
11080 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11081 CROSS=
11082 ALL=all.internal
11083 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11084
11085 if test "x$with_build_sysroot" != x; then
11086   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11087 else
11088   # This value is used, even on a native system, because
11089   # CROSS_SYSTEM_HEADER_DIR is just
11090   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11091   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11092 fi
11093
11094 if test x$host != x$target
11095 then
11096         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11097         ALL=all.cross
11098         SYSTEM_HEADER_DIR=$build_system_header_dir
11099         case "$host","$target" in
11100         # Darwin crosses can use the host system's libraries and headers,
11101         # because of the fat library support.  Of course, it must be the
11102         # same version of Darwin on both sides.  Allow the user to
11103         # just say --target=foo-darwin without a version number to mean
11104         # "the version on this system".
11105             *-*-darwin*,*-*-darwin*)
11106                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11107                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11108                 if test $hostos = $targetos -o $targetos = darwin ; then
11109                     CROSS=
11110                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11111                     with_headers=yes
11112                 fi
11113                 ;;
11114
11115             i?86-*-*,x86_64-*-* \
11116             | powerpc*-*-*,powerpc64*-*-*)
11117                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11118         esac
11119
11120         case $target in
11121                 *-*-mingw*)
11122                         if test "x$with_headers" = x; then
11123                                 with_headers=yes
11124                         fi
11125                         ;;
11126                 *)
11127                         ;;
11128         esac
11129 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11130         SYSTEM_HEADER_DIR=$build_system_header_dir
11131 fi
11132
11133 # If this is a cross-compiler that does not
11134 # have its own set of headers then define
11135 # inhibit_libc
11136
11137 # If this is using newlib, without having the headers available now,
11138 # then define inhibit_libc in LIBGCC2_CFLAGS.
11139 # This prevents libgcc2 from containing any code which requires libc
11140 # support.
11141 : ${inhibit_libc=false}
11142 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11143        test x$with_newlib = xyes ; } &&
11144      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11145        inhibit_libc=true
11146 fi
11147
11148
11149 # When building gcc with a cross-compiler, we need to adjust things so
11150 # that the generator programs are still built with the native compiler.
11151 # Also, we cannot run fixincludes.
11152
11153 # These are the normal (build=host) settings:
11154 CC_FOR_BUILD='$(CC)'
11155 BUILD_CFLAGS='$(ALL_CFLAGS)'
11156 BUILD_LDFLAGS='$(LDFLAGS)'
11157 STMP_FIXINC=stmp-fixinc
11158
11159 # And these apply if build != host, or we are generating coverage data
11160 if test x$build != x$host || test "x$coverage_flags" != x
11161 then
11162     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11163     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11164 fi
11165
11166 # Expand extra_headers to include complete path.
11167 # This substitutes for lots of t-* files.
11168 extra_headers_list=
11169 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11170 for file in ${extra_headers} ; do
11171   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11172 done
11173
11174 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11175 if test x"$use_gcc_tgmath" = xyes
11176 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11177 fi
11178
11179 # Define collect2 in Makefile.
11180 case $host_can_use_collect2 in
11181   no) collect2= ;;
11182   *) collect2='collect2$(exeext)' ;;
11183 esac
11184
11185
11186 # Add a definition of USE_COLLECT2 if system wants one.
11187 case $use_collect2 in
11188   no) use_collect2= ;;
11189   "") ;;
11190   *)
11191     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11192     xm_defines="${xm_defines} USE_COLLECT2"
11193     case $host_can_use_collect2 in
11194       no)
11195         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11196         ;;
11197     esac
11198     ;;
11199 esac
11200
11201
11202 cat >>confdefs.h <<_ACEOF
11203 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11204 _ACEOF
11205
11206
11207 # ---------------------------
11208 # Assembler & linker features
11209 # ---------------------------
11210
11211 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11212 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11213 # However when ld-new is first executed from the build tree, libtool will
11214 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11215 # to the build tree.  While doing this we need to use the previous-stage
11216 # linker, or we have an infinite loop.  The presence of a shell script as
11217 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11218 # the gcc/collect-ld script.  So we need to know how libtool works, or
11219 # exec-tool will fail.
11220
11221
11222 case `pwd` in
11223   *\ * | *\     *)
11224     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11225 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11226 esac
11227
11228
11229
11230 macro_version='2.2.7a'
11231 macro_revision='1.3134'
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245 ltmain="$ac_aux_dir/ltmain.sh"
11246
11247 # Backslashify metacharacters that are still active within
11248 # double-quoted strings.
11249 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11250
11251 # Same as above, but do not quote variable references.
11252 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11253
11254 # Sed substitution to delay expansion of an escaped shell variable in a
11255 # double_quote_subst'ed string.
11256 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11257
11258 # Sed substitution to delay expansion of an escaped single quote.
11259 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11260
11261 # Sed substitution to avoid accidental globbing in evaled expressions
11262 no_glob_subst='s/\*/\\\*/g'
11263
11264 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11265 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11266 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11267
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11269 $as_echo_n "checking how to print strings... " >&6; }
11270 # Test print first, because it will be a builtin if present.
11271 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11272    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11273   ECHO='print -r --'
11274 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11275   ECHO='printf %s\n'
11276 else
11277   # Use this function as a fallback that always works.
11278   func_fallback_echo ()
11279   {
11280     eval 'cat <<_LTECHO_EOF
11281 $1
11282 _LTECHO_EOF'
11283   }
11284   ECHO='func_fallback_echo'
11285 fi
11286
11287 # func_echo_all arg...
11288 # Invoke $ECHO with all args, space-separated.
11289 func_echo_all ()
11290 {
11291     $ECHO ""
11292 }
11293
11294 case "$ECHO" in
11295   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11296 $as_echo "printf" >&6; } ;;
11297   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11298 $as_echo "print -r" >&6; } ;;
11299   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11300 $as_echo "cat" >&6; } ;;
11301 esac
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11317 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11318 if test "${ac_cv_path_SED+set}" = set; then :
11319   $as_echo_n "(cached) " >&6
11320 else
11321             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11322      for ac_i in 1 2 3 4 5 6 7; do
11323        ac_script="$ac_script$as_nl$ac_script"
11324      done
11325      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11326      { ac_script=; unset ac_script;}
11327      if test -z "$SED"; then
11328   ac_path_SED_found=false
11329   # Loop through the user's path and test for each of PROGNAME-LIST
11330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11332 do
11333   IFS=$as_save_IFS
11334   test -z "$as_dir" && as_dir=.
11335     for ac_prog in sed gsed; do
11336     for ac_exec_ext in '' $ac_executable_extensions; do
11337       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11338       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11339 # Check for GNU ac_path_SED and select it if it is found.
11340   # Check for GNU $ac_path_SED
11341 case `"$ac_path_SED" --version 2>&1` in
11342 *GNU*)
11343   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11344 *)
11345   ac_count=0
11346   $as_echo_n 0123456789 >"conftest.in"
11347   while :
11348   do
11349     cat "conftest.in" "conftest.in" >"conftest.tmp"
11350     mv "conftest.tmp" "conftest.in"
11351     cp "conftest.in" "conftest.nl"
11352     $as_echo '' >> "conftest.nl"
11353     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11354     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11355     as_fn_arith $ac_count + 1 && ac_count=$as_val
11356     if test $ac_count -gt ${ac_path_SED_max-0}; then
11357       # Best one so far, save it but keep looking for a better one
11358       ac_cv_path_SED="$ac_path_SED"
11359       ac_path_SED_max=$ac_count
11360     fi
11361     # 10*(2^10) chars as input seems more than enough
11362     test $ac_count -gt 10 && break
11363   done
11364   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11365 esac
11366
11367       $ac_path_SED_found && break 3
11368     done
11369   done
11370   done
11371 IFS=$as_save_IFS
11372   if test -z "$ac_cv_path_SED"; then
11373     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11374   fi
11375 else
11376   ac_cv_path_SED=$SED
11377 fi
11378
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11381 $as_echo "$ac_cv_path_SED" >&6; }
11382  SED="$ac_cv_path_SED"
11383   rm -f conftest.sed
11384
11385 test -z "$SED" && SED=sed
11386 Xsed="$SED -e 1s/^X//"
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11399 $as_echo_n "checking for fgrep... " >&6; }
11400 if test "${ac_cv_path_FGREP+set}" = set; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11404    then ac_cv_path_FGREP="$GREP -F"
11405    else
11406      if test -z "$FGREP"; then
11407   ac_path_FGREP_found=false
11408   # Loop through the user's path and test for each of PROGNAME-LIST
11409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11411 do
11412   IFS=$as_save_IFS
11413   test -z "$as_dir" && as_dir=.
11414     for ac_prog in fgrep; do
11415     for ac_exec_ext in '' $ac_executable_extensions; do
11416       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11417       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11418 # Check for GNU ac_path_FGREP and select it if it is found.
11419   # Check for GNU $ac_path_FGREP
11420 case `"$ac_path_FGREP" --version 2>&1` in
11421 *GNU*)
11422   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11423 *)
11424   ac_count=0
11425   $as_echo_n 0123456789 >"conftest.in"
11426   while :
11427   do
11428     cat "conftest.in" "conftest.in" >"conftest.tmp"
11429     mv "conftest.tmp" "conftest.in"
11430     cp "conftest.in" "conftest.nl"
11431     $as_echo 'FGREP' >> "conftest.nl"
11432     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11433     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11434     as_fn_arith $ac_count + 1 && ac_count=$as_val
11435     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11436       # Best one so far, save it but keep looking for a better one
11437       ac_cv_path_FGREP="$ac_path_FGREP"
11438       ac_path_FGREP_max=$ac_count
11439     fi
11440     # 10*(2^10) chars as input seems more than enough
11441     test $ac_count -gt 10 && break
11442   done
11443   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11444 esac
11445
11446       $ac_path_FGREP_found && break 3
11447     done
11448   done
11449   done
11450 IFS=$as_save_IFS
11451   if test -z "$ac_cv_path_FGREP"; then
11452     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11453   fi
11454 else
11455   ac_cv_path_FGREP=$FGREP
11456 fi
11457
11458    fi
11459 fi
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11461 $as_echo "$ac_cv_path_FGREP" >&6; }
11462  FGREP="$ac_cv_path_FGREP"
11463
11464
11465 test -z "$GREP" && GREP=grep
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485 # Check whether --with-gnu-ld was given.
11486 if test "${with_gnu_ld+set}" = set; then :
11487   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11488 else
11489   with_gnu_ld=no
11490 fi
11491
11492 ac_prog=ld
11493 if test "$GCC" = yes; then
11494   # Check if gcc -print-prog-name=ld gives a path.
11495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11496 $as_echo_n "checking for ld used by $CC... " >&6; }
11497   case $host in
11498   *-*-mingw*)
11499     # gcc leaves a trailing carriage return which upsets mingw
11500     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11501   *)
11502     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11503   esac
11504   case $ac_prog in
11505     # Accept absolute paths.
11506     [\\/]* | ?:[\\/]*)
11507       re_direlt='/[^/][^/]*/\.\./'
11508       # Canonicalize the pathname of ld
11509       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11510       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11511         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11512       done
11513       test -z "$LD" && LD="$ac_prog"
11514       ;;
11515   "")
11516     # If it fails, then pretend we aren't using GCC.
11517     ac_prog=ld
11518     ;;
11519   *)
11520     # If it is relative, then search for the first ld in PATH.
11521     with_gnu_ld=unknown
11522     ;;
11523   esac
11524 elif test "$with_gnu_ld" = yes; then
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11526 $as_echo_n "checking for GNU ld... " >&6; }
11527 else
11528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11529 $as_echo_n "checking for non-GNU ld... " >&6; }
11530 fi
11531 if test "${lt_cv_path_LD+set}" = set; then :
11532   $as_echo_n "(cached) " >&6
11533 else
11534   if test -z "$LD"; then
11535   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11536   for ac_dir in $PATH; do
11537     IFS="$lt_save_ifs"
11538     test -z "$ac_dir" && ac_dir=.
11539     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11540       lt_cv_path_LD="$ac_dir/$ac_prog"
11541       # Check to see if the program is GNU ld.  I'd rather use --version,
11542       # but apparently some variants of GNU ld only accept -v.
11543       # Break only if it was the GNU/non-GNU ld that we prefer.
11544       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11545       *GNU* | *'with BFD'*)
11546         test "$with_gnu_ld" != no && break
11547         ;;
11548       *)
11549         test "$with_gnu_ld" != yes && break
11550         ;;
11551       esac
11552     fi
11553   done
11554   IFS="$lt_save_ifs"
11555 else
11556   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11557 fi
11558 fi
11559
11560 LD="$lt_cv_path_LD"
11561 if test -n "$LD"; then
11562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11563 $as_echo "$LD" >&6; }
11564 else
11565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11567 fi
11568 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11570 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11571 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11575 case `$LD -v 2>&1 </dev/null` in
11576 *GNU* | *'with BFD'*)
11577   lt_cv_prog_gnu_ld=yes
11578   ;;
11579 *)
11580   lt_cv_prog_gnu_ld=no
11581   ;;
11582 esac
11583 fi
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11585 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11586 with_gnu_ld=$lt_cv_prog_gnu_ld
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11597 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11598 if test "${lt_cv_path_NM+set}" = set; then :
11599   $as_echo_n "(cached) " >&6
11600 else
11601   if test -n "$NM"; then
11602   # Let the user override the test.
11603   lt_cv_path_NM="$NM"
11604 else
11605   lt_nm_to_check="${ac_tool_prefix}nm"
11606   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11607     lt_nm_to_check="$lt_nm_to_check nm"
11608   fi
11609   for lt_tmp_nm in $lt_nm_to_check; do
11610     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11611     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11612       IFS="$lt_save_ifs"
11613       test -z "$ac_dir" && ac_dir=.
11614       tmp_nm="$ac_dir/$lt_tmp_nm"
11615       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11616         # Check to see if the nm accepts a BSD-compat flag.
11617         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11618         #   nm: unknown option "B" ignored
11619         # Tru64's nm complains that /dev/null is an invalid object file
11620         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11621         */dev/null* | *'Invalid file or object type'*)
11622           lt_cv_path_NM="$tmp_nm -B"
11623           break
11624           ;;
11625         *)
11626           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11627           */dev/null*)
11628             lt_cv_path_NM="$tmp_nm -p"
11629             break
11630             ;;
11631           *)
11632             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11633             continue # so that we can try to find one that supports BSD flags
11634             ;;
11635           esac
11636           ;;
11637         esac
11638       fi
11639     done
11640     IFS="$lt_save_ifs"
11641   done
11642   : ${lt_cv_path_NM=no}
11643 fi
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11646 $as_echo "$lt_cv_path_NM" >&6; }
11647 if test "$lt_cv_path_NM" != "no"; then
11648   NM="$lt_cv_path_NM"
11649 else
11650   # Didn't find any BSD compatible name lister, look for dumpbin.
11651   if test -n "$DUMPBIN"; then :
11652     # Let the user override the test.
11653   else
11654     if test -n "$ac_tool_prefix"; then
11655   for ac_prog in dumpbin "link -dump"
11656   do
11657     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660 $as_echo_n "checking for $ac_word... " >&6; }
11661 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11662   $as_echo_n "(cached) " >&6
11663 else
11664   if test -n "$DUMPBIN"; then
11665   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11666 else
11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668 for as_dir in $PATH
11669 do
11670   IFS=$as_save_IFS
11671   test -z "$as_dir" && as_dir=.
11672     for ac_exec_ext in '' $ac_executable_extensions; do
11673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11674     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676     break 2
11677   fi
11678 done
11679   done
11680 IFS=$as_save_IFS
11681
11682 fi
11683 fi
11684 DUMPBIN=$ac_cv_prog_DUMPBIN
11685 if test -n "$DUMPBIN"; then
11686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11687 $as_echo "$DUMPBIN" >&6; }
11688 else
11689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691 fi
11692
11693
11694     test -n "$DUMPBIN" && break
11695   done
11696 fi
11697 if test -z "$DUMPBIN"; then
11698   ac_ct_DUMPBIN=$DUMPBIN
11699   for ac_prog in dumpbin "link -dump"
11700 do
11701   # Extract the first word of "$ac_prog", so it can be a program name with args.
11702 set dummy $ac_prog; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   if test -n "$ac_ct_DUMPBIN"; then
11709   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11710 else
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11713 do
11714   IFS=$as_save_IFS
11715   test -z "$as_dir" && as_dir=.
11716     for ac_exec_ext in '' $ac_executable_extensions; do
11717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11718     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11720     break 2
11721   fi
11722 done
11723   done
11724 IFS=$as_save_IFS
11725
11726 fi
11727 fi
11728 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11729 if test -n "$ac_ct_DUMPBIN"; then
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11731 $as_echo "$ac_ct_DUMPBIN" >&6; }
11732 else
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 fi
11736
11737
11738   test -n "$ac_ct_DUMPBIN" && break
11739 done
11740
11741   if test "x$ac_ct_DUMPBIN" = x; then
11742     DUMPBIN=":"
11743   else
11744     case $cross_compiling:$ac_tool_warned in
11745 yes:)
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11748 ac_tool_warned=yes ;;
11749 esac
11750     DUMPBIN=$ac_ct_DUMPBIN
11751   fi
11752 fi
11753
11754     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11755     *COFF*)
11756       DUMPBIN="$DUMPBIN -symbols"
11757       ;;
11758     *)
11759       DUMPBIN=:
11760       ;;
11761     esac
11762   fi
11763
11764   if test "$DUMPBIN" != ":"; then
11765     NM="$DUMPBIN"
11766   fi
11767 fi
11768 test -z "$NM" && NM=nm
11769
11770
11771
11772
11773
11774
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11776 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11777 if test "${lt_cv_nm_interface+set}" = set; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780   lt_cv_nm_interface="BSD nm"
11781   echo "int some_variable = 0;" > conftest.$ac_ext
11782   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11783   (eval "$ac_compile" 2>conftest.err)
11784   cat conftest.err >&5
11785   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11786   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11787   cat conftest.err >&5
11788   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11789   cat conftest.out >&5
11790   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11791     lt_cv_nm_interface="MS dumpbin"
11792   fi
11793   rm -f conftest*
11794 fi
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11796 $as_echo "$lt_cv_nm_interface" >&6; }
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11799 $as_echo_n "checking whether ln -s works... " >&6; }
11800 LN_S=$as_ln_s
11801 if test "$LN_S" = "ln -s"; then
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11803 $as_echo "yes" >&6; }
11804 else
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11806 $as_echo "no, using $LN_S" >&6; }
11807 fi
11808
11809 # find the maximum length of command line arguments
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11811 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11812 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11813   $as_echo_n "(cached) " >&6
11814 else
11815     i=0
11816   teststring="ABCD"
11817
11818   case $build_os in
11819   msdosdjgpp*)
11820     # On DJGPP, this test can blow up pretty badly due to problems in libc
11821     # (any single argument exceeding 2000 bytes causes a buffer overrun
11822     # during glob expansion).  Even if it were fixed, the result of this
11823     # check would be larger than it should be.
11824     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11825     ;;
11826
11827   gnu*)
11828     # Under GNU Hurd, this test is not required because there is
11829     # no limit to the length of command line arguments.
11830     # Libtool will interpret -1 as no limit whatsoever
11831     lt_cv_sys_max_cmd_len=-1;
11832     ;;
11833
11834   cygwin* | mingw* | cegcc*)
11835     # On Win9x/ME, this test blows up -- it succeeds, but takes
11836     # about 5 minutes as the teststring grows exponentially.
11837     # Worse, since 9x/ME are not pre-emptively multitasking,
11838     # you end up with a "frozen" computer, even though with patience
11839     # the test eventually succeeds (with a max line length of 256k).
11840     # Instead, let's just punt: use the minimum linelength reported by
11841     # all of the supported platforms: 8192 (on NT/2K/XP).
11842     lt_cv_sys_max_cmd_len=8192;
11843     ;;
11844
11845   mint*)
11846     # On MiNT this can take a long time and run out of memory.
11847     lt_cv_sys_max_cmd_len=8192;
11848     ;;
11849
11850   amigaos*)
11851     # On AmigaOS with pdksh, this test takes hours, literally.
11852     # So we just punt and use a minimum line length of 8192.
11853     lt_cv_sys_max_cmd_len=8192;
11854     ;;
11855
11856   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11857     # This has been around since 386BSD, at least.  Likely further.
11858     if test -x /sbin/sysctl; then
11859       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11860     elif test -x /usr/sbin/sysctl; then
11861       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11862     else
11863       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11864     fi
11865     # And add a safety zone
11866     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11867     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11868     ;;
11869
11870   interix*)
11871     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11872     lt_cv_sys_max_cmd_len=196608
11873     ;;
11874
11875   osf*)
11876     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11877     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11878     # nice to cause kernel panics so lets avoid the loop below.
11879     # First set a reasonable default.
11880     lt_cv_sys_max_cmd_len=16384
11881     #
11882     if test -x /sbin/sysconfig; then
11883       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11884         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11885       esac
11886     fi
11887     ;;
11888   sco3.2v5*)
11889     lt_cv_sys_max_cmd_len=102400
11890     ;;
11891   sysv5* | sco5v6* | sysv4.2uw2*)
11892     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11893     if test -n "$kargmax"; then
11894       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11895     else
11896       lt_cv_sys_max_cmd_len=32768
11897     fi
11898     ;;
11899   *)
11900     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11901     if test -n "$lt_cv_sys_max_cmd_len"; then
11902       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11903       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11904     else
11905       # Make teststring a little bigger before we do anything with it.
11906       # a 1K string should be a reasonable start.
11907       for i in 1 2 3 4 5 6 7 8 ; do
11908         teststring=$teststring$teststring
11909       done
11910       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11911       # If test is not a shell built-in, we'll probably end up computing a
11912       # maximum length that is only half of the actual maximum length, but
11913       # we can't tell.
11914       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11915                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11916               test $i != 17 # 1/2 MB should be enough
11917       do
11918         i=`expr $i + 1`
11919         teststring=$teststring$teststring
11920       done
11921       # Only check the string length outside the loop.
11922       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11923       teststring=
11924       # Add a significant safety factor because C++ compilers can tack on
11925       # massive amounts of additional arguments before passing them to the
11926       # linker.  It appears as though 1/2 is a usable value.
11927       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11928     fi
11929     ;;
11930   esac
11931
11932 fi
11933
11934 if test -n $lt_cv_sys_max_cmd_len ; then
11935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11936 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11937 else
11938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11939 $as_echo "none" >&6; }
11940 fi
11941 max_cmd_len=$lt_cv_sys_max_cmd_len
11942
11943
11944
11945
11946
11947
11948 : ${CP="cp -f"}
11949 : ${MV="mv -f"}
11950 : ${RM="rm -f"}
11951
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11953 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11954 # Try some XSI features
11955 xsi_shell=no
11956 ( _lt_dummy="a/b/c"
11957   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11958       = c,a/b,, \
11959     && eval 'test $(( 1 + 1 )) -eq 2 \
11960     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11961   && xsi_shell=yes
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11963 $as_echo "$xsi_shell" >&6; }
11964
11965
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11967 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11968 lt_shell_append=no
11969 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11970     >/dev/null 2>&1 \
11971   && lt_shell_append=yes
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11973 $as_echo "$lt_shell_append" >&6; }
11974
11975
11976 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11977   lt_unset=unset
11978 else
11979   lt_unset=false
11980 fi
11981
11982
11983
11984
11985
11986 # test EBCDIC or ASCII
11987 case `echo X|tr X '\101'` in
11988  A) # ASCII based system
11989     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11990   lt_SP2NL='tr \040 \012'
11991   lt_NL2SP='tr \015\012 \040\040'
11992   ;;
11993  *) # EBCDIC based system
11994   lt_SP2NL='tr \100 \n'
11995   lt_NL2SP='tr \r\n \100\100'
11996   ;;
11997 esac
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12008 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12009 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   lt_cv_ld_reload_flag='-r'
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12015 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12016 reload_flag=$lt_cv_ld_reload_flag
12017 case $reload_flag in
12018 "" | " "*) ;;
12019 *) reload_flag=" $reload_flag" ;;
12020 esac
12021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12022 case $host_os in
12023   darwin*)
12024     if test "$GCC" = yes; then
12025       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12026     else
12027       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12028     fi
12029     ;;
12030 esac
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040 if test -n "$ac_tool_prefix"; then
12041   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12042 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   if test -n "$OBJDUMP"; then
12049   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12050 else
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12053 do
12054   IFS=$as_save_IFS
12055   test -z "$as_dir" && as_dir=.
12056     for ac_exec_ext in '' $ac_executable_extensions; do
12057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12058     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060     break 2
12061   fi
12062 done
12063   done
12064 IFS=$as_save_IFS
12065
12066 fi
12067 fi
12068 OBJDUMP=$ac_cv_prog_OBJDUMP
12069 if test -n "$OBJDUMP"; then
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12071 $as_echo "$OBJDUMP" >&6; }
12072 else
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076
12077
12078 fi
12079 if test -z "$ac_cv_prog_OBJDUMP"; then
12080   ac_ct_OBJDUMP=$OBJDUMP
12081   # Extract the first word of "objdump", so it can be a program name with args.
12082 set dummy objdump; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   if test -n "$ac_ct_OBJDUMP"; then
12089   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12090 else
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12093 do
12094   IFS=$as_save_IFS
12095   test -z "$as_dir" && as_dir=.
12096     for ac_exec_ext in '' $ac_executable_extensions; do
12097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12098     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100     break 2
12101   fi
12102 done
12103   done
12104 IFS=$as_save_IFS
12105
12106 fi
12107 fi
12108 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12109 if test -n "$ac_ct_OBJDUMP"; then
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12111 $as_echo "$ac_ct_OBJDUMP" >&6; }
12112 else
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12115 fi
12116
12117   if test "x$ac_ct_OBJDUMP" = x; then
12118     OBJDUMP="false"
12119   else
12120     case $cross_compiling:$ac_tool_warned in
12121 yes:)
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12124 ac_tool_warned=yes ;;
12125 esac
12126     OBJDUMP=$ac_ct_OBJDUMP
12127   fi
12128 else
12129   OBJDUMP="$ac_cv_prog_OBJDUMP"
12130 fi
12131
12132 test -z "$OBJDUMP" && OBJDUMP=objdump
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12143 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12144 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147   lt_cv_file_magic_cmd='$MAGIC_CMD'
12148 lt_cv_file_magic_test_file=
12149 lt_cv_deplibs_check_method='unknown'
12150 # Need to set the preceding variable on all platforms that support
12151 # interlibrary dependencies.
12152 # 'none' -- dependencies not supported.
12153 # `unknown' -- same as none, but documents that we really don't know.
12154 # 'pass_all' -- all dependencies passed with no checks.
12155 # 'test_compile' -- check by making test program.
12156 # 'file_magic [[regex]]' -- check by looking for files in library path
12157 # which responds to the $file_magic_cmd with a given extended regex.
12158 # If you have `file' or equivalent on your system and you're not sure
12159 # whether `pass_all' will *always* work, you probably want this one.
12160
12161 case $host_os in
12162 aix[4-9]*)
12163   lt_cv_deplibs_check_method=pass_all
12164   ;;
12165
12166 beos*)
12167   lt_cv_deplibs_check_method=pass_all
12168   ;;
12169
12170 bsdi[45]*)
12171   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12172   lt_cv_file_magic_cmd='/usr/bin/file -L'
12173   lt_cv_file_magic_test_file=/shlib/libc.so
12174   ;;
12175
12176 cygwin*)
12177   # func_win32_libid is a shell function defined in ltmain.sh
12178   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12179   lt_cv_file_magic_cmd='func_win32_libid'
12180   ;;
12181
12182 mingw* | pw32*)
12183   # Base MSYS/MinGW do not provide the 'file' command needed by
12184   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12185   # unless we find 'file', for example because we are cross-compiling.
12186   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12187   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12188     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12189     lt_cv_file_magic_cmd='func_win32_libid'
12190   else
12191     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12192     lt_cv_file_magic_cmd='$OBJDUMP -f'
12193   fi
12194   ;;
12195
12196 cegcc*)
12197   # use the weaker test based on 'objdump'. See mingw*.
12198   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12199   lt_cv_file_magic_cmd='$OBJDUMP -f'
12200   ;;
12201
12202 darwin* | rhapsody*)
12203   lt_cv_deplibs_check_method=pass_all
12204   ;;
12205
12206 freebsd* | dragonfly*)
12207   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12208     case $host_cpu in
12209     i*86 )
12210       # Not sure whether the presence of OpenBSD here was a mistake.
12211       # Let's accept both of them until this is cleared up.
12212       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12213       lt_cv_file_magic_cmd=/usr/bin/file
12214       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12215       ;;
12216     esac
12217   else
12218     lt_cv_deplibs_check_method=pass_all
12219   fi
12220   ;;
12221
12222 gnu*)
12223   lt_cv_deplibs_check_method=pass_all
12224   ;;
12225
12226 haiku*)
12227   lt_cv_deplibs_check_method=pass_all
12228   ;;
12229
12230 hpux10.20* | hpux11*)
12231   lt_cv_file_magic_cmd=/usr/bin/file
12232   case $host_cpu in
12233   ia64*)
12234     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12235     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12236     ;;
12237   hppa*64*)
12238     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]'
12239     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12240     ;;
12241   *)
12242     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12243     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12244     ;;
12245   esac
12246   ;;
12247
12248 interix[3-9]*)
12249   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12250   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12251   ;;
12252
12253 irix5* | irix6* | nonstopux*)
12254   case $LD in
12255   *-32|*"-32 ") libmagic=32-bit;;
12256   *-n32|*"-n32 ") libmagic=N32;;
12257   *-64|*"-64 ") libmagic=64-bit;;
12258   *) libmagic=never-match;;
12259   esac
12260   lt_cv_deplibs_check_method=pass_all
12261   ;;
12262
12263 # This must be Linux ELF.
12264 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12265   lt_cv_deplibs_check_method=pass_all
12266   ;;
12267
12268 netbsd*)
12269   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12270     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12271   else
12272     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12273   fi
12274   ;;
12275
12276 newos6*)
12277   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12278   lt_cv_file_magic_cmd=/usr/bin/file
12279   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12280   ;;
12281
12282 *nto* | *qnx*)
12283   lt_cv_deplibs_check_method=pass_all
12284   ;;
12285
12286 openbsd*)
12287   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12288     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12289   else
12290     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12291   fi
12292   ;;
12293
12294 osf3* | osf4* | osf5*)
12295   lt_cv_deplibs_check_method=pass_all
12296   ;;
12297
12298 rdos*)
12299   lt_cv_deplibs_check_method=pass_all
12300   ;;
12301
12302 solaris*)
12303   lt_cv_deplibs_check_method=pass_all
12304   ;;
12305
12306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12307   lt_cv_deplibs_check_method=pass_all
12308   ;;
12309
12310 sysv4 | sysv4.3*)
12311   case $host_vendor in
12312   motorola)
12313     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]'
12314     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12315     ;;
12316   ncr)
12317     lt_cv_deplibs_check_method=pass_all
12318     ;;
12319   sequent)
12320     lt_cv_file_magic_cmd='/bin/file'
12321     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12322     ;;
12323   sni)
12324     lt_cv_file_magic_cmd='/bin/file'
12325     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12326     lt_cv_file_magic_test_file=/lib/libc.so
12327     ;;
12328   siemens)
12329     lt_cv_deplibs_check_method=pass_all
12330     ;;
12331   pc)
12332     lt_cv_deplibs_check_method=pass_all
12333     ;;
12334   esac
12335   ;;
12336
12337 tpf*)
12338   lt_cv_deplibs_check_method=pass_all
12339   ;;
12340 esac
12341
12342 fi
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12344 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12345 file_magic_cmd=$lt_cv_file_magic_cmd
12346 deplibs_check_method=$lt_cv_deplibs_check_method
12347 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360 if test -n "$ac_tool_prefix"; then
12361   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12362 set dummy ${ac_tool_prefix}ar; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if test "${ac_cv_prog_AR+set}" = set; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368   if test -n "$AR"; then
12369   ac_cv_prog_AR="$AR" # Let the user override the test.
12370 else
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12373 do
12374   IFS=$as_save_IFS
12375   test -z "$as_dir" && as_dir=.
12376     for ac_exec_ext in '' $ac_executable_extensions; do
12377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378     ac_cv_prog_AR="${ac_tool_prefix}ar"
12379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380     break 2
12381   fi
12382 done
12383   done
12384 IFS=$as_save_IFS
12385
12386 fi
12387 fi
12388 AR=$ac_cv_prog_AR
12389 if test -n "$AR"; then
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12391 $as_echo "$AR" >&6; }
12392 else
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395 fi
12396
12397
12398 fi
12399 if test -z "$ac_cv_prog_AR"; then
12400   ac_ct_AR=$AR
12401   # Extract the first word of "ar", so it can be a program name with args.
12402 set dummy ar; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12406   $as_echo_n "(cached) " >&6
12407 else
12408   if test -n "$ac_ct_AR"; then
12409   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12410 else
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12413 do
12414   IFS=$as_save_IFS
12415   test -z "$as_dir" && as_dir=.
12416     for ac_exec_ext in '' $ac_executable_extensions; do
12417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12418     ac_cv_prog_ac_ct_AR="ar"
12419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420     break 2
12421   fi
12422 done
12423   done
12424 IFS=$as_save_IFS
12425
12426 fi
12427 fi
12428 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12429 if test -n "$ac_ct_AR"; then
12430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12431 $as_echo "$ac_ct_AR" >&6; }
12432 else
12433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12435 fi
12436
12437   if test "x$ac_ct_AR" = x; then
12438     AR="false"
12439   else
12440     case $cross_compiling:$ac_tool_warned in
12441 yes:)
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12444 ac_tool_warned=yes ;;
12445 esac
12446     AR=$ac_ct_AR
12447   fi
12448 else
12449   AR="$ac_cv_prog_AR"
12450 fi
12451
12452 test -z "$AR" && AR=ar
12453 test -z "$AR_FLAGS" && AR_FLAGS=cru
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465 if test -n "$ac_tool_prefix"; then
12466   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12467 set dummy ${ac_tool_prefix}strip; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if test "${ac_cv_prog_STRIP+set}" = set; then :
12471   $as_echo_n "(cached) " >&6
12472 else
12473   if test -n "$STRIP"; then
12474   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12475 else
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479   IFS=$as_save_IFS
12480   test -z "$as_dir" && as_dir=.
12481     for ac_exec_ext in '' $ac_executable_extensions; do
12482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485     break 2
12486   fi
12487 done
12488   done
12489 IFS=$as_save_IFS
12490
12491 fi
12492 fi
12493 STRIP=$ac_cv_prog_STRIP
12494 if test -n "$STRIP"; then
12495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12496 $as_echo "$STRIP" >&6; }
12497 else
12498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500 fi
12501
12502
12503 fi
12504 if test -z "$ac_cv_prog_STRIP"; then
12505   ac_ct_STRIP=$STRIP
12506   # Extract the first word of "strip", so it can be a program name with args.
12507 set dummy strip; ac_word=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12511   $as_echo_n "(cached) " >&6
12512 else
12513   if test -n "$ac_ct_STRIP"; then
12514   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12515 else
12516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517 for as_dir in $PATH
12518 do
12519   IFS=$as_save_IFS
12520   test -z "$as_dir" && as_dir=.
12521     for ac_exec_ext in '' $ac_executable_extensions; do
12522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12523     ac_cv_prog_ac_ct_STRIP="strip"
12524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12525     break 2
12526   fi
12527 done
12528   done
12529 IFS=$as_save_IFS
12530
12531 fi
12532 fi
12533 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12534 if test -n "$ac_ct_STRIP"; then
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12536 $as_echo "$ac_ct_STRIP" >&6; }
12537 else
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12540 fi
12541
12542   if test "x$ac_ct_STRIP" = x; then
12543     STRIP=":"
12544   else
12545     case $cross_compiling:$ac_tool_warned in
12546 yes:)
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12549 ac_tool_warned=yes ;;
12550 esac
12551     STRIP=$ac_ct_STRIP
12552   fi
12553 else
12554   STRIP="$ac_cv_prog_STRIP"
12555 fi
12556
12557 test -z "$STRIP" && STRIP=:
12558
12559
12560
12561
12562
12563
12564 if test -n "$ac_tool_prefix"; then
12565   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572   if test -n "$RANLIB"; then
12573   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12574 else
12575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576 for as_dir in $PATH
12577 do
12578   IFS=$as_save_IFS
12579   test -z "$as_dir" && as_dir=.
12580     for ac_exec_ext in '' $ac_executable_extensions; do
12581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12582     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584     break 2
12585   fi
12586 done
12587   done
12588 IFS=$as_save_IFS
12589
12590 fi
12591 fi
12592 RANLIB=$ac_cv_prog_RANLIB
12593 if test -n "$RANLIB"; then
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12595 $as_echo "$RANLIB" >&6; }
12596 else
12597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; }
12599 fi
12600
12601
12602 fi
12603 if test -z "$ac_cv_prog_RANLIB"; then
12604   ac_ct_RANLIB=$RANLIB
12605   # Extract the first word of "ranlib", so it can be a program name with args.
12606 set dummy ranlib; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12610   $as_echo_n "(cached) " >&6
12611 else
12612   if test -n "$ac_ct_RANLIB"; then
12613   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12614 else
12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12617 do
12618   IFS=$as_save_IFS
12619   test -z "$as_dir" && as_dir=.
12620     for ac_exec_ext in '' $ac_executable_extensions; do
12621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12622     ac_cv_prog_ac_ct_RANLIB="ranlib"
12623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624     break 2
12625   fi
12626 done
12627   done
12628 IFS=$as_save_IFS
12629
12630 fi
12631 fi
12632 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12633 if test -n "$ac_ct_RANLIB"; then
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12635 $as_echo "$ac_ct_RANLIB" >&6; }
12636 else
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12639 fi
12640
12641   if test "x$ac_ct_RANLIB" = x; then
12642     RANLIB=":"
12643   else
12644     case $cross_compiling:$ac_tool_warned in
12645 yes:)
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12648 ac_tool_warned=yes ;;
12649 esac
12650     RANLIB=$ac_ct_RANLIB
12651   fi
12652 else
12653   RANLIB="$ac_cv_prog_RANLIB"
12654 fi
12655
12656 test -z "$RANLIB" && RANLIB=:
12657
12658
12659
12660
12661
12662
12663 # Determine commands to create old-style static archives.
12664 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12665 old_postinstall_cmds='chmod 644 $oldlib'
12666 old_postuninstall_cmds=
12667
12668 if test -n "$RANLIB"; then
12669   case $host_os in
12670   openbsd*)
12671     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12672     ;;
12673   *)
12674     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12675     ;;
12676   esac
12677   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12678 fi
12679
12680 case $host_os in
12681   darwin*)
12682     lock_old_archive_extraction=yes ;;
12683   *)
12684     lock_old_archive_extraction=no ;;
12685 esac
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725 # If no C compiler was specified, use CC.
12726 LTCC=${LTCC-"$CC"}
12727
12728 # If no C compiler flags were specified, use CFLAGS.
12729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12730
12731 # Allow CC to be a program name with arguments.
12732 compiler=$CC
12733
12734
12735 # Check for command to grab the raw symbol name followed by C symbol from nm.
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12737 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12738 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12739   $as_echo_n "(cached) " >&6
12740 else
12741
12742 # These are sane defaults that work on at least a few old systems.
12743 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12744
12745 # Character class describing NM global symbol codes.
12746 symcode='[BCDEGRST]'
12747
12748 # Regexp to match symbols that can be accessed directly from C.
12749 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12750
12751 # Define system-specific variables.
12752 case $host_os in
12753 aix*)
12754   symcode='[BCDT]'
12755   ;;
12756 cygwin* | mingw* | pw32* | cegcc*)
12757   symcode='[ABCDGISTW]'
12758   ;;
12759 hpux*)
12760   if test "$host_cpu" = ia64; then
12761     symcode='[ABCDEGRST]'
12762   fi
12763   ;;
12764 irix* | nonstopux*)
12765   symcode='[BCDEGRST]'
12766   ;;
12767 osf*)
12768   symcode='[BCDEGQRST]'
12769   ;;
12770 solaris*)
12771   symcode='[BDRT]'
12772   ;;
12773 sco3.2v5*)
12774   symcode='[DT]'
12775   ;;
12776 sysv4.2uw2*)
12777   symcode='[DT]'
12778   ;;
12779 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12780   symcode='[ABDT]'
12781   ;;
12782 sysv4)
12783   symcode='[DFNSTU]'
12784   ;;
12785 esac
12786
12787 # If we're using GNU nm, then use its standard symbol codes.
12788 case `$NM -V 2>&1` in
12789 *GNU* | *'with BFD'*)
12790   symcode='[ABCDGIRSTW]' ;;
12791 esac
12792
12793 # Transform an extracted symbol line into a proper C declaration.
12794 # Some systems (esp. on ia64) link data and code symbols differently,
12795 # so use this general approach.
12796 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12797
12798 # Transform an extracted symbol line into symbol name and symbol address
12799 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12800 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'"
12801
12802 # Handle CRLF in mingw tool chain
12803 opt_cr=
12804 case $build_os in
12805 mingw*)
12806   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12807   ;;
12808 esac
12809
12810 # Try without a prefix underscore, then with it.
12811 for ac_symprfx in "" "_"; do
12812
12813   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12814   symxfrm="\\1 $ac_symprfx\\2 \\2"
12815
12816   # Write the raw and C identifiers.
12817   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12818     # Fake it for dumpbin and say T for any non-static function
12819     # and D for any global variable.
12820     # Also find C++ and __fastcall symbols from MSVC++,
12821     # which start with @ or ?.
12822     lt_cv_sys_global_symbol_pipe="$AWK '"\
12823 "     {last_section=section; section=\$ 3};"\
12824 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12825 "     \$ 0!~/External *\|/{next};"\
12826 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12827 "     {if(hide[section]) next};"\
12828 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12829 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12830 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12831 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12832 "     ' prfx=^$ac_symprfx"
12833   else
12834     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12835   fi
12836
12837   # Check to see that the pipe works correctly.
12838   pipe_works=no
12839
12840   rm -f conftest*
12841   cat > conftest.$ac_ext <<_LT_EOF
12842 #ifdef __cplusplus
12843 extern "C" {
12844 #endif
12845 char nm_test_var;
12846 void nm_test_func(void);
12847 void nm_test_func(void){}
12848 #ifdef __cplusplus
12849 }
12850 #endif
12851 int main(){nm_test_var='a';nm_test_func();return(0);}
12852 _LT_EOF
12853
12854   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12855   (eval $ac_compile) 2>&5
12856   ac_status=$?
12857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12858   test $ac_status = 0; }; then
12859     # Now try to grab the symbols.
12860     nlist=conftest.nm
12861     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12862   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12863   ac_status=$?
12864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12865   test $ac_status = 0; } && test -s "$nlist"; then
12866       # Try sorting and uniquifying the output.
12867       if sort "$nlist" | uniq > "$nlist"T; then
12868         mv -f "$nlist"T "$nlist"
12869       else
12870         rm -f "$nlist"T
12871       fi
12872
12873       # Make sure that we snagged all the symbols we need.
12874       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12875         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12876           cat <<_LT_EOF > conftest.$ac_ext
12877 #ifdef __cplusplus
12878 extern "C" {
12879 #endif
12880
12881 _LT_EOF
12882           # Now generate the symbol file.
12883           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12884
12885           cat <<_LT_EOF >> conftest.$ac_ext
12886
12887 /* The mapping between symbol names and symbols.  */
12888 const struct {
12889   const char *name;
12890   void       *address;
12891 }
12892 lt__PROGRAM__LTX_preloaded_symbols[] =
12893 {
12894   { "@PROGRAM@", (void *) 0 },
12895 _LT_EOF
12896           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12897           cat <<\_LT_EOF >> conftest.$ac_ext
12898   {0, (void *) 0}
12899 };
12900
12901 /* This works around a problem in FreeBSD linker */
12902 #ifdef FREEBSD_WORKAROUND
12903 static const void *lt_preloaded_setup() {
12904   return lt__PROGRAM__LTX_preloaded_symbols;
12905 }
12906 #endif
12907
12908 #ifdef __cplusplus
12909 }
12910 #endif
12911 _LT_EOF
12912           # Now try linking the two files.
12913           mv conftest.$ac_objext conftstm.$ac_objext
12914           lt_save_LIBS="$LIBS"
12915           lt_save_CFLAGS="$CFLAGS"
12916           LIBS="conftstm.$ac_objext"
12917           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12918           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12919   (eval $ac_link) 2>&5
12920   ac_status=$?
12921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12923             pipe_works=yes
12924           fi
12925           LIBS="$lt_save_LIBS"
12926           CFLAGS="$lt_save_CFLAGS"
12927         else
12928           echo "cannot find nm_test_func in $nlist" >&5
12929         fi
12930       else
12931         echo "cannot find nm_test_var in $nlist" >&5
12932       fi
12933     else
12934       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12935     fi
12936   else
12937     echo "$progname: failed program was:" >&5
12938     cat conftest.$ac_ext >&5
12939   fi
12940   rm -rf conftest* conftst*
12941
12942   # Do not use the global_symbol_pipe unless it works.
12943   if test "$pipe_works" = yes; then
12944     break
12945   else
12946     lt_cv_sys_global_symbol_pipe=
12947   fi
12948 done
12949
12950 fi
12951
12952 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12953   lt_cv_sys_global_symbol_to_cdecl=
12954 fi
12955 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12957 $as_echo "failed" >&6; }
12958 else
12959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12960 $as_echo "ok" >&6; }
12961 fi
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984 # Check whether --enable-libtool-lock was given.
12985 if test "${enable_libtool_lock+set}" = set; then :
12986   enableval=$enable_libtool_lock;
12987 fi
12988
12989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12990
12991 # Some flags need to be propagated to the compiler or linker for good
12992 # libtool support.
12993 case $host in
12994 ia64-*-hpux*)
12995   # Find out which ABI we are using.
12996   echo 'int i;' > conftest.$ac_ext
12997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12998   (eval $ac_compile) 2>&5
12999   ac_status=$?
13000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001   test $ac_status = 0; }; then
13002     case `/usr/bin/file conftest.$ac_objext` in
13003       *ELF-32*)
13004         HPUX_IA64_MODE="32"
13005         ;;
13006       *ELF-64*)
13007         HPUX_IA64_MODE="64"
13008         ;;
13009     esac
13010   fi
13011   rm -rf conftest*
13012   ;;
13013 *-*-irix6*)
13014   # Find out which ABI we are using.
13015   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13016   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13017   (eval $ac_compile) 2>&5
13018   ac_status=$?
13019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13020   test $ac_status = 0; }; then
13021     if test "$lt_cv_prog_gnu_ld" = yes; then
13022       case `/usr/bin/file conftest.$ac_objext` in
13023         *32-bit*)
13024           LD="${LD-ld} -melf32bsmip"
13025           ;;
13026         *N32*)
13027           LD="${LD-ld} -melf32bmipn32"
13028           ;;
13029         *64-bit*)
13030           LD="${LD-ld} -melf64bmip"
13031         ;;
13032       esac
13033     else
13034       case `/usr/bin/file conftest.$ac_objext` in
13035         *32-bit*)
13036           LD="${LD-ld} -32"
13037           ;;
13038         *N32*)
13039           LD="${LD-ld} -n32"
13040           ;;
13041         *64-bit*)
13042           LD="${LD-ld} -64"
13043           ;;
13044       esac
13045     fi
13046   fi
13047   rm -rf conftest*
13048   ;;
13049
13050 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13051 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13052   # Find out which ABI we are using.
13053   echo 'int i;' > conftest.$ac_ext
13054   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13055   (eval $ac_compile) 2>&5
13056   ac_status=$?
13057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13058   test $ac_status = 0; }; then
13059     case `/usr/bin/file conftest.o` in
13060       *32-bit*)
13061         case $host in
13062           x86_64-*kfreebsd*-gnu)
13063             LD="${LD-ld} -m elf_i386_fbsd"
13064             ;;
13065           x86_64-*linux*)
13066             LD="${LD-ld} -m elf_i386"
13067             ;;
13068           ppc64-*linux*|powerpc64-*linux*)
13069             LD="${LD-ld} -m elf32ppclinux"
13070             ;;
13071           s390x-*linux*)
13072             LD="${LD-ld} -m elf_s390"
13073             ;;
13074           sparc64-*linux*)
13075             LD="${LD-ld} -m elf32_sparc"
13076             ;;
13077         esac
13078         ;;
13079       *64-bit*)
13080         case $host in
13081           x86_64-*kfreebsd*-gnu)
13082             LD="${LD-ld} -m elf_x86_64_fbsd"
13083             ;;
13084           x86_64-*linux*)
13085             LD="${LD-ld} -m elf_x86_64"
13086             ;;
13087           ppc*-*linux*|powerpc*-*linux*)
13088             LD="${LD-ld} -m elf64ppc"
13089             ;;
13090           s390*-*linux*|s390*-*tpf*)
13091             LD="${LD-ld} -m elf64_s390"
13092             ;;
13093           sparc*-*linux*)
13094             LD="${LD-ld} -m elf64_sparc"
13095             ;;
13096         esac
13097         ;;
13098     esac
13099   fi
13100   rm -rf conftest*
13101   ;;
13102
13103 *-*-sco3.2v5*)
13104   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13105   SAVE_CFLAGS="$CFLAGS"
13106   CFLAGS="$CFLAGS -belf"
13107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13108 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13109 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13110   $as_echo_n "(cached) " >&6
13111 else
13112   ac_ext=c
13113 ac_cpp='$CPP $CPPFLAGS'
13114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13117
13118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h.  */
13120
13121 int
13122 main ()
13123 {
13124
13125   ;
13126   return 0;
13127 }
13128 _ACEOF
13129 if ac_fn_c_try_link "$LINENO"; then :
13130   lt_cv_cc_needs_belf=yes
13131 else
13132   lt_cv_cc_needs_belf=no
13133 fi
13134 rm -f core conftest.err conftest.$ac_objext \
13135     conftest$ac_exeext conftest.$ac_ext
13136      ac_ext=c
13137 ac_cpp='$CPP $CPPFLAGS'
13138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13141
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13144 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13145   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13146     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13147     CFLAGS="$SAVE_CFLAGS"
13148   fi
13149   ;;
13150 sparc*-*solaris*)
13151   # Find out which ABI we are using.
13152   echo 'int i;' > conftest.$ac_ext
13153   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13154   (eval $ac_compile) 2>&5
13155   ac_status=$?
13156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13157   test $ac_status = 0; }; then
13158     case `/usr/bin/file conftest.o` in
13159     *64-bit*)
13160       case $lt_cv_prog_gnu_ld in
13161       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13162       *)
13163         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13164           LD="${LD-ld} -64"
13165         fi
13166         ;;
13167       esac
13168       ;;
13169     esac
13170   fi
13171   rm -rf conftest*
13172   ;;
13173 esac
13174
13175 need_locks="$enable_libtool_lock"
13176
13177
13178   case $host_os in
13179     rhapsody* | darwin*)
13180     if test -n "$ac_tool_prefix"; then
13181   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13182 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184 $as_echo_n "checking for $ac_word... " >&6; }
13185 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188   if test -n "$DSYMUTIL"; then
13189   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13190 else
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13193 do
13194   IFS=$as_save_IFS
13195   test -z "$as_dir" && as_dir=.
13196     for ac_exec_ext in '' $ac_executable_extensions; do
13197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13198     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13200     break 2
13201   fi
13202 done
13203   done
13204 IFS=$as_save_IFS
13205
13206 fi
13207 fi
13208 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13209 if test -n "$DSYMUTIL"; then
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13211 $as_echo "$DSYMUTIL" >&6; }
13212 else
13213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13215 fi
13216
13217
13218 fi
13219 if test -z "$ac_cv_prog_DSYMUTIL"; then
13220   ac_ct_DSYMUTIL=$DSYMUTIL
13221   # Extract the first word of "dsymutil", so it can be a program name with args.
13222 set dummy dsymutil; ac_word=$2
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224 $as_echo_n "checking for $ac_word... " >&6; }
13225 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13226   $as_echo_n "(cached) " >&6
13227 else
13228   if test -n "$ac_ct_DSYMUTIL"; then
13229   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13230 else
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $PATH
13233 do
13234   IFS=$as_save_IFS
13235   test -z "$as_dir" && as_dir=.
13236     for ac_exec_ext in '' $ac_executable_extensions; do
13237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13238     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240     break 2
13241   fi
13242 done
13243   done
13244 IFS=$as_save_IFS
13245
13246 fi
13247 fi
13248 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13249 if test -n "$ac_ct_DSYMUTIL"; then
13250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13251 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13252 else
13253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13255 fi
13256
13257   if test "x$ac_ct_DSYMUTIL" = x; then
13258     DSYMUTIL=":"
13259   else
13260     case $cross_compiling:$ac_tool_warned in
13261 yes:)
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13264 ac_tool_warned=yes ;;
13265 esac
13266     DSYMUTIL=$ac_ct_DSYMUTIL
13267   fi
13268 else
13269   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13270 fi
13271
13272     if test -n "$ac_tool_prefix"; then
13273   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13274 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13278   $as_echo_n "(cached) " >&6
13279 else
13280   if test -n "$NMEDIT"; then
13281   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13285 do
13286   IFS=$as_save_IFS
13287   test -z "$as_dir" && as_dir=.
13288     for ac_exec_ext in '' $ac_executable_extensions; do
13289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292     break 2
13293   fi
13294 done
13295   done
13296 IFS=$as_save_IFS
13297
13298 fi
13299 fi
13300 NMEDIT=$ac_cv_prog_NMEDIT
13301 if test -n "$NMEDIT"; then
13302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13303 $as_echo "$NMEDIT" >&6; }
13304 else
13305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13307 fi
13308
13309
13310 fi
13311 if test -z "$ac_cv_prog_NMEDIT"; then
13312   ac_ct_NMEDIT=$NMEDIT
13313   # Extract the first word of "nmedit", so it can be a program name with args.
13314 set dummy nmedit; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13318   $as_echo_n "(cached) " >&6
13319 else
13320   if test -n "$ac_ct_NMEDIT"; then
13321   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13322 else
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13325 do
13326   IFS=$as_save_IFS
13327   test -z "$as_dir" && as_dir=.
13328     for ac_exec_ext in '' $ac_executable_extensions; do
13329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13330     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13332     break 2
13333   fi
13334 done
13335   done
13336 IFS=$as_save_IFS
13337
13338 fi
13339 fi
13340 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13341 if test -n "$ac_ct_NMEDIT"; then
13342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13343 $as_echo "$ac_ct_NMEDIT" >&6; }
13344 else
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347 fi
13348
13349   if test "x$ac_ct_NMEDIT" = x; then
13350     NMEDIT=":"
13351   else
13352     case $cross_compiling:$ac_tool_warned in
13353 yes:)
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13356 ac_tool_warned=yes ;;
13357 esac
13358     NMEDIT=$ac_ct_NMEDIT
13359   fi
13360 else
13361   NMEDIT="$ac_cv_prog_NMEDIT"
13362 fi
13363
13364     if test -n "$ac_tool_prefix"; then
13365   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13366 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if test "${ac_cv_prog_LIPO+set}" = set; then :
13370   $as_echo_n "(cached) " >&6
13371 else
13372   if test -n "$LIPO"; then
13373   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13374 else
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13377 do
13378   IFS=$as_save_IFS
13379   test -z "$as_dir" && as_dir=.
13380     for ac_exec_ext in '' $ac_executable_extensions; do
13381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384     break 2
13385   fi
13386 done
13387   done
13388 IFS=$as_save_IFS
13389
13390 fi
13391 fi
13392 LIPO=$ac_cv_prog_LIPO
13393 if test -n "$LIPO"; then
13394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13395 $as_echo "$LIPO" >&6; }
13396 else
13397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13399 fi
13400
13401
13402 fi
13403 if test -z "$ac_cv_prog_LIPO"; then
13404   ac_ct_LIPO=$LIPO
13405   # Extract the first word of "lipo", so it can be a program name with args.
13406 set dummy lipo; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   if test -n "$ac_ct_LIPO"; then
13413   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13414 else
13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH
13417 do
13418   IFS=$as_save_IFS
13419   test -z "$as_dir" && as_dir=.
13420     for ac_exec_ext in '' $ac_executable_extensions; do
13421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13422     ac_cv_prog_ac_ct_LIPO="lipo"
13423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424     break 2
13425   fi
13426 done
13427   done
13428 IFS=$as_save_IFS
13429
13430 fi
13431 fi
13432 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13433 if test -n "$ac_ct_LIPO"; then
13434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13435 $as_echo "$ac_ct_LIPO" >&6; }
13436 else
13437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13439 fi
13440
13441   if test "x$ac_ct_LIPO" = x; then
13442     LIPO=":"
13443   else
13444     case $cross_compiling:$ac_tool_warned in
13445 yes:)
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13448 ac_tool_warned=yes ;;
13449 esac
13450     LIPO=$ac_ct_LIPO
13451   fi
13452 else
13453   LIPO="$ac_cv_prog_LIPO"
13454 fi
13455
13456     if test -n "$ac_tool_prefix"; then
13457   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13458 set dummy ${ac_tool_prefix}otool; ac_word=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460 $as_echo_n "checking for $ac_word... " >&6; }
13461 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   if test -n "$OTOOL"; then
13465   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13466 else
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468 for as_dir in $PATH
13469 do
13470   IFS=$as_save_IFS
13471   test -z "$as_dir" && as_dir=.
13472     for ac_exec_ext in '' $ac_executable_extensions; do
13473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13474     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476     break 2
13477   fi
13478 done
13479   done
13480 IFS=$as_save_IFS
13481
13482 fi
13483 fi
13484 OTOOL=$ac_cv_prog_OTOOL
13485 if test -n "$OTOOL"; then
13486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13487 $as_echo "$OTOOL" >&6; }
13488 else
13489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13491 fi
13492
13493
13494 fi
13495 if test -z "$ac_cv_prog_OTOOL"; then
13496   ac_ct_OTOOL=$OTOOL
13497   # Extract the first word of "otool", so it can be a program name with args.
13498 set dummy otool; ac_word=$2
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 $as_echo_n "checking for $ac_word... " >&6; }
13501 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13502   $as_echo_n "(cached) " >&6
13503 else
13504   if test -n "$ac_ct_OTOOL"; then
13505   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13506 else
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13509 do
13510   IFS=$as_save_IFS
13511   test -z "$as_dir" && as_dir=.
13512     for ac_exec_ext in '' $ac_executable_extensions; do
13513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13514     ac_cv_prog_ac_ct_OTOOL="otool"
13515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516     break 2
13517   fi
13518 done
13519   done
13520 IFS=$as_save_IFS
13521
13522 fi
13523 fi
13524 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13525 if test -n "$ac_ct_OTOOL"; then
13526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13527 $as_echo "$ac_ct_OTOOL" >&6; }
13528 else
13529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13531 fi
13532
13533   if test "x$ac_ct_OTOOL" = x; then
13534     OTOOL=":"
13535   else
13536     case $cross_compiling:$ac_tool_warned in
13537 yes:)
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13540 ac_tool_warned=yes ;;
13541 esac
13542     OTOOL=$ac_ct_OTOOL
13543   fi
13544 else
13545   OTOOL="$ac_cv_prog_OTOOL"
13546 fi
13547
13548     if test -n "$ac_tool_prefix"; then
13549   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13550 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552 $as_echo_n "checking for $ac_word... " >&6; }
13553 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   if test -n "$OTOOL64"; then
13557   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13558 else
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13561 do
13562   IFS=$as_save_IFS
13563   test -z "$as_dir" && as_dir=.
13564     for ac_exec_ext in '' $ac_executable_extensions; do
13565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13566     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568     break 2
13569   fi
13570 done
13571   done
13572 IFS=$as_save_IFS
13573
13574 fi
13575 fi
13576 OTOOL64=$ac_cv_prog_OTOOL64
13577 if test -n "$OTOOL64"; then
13578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13579 $as_echo "$OTOOL64" >&6; }
13580 else
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13583 fi
13584
13585
13586 fi
13587 if test -z "$ac_cv_prog_OTOOL64"; then
13588   ac_ct_OTOOL64=$OTOOL64
13589   # Extract the first word of "otool64", so it can be a program name with args.
13590 set dummy otool64; ac_word=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13594   $as_echo_n "(cached) " >&6
13595 else
13596   if test -n "$ac_ct_OTOOL64"; then
13597   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13598 else
13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $PATH
13601 do
13602   IFS=$as_save_IFS
13603   test -z "$as_dir" && as_dir=.
13604     for ac_exec_ext in '' $ac_executable_extensions; do
13605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13606     ac_cv_prog_ac_ct_OTOOL64="otool64"
13607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13608     break 2
13609   fi
13610 done
13611   done
13612 IFS=$as_save_IFS
13613
13614 fi
13615 fi
13616 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13617 if test -n "$ac_ct_OTOOL64"; then
13618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13619 $as_echo "$ac_ct_OTOOL64" >&6; }
13620 else
13621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13623 fi
13624
13625   if test "x$ac_ct_OTOOL64" = x; then
13626     OTOOL64=":"
13627   else
13628     case $cross_compiling:$ac_tool_warned in
13629 yes:)
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13632 ac_tool_warned=yes ;;
13633 esac
13634     OTOOL64=$ac_ct_OTOOL64
13635   fi
13636 else
13637   OTOOL64="$ac_cv_prog_OTOOL64"
13638 fi
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13667 $as_echo_n "checking for -single_module linker flag... " >&6; }
13668 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13669   $as_echo_n "(cached) " >&6
13670 else
13671   lt_cv_apple_cc_single_mod=no
13672       if test -z "${LT_MULTI_MODULE}"; then
13673         # By default we will add the -single_module flag. You can override
13674         # by either setting the environment variable LT_MULTI_MODULE
13675         # non-empty at configure time, or by adding -multi_module to the
13676         # link flags.
13677         rm -rf libconftest.dylib*
13678         echo "int foo(void){return 1;}" > conftest.c
13679         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13680 -dynamiclib -Wl,-single_module conftest.c" >&5
13681         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13682           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13683         _lt_result=$?
13684         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13685           lt_cv_apple_cc_single_mod=yes
13686         else
13687           cat conftest.err >&5
13688         fi
13689         rm -rf libconftest.dylib*
13690         rm -f conftest.*
13691       fi
13692 fi
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13694 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13696 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13697 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13698   $as_echo_n "(cached) " >&6
13699 else
13700   lt_cv_ld_exported_symbols_list=no
13701       save_LDFLAGS=$LDFLAGS
13702       echo "_main" > conftest.sym
13703       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13704       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h.  */
13706
13707 int
13708 main ()
13709 {
13710
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 if ac_fn_c_try_link "$LINENO"; then :
13716   lt_cv_ld_exported_symbols_list=yes
13717 else
13718   lt_cv_ld_exported_symbols_list=no
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext \
13721     conftest$ac_exeext conftest.$ac_ext
13722         LDFLAGS="$save_LDFLAGS"
13723
13724 fi
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13726 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13728 $as_echo_n "checking for -force_load linker flag... " >&6; }
13729 if test "${lt_cv_ld_force_load+set}" = set; then :
13730   $as_echo_n "(cached) " >&6
13731 else
13732   lt_cv_ld_force_load=no
13733       cat > conftest.c << _LT_EOF
13734 int forced_loaded() { return 2;}
13735 _LT_EOF
13736       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13737       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13738       echo "$AR cru libconftest.a conftest.o" >&5
13739       $AR cru libconftest.a conftest.o 2>&5
13740       cat > conftest.c << _LT_EOF
13741 int main() { return 0;}
13742 _LT_EOF
13743       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13744       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13745       _lt_result=$?
13746       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13747         lt_cv_ld_force_load=yes
13748       else
13749         cat conftest.err >&5
13750       fi
13751         rm -f conftest.err libconftest.a conftest conftest.c
13752         rm -rf conftest.dSYM
13753
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13756 $as_echo "$lt_cv_ld_force_load" >&6; }
13757     case $host_os in
13758     rhapsody* | darwin1.[012])
13759       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13760     darwin1.*)
13761       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13762     darwin*) # darwin 5.x on
13763       # if running on 10.5 or later, the deployment target defaults
13764       # to the OS version, if on x86, and 10.4, the deployment
13765       # target defaults to 10.4. Don't you love it?
13766       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13767         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13768           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13769         10.[012]*)
13770           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13771         10.*)
13772           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13773       esac
13774     ;;
13775   esac
13776     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13777       _lt_dar_single_mod='$single_module'
13778     fi
13779     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13780       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13781     else
13782       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13783     fi
13784     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13785       _lt_dsymutil='~$DSYMUTIL $lib || :'
13786     else
13787       _lt_dsymutil=
13788     fi
13789     ;;
13790   esac
13791
13792 for ac_header in dlfcn.h
13793 do :
13794   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13795 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13796   cat >>confdefs.h <<_ACEOF
13797 #define HAVE_DLFCN_H 1
13798 _ACEOF
13799
13800 fi
13801 done
13802
13803
13804
13805
13806
13807
13808 # Set options
13809
13810
13811
13812         enable_dlopen=no
13813
13814
13815   enable_win32_dll=no
13816
13817
13818             # Check whether --enable-shared was given.
13819 if test "${enable_shared+set}" = set; then :
13820   enableval=$enable_shared; p=${PACKAGE-default}
13821     case $enableval in
13822     yes) enable_shared=yes ;;
13823     no) enable_shared=no ;;
13824     *)
13825       enable_shared=no
13826       # Look at the argument we got.  We use all the common list separators.
13827       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13828       for pkg in $enableval; do
13829         IFS="$lt_save_ifs"
13830         if test "X$pkg" = "X$p"; then
13831           enable_shared=yes
13832         fi
13833       done
13834       IFS="$lt_save_ifs"
13835       ;;
13836     esac
13837 else
13838   enable_shared=yes
13839 fi
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849   # Check whether --enable-static was given.
13850 if test "${enable_static+set}" = set; then :
13851   enableval=$enable_static; p=${PACKAGE-default}
13852     case $enableval in
13853     yes) enable_static=yes ;;
13854     no) enable_static=no ;;
13855     *)
13856      enable_static=no
13857       # Look at the argument we got.  We use all the common list separators.
13858       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13859       for pkg in $enableval; do
13860         IFS="$lt_save_ifs"
13861         if test "X$pkg" = "X$p"; then
13862           enable_static=yes
13863         fi
13864       done
13865       IFS="$lt_save_ifs"
13866       ;;
13867     esac
13868 else
13869   enable_static=yes
13870 fi
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881 # Check whether --with-pic was given.
13882 if test "${with_pic+set}" = set; then :
13883   withval=$with_pic; pic_mode="$withval"
13884 else
13885   pic_mode=default
13886 fi
13887
13888
13889 test -z "$pic_mode" && pic_mode=default
13890
13891
13892
13893
13894
13895
13896
13897   # Check whether --enable-fast-install was given.
13898 if test "${enable_fast_install+set}" = set; then :
13899   enableval=$enable_fast_install; p=${PACKAGE-default}
13900     case $enableval in
13901     yes) enable_fast_install=yes ;;
13902     no) enable_fast_install=no ;;
13903     *)
13904       enable_fast_install=no
13905       # Look at the argument we got.  We use all the common list separators.
13906       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13907       for pkg in $enableval; do
13908         IFS="$lt_save_ifs"
13909         if test "X$pkg" = "X$p"; then
13910           enable_fast_install=yes
13911         fi
13912       done
13913       IFS="$lt_save_ifs"
13914       ;;
13915     esac
13916 else
13917   enable_fast_install=yes
13918 fi
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930 # This can be used to rebuild libtool when needed
13931 LIBTOOL_DEPS="$ltmain"
13932
13933 # Always use our own libtool.
13934 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961 test -z "$LN_S" && LN_S="ln -s"
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976 if test -n "${ZSH_VERSION+set}" ; then
13977    setopt NO_GLOB_SUBST
13978 fi
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13981 $as_echo_n "checking for objdir... " >&6; }
13982 if test "${lt_cv_objdir+set}" = set; then :
13983   $as_echo_n "(cached) " >&6
13984 else
13985   rm -f .libs 2>/dev/null
13986 mkdir .libs 2>/dev/null
13987 if test -d .libs; then
13988   lt_cv_objdir=.libs
13989 else
13990   # MS-DOS does not allow filenames that begin with a dot.
13991   lt_cv_objdir=_libs
13992 fi
13993 rmdir .libs 2>/dev/null
13994 fi
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13996 $as_echo "$lt_cv_objdir" >&6; }
13997 objdir=$lt_cv_objdir
13998
13999
14000
14001
14002
14003 cat >>confdefs.h <<_ACEOF
14004 #define LT_OBJDIR "$lt_cv_objdir/"
14005 _ACEOF
14006
14007
14008
14009
14010 case $host_os in
14011 aix3*)
14012   # AIX sometimes has problems with the GCC collect2 program.  For some
14013   # reason, if we set the COLLECT_NAMES environment variable, the problems
14014   # vanish in a puff of smoke.
14015   if test "X${COLLECT_NAMES+set}" != Xset; then
14016     COLLECT_NAMES=
14017     export COLLECT_NAMES
14018   fi
14019   ;;
14020 esac
14021
14022 # Global variables:
14023 ofile=libtool
14024 can_build_shared=yes
14025
14026 # All known linkers require a `.a' archive for static linking (except MSVC,
14027 # which needs '.lib').
14028 libext=a
14029
14030 with_gnu_ld="$lt_cv_prog_gnu_ld"
14031
14032 old_CC="$CC"
14033 old_CFLAGS="$CFLAGS"
14034
14035 # Set sane defaults for various variables
14036 test -z "$CC" && CC=cc
14037 test -z "$LTCC" && LTCC=$CC
14038 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14039 test -z "$LD" && LD=ld
14040 test -z "$ac_objext" && ac_objext=o
14041
14042 for cc_temp in $compiler""; do
14043   case $cc_temp in
14044     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14045     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14046     \-*) ;;
14047     *) break;;
14048   esac
14049 done
14050 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14051
14052
14053 # Only perform the check for file, if the check method requires it
14054 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14055 case $deplibs_check_method in
14056 file_magic*)
14057   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14059 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14060 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14061   $as_echo_n "(cached) " >&6
14062 else
14063   case $MAGIC_CMD in
14064 [\\/*] |  ?:[\\/]*)
14065   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14066   ;;
14067 *)
14068   lt_save_MAGIC_CMD="$MAGIC_CMD"
14069   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14070   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14071   for ac_dir in $ac_dummy; do
14072     IFS="$lt_save_ifs"
14073     test -z "$ac_dir" && ac_dir=.
14074     if test -f $ac_dir/${ac_tool_prefix}file; then
14075       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14076       if test -n "$file_magic_test_file"; then
14077         case $deplibs_check_method in
14078         "file_magic "*)
14079           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14080           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14081           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14082             $EGREP "$file_magic_regex" > /dev/null; then
14083             :
14084           else
14085             cat <<_LT_EOF 1>&2
14086
14087 *** Warning: the command libtool uses to detect shared libraries,
14088 *** $file_magic_cmd, produces output that libtool cannot recognize.
14089 *** The result is that libtool may fail to recognize shared libraries
14090 *** as such.  This will affect the creation of libtool libraries that
14091 *** depend on shared libraries, but programs linked with such libtool
14092 *** libraries will work regardless of this problem.  Nevertheless, you
14093 *** may want to report the problem to your system manager and/or to
14094 *** bug-libtool@gnu.org
14095
14096 _LT_EOF
14097           fi ;;
14098         esac
14099       fi
14100       break
14101     fi
14102   done
14103   IFS="$lt_save_ifs"
14104   MAGIC_CMD="$lt_save_MAGIC_CMD"
14105   ;;
14106 esac
14107 fi
14108
14109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14110 if test -n "$MAGIC_CMD"; then
14111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14112 $as_echo "$MAGIC_CMD" >&6; }
14113 else
14114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14116 fi
14117
14118
14119
14120
14121
14122 if test -z "$lt_cv_path_MAGIC_CMD"; then
14123   if test -n "$ac_tool_prefix"; then
14124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14125 $as_echo_n "checking for file... " >&6; }
14126 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14127   $as_echo_n "(cached) " >&6
14128 else
14129   case $MAGIC_CMD in
14130 [\\/*] |  ?:[\\/]*)
14131   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14132   ;;
14133 *)
14134   lt_save_MAGIC_CMD="$MAGIC_CMD"
14135   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14136   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14137   for ac_dir in $ac_dummy; do
14138     IFS="$lt_save_ifs"
14139     test -z "$ac_dir" && ac_dir=.
14140     if test -f $ac_dir/file; then
14141       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14142       if test -n "$file_magic_test_file"; then
14143         case $deplibs_check_method in
14144         "file_magic "*)
14145           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14146           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14147           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14148             $EGREP "$file_magic_regex" > /dev/null; then
14149             :
14150           else
14151             cat <<_LT_EOF 1>&2
14152
14153 *** Warning: the command libtool uses to detect shared libraries,
14154 *** $file_magic_cmd, produces output that libtool cannot recognize.
14155 *** The result is that libtool may fail to recognize shared libraries
14156 *** as such.  This will affect the creation of libtool libraries that
14157 *** depend on shared libraries, but programs linked with such libtool
14158 *** libraries will work regardless of this problem.  Nevertheless, you
14159 *** may want to report the problem to your system manager and/or to
14160 *** bug-libtool@gnu.org
14161
14162 _LT_EOF
14163           fi ;;
14164         esac
14165       fi
14166       break
14167     fi
14168   done
14169   IFS="$lt_save_ifs"
14170   MAGIC_CMD="$lt_save_MAGIC_CMD"
14171   ;;
14172 esac
14173 fi
14174
14175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14176 if test -n "$MAGIC_CMD"; then
14177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14178 $as_echo "$MAGIC_CMD" >&6; }
14179 else
14180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14182 fi
14183
14184
14185   else
14186     MAGIC_CMD=:
14187   fi
14188 fi
14189
14190   fi
14191   ;;
14192 esac
14193
14194 # Use C for the default configuration in the libtool script
14195
14196 lt_save_CC="$CC"
14197 ac_ext=c
14198 ac_cpp='$CPP $CPPFLAGS'
14199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14202
14203
14204 # Source file extension for C test sources.
14205 ac_ext=c
14206
14207 # Object file extension for compiled C test sources.
14208 objext=o
14209 objext=$objext
14210
14211 # Code to be used in simple compile tests
14212 lt_simple_compile_test_code="int some_variable = 0;"
14213
14214 # Code to be used in simple link tests
14215 lt_simple_link_test_code='int main(){return(0);}'
14216
14217
14218
14219
14220
14221
14222
14223 # If no C compiler was specified, use CC.
14224 LTCC=${LTCC-"$CC"}
14225
14226 # If no C compiler flags were specified, use CFLAGS.
14227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14228
14229 # Allow CC to be a program name with arguments.
14230 compiler=$CC
14231
14232 # Save the default compiler, since it gets overwritten when the other
14233 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14234 compiler_DEFAULT=$CC
14235
14236 # save warnings/boilerplate of simple test code
14237 ac_outfile=conftest.$ac_objext
14238 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14240 _lt_compiler_boilerplate=`cat conftest.err`
14241 $RM conftest*
14242
14243 ac_outfile=conftest.$ac_objext
14244 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14246 _lt_linker_boilerplate=`cat conftest.err`
14247 $RM -r conftest*
14248
14249
14250 ## CAVEAT EMPTOR:
14251 ## There is no encapsulation within the following macros, do not change
14252 ## the running order or otherwise move them around unless you know exactly
14253 ## what you are doing...
14254 if test -n "$compiler"; then
14255
14256 lt_prog_compiler_no_builtin_flag=
14257
14258 if test "$GCC" = yes; then
14259   case $cc_basename in
14260   nvcc*)
14261     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14262   *)
14263     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14264   esac
14265
14266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14267 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14268 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14269   $as_echo_n "(cached) " >&6
14270 else
14271   lt_cv_prog_compiler_rtti_exceptions=no
14272    ac_outfile=conftest.$ac_objext
14273    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14274    lt_compiler_flag="-fno-rtti -fno-exceptions"
14275    # Insert the option either (1) after the last *FLAGS variable, or
14276    # (2) before a word containing "conftest.", or (3) at the end.
14277    # Note that $ac_compile itself does not contain backslashes and begins
14278    # with a dollar sign (not a hyphen), so the echo should work correctly.
14279    # The option is referenced via a variable to avoid confusing sed.
14280    lt_compile=`echo "$ac_compile" | $SED \
14281    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14282    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14283    -e 's:$: $lt_compiler_flag:'`
14284    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14285    (eval "$lt_compile" 2>conftest.err)
14286    ac_status=$?
14287    cat conftest.err >&5
14288    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289    if (exit $ac_status) && test -s "$ac_outfile"; then
14290      # The compiler can only warn and ignore the option if not recognized
14291      # So say no if there are warnings other than the usual output.
14292      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14293      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14294      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14295        lt_cv_prog_compiler_rtti_exceptions=yes
14296      fi
14297    fi
14298    $RM conftest*
14299
14300 fi
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14302 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14303
14304 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14305     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14306 else
14307     :
14308 fi
14309
14310 fi
14311
14312
14313
14314
14315
14316
14317   lt_prog_compiler_wl=
14318 lt_prog_compiler_pic=
14319 lt_prog_compiler_static=
14320
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14322 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14323
14324   if test "$GCC" = yes; then
14325     lt_prog_compiler_wl='-Wl,'
14326     lt_prog_compiler_static='-static'
14327
14328     case $host_os in
14329       aix*)
14330       # All AIX code is PIC.
14331       if test "$host_cpu" = ia64; then
14332         # AIX 5 now supports IA64 processor
14333         lt_prog_compiler_static='-Bstatic'
14334       fi
14335       ;;
14336
14337     amigaos*)
14338       case $host_cpu in
14339       powerpc)
14340             # see comment about AmigaOS4 .so support
14341             lt_prog_compiler_pic='-fPIC'
14342         ;;
14343       m68k)
14344             # FIXME: we need at least 68020 code to build shared libraries, but
14345             # adding the `-m68020' flag to GCC prevents building anything better,
14346             # like `-m68040'.
14347             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14348         ;;
14349       esac
14350       ;;
14351
14352     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14353       # PIC is the default for these OSes.
14354       ;;
14355
14356     mingw* | cygwin* | pw32* | os2* | cegcc*)
14357       # This hack is so that the source file can tell whether it is being
14358       # built for inclusion in a dll (and should export symbols for example).
14359       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14360       # (--disable-auto-import) libraries
14361       lt_prog_compiler_pic='-DDLL_EXPORT'
14362       ;;
14363
14364     darwin* | rhapsody*)
14365       # PIC is the default on this platform
14366       # Common symbols not allowed in MH_DYLIB files
14367       lt_prog_compiler_pic='-fno-common'
14368       ;;
14369
14370     haiku*)
14371       # PIC is the default for Haiku.
14372       # The "-static" flag exists, but is broken.
14373       lt_prog_compiler_static=
14374       ;;
14375
14376     hpux*)
14377       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14378       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14379       # sets the default TLS model and affects inlining.
14380       case $host_cpu in
14381       hppa*64*)
14382         # +Z the default
14383         ;;
14384       *)
14385         lt_prog_compiler_pic='-fPIC'
14386         ;;
14387       esac
14388       ;;
14389
14390     interix[3-9]*)
14391       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14392       # Instead, we relocate shared libraries at runtime.
14393       ;;
14394
14395     msdosdjgpp*)
14396       # Just because we use GCC doesn't mean we suddenly get shared libraries
14397       # on systems that don't support them.
14398       lt_prog_compiler_can_build_shared=no
14399       enable_shared=no
14400       ;;
14401
14402     *nto* | *qnx*)
14403       # QNX uses GNU C++, but need to define -shared option too, otherwise
14404       # it will coredump.
14405       lt_prog_compiler_pic='-fPIC -shared'
14406       ;;
14407
14408     sysv4*MP*)
14409       if test -d /usr/nec; then
14410         lt_prog_compiler_pic=-Kconform_pic
14411       fi
14412       ;;
14413
14414     *)
14415       lt_prog_compiler_pic='-fPIC'
14416       ;;
14417     esac
14418
14419     case $cc_basename in
14420     nvcc*) # Cuda Compiler Driver 2.2
14421       lt_prog_compiler_wl='-Xlinker '
14422       lt_prog_compiler_pic='-Xcompiler -fPIC'
14423       ;;
14424     esac
14425   else
14426     # PORTME Check for flag to pass linker flags through the system compiler.
14427     case $host_os in
14428     aix*)
14429       lt_prog_compiler_wl='-Wl,'
14430       if test "$host_cpu" = ia64; then
14431         # AIX 5 now supports IA64 processor
14432         lt_prog_compiler_static='-Bstatic'
14433       else
14434         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14435       fi
14436       ;;
14437
14438     mingw* | cygwin* | pw32* | os2* | cegcc*)
14439       # This hack is so that the source file can tell whether it is being
14440       # built for inclusion in a dll (and should export symbols for example).
14441       lt_prog_compiler_pic='-DDLL_EXPORT'
14442       ;;
14443
14444     hpux9* | hpux10* | hpux11*)
14445       lt_prog_compiler_wl='-Wl,'
14446       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14447       # not for PA HP-UX.
14448       case $host_cpu in
14449       hppa*64*|ia64*)
14450         # +Z the default
14451         ;;
14452       *)
14453         lt_prog_compiler_pic='+Z'
14454         ;;
14455       esac
14456       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14457       lt_prog_compiler_static='${wl}-a ${wl}archive'
14458       ;;
14459
14460     irix5* | irix6* | nonstopux*)
14461       lt_prog_compiler_wl='-Wl,'
14462       # PIC (with -KPIC) is the default.
14463       lt_prog_compiler_static='-non_shared'
14464       ;;
14465
14466     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14467       case $cc_basename in
14468       # old Intel for x86_64 which still supported -KPIC.
14469       ecc*)
14470         lt_prog_compiler_wl='-Wl,'
14471         lt_prog_compiler_pic='-KPIC'
14472         lt_prog_compiler_static='-static'
14473         ;;
14474       # icc used to be incompatible with GCC.
14475       # ICC 10 doesn't accept -KPIC any more.
14476       icc* | ifort*)
14477         lt_prog_compiler_wl='-Wl,'
14478         lt_prog_compiler_pic='-fPIC'
14479         lt_prog_compiler_static='-static'
14480         ;;
14481       # Lahey Fortran 8.1.
14482       lf95*)
14483         lt_prog_compiler_wl='-Wl,'
14484         lt_prog_compiler_pic='--shared'
14485         lt_prog_compiler_static='--static'
14486         ;;
14487       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14488         # Portland Group compilers (*not* the Pentium gcc compiler,
14489         # which looks to be a dead project)
14490         lt_prog_compiler_wl='-Wl,'
14491         lt_prog_compiler_pic='-fpic'
14492         lt_prog_compiler_static='-Bstatic'
14493         ;;
14494       ccc*)
14495         lt_prog_compiler_wl='-Wl,'
14496         # All Alpha code is PIC.
14497         lt_prog_compiler_static='-non_shared'
14498         ;;
14499       xl* | bgxl* | bgf* | mpixl*)
14500         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14501         lt_prog_compiler_wl='-Wl,'
14502         lt_prog_compiler_pic='-qpic'
14503         lt_prog_compiler_static='-qstaticlink'
14504         ;;
14505       *)
14506         case `$CC -V 2>&1 | sed 5q` in
14507         *Sun\ F* | *Sun*Fortran*)
14508           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14509           lt_prog_compiler_pic='-KPIC'
14510           lt_prog_compiler_static='-Bstatic'
14511           lt_prog_compiler_wl=''
14512           ;;
14513         *Sun\ C*)
14514           # Sun C 5.9
14515           lt_prog_compiler_pic='-KPIC'
14516           lt_prog_compiler_static='-Bstatic'
14517           lt_prog_compiler_wl='-Wl,'
14518           ;;
14519         esac
14520         ;;
14521       esac
14522       ;;
14523
14524     newsos6)
14525       lt_prog_compiler_pic='-KPIC'
14526       lt_prog_compiler_static='-Bstatic'
14527       ;;
14528
14529     *nto* | *qnx*)
14530       # QNX uses GNU C++, but need to define -shared option too, otherwise
14531       # it will coredump.
14532       lt_prog_compiler_pic='-fPIC -shared'
14533       ;;
14534
14535     osf3* | osf4* | osf5*)
14536       lt_prog_compiler_wl='-Wl,'
14537       # All OSF/1 code is PIC.
14538       lt_prog_compiler_static='-non_shared'
14539       ;;
14540
14541     rdos*)
14542       lt_prog_compiler_static='-non_shared'
14543       ;;
14544
14545     solaris*)
14546       lt_prog_compiler_pic='-KPIC'
14547       lt_prog_compiler_static='-Bstatic'
14548       case $cc_basename in
14549       f77* | f90* | f95*)
14550         lt_prog_compiler_wl='-Qoption ld ';;
14551       *)
14552         lt_prog_compiler_wl='-Wl,';;
14553       esac
14554       ;;
14555
14556     sunos4*)
14557       lt_prog_compiler_wl='-Qoption ld '
14558       lt_prog_compiler_pic='-PIC'
14559       lt_prog_compiler_static='-Bstatic'
14560       ;;
14561
14562     sysv4 | sysv4.2uw2* | sysv4.3*)
14563       lt_prog_compiler_wl='-Wl,'
14564       lt_prog_compiler_pic='-KPIC'
14565       lt_prog_compiler_static='-Bstatic'
14566       ;;
14567
14568     sysv4*MP*)
14569       if test -d /usr/nec ;then
14570         lt_prog_compiler_pic='-Kconform_pic'
14571         lt_prog_compiler_static='-Bstatic'
14572       fi
14573       ;;
14574
14575     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14576       lt_prog_compiler_wl='-Wl,'
14577       lt_prog_compiler_pic='-KPIC'
14578       lt_prog_compiler_static='-Bstatic'
14579       ;;
14580
14581     unicos*)
14582       lt_prog_compiler_wl='-Wl,'
14583       lt_prog_compiler_can_build_shared=no
14584       ;;
14585
14586     uts4*)
14587       lt_prog_compiler_pic='-pic'
14588       lt_prog_compiler_static='-Bstatic'
14589       ;;
14590
14591     *)
14592       lt_prog_compiler_can_build_shared=no
14593       ;;
14594     esac
14595   fi
14596
14597 case $host_os in
14598   # For platforms which do not support PIC, -DPIC is meaningless:
14599   *djgpp*)
14600     lt_prog_compiler_pic=
14601     ;;
14602   *)
14603     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14604     ;;
14605 esac
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14607 $as_echo "$lt_prog_compiler_pic" >&6; }
14608
14609
14610
14611
14612
14613
14614 #
14615 # Check to make sure the PIC flag actually works.
14616 #
14617 if test -n "$lt_prog_compiler_pic"; then
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14619 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14620 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14621   $as_echo_n "(cached) " >&6
14622 else
14623   lt_cv_prog_compiler_pic_works=no
14624    ac_outfile=conftest.$ac_objext
14625    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14626    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14627    # Insert the option either (1) after the last *FLAGS variable, or
14628    # (2) before a word containing "conftest.", or (3) at the end.
14629    # Note that $ac_compile itself does not contain backslashes and begins
14630    # with a dollar sign (not a hyphen), so the echo should work correctly.
14631    # The option is referenced via a variable to avoid confusing sed.
14632    lt_compile=`echo "$ac_compile" | $SED \
14633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14635    -e 's:$: $lt_compiler_flag:'`
14636    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14637    (eval "$lt_compile" 2>conftest.err)
14638    ac_status=$?
14639    cat conftest.err >&5
14640    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641    if (exit $ac_status) && test -s "$ac_outfile"; then
14642      # The compiler can only warn and ignore the option if not recognized
14643      # So say no if there are warnings other than the usual output.
14644      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14645      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14646      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14647        lt_cv_prog_compiler_pic_works=yes
14648      fi
14649    fi
14650    $RM conftest*
14651
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14654 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14655
14656 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14657     case $lt_prog_compiler_pic in
14658      "" | " "*) ;;
14659      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14660      esac
14661 else
14662     lt_prog_compiler_pic=
14663      lt_prog_compiler_can_build_shared=no
14664 fi
14665
14666 fi
14667
14668
14669
14670
14671
14672
14673 #
14674 # Check to make sure the static flag actually works.
14675 #
14676 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14678 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14679 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14680   $as_echo_n "(cached) " >&6
14681 else
14682   lt_cv_prog_compiler_static_works=no
14683    save_LDFLAGS="$LDFLAGS"
14684    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14685    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14686    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14687      # The linker can only warn and ignore the option if not recognized
14688      # So say no if there are warnings
14689      if test -s conftest.err; then
14690        # Append any errors to the config.log.
14691        cat conftest.err 1>&5
14692        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14693        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14694        if diff conftest.exp conftest.er2 >/dev/null; then
14695          lt_cv_prog_compiler_static_works=yes
14696        fi
14697      else
14698        lt_cv_prog_compiler_static_works=yes
14699      fi
14700    fi
14701    $RM -r conftest*
14702    LDFLAGS="$save_LDFLAGS"
14703
14704 fi
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14706 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14707
14708 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14709     :
14710 else
14711     lt_prog_compiler_static=
14712 fi
14713
14714
14715
14716
14717
14718
14719
14720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14721 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14722 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14723   $as_echo_n "(cached) " >&6
14724 else
14725   lt_cv_prog_compiler_c_o=no
14726    $RM -r conftest 2>/dev/null
14727    mkdir conftest
14728    cd conftest
14729    mkdir out
14730    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14731
14732    lt_compiler_flag="-o out/conftest2.$ac_objext"
14733    # Insert the option either (1) after the last *FLAGS variable, or
14734    # (2) before a word containing "conftest.", or (3) at the end.
14735    # Note that $ac_compile itself does not contain backslashes and begins
14736    # with a dollar sign (not a hyphen), so the echo should work correctly.
14737    lt_compile=`echo "$ac_compile" | $SED \
14738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14740    -e 's:$: $lt_compiler_flag:'`
14741    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14742    (eval "$lt_compile" 2>out/conftest.err)
14743    ac_status=$?
14744    cat out/conftest.err >&5
14745    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14747    then
14748      # The compiler can only warn and ignore the option if not recognized
14749      # So say no if there are warnings
14750      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14751      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14752      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14753        lt_cv_prog_compiler_c_o=yes
14754      fi
14755    fi
14756    chmod u+w . 2>&5
14757    $RM conftest*
14758    # SGI C++ compiler will create directory out/ii_files/ for
14759    # template instantiation
14760    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14761    $RM out/* && rmdir out
14762    cd ..
14763    $RM -r conftest
14764    $RM conftest*
14765
14766 fi
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14768 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14769
14770
14771
14772
14773
14774
14775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14776 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14777 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14778   $as_echo_n "(cached) " >&6
14779 else
14780   lt_cv_prog_compiler_c_o=no
14781    $RM -r conftest 2>/dev/null
14782    mkdir conftest
14783    cd conftest
14784    mkdir out
14785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786
14787    lt_compiler_flag="-o out/conftest2.$ac_objext"
14788    # Insert the option either (1) after the last *FLAGS variable, or
14789    # (2) before a word containing "conftest.", or (3) at the end.
14790    # Note that $ac_compile itself does not contain backslashes and begins
14791    # with a dollar sign (not a hyphen), so the echo should work correctly.
14792    lt_compile=`echo "$ac_compile" | $SED \
14793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795    -e 's:$: $lt_compiler_flag:'`
14796    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14797    (eval "$lt_compile" 2>out/conftest.err)
14798    ac_status=$?
14799    cat out/conftest.err >&5
14800    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14802    then
14803      # The compiler can only warn and ignore the option if not recognized
14804      # So say no if there are warnings
14805      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14806      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14807      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14808        lt_cv_prog_compiler_c_o=yes
14809      fi
14810    fi
14811    chmod u+w . 2>&5
14812    $RM conftest*
14813    # SGI C++ compiler will create directory out/ii_files/ for
14814    # template instantiation
14815    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14816    $RM out/* && rmdir out
14817    cd ..
14818    $RM -r conftest
14819    $RM conftest*
14820
14821 fi
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14823 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14824
14825
14826
14827
14828 hard_links="nottested"
14829 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14830   # do not overwrite the value of need_locks provided by the user
14831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14832 $as_echo_n "checking if we can lock with hard links... " >&6; }
14833   hard_links=yes
14834   $RM conftest*
14835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14836   touch conftest.a
14837   ln conftest.a conftest.b 2>&5 || hard_links=no
14838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14840 $as_echo "$hard_links" >&6; }
14841   if test "$hard_links" = no; then
14842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14843 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14844     need_locks=warn
14845   fi
14846 else
14847   need_locks=no
14848 fi
14849
14850
14851
14852
14853
14854
14855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14856 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14857
14858   runpath_var=
14859   allow_undefined_flag=
14860   always_export_symbols=no
14861   archive_cmds=
14862   archive_expsym_cmds=
14863   compiler_needs_object=no
14864   enable_shared_with_static_runtimes=no
14865   export_dynamic_flag_spec=
14866   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14867   hardcode_automatic=no
14868   hardcode_direct=no
14869   hardcode_direct_absolute=no
14870   hardcode_libdir_flag_spec=
14871   hardcode_libdir_flag_spec_ld=
14872   hardcode_libdir_separator=
14873   hardcode_minus_L=no
14874   hardcode_shlibpath_var=unsupported
14875   inherit_rpath=no
14876   link_all_deplibs=unknown
14877   module_cmds=
14878   module_expsym_cmds=
14879   old_archive_from_new_cmds=
14880   old_archive_from_expsyms_cmds=
14881   thread_safe_flag_spec=
14882   whole_archive_flag_spec=
14883   # include_expsyms should be a list of space-separated symbols to be *always*
14884   # included in the symbol list
14885   include_expsyms=
14886   # exclude_expsyms can be an extended regexp of symbols to exclude
14887   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14888   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14889   # as well as any symbol that contains `d'.
14890   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14891   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14892   # platforms (ab)use it in PIC code, but their linkers get confused if
14893   # the symbol is explicitly referenced.  Since portable code cannot
14894   # rely on this symbol name, it's probably fine to never include it in
14895   # preloaded symbol tables.
14896   # Exclude shared library initialization/finalization symbols.
14897   extract_expsyms_cmds=
14898
14899   case $host_os in
14900   cygwin* | mingw* | pw32* | cegcc*)
14901     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14902     # When not using gcc, we currently assume that we are using
14903     # Microsoft Visual C++.
14904     if test "$GCC" != yes; then
14905       with_gnu_ld=no
14906     fi
14907     ;;
14908   interix*)
14909     # we just hope/assume this is gcc and not c89 (= MSVC++)
14910     with_gnu_ld=yes
14911     ;;
14912   openbsd*)
14913     with_gnu_ld=no
14914     ;;
14915   esac
14916
14917   ld_shlibs=yes
14918
14919   # On some targets, GNU ld is compatible enough with the native linker
14920   # that we're better off using the native interface for both.
14921   lt_use_gnu_ld_interface=no
14922   if test "$with_gnu_ld" = yes; then
14923     case $host_os in
14924       aix*)
14925         # The AIX port of GNU ld has always aspired to compatibility
14926         # with the native linker.  However, as the warning in the GNU ld
14927         # block says, versions before 2.19.5* couldn't really create working
14928         # shared libraries, regardless of the interface used.
14929         case `$LD -v 2>&1` in
14930           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14931           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14932           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14933           *)
14934             lt_use_gnu_ld_interface=yes
14935             ;;
14936         esac
14937         ;;
14938       *)
14939         lt_use_gnu_ld_interface=yes
14940         ;;
14941     esac
14942   fi
14943
14944   if test "$lt_use_gnu_ld_interface" = yes; then
14945     # If archive_cmds runs LD, not CC, wlarc should be empty
14946     wlarc='${wl}'
14947
14948     # Set some defaults for GNU ld with shared library support. These
14949     # are reset later if shared libraries are not supported. Putting them
14950     # here allows them to be overridden if necessary.
14951     runpath_var=LD_RUN_PATH
14952     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14953     export_dynamic_flag_spec='${wl}--export-dynamic'
14954     # ancient GNU ld didn't support --whole-archive et. al.
14955     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14956       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14957     else
14958       whole_archive_flag_spec=
14959     fi
14960     supports_anon_versioning=no
14961     case `$LD -v 2>&1` in
14962       *GNU\ gold*) supports_anon_versioning=yes ;;
14963       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14964       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14965       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14966       *\ 2.11.*) ;; # other 2.11 versions
14967       *) supports_anon_versioning=yes ;;
14968     esac
14969
14970     # See if GNU ld supports shared libraries.
14971     case $host_os in
14972     aix[3-9]*)
14973       # On AIX/PPC, the GNU linker is very broken
14974       if test "$host_cpu" != ia64; then
14975         ld_shlibs=no
14976         cat <<_LT_EOF 1>&2
14977
14978 *** Warning: the GNU linker, at least up to release 2.19, is reported
14979 *** to be unable to reliably create shared libraries on AIX.
14980 *** Therefore, libtool is disabling shared libraries support.  If you
14981 *** really care for shared libraries, you may want to install binutils
14982 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14983 *** You will then need to restart the configuration process.
14984
14985 _LT_EOF
14986       fi
14987       ;;
14988
14989     amigaos*)
14990       case $host_cpu in
14991       powerpc)
14992             # see comment about AmigaOS4 .so support
14993             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994             archive_expsym_cmds=''
14995         ;;
14996       m68k)
14997             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)'
14998             hardcode_libdir_flag_spec='-L$libdir'
14999             hardcode_minus_L=yes
15000         ;;
15001       esac
15002       ;;
15003
15004     beos*)
15005       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15006         allow_undefined_flag=unsupported
15007         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15008         # support --undefined.  This deserves some investigation.  FIXME
15009         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15010       else
15011         ld_shlibs=no
15012       fi
15013       ;;
15014
15015     cygwin* | mingw* | pw32* | cegcc*)
15016       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15017       # as there is no search path for DLLs.
15018       hardcode_libdir_flag_spec='-L$libdir'
15019       export_dynamic_flag_spec='${wl}--export-all-symbols'
15020       allow_undefined_flag=unsupported
15021       always_export_symbols=no
15022       enable_shared_with_static_runtimes=yes
15023       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15024
15025       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15026         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15027         # If the export-symbols file already is a .def file (1st line
15028         # is EXPORTS), use it as is; otherwise, prepend...
15029         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15030           cp $export_symbols $output_objdir/$soname.def;
15031         else
15032           echo EXPORTS > $output_objdir/$soname.def;
15033           cat $export_symbols >> $output_objdir/$soname.def;
15034         fi~
15035         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15036       else
15037         ld_shlibs=no
15038       fi
15039       ;;
15040
15041     haiku*)
15042       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043       link_all_deplibs=yes
15044       ;;
15045
15046     interix[3-9]*)
15047       hardcode_direct=no
15048       hardcode_shlibpath_var=no
15049       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15050       export_dynamic_flag_spec='${wl}-E'
15051       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15052       # Instead, shared libraries are loaded at an image base (0x10000000 by
15053       # default) and relocated if they conflict, which is a slow very memory
15054       # consuming and fragmenting process.  To avoid this, we pick a random,
15055       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15056       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15057       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15058       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'
15059       ;;
15060
15061     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15062       tmp_diet=no
15063       if test "$host_os" = linux-dietlibc; then
15064         case $cc_basename in
15065           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15066         esac
15067       fi
15068       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15069          && test "$tmp_diet" = no
15070       then
15071         tmp_addflag=
15072         tmp_sharedflag='-shared'
15073         case $cc_basename,$host_cpu in
15074         pgcc*)                          # Portland Group C compiler
15075           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'
15076           tmp_addflag=' $pic_flag'
15077           ;;
15078         pgf77* | pgf90* | pgf95* | pgfortran*)
15079                                         # Portland Group f77 and f90 compilers
15080           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'
15081           tmp_addflag=' $pic_flag -Mnomain' ;;
15082         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15083           tmp_addflag=' -i_dynamic' ;;
15084         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15085           tmp_addflag=' -i_dynamic -nofor_main' ;;
15086         ifc* | ifort*)                  # Intel Fortran compiler
15087           tmp_addflag=' -nofor_main' ;;
15088         lf95*)                          # Lahey Fortran 8.1
15089           whole_archive_flag_spec=
15090           tmp_sharedflag='--shared' ;;
15091         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15092           tmp_sharedflag='-qmkshrobj'
15093           tmp_addflag= ;;
15094         nvcc*)  # Cuda Compiler Driver 2.2
15095           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'
15096           compiler_needs_object=yes
15097           ;;
15098         esac
15099         case `$CC -V 2>&1 | sed 5q` in
15100         *Sun\ C*)                       # Sun C 5.9
15101           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'
15102           compiler_needs_object=yes
15103           tmp_sharedflag='-G' ;;
15104         *Sun\ F*)                       # Sun Fortran 8.3
15105           tmp_sharedflag='-G' ;;
15106         esac
15107         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108
15109         if test "x$supports_anon_versioning" = xyes; then
15110           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15111             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15112             echo "local: *; };" >> $output_objdir/$libname.ver~
15113             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15114         fi
15115
15116         case $cc_basename in
15117         xlf* | bgf* | bgxlf* | mpixlf*)
15118           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15119           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15120           hardcode_libdir_flag_spec=
15121           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15122           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15123           if test "x$supports_anon_versioning" = xyes; then
15124             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15125               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15126               echo "local: *; };" >> $output_objdir/$libname.ver~
15127               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15128           fi
15129           ;;
15130         esac
15131       else
15132         ld_shlibs=no
15133       fi
15134       ;;
15135
15136     netbsd*)
15137       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15138         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15139         wlarc=
15140       else
15141         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15143       fi
15144       ;;
15145
15146     solaris*)
15147       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15148         ld_shlibs=no
15149         cat <<_LT_EOF 1>&2
15150
15151 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15152 *** create shared libraries on Solaris systems.  Therefore, libtool
15153 *** is disabling shared libraries support.  We urge you to upgrade GNU
15154 *** binutils to release 2.9.1 or newer.  Another option is to modify
15155 *** your PATH or compiler configuration so that the native linker is
15156 *** used, and then restart.
15157
15158 _LT_EOF
15159       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15160         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15161         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15162       else
15163         ld_shlibs=no
15164       fi
15165       ;;
15166
15167     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15168       case `$LD -v 2>&1` in
15169         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15170         ld_shlibs=no
15171         cat <<_LT_EOF 1>&2
15172
15173 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15174 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15175 *** is disabling shared libraries support.  We urge you to upgrade GNU
15176 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15177 *** your PATH or compiler configuration so that the native linker is
15178 *** used, and then restart.
15179
15180 _LT_EOF
15181         ;;
15182         *)
15183           # For security reasons, it is highly recommended that you always
15184           # use absolute paths for naming shared libraries, and exclude the
15185           # DT_RUNPATH tag from executables and libraries.  But doing so
15186           # requires that you compile everything twice, which is a pain.
15187           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15188             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15189             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15191           else
15192             ld_shlibs=no
15193           fi
15194         ;;
15195       esac
15196       ;;
15197
15198     sunos4*)
15199       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15200       wlarc=
15201       hardcode_direct=yes
15202       hardcode_shlibpath_var=no
15203       ;;
15204
15205     *)
15206       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15207         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15209       else
15210         ld_shlibs=no
15211       fi
15212       ;;
15213     esac
15214
15215     if test "$ld_shlibs" = no; then
15216       runpath_var=
15217       hardcode_libdir_flag_spec=
15218       export_dynamic_flag_spec=
15219       whole_archive_flag_spec=
15220     fi
15221   else
15222     # PORTME fill in a description of your system's linker (not GNU ld)
15223     case $host_os in
15224     aix3*)
15225       allow_undefined_flag=unsupported
15226       always_export_symbols=yes
15227       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'
15228       # Note: this linker hardcodes the directories in LIBPATH if there
15229       # are no directories specified by -L.
15230       hardcode_minus_L=yes
15231       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15232         # Neither direct hardcoding nor static linking is supported with a
15233         # broken collect2.
15234         hardcode_direct=unsupported
15235       fi
15236       ;;
15237
15238     aix[4-9]*)
15239       if test "$host_cpu" = ia64; then
15240         # On IA64, the linker does run time linking by default, so we don't
15241         # have to do anything special.
15242         aix_use_runtimelinking=no
15243         exp_sym_flag='-Bexport'
15244         no_entry_flag=""
15245       else
15246         # If we're using GNU nm, then we don't want the "-C" option.
15247         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15248         # Also, AIX nm treats weak defined symbols like other global
15249         # defined symbols, whereas GNU nm marks them as "W".
15250         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15251           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'
15252         else
15253           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'
15254         fi
15255         aix_use_runtimelinking=no
15256
15257         # Test if we are trying to use run time linking or normal
15258         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15259         # need to do runtime linking.
15260         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15261           for ld_flag in $LDFLAGS; do
15262           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15263             aix_use_runtimelinking=yes
15264             break
15265           fi
15266           done
15267           ;;
15268         esac
15269
15270         exp_sym_flag='-bexport'
15271         no_entry_flag='-bnoentry'
15272       fi
15273
15274       # When large executables or shared objects are built, AIX ld can
15275       # have problems creating the table of contents.  If linking a library
15276       # or program results in "error TOC overflow" add -mminimal-toc to
15277       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15278       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15279
15280       archive_cmds=''
15281       hardcode_direct=yes
15282       hardcode_direct_absolute=yes
15283       hardcode_libdir_separator=':'
15284       link_all_deplibs=yes
15285       file_list_spec='${wl}-f,'
15286
15287       if test "$GCC" = yes; then
15288         case $host_os in aix4.[012]|aix4.[012].*)
15289         # We only want to do this on AIX 4.2 and lower, the check
15290         # below for broken collect2 doesn't work under 4.3+
15291           collect2name=`${CC} -print-prog-name=collect2`
15292           if test -f "$collect2name" &&
15293            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15294           then
15295           # We have reworked collect2
15296           :
15297           else
15298           # We have old collect2
15299           hardcode_direct=unsupported
15300           # It fails to find uninstalled libraries when the uninstalled
15301           # path is not listed in the libpath.  Setting hardcode_minus_L
15302           # to unsupported forces relinking
15303           hardcode_minus_L=yes
15304           hardcode_libdir_flag_spec='-L$libdir'
15305           hardcode_libdir_separator=
15306           fi
15307           ;;
15308         esac
15309         shared_flag='-shared'
15310         if test "$aix_use_runtimelinking" = yes; then
15311           shared_flag="$shared_flag "'${wl}-G'
15312         fi
15313       else
15314         # not using gcc
15315         if test "$host_cpu" = ia64; then
15316         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15317         # chokes on -Wl,-G. The following line is correct:
15318           shared_flag='-G'
15319         else
15320           if test "$aix_use_runtimelinking" = yes; then
15321             shared_flag='${wl}-G'
15322           else
15323             shared_flag='${wl}-bM:SRE'
15324           fi
15325         fi
15326       fi
15327
15328       export_dynamic_flag_spec='${wl}-bexpall'
15329       # It seems that -bexpall does not export symbols beginning with
15330       # underscore (_), so it is better to generate a list of symbols to export.
15331       always_export_symbols=yes
15332       if test "$aix_use_runtimelinking" = yes; then
15333         # Warning - without using the other runtime loading flags (-brtl),
15334         # -berok will link without error, but may produce a broken library.
15335         allow_undefined_flag='-berok'
15336         # Determine the default libpath from the value encoded in an
15337         # empty executable.
15338         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h.  */
15340
15341 int
15342 main ()
15343 {
15344
15345   ;
15346   return 0;
15347 }
15348 _ACEOF
15349 if ac_fn_c_try_link "$LINENO"; then :
15350
15351 lt_aix_libpath_sed='
15352     /Import File Strings/,/^$/ {
15353         /^0/ {
15354             s/^0  *\(.*\)$/\1/
15355             p
15356         }
15357     }'
15358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15359 # Check for a 64-bit object if we didn't find anything.
15360 if test -z "$aix_libpath"; then
15361   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15362 fi
15363 fi
15364 rm -f core conftest.err conftest.$ac_objext \
15365     conftest$ac_exeext conftest.$ac_ext
15366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15367
15368         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15369         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"
15370       else
15371         if test "$host_cpu" = ia64; then
15372           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15373           allow_undefined_flag="-z nodefs"
15374           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"
15375         else
15376          # Determine the default libpath from the value encoded in an
15377          # empty executable.
15378          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h.  */
15380
15381 int
15382 main ()
15383 {
15384
15385   ;
15386   return 0;
15387 }
15388 _ACEOF
15389 if ac_fn_c_try_link "$LINENO"; then :
15390
15391 lt_aix_libpath_sed='
15392     /Import File Strings/,/^$/ {
15393         /^0/ {
15394             s/^0  *\(.*\)$/\1/
15395             p
15396         }
15397     }'
15398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15399 # Check for a 64-bit object if we didn't find anything.
15400 if test -z "$aix_libpath"; then
15401   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15402 fi
15403 fi
15404 rm -f core conftest.err conftest.$ac_objext \
15405     conftest$ac_exeext conftest.$ac_ext
15406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15407
15408          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15409           # Warning - without using the other run time loading flags,
15410           # -berok will link without error, but may produce a broken library.
15411           no_undefined_flag=' ${wl}-bernotok'
15412           allow_undefined_flag=' ${wl}-berok'
15413           if test "$with_gnu_ld" = yes; then
15414             # We only use this code for GNU lds that support --whole-archive.
15415             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15416           else
15417             # Exported symbols can be pulled into shared objects from archives
15418             whole_archive_flag_spec='$convenience'
15419           fi
15420           archive_cmds_need_lc=yes
15421           # This is similar to how AIX traditionally builds its shared libraries.
15422           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'
15423         fi
15424       fi
15425       ;;
15426
15427     amigaos*)
15428       case $host_cpu in
15429       powerpc)
15430             # see comment about AmigaOS4 .so support
15431             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432             archive_expsym_cmds=''
15433         ;;
15434       m68k)
15435             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)'
15436             hardcode_libdir_flag_spec='-L$libdir'
15437             hardcode_minus_L=yes
15438         ;;
15439       esac
15440       ;;
15441
15442     bsdi[45]*)
15443       export_dynamic_flag_spec=-rdynamic
15444       ;;
15445
15446     cygwin* | mingw* | pw32* | cegcc*)
15447       # When not using gcc, we currently assume that we are using
15448       # Microsoft Visual C++.
15449       # hardcode_libdir_flag_spec is actually meaningless, as there is
15450       # no search path for DLLs.
15451       hardcode_libdir_flag_spec=' '
15452       allow_undefined_flag=unsupported
15453       # Tell ltmain to make .lib files, not .a files.
15454       libext=lib
15455       # Tell ltmain to make .dll files, not .so files.
15456       shrext_cmds=".dll"
15457       # FIXME: Setting linknames here is a bad hack.
15458       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15459       # The linker will automatically build a .lib file if we build a DLL.
15460       old_archive_from_new_cmds='true'
15461       # FIXME: Should let the user specify the lib program.
15462       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15463       fix_srcfile_path='`cygpath -w "$srcfile"`'
15464       enable_shared_with_static_runtimes=yes
15465       ;;
15466
15467     darwin* | rhapsody*)
15468
15469
15470   archive_cmds_need_lc=no
15471   hardcode_direct=no
15472   hardcode_automatic=yes
15473   hardcode_shlibpath_var=unsupported
15474   if test "$lt_cv_ld_force_load" = "yes"; then
15475     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\"`'
15476   else
15477     whole_archive_flag_spec=''
15478   fi
15479   link_all_deplibs=yes
15480   allow_undefined_flag="$_lt_dar_allow_undefined"
15481   case $cc_basename in
15482      ifort*) _lt_dar_can_shared=yes ;;
15483      *) _lt_dar_can_shared=$GCC ;;
15484   esac
15485   if test "$_lt_dar_can_shared" = "yes"; then
15486     output_verbose_link_cmd=func_echo_all
15487     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15488     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15489     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}"
15490     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}"
15491
15492   else
15493   ld_shlibs=no
15494   fi
15495
15496       ;;
15497
15498     dgux*)
15499       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500       hardcode_libdir_flag_spec='-L$libdir'
15501       hardcode_shlibpath_var=no
15502       ;;
15503
15504     freebsd1*)
15505       ld_shlibs=no
15506       ;;
15507
15508     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15509     # support.  Future versions do this automatically, but an explicit c++rt0.o
15510     # does not break anything, and helps significantly (at the cost of a little
15511     # extra space).
15512     freebsd2.2*)
15513       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15514       hardcode_libdir_flag_spec='-R$libdir'
15515       hardcode_direct=yes
15516       hardcode_shlibpath_var=no
15517       ;;
15518
15519     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15520     freebsd2*)
15521       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15522       hardcode_direct=yes
15523       hardcode_minus_L=yes
15524       hardcode_shlibpath_var=no
15525       ;;
15526
15527     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15528     freebsd* | dragonfly*)
15529       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15530       hardcode_libdir_flag_spec='-R$libdir'
15531       hardcode_direct=yes
15532       hardcode_shlibpath_var=no
15533       ;;
15534
15535     hpux9*)
15536       if test "$GCC" = yes; then
15537         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'
15538       else
15539         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'
15540       fi
15541       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15542       hardcode_libdir_separator=:
15543       hardcode_direct=yes
15544
15545       # hardcode_minus_L: Not really in the search PATH,
15546       # but as the default location of the library.
15547       hardcode_minus_L=yes
15548       export_dynamic_flag_spec='${wl}-E'
15549       ;;
15550
15551     hpux10*)
15552       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15553         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15554       else
15555         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15556       fi
15557       if test "$with_gnu_ld" = no; then
15558         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15559         hardcode_libdir_flag_spec_ld='+b $libdir'
15560         hardcode_libdir_separator=:
15561         hardcode_direct=yes
15562         hardcode_direct_absolute=yes
15563         export_dynamic_flag_spec='${wl}-E'
15564         # hardcode_minus_L: Not really in the search PATH,
15565         # but as the default location of the library.
15566         hardcode_minus_L=yes
15567       fi
15568       ;;
15569
15570     hpux11*)
15571       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15572         case $host_cpu in
15573         hppa*64*)
15574           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15575           ;;
15576         ia64*)
15577           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15578           ;;
15579         *)
15580           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15581           ;;
15582         esac
15583       else
15584         case $host_cpu in
15585         hppa*64*)
15586           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15587           ;;
15588         ia64*)
15589           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15590           ;;
15591         *)
15592
15593           # Older versions of the 11.00 compiler do not understand -b yet
15594           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15595           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15596 $as_echo_n "checking if $CC understands -b... " >&6; }
15597 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15598   $as_echo_n "(cached) " >&6
15599 else
15600   lt_cv_prog_compiler__b=no
15601    save_LDFLAGS="$LDFLAGS"
15602    LDFLAGS="$LDFLAGS -b"
15603    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15604    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15605      # The linker can only warn and ignore the option if not recognized
15606      # So say no if there are warnings
15607      if test -s conftest.err; then
15608        # Append any errors to the config.log.
15609        cat conftest.err 1>&5
15610        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15611        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15612        if diff conftest.exp conftest.er2 >/dev/null; then
15613          lt_cv_prog_compiler__b=yes
15614        fi
15615      else
15616        lt_cv_prog_compiler__b=yes
15617      fi
15618    fi
15619    $RM -r conftest*
15620    LDFLAGS="$save_LDFLAGS"
15621
15622 fi
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15624 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15625
15626 if test x"$lt_cv_prog_compiler__b" = xyes; then
15627     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15628 else
15629     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15630 fi
15631
15632           ;;
15633         esac
15634       fi
15635       if test "$with_gnu_ld" = no; then
15636         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15637         hardcode_libdir_separator=:
15638
15639         case $host_cpu in
15640         hppa*64*|ia64*)
15641           hardcode_direct=no
15642           hardcode_shlibpath_var=no
15643           ;;
15644         *)
15645           hardcode_direct=yes
15646           hardcode_direct_absolute=yes
15647           export_dynamic_flag_spec='${wl}-E'
15648
15649           # hardcode_minus_L: Not really in the search PATH,
15650           # but as the default location of the library.
15651           hardcode_minus_L=yes
15652           ;;
15653         esac
15654       fi
15655       ;;
15656
15657     irix5* | irix6* | nonstopux*)
15658       if test "$GCC" = yes; then
15659         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'
15660         # Try to use the -exported_symbol ld option, if it does not
15661         # work, assume that -exports_file does not work either and
15662         # implicitly export all symbols.
15663         save_LDFLAGS="$LDFLAGS"
15664         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15665         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h.  */
15667 int foo(void) {}
15668 _ACEOF
15669 if ac_fn_c_try_link "$LINENO"; then :
15670   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'
15671
15672 fi
15673 rm -f core conftest.err conftest.$ac_objext \
15674     conftest$ac_exeext conftest.$ac_ext
15675         LDFLAGS="$save_LDFLAGS"
15676       else
15677         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'
15678         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'
15679       fi
15680       archive_cmds_need_lc='no'
15681       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15682       hardcode_libdir_separator=:
15683       inherit_rpath=yes
15684       link_all_deplibs=yes
15685       ;;
15686
15687     netbsd*)
15688       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15689         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15690       else
15691         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15692       fi
15693       hardcode_libdir_flag_spec='-R$libdir'
15694       hardcode_direct=yes
15695       hardcode_shlibpath_var=no
15696       ;;
15697
15698     newsos6)
15699       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700       hardcode_direct=yes
15701       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15702       hardcode_libdir_separator=:
15703       hardcode_shlibpath_var=no
15704       ;;
15705
15706     *nto* | *qnx*)
15707       ;;
15708
15709     openbsd*)
15710       if test -f /usr/libexec/ld.so; then
15711         hardcode_direct=yes
15712         hardcode_shlibpath_var=no
15713         hardcode_direct_absolute=yes
15714         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15715           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15716           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15717           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15718           export_dynamic_flag_spec='${wl}-E'
15719         else
15720           case $host_os in
15721            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15722              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723              hardcode_libdir_flag_spec='-R$libdir'
15724              ;;
15725            *)
15726              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15727              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15728              ;;
15729           esac
15730         fi
15731       else
15732         ld_shlibs=no
15733       fi
15734       ;;
15735
15736     os2*)
15737       hardcode_libdir_flag_spec='-L$libdir'
15738       hardcode_minus_L=yes
15739       allow_undefined_flag=unsupported
15740       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'
15741       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15742       ;;
15743
15744     osf3*)
15745       if test "$GCC" = yes; then
15746         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15747         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'
15748       else
15749         allow_undefined_flag=' -expect_unresolved \*'
15750         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'
15751       fi
15752       archive_cmds_need_lc='no'
15753       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15754       hardcode_libdir_separator=:
15755       ;;
15756
15757     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15758       if test "$GCC" = yes; then
15759         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15760         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'
15761         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15762       else
15763         allow_undefined_flag=' -expect_unresolved \*'
15764         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'
15765         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~
15766         $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'
15767
15768         # Both c and cxx compiler support -rpath directly
15769         hardcode_libdir_flag_spec='-rpath $libdir'
15770       fi
15771       archive_cmds_need_lc='no'
15772       hardcode_libdir_separator=:
15773       ;;
15774
15775     solaris*)
15776       no_undefined_flag=' -z defs'
15777       if test "$GCC" = yes; then
15778         wlarc='${wl}'
15779         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15780         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15781           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15782       else
15783         case `$CC -V 2>&1` in
15784         *"Compilers 5.0"*)
15785           wlarc=''
15786           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15787           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15788           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15789           ;;
15790         *)
15791           wlarc='${wl}'
15792           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15793           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15794           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15795           ;;
15796         esac
15797       fi
15798       hardcode_libdir_flag_spec='-R$libdir'
15799       hardcode_shlibpath_var=no
15800       case $host_os in
15801       solaris2.[0-5] | solaris2.[0-5].*) ;;
15802       *)
15803         # The compiler driver will combine and reorder linker options,
15804         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15805         # but is careful enough not to reorder.
15806         # Supported since Solaris 2.6 (maybe 2.5.1?)
15807         if test "$GCC" = yes; then
15808           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15809         else
15810           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15811         fi
15812         ;;
15813       esac
15814       link_all_deplibs=yes
15815       ;;
15816
15817     sunos4*)
15818       if test "x$host_vendor" = xsequent; then
15819         # Use $CC to link under sequent, because it throws in some extra .o
15820         # files that make .init and .fini sections work.
15821         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15822       else
15823         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15824       fi
15825       hardcode_libdir_flag_spec='-L$libdir'
15826       hardcode_direct=yes
15827       hardcode_minus_L=yes
15828       hardcode_shlibpath_var=no
15829       ;;
15830
15831     sysv4)
15832       case $host_vendor in
15833         sni)
15834           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835           hardcode_direct=yes # is this really true???
15836         ;;
15837         siemens)
15838           ## LD is ld it makes a PLAMLIB
15839           ## CC just makes a GrossModule.
15840           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15841           reload_cmds='$CC -r -o $output$reload_objs'
15842           hardcode_direct=no
15843         ;;
15844         motorola)
15845           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15847         ;;
15848       esac
15849       runpath_var='LD_RUN_PATH'
15850       hardcode_shlibpath_var=no
15851       ;;
15852
15853     sysv4.3*)
15854       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855       hardcode_shlibpath_var=no
15856       export_dynamic_flag_spec='-Bexport'
15857       ;;
15858
15859     sysv4*MP*)
15860       if test -d /usr/nec; then
15861         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15862         hardcode_shlibpath_var=no
15863         runpath_var=LD_RUN_PATH
15864         hardcode_runpath_var=yes
15865         ld_shlibs=yes
15866       fi
15867       ;;
15868
15869     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15870       no_undefined_flag='${wl}-z,text'
15871       archive_cmds_need_lc=no
15872       hardcode_shlibpath_var=no
15873       runpath_var='LD_RUN_PATH'
15874
15875       if test "$GCC" = yes; then
15876         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15878       else
15879         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15880         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15881       fi
15882       ;;
15883
15884     sysv5* | sco3.2v5* | sco5v6*)
15885       # Note: We can NOT use -z defs as we might desire, because we do not
15886       # link with -lc, and that would cause any symbols used from libc to
15887       # always be unresolved, which means just about no library would
15888       # ever link correctly.  If we're not using GNU ld we use -z text
15889       # though, which does catch some bad symbols but isn't as heavy-handed
15890       # as -z defs.
15891       no_undefined_flag='${wl}-z,text'
15892       allow_undefined_flag='${wl}-z,nodefs'
15893       archive_cmds_need_lc=no
15894       hardcode_shlibpath_var=no
15895       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15896       hardcode_libdir_separator=':'
15897       link_all_deplibs=yes
15898       export_dynamic_flag_spec='${wl}-Bexport'
15899       runpath_var='LD_RUN_PATH'
15900
15901       if test "$GCC" = yes; then
15902         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15904       else
15905         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15906         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15907       fi
15908       ;;
15909
15910     uts4*)
15911       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912       hardcode_libdir_flag_spec='-L$libdir'
15913       hardcode_shlibpath_var=no
15914       ;;
15915
15916     *)
15917       ld_shlibs=no
15918       ;;
15919     esac
15920
15921     if test x$host_vendor = xsni; then
15922       case $host in
15923       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15924         export_dynamic_flag_spec='${wl}-Blargedynsym'
15925         ;;
15926       esac
15927     fi
15928   fi
15929
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15931 $as_echo "$ld_shlibs" >&6; }
15932 test "$ld_shlibs" = no && can_build_shared=no
15933
15934 with_gnu_ld=$with_gnu_ld
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950 #
15951 # Do we need to explicitly link libc?
15952 #
15953 case "x$archive_cmds_need_lc" in
15954 x|xyes)
15955   # Assume -lc should be added
15956   archive_cmds_need_lc=yes
15957
15958   if test "$enable_shared" = yes && test "$GCC" = yes; then
15959     case $archive_cmds in
15960     *'~'*)
15961       # FIXME: we may have to deal with multi-command sequences.
15962       ;;
15963     '$CC '*)
15964       # Test whether the compiler implicitly links with -lc since on some
15965       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15966       # to ld, don't add -lc before -lgcc.
15967       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15968 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15969 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15970   $as_echo_n "(cached) " >&6
15971 else
15972   $RM conftest*
15973         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15974
15975         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15976   (eval $ac_compile) 2>&5
15977   ac_status=$?
15978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15979   test $ac_status = 0; } 2>conftest.err; then
15980           soname=conftest
15981           lib=conftest
15982           libobjs=conftest.$ac_objext
15983           deplibs=
15984           wl=$lt_prog_compiler_wl
15985           pic_flag=$lt_prog_compiler_pic
15986           compiler_flags=-v
15987           linker_flags=-v
15988           verstring=
15989           output_objdir=.
15990           libname=conftest
15991           lt_save_allow_undefined_flag=$allow_undefined_flag
15992           allow_undefined_flag=
15993           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15994   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15995   ac_status=$?
15996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997   test $ac_status = 0; }
15998           then
15999             lt_cv_archive_cmds_need_lc=no
16000           else
16001             lt_cv_archive_cmds_need_lc=yes
16002           fi
16003           allow_undefined_flag=$lt_save_allow_undefined_flag
16004         else
16005           cat conftest.err 1>&5
16006         fi
16007         $RM conftest*
16008
16009 fi
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16011 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16012       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16013       ;;
16014     esac
16015   fi
16016   ;;
16017 esac
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16176 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16177
16178 if test "$GCC" = yes; then
16179   case $host_os in
16180     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16181     *) lt_awk_arg="/^libraries:/" ;;
16182   esac
16183   case $host_os in
16184     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16185     *) lt_sed_strip_eq="s,=/,/,g" ;;
16186   esac
16187   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16188   case $lt_search_path_spec in
16189   *\;*)
16190     # if the path contains ";" then we assume it to be the separator
16191     # otherwise default to the standard path separator (i.e. ":") - it is
16192     # assumed that no part of a normal pathname contains ";" but that should
16193     # okay in the real world where ";" in dirpaths is itself problematic.
16194     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16195     ;;
16196   *)
16197     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16198     ;;
16199   esac
16200   # Ok, now we have the path, separated by spaces, we can step through it
16201   # and add multilib dir if necessary.
16202   lt_tmp_lt_search_path_spec=
16203   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16204   for lt_sys_path in $lt_search_path_spec; do
16205     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16206       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16207     else
16208       test -d "$lt_sys_path" && \
16209         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16210     fi
16211   done
16212   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16213 BEGIN {RS=" "; FS="/|\n";} {
16214   lt_foo="";
16215   lt_count=0;
16216   for (lt_i = NF; lt_i > 0; lt_i--) {
16217     if ($lt_i != "" && $lt_i != ".") {
16218       if ($lt_i == "..") {
16219         lt_count++;
16220       } else {
16221         if (lt_count == 0) {
16222           lt_foo="/" $lt_i lt_foo;
16223         } else {
16224           lt_count--;
16225         }
16226       }
16227     }
16228   }
16229   if (lt_foo != "") { lt_freq[lt_foo]++; }
16230   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16231 }'`
16232   # AWK program above erroneously prepends '/' to C:/dos/paths
16233   # for these hosts.
16234   case $host_os in
16235     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16236       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16237   esac
16238   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16239 else
16240   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16241 fi
16242 library_names_spec=
16243 libname_spec='lib$name'
16244 soname_spec=
16245 shrext_cmds=".so"
16246 postinstall_cmds=
16247 postuninstall_cmds=
16248 finish_cmds=
16249 finish_eval=
16250 shlibpath_var=
16251 shlibpath_overrides_runpath=unknown
16252 version_type=none
16253 dynamic_linker="$host_os ld.so"
16254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16255 need_lib_prefix=unknown
16256 hardcode_into_libs=no
16257
16258 # when you set need_version to no, make sure it does not cause -set_version
16259 # flags to be left without arguments
16260 need_version=unknown
16261
16262 case $host_os in
16263 aix3*)
16264   version_type=linux
16265   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16266   shlibpath_var=LIBPATH
16267
16268   # AIX 3 has no versioning support, so we append a major version to the name.
16269   soname_spec='${libname}${release}${shared_ext}$major'
16270   ;;
16271
16272 aix[4-9]*)
16273   version_type=linux
16274   need_lib_prefix=no
16275   need_version=no
16276   hardcode_into_libs=yes
16277   if test "$host_cpu" = ia64; then
16278     # AIX 5 supports IA64
16279     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16280     shlibpath_var=LD_LIBRARY_PATH
16281   else
16282     # With GCC up to 2.95.x, collect2 would create an import file
16283     # for dependence libraries.  The import file would start with
16284     # the line `#! .'.  This would cause the generated library to
16285     # depend on `.', always an invalid library.  This was fixed in
16286     # development snapshots of GCC prior to 3.0.
16287     case $host_os in
16288       aix4 | aix4.[01] | aix4.[01].*)
16289       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16290            echo ' yes '
16291            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16292         :
16293       else
16294         can_build_shared=no
16295       fi
16296       ;;
16297     esac
16298     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16299     # soname into executable. Probably we can add versioning support to
16300     # collect2, so additional links can be useful in future.
16301     if test "$aix_use_runtimelinking" = yes; then
16302       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16303       # instead of lib<name>.a to let people know that these are not
16304       # typical AIX shared libraries.
16305       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306     else
16307       # We preserve .a as extension for shared libraries through AIX4.2
16308       # and later when we are not doing run time linking.
16309       library_names_spec='${libname}${release}.a $libname.a'
16310       soname_spec='${libname}${release}${shared_ext}$major'
16311     fi
16312     shlibpath_var=LIBPATH
16313   fi
16314   ;;
16315
16316 amigaos*)
16317   case $host_cpu in
16318   powerpc)
16319     # Since July 2007 AmigaOS4 officially supports .so libraries.
16320     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322     ;;
16323   m68k)
16324     library_names_spec='$libname.ixlibrary $libname.a'
16325     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16326     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'
16327     ;;
16328   esac
16329   ;;
16330
16331 beos*)
16332   library_names_spec='${libname}${shared_ext}'
16333   dynamic_linker="$host_os ld.so"
16334   shlibpath_var=LIBRARY_PATH
16335   ;;
16336
16337 bsdi[45]*)
16338   version_type=linux
16339   need_version=no
16340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341   soname_spec='${libname}${release}${shared_ext}$major'
16342   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16343   shlibpath_var=LD_LIBRARY_PATH
16344   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16345   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16346   # the default ld.so.conf also contains /usr/contrib/lib and
16347   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16348   # libtool to hard-code these into programs
16349   ;;
16350
16351 cygwin* | mingw* | pw32* | cegcc*)
16352   version_type=windows
16353   shrext_cmds=".dll"
16354   need_version=no
16355   need_lib_prefix=no
16356
16357   case $GCC,$host_os in
16358   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16359     library_names_spec='$libname.dll.a'
16360     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16361     postinstall_cmds='base_file=`basename \${file}`~
16362       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16363       dldir=$destdir/`dirname \$dlpath`~
16364       test -d \$dldir || mkdir -p \$dldir~
16365       $install_prog $dir/$dlname \$dldir/$dlname~
16366       chmod a+x \$dldir/$dlname~
16367       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16368         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16369       fi'
16370     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16371       dlpath=$dir/\$dldll~
16372        $RM \$dlpath'
16373     shlibpath_overrides_runpath=yes
16374
16375     case $host_os in
16376     cygwin*)
16377       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16378       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16379
16380       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16381       ;;
16382     mingw* | cegcc*)
16383       # MinGW DLLs use traditional 'lib' prefix
16384       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16385       ;;
16386     pw32*)
16387       # pw32 DLLs use 'pw' prefix rather than 'lib'
16388       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16389       ;;
16390     esac
16391     ;;
16392
16393   *)
16394     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16395     ;;
16396   esac
16397   dynamic_linker='Win32 ld.exe'
16398   # FIXME: first we should search . and the directory the executable is in
16399   shlibpath_var=PATH
16400   ;;
16401
16402 darwin* | rhapsody*)
16403   dynamic_linker="$host_os dyld"
16404   version_type=darwin
16405   need_lib_prefix=no
16406   need_version=no
16407   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16408   soname_spec='${libname}${release}${major}$shared_ext'
16409   shlibpath_overrides_runpath=yes
16410   shlibpath_var=DYLD_LIBRARY_PATH
16411   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16412
16413   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16414   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16415   ;;
16416
16417 dgux*)
16418   version_type=linux
16419   need_lib_prefix=no
16420   need_version=no
16421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16422   soname_spec='${libname}${release}${shared_ext}$major'
16423   shlibpath_var=LD_LIBRARY_PATH
16424   ;;
16425
16426 freebsd1*)
16427   dynamic_linker=no
16428   ;;
16429
16430 freebsd* | dragonfly*)
16431   # DragonFly does not have aout.  When/if they implement a new
16432   # versioning mechanism, adjust this.
16433   if test -x /usr/bin/objformat; then
16434     objformat=`/usr/bin/objformat`
16435   else
16436     case $host_os in
16437     freebsd[123]*) objformat=aout ;;
16438     *) objformat=elf ;;
16439     esac
16440   fi
16441   version_type=freebsd-$objformat
16442   case $version_type in
16443     freebsd-elf*)
16444       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16445       need_version=no
16446       need_lib_prefix=no
16447       ;;
16448     freebsd-*)
16449       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16450       need_version=yes
16451       ;;
16452   esac
16453   shlibpath_var=LD_LIBRARY_PATH
16454   case $host_os in
16455   freebsd2*)
16456     shlibpath_overrides_runpath=yes
16457     ;;
16458   freebsd3.[01]* | freebsdelf3.[01]*)
16459     shlibpath_overrides_runpath=yes
16460     hardcode_into_libs=yes
16461     ;;
16462   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16463   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16464     shlibpath_overrides_runpath=no
16465     hardcode_into_libs=yes
16466     ;;
16467   *) # from 4.6 on, and DragonFly
16468     shlibpath_overrides_runpath=yes
16469     hardcode_into_libs=yes
16470     ;;
16471   esac
16472   ;;
16473
16474 gnu*)
16475   version_type=linux
16476   need_lib_prefix=no
16477   need_version=no
16478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16479   soname_spec='${libname}${release}${shared_ext}$major'
16480   shlibpath_var=LD_LIBRARY_PATH
16481   hardcode_into_libs=yes
16482   ;;
16483
16484 haiku*)
16485   version_type=linux
16486   need_lib_prefix=no
16487   need_version=no
16488   dynamic_linker="$host_os runtime_loader"
16489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16490   soname_spec='${libname}${release}${shared_ext}$major'
16491   shlibpath_var=LIBRARY_PATH
16492   shlibpath_overrides_runpath=yes
16493   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16494   hardcode_into_libs=yes
16495   ;;
16496
16497 hpux9* | hpux10* | hpux11*)
16498   # Give a soname corresponding to the major version so that dld.sl refuses to
16499   # link against other versions.
16500   version_type=sunos
16501   need_lib_prefix=no
16502   need_version=no
16503   case $host_cpu in
16504   ia64*)
16505     shrext_cmds='.so'
16506     hardcode_into_libs=yes
16507     dynamic_linker="$host_os dld.so"
16508     shlibpath_var=LD_LIBRARY_PATH
16509     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16511     soname_spec='${libname}${release}${shared_ext}$major'
16512     if test "X$HPUX_IA64_MODE" = X32; then
16513       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16514     else
16515       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16516     fi
16517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16518     ;;
16519   hppa*64*)
16520     shrext_cmds='.sl'
16521     hardcode_into_libs=yes
16522     dynamic_linker="$host_os dld.sl"
16523     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16524     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16526     soname_spec='${libname}${release}${shared_ext}$major'
16527     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16528     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16529     ;;
16530   *)
16531     shrext_cmds='.sl'
16532     dynamic_linker="$host_os dld.sl"
16533     shlibpath_var=SHLIB_PATH
16534     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536     soname_spec='${libname}${release}${shared_ext}$major'
16537     ;;
16538   esac
16539   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16540   postinstall_cmds='chmod 555 $lib'
16541   # or fails outright, so override atomically:
16542   install_override_mode=555
16543   ;;
16544
16545 interix[3-9]*)
16546   version_type=linux
16547   need_lib_prefix=no
16548   need_version=no
16549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16550   soname_spec='${libname}${release}${shared_ext}$major'
16551   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16552   shlibpath_var=LD_LIBRARY_PATH
16553   shlibpath_overrides_runpath=no
16554   hardcode_into_libs=yes
16555   ;;
16556
16557 irix5* | irix6* | nonstopux*)
16558   case $host_os in
16559     nonstopux*) version_type=nonstopux ;;
16560     *)
16561         if test "$lt_cv_prog_gnu_ld" = yes; then
16562                 version_type=linux
16563         else
16564                 version_type=irix
16565         fi ;;
16566   esac
16567   need_lib_prefix=no
16568   need_version=no
16569   soname_spec='${libname}${release}${shared_ext}$major'
16570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16571   case $host_os in
16572   irix5* | nonstopux*)
16573     libsuff= shlibsuff=
16574     ;;
16575   *)
16576     case $LD in # libtool.m4 will add one of these switches to LD
16577     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16578       libsuff= shlibsuff= libmagic=32-bit;;
16579     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16580       libsuff=32 shlibsuff=N32 libmagic=N32;;
16581     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16582       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16583     *) libsuff= shlibsuff= libmagic=never-match;;
16584     esac
16585     ;;
16586   esac
16587   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16588   shlibpath_overrides_runpath=no
16589   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16590   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16591   hardcode_into_libs=yes
16592   ;;
16593
16594 # No shared lib support for Linux oldld, aout, or coff.
16595 linux*oldld* | linux*aout* | linux*coff*)
16596   dynamic_linker=no
16597   ;;
16598
16599 # This must be Linux ELF.
16600 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16601   version_type=linux
16602   need_lib_prefix=no
16603   need_version=no
16604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605   soname_spec='${libname}${release}${shared_ext}$major'
16606   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16607   shlibpath_var=LD_LIBRARY_PATH
16608   shlibpath_overrides_runpath=no
16609
16610   # Some binutils ld are patched to set DT_RUNPATH
16611   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16612   $as_echo_n "(cached) " >&6
16613 else
16614   lt_cv_shlibpath_overrides_runpath=no
16615     save_LDFLAGS=$LDFLAGS
16616     save_libdir=$libdir
16617     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16618          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16619     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h.  */
16621
16622 int
16623 main ()
16624 {
16625
16626   ;
16627   return 0;
16628 }
16629 _ACEOF
16630 if ac_fn_c_try_link "$LINENO"; then :
16631   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16632   lt_cv_shlibpath_overrides_runpath=yes
16633 fi
16634 fi
16635 rm -f core conftest.err conftest.$ac_objext \
16636     conftest$ac_exeext conftest.$ac_ext
16637     LDFLAGS=$save_LDFLAGS
16638     libdir=$save_libdir
16639
16640 fi
16641
16642   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16643
16644   # This implies no fast_install, which is unacceptable.
16645   # Some rework will be needed to allow for fast_install
16646   # before this can be enabled.
16647   hardcode_into_libs=yes
16648
16649   # Append ld.so.conf contents to the search path
16650   if test -f /etc/ld.so.conf; then
16651     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' ' '`
16652     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16653   fi
16654
16655   # We used to test for /lib/ld.so.1 and disable shared libraries on
16656   # powerpc, because MkLinux only supported shared libraries with the
16657   # GNU dynamic linker.  Since this was broken with cross compilers,
16658   # most powerpc-linux boxes support dynamic linking these days and
16659   # people can always --disable-shared, the test was removed, and we
16660   # assume the GNU/Linux dynamic linker is in use.
16661   dynamic_linker='GNU/Linux ld.so'
16662   ;;
16663
16664 netbsd*)
16665   version_type=sunos
16666   need_lib_prefix=no
16667   need_version=no
16668   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16670     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16671     dynamic_linker='NetBSD (a.out) ld.so'
16672   else
16673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674     soname_spec='${libname}${release}${shared_ext}$major'
16675     dynamic_linker='NetBSD ld.elf_so'
16676   fi
16677   shlibpath_var=LD_LIBRARY_PATH
16678   shlibpath_overrides_runpath=yes
16679   hardcode_into_libs=yes
16680   ;;
16681
16682 newsos6)
16683   version_type=linux
16684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685   shlibpath_var=LD_LIBRARY_PATH
16686   shlibpath_overrides_runpath=yes
16687   ;;
16688
16689 *nto* | *qnx*)
16690   version_type=qnx
16691   need_lib_prefix=no
16692   need_version=no
16693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694   soname_spec='${libname}${release}${shared_ext}$major'
16695   shlibpath_var=LD_LIBRARY_PATH
16696   shlibpath_overrides_runpath=no
16697   hardcode_into_libs=yes
16698   dynamic_linker='ldqnx.so'
16699   ;;
16700
16701 openbsd*)
16702   version_type=sunos
16703   sys_lib_dlsearch_path_spec="/usr/lib"
16704   need_lib_prefix=no
16705   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16706   case $host_os in
16707     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16708     *)                          need_version=no  ;;
16709   esac
16710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16711   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16712   shlibpath_var=LD_LIBRARY_PATH
16713   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16714     case $host_os in
16715       openbsd2.[89] | openbsd2.[89].*)
16716         shlibpath_overrides_runpath=no
16717         ;;
16718       *)
16719         shlibpath_overrides_runpath=yes
16720         ;;
16721       esac
16722   else
16723     shlibpath_overrides_runpath=yes
16724   fi
16725   ;;
16726
16727 os2*)
16728   libname_spec='$name'
16729   shrext_cmds=".dll"
16730   need_lib_prefix=no
16731   library_names_spec='$libname${shared_ext} $libname.a'
16732   dynamic_linker='OS/2 ld.exe'
16733   shlibpath_var=LIBPATH
16734   ;;
16735
16736 osf3* | osf4* | osf5*)
16737   version_type=osf
16738   need_lib_prefix=no
16739   need_version=no
16740   soname_spec='${libname}${release}${shared_ext}$major'
16741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742   shlibpath_var=LD_LIBRARY_PATH
16743   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16744   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16745   ;;
16746
16747 rdos*)
16748   dynamic_linker=no
16749   ;;
16750
16751 solaris*)
16752   version_type=linux
16753   need_lib_prefix=no
16754   need_version=no
16755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756   soname_spec='${libname}${release}${shared_ext}$major'
16757   shlibpath_var=LD_LIBRARY_PATH
16758   shlibpath_overrides_runpath=yes
16759   hardcode_into_libs=yes
16760   # ldd complains unless libraries are executable
16761   postinstall_cmds='chmod +x $lib'
16762   ;;
16763
16764 sunos4*)
16765   version_type=sunos
16766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16768   shlibpath_var=LD_LIBRARY_PATH
16769   shlibpath_overrides_runpath=yes
16770   if test "$with_gnu_ld" = yes; then
16771     need_lib_prefix=no
16772   fi
16773   need_version=yes
16774   ;;
16775
16776 sysv4 | sysv4.3*)
16777   version_type=linux
16778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779   soname_spec='${libname}${release}${shared_ext}$major'
16780   shlibpath_var=LD_LIBRARY_PATH
16781   case $host_vendor in
16782     sni)
16783       shlibpath_overrides_runpath=no
16784       need_lib_prefix=no
16785       runpath_var=LD_RUN_PATH
16786       ;;
16787     siemens)
16788       need_lib_prefix=no
16789       ;;
16790     motorola)
16791       need_lib_prefix=no
16792       need_version=no
16793       shlibpath_overrides_runpath=no
16794       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16795       ;;
16796   esac
16797   ;;
16798
16799 sysv4*MP*)
16800   if test -d /usr/nec ;then
16801     version_type=linux
16802     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16803     soname_spec='$libname${shared_ext}.$major'
16804     shlibpath_var=LD_LIBRARY_PATH
16805   fi
16806   ;;
16807
16808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16809   version_type=freebsd-elf
16810   need_lib_prefix=no
16811   need_version=no
16812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16813   soname_spec='${libname}${release}${shared_ext}$major'
16814   shlibpath_var=LD_LIBRARY_PATH
16815   shlibpath_overrides_runpath=yes
16816   hardcode_into_libs=yes
16817   if test "$with_gnu_ld" = yes; then
16818     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16819   else
16820     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16821     case $host_os in
16822       sco3.2v5*)
16823         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16824         ;;
16825     esac
16826   fi
16827   sys_lib_dlsearch_path_spec='/usr/lib'
16828   ;;
16829
16830 tpf*)
16831   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16832   version_type=linux
16833   need_lib_prefix=no
16834   need_version=no
16835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836   shlibpath_var=LD_LIBRARY_PATH
16837   shlibpath_overrides_runpath=no
16838   hardcode_into_libs=yes
16839   ;;
16840
16841 uts4*)
16842   version_type=linux
16843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844   soname_spec='${libname}${release}${shared_ext}$major'
16845   shlibpath_var=LD_LIBRARY_PATH
16846   ;;
16847
16848 *)
16849   dynamic_linker=no
16850   ;;
16851 esac
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16853 $as_echo "$dynamic_linker" >&6; }
16854 test "$dynamic_linker" = no && can_build_shared=no
16855
16856 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16857 if test "$GCC" = yes; then
16858   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16859 fi
16860
16861 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16862   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16863 fi
16864 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16865   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16866 fi
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16960 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16961 hardcode_action=
16962 if test -n "$hardcode_libdir_flag_spec" ||
16963    test -n "$runpath_var" ||
16964    test "X$hardcode_automatic" = "Xyes" ; then
16965
16966   # We can hardcode non-existent directories.
16967   if test "$hardcode_direct" != no &&
16968      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16969      # have to relink, otherwise we might link with an installed library
16970      # when we should be linking with a yet-to-be-installed one
16971      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16972      test "$hardcode_minus_L" != no; then
16973     # Linking always hardcodes the temporary library directory.
16974     hardcode_action=relink
16975   else
16976     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16977     hardcode_action=immediate
16978   fi
16979 else
16980   # We cannot hardcode anything, or else we can only hardcode existing
16981   # directories.
16982   hardcode_action=unsupported
16983 fi
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16985 $as_echo "$hardcode_action" >&6; }
16986
16987 if test "$hardcode_action" = relink ||
16988    test "$inherit_rpath" = yes; then
16989   # Fast installation is not supported
16990   enable_fast_install=no
16991 elif test "$shlibpath_overrides_runpath" = yes ||
16992      test "$enable_shared" = no; then
16993   # Fast installation is not necessary
16994   enable_fast_install=needless
16995 fi
16996
16997
16998
16999
17000
17001
17002   if test "x$enable_dlopen" != xyes; then
17003   enable_dlopen=unknown
17004   enable_dlopen_self=unknown
17005   enable_dlopen_self_static=unknown
17006 else
17007   lt_cv_dlopen=no
17008   lt_cv_dlopen_libs=
17009
17010   case $host_os in
17011   beos*)
17012     lt_cv_dlopen="load_add_on"
17013     lt_cv_dlopen_libs=
17014     lt_cv_dlopen_self=yes
17015     ;;
17016
17017   mingw* | pw32* | cegcc*)
17018     lt_cv_dlopen="LoadLibrary"
17019     lt_cv_dlopen_libs=
17020     ;;
17021
17022   cygwin*)
17023     lt_cv_dlopen="dlopen"
17024     lt_cv_dlopen_libs=
17025     ;;
17026
17027   darwin*)
17028   # if libdl is installed we need to link against it
17029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17030 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17031 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17032   $as_echo_n "(cached) " >&6
17033 else
17034   ac_check_lib_save_LIBS=$LIBS
17035 LIBS="-ldl  $LIBS"
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h.  */
17038
17039 /* Override any GCC internal prototype to avoid an error.
17040    Use char because int might match the return type of a GCC
17041    builtin and then its argument prototype would still apply.  */
17042 #ifdef __cplusplus
17043 extern "C"
17044 #endif
17045 char dlopen ();
17046 int
17047 main ()
17048 {
17049 return dlopen ();
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 if ac_fn_c_try_link "$LINENO"; then :
17055   ac_cv_lib_dl_dlopen=yes
17056 else
17057   ac_cv_lib_dl_dlopen=no
17058 fi
17059 rm -f core conftest.err conftest.$ac_objext \
17060     conftest$ac_exeext conftest.$ac_ext
17061 LIBS=$ac_check_lib_save_LIBS
17062 fi
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17064 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17065 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17066   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17067 else
17068
17069     lt_cv_dlopen="dyld"
17070     lt_cv_dlopen_libs=
17071     lt_cv_dlopen_self=yes
17072
17073 fi
17074
17075     ;;
17076
17077   *)
17078     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17079 if test "x$ac_cv_func_shl_load" = x""yes; then :
17080   lt_cv_dlopen="shl_load"
17081 else
17082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17083 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17084 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17085   $as_echo_n "(cached) " >&6
17086 else
17087   ac_check_lib_save_LIBS=$LIBS
17088 LIBS="-ldld  $LIBS"
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h.  */
17091
17092 /* Override any GCC internal prototype to avoid an error.
17093    Use char because int might match the return type of a GCC
17094    builtin and then its argument prototype would still apply.  */
17095 #ifdef __cplusplus
17096 extern "C"
17097 #endif
17098 char shl_load ();
17099 int
17100 main ()
17101 {
17102 return shl_load ();
17103   ;
17104   return 0;
17105 }
17106 _ACEOF
17107 if ac_fn_c_try_link "$LINENO"; then :
17108   ac_cv_lib_dld_shl_load=yes
17109 else
17110   ac_cv_lib_dld_shl_load=no
17111 fi
17112 rm -f core conftest.err conftest.$ac_objext \
17113     conftest$ac_exeext conftest.$ac_ext
17114 LIBS=$ac_check_lib_save_LIBS
17115 fi
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17117 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17118 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17119   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17120 else
17121   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17122 if test "x$ac_cv_func_dlopen" = x""yes; then :
17123   lt_cv_dlopen="dlopen"
17124 else
17125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17126 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17127 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17128   $as_echo_n "(cached) " >&6
17129 else
17130   ac_check_lib_save_LIBS=$LIBS
17131 LIBS="-ldl  $LIBS"
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h.  */
17134
17135 /* Override any GCC internal prototype to avoid an error.
17136    Use char because int might match the return type of a GCC
17137    builtin and then its argument prototype would still apply.  */
17138 #ifdef __cplusplus
17139 extern "C"
17140 #endif
17141 char dlopen ();
17142 int
17143 main ()
17144 {
17145 return dlopen ();
17146   ;
17147   return 0;
17148 }
17149 _ACEOF
17150 if ac_fn_c_try_link "$LINENO"; then :
17151   ac_cv_lib_dl_dlopen=yes
17152 else
17153   ac_cv_lib_dl_dlopen=no
17154 fi
17155 rm -f core conftest.err conftest.$ac_objext \
17156     conftest$ac_exeext conftest.$ac_ext
17157 LIBS=$ac_check_lib_save_LIBS
17158 fi
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17160 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17161 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17162   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17163 else
17164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17165 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17166 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17167   $as_echo_n "(cached) " >&6
17168 else
17169   ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-lsvld  $LIBS"
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h.  */
17173
17174 /* Override any GCC internal prototype to avoid an error.
17175    Use char because int might match the return type of a GCC
17176    builtin and then its argument prototype would still apply.  */
17177 #ifdef __cplusplus
17178 extern "C"
17179 #endif
17180 char dlopen ();
17181 int
17182 main ()
17183 {
17184 return dlopen ();
17185   ;
17186   return 0;
17187 }
17188 _ACEOF
17189 if ac_fn_c_try_link "$LINENO"; then :
17190   ac_cv_lib_svld_dlopen=yes
17191 else
17192   ac_cv_lib_svld_dlopen=no
17193 fi
17194 rm -f core conftest.err conftest.$ac_objext \
17195     conftest$ac_exeext conftest.$ac_ext
17196 LIBS=$ac_check_lib_save_LIBS
17197 fi
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17199 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17200 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17201   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17202 else
17203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17204 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17205 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17206   $as_echo_n "(cached) " >&6
17207 else
17208   ac_check_lib_save_LIBS=$LIBS
17209 LIBS="-ldld  $LIBS"
17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h.  */
17212
17213 /* Override any GCC internal prototype to avoid an error.
17214    Use char because int might match the return type of a GCC
17215    builtin and then its argument prototype would still apply.  */
17216 #ifdef __cplusplus
17217 extern "C"
17218 #endif
17219 char dld_link ();
17220 int
17221 main ()
17222 {
17223 return dld_link ();
17224   ;
17225   return 0;
17226 }
17227 _ACEOF
17228 if ac_fn_c_try_link "$LINENO"; then :
17229   ac_cv_lib_dld_dld_link=yes
17230 else
17231   ac_cv_lib_dld_dld_link=no
17232 fi
17233 rm -f core conftest.err conftest.$ac_objext \
17234     conftest$ac_exeext conftest.$ac_ext
17235 LIBS=$ac_check_lib_save_LIBS
17236 fi
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17238 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17239 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17240   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17241 fi
17242
17243
17244 fi
17245
17246
17247 fi
17248
17249
17250 fi
17251
17252
17253 fi
17254
17255
17256 fi
17257
17258     ;;
17259   esac
17260
17261   if test "x$lt_cv_dlopen" != xno; then
17262     enable_dlopen=yes
17263   else
17264     enable_dlopen=no
17265   fi
17266
17267   case $lt_cv_dlopen in
17268   dlopen)
17269     save_CPPFLAGS="$CPPFLAGS"
17270     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17271
17272     save_LDFLAGS="$LDFLAGS"
17273     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17274
17275     save_LIBS="$LIBS"
17276     LIBS="$lt_cv_dlopen_libs $LIBS"
17277
17278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17279 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17280 if test "${lt_cv_dlopen_self+set}" = set; then :
17281   $as_echo_n "(cached) " >&6
17282 else
17283           if test "$cross_compiling" = yes; then :
17284   lt_cv_dlopen_self=cross
17285 else
17286   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17287   lt_status=$lt_dlunknown
17288   cat > conftest.$ac_ext <<_LT_EOF
17289 #line 17289 "configure"
17290 #include "confdefs.h"
17291
17292 #if HAVE_DLFCN_H
17293 #include <dlfcn.h>
17294 #endif
17295
17296 #include <stdio.h>
17297
17298 #ifdef RTLD_GLOBAL
17299 #  define LT_DLGLOBAL           RTLD_GLOBAL
17300 #else
17301 #  ifdef DL_GLOBAL
17302 #    define LT_DLGLOBAL         DL_GLOBAL
17303 #  else
17304 #    define LT_DLGLOBAL         0
17305 #  endif
17306 #endif
17307
17308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17309    find out it does not work in some platform. */
17310 #ifndef LT_DLLAZY_OR_NOW
17311 #  ifdef RTLD_LAZY
17312 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17313 #  else
17314 #    ifdef DL_LAZY
17315 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17316 #    else
17317 #      ifdef RTLD_NOW
17318 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17319 #      else
17320 #        ifdef DL_NOW
17321 #          define LT_DLLAZY_OR_NOW      DL_NOW
17322 #        else
17323 #          define LT_DLLAZY_OR_NOW      0
17324 #        endif
17325 #      endif
17326 #    endif
17327 #  endif
17328 #endif
17329
17330 /* When -fvisbility=hidden is used, assume the code has been annotated
17331    correspondingly for the symbols needed.  */
17332 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17333 void fnord () __attribute__((visibility("default")));
17334 #endif
17335
17336 void fnord () { int i=42; }
17337 int main ()
17338 {
17339   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17340   int status = $lt_dlunknown;
17341
17342   if (self)
17343     {
17344       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17345       else
17346         {
17347           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17348           else puts (dlerror ());
17349         }
17350       /* dlclose (self); */
17351     }
17352   else
17353     puts (dlerror ());
17354
17355   return status;
17356 }
17357 _LT_EOF
17358   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17359   (eval $ac_link) 2>&5
17360   ac_status=$?
17361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17363     (./conftest; exit; ) >&5 2>/dev/null
17364     lt_status=$?
17365     case x$lt_status in
17366       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17367       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17368       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17369     esac
17370   else :
17371     # compilation failed
17372     lt_cv_dlopen_self=no
17373   fi
17374 fi
17375 rm -fr conftest*
17376
17377
17378 fi
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17380 $as_echo "$lt_cv_dlopen_self" >&6; }
17381
17382     if test "x$lt_cv_dlopen_self" = xyes; then
17383       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17384       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17385 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17386 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17387   $as_echo_n "(cached) " >&6
17388 else
17389           if test "$cross_compiling" = yes; then :
17390   lt_cv_dlopen_self_static=cross
17391 else
17392   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17393   lt_status=$lt_dlunknown
17394   cat > conftest.$ac_ext <<_LT_EOF
17395 #line 17395 "configure"
17396 #include "confdefs.h"
17397
17398 #if HAVE_DLFCN_H
17399 #include <dlfcn.h>
17400 #endif
17401
17402 #include <stdio.h>
17403
17404 #ifdef RTLD_GLOBAL
17405 #  define LT_DLGLOBAL           RTLD_GLOBAL
17406 #else
17407 #  ifdef DL_GLOBAL
17408 #    define LT_DLGLOBAL         DL_GLOBAL
17409 #  else
17410 #    define LT_DLGLOBAL         0
17411 #  endif
17412 #endif
17413
17414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17415    find out it does not work in some platform. */
17416 #ifndef LT_DLLAZY_OR_NOW
17417 #  ifdef RTLD_LAZY
17418 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17419 #  else
17420 #    ifdef DL_LAZY
17421 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17422 #    else
17423 #      ifdef RTLD_NOW
17424 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17425 #      else
17426 #        ifdef DL_NOW
17427 #          define LT_DLLAZY_OR_NOW      DL_NOW
17428 #        else
17429 #          define LT_DLLAZY_OR_NOW      0
17430 #        endif
17431 #      endif
17432 #    endif
17433 #  endif
17434 #endif
17435
17436 /* When -fvisbility=hidden is used, assume the code has been annotated
17437    correspondingly for the symbols needed.  */
17438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17439 void fnord () __attribute__((visibility("default")));
17440 #endif
17441
17442 void fnord () { int i=42; }
17443 int main ()
17444 {
17445   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17446   int status = $lt_dlunknown;
17447
17448   if (self)
17449     {
17450       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17451       else
17452         {
17453           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17454           else puts (dlerror ());
17455         }
17456       /* dlclose (self); */
17457     }
17458   else
17459     puts (dlerror ());
17460
17461   return status;
17462 }
17463 _LT_EOF
17464   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17465   (eval $ac_link) 2>&5
17466   ac_status=$?
17467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17469     (./conftest; exit; ) >&5 2>/dev/null
17470     lt_status=$?
17471     case x$lt_status in
17472       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17473       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17474       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17475     esac
17476   else :
17477     # compilation failed
17478     lt_cv_dlopen_self_static=no
17479   fi
17480 fi
17481 rm -fr conftest*
17482
17483
17484 fi
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17486 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17487     fi
17488
17489     CPPFLAGS="$save_CPPFLAGS"
17490     LDFLAGS="$save_LDFLAGS"
17491     LIBS="$save_LIBS"
17492     ;;
17493   esac
17494
17495   case $lt_cv_dlopen_self in
17496   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17497   *) enable_dlopen_self=unknown ;;
17498   esac
17499
17500   case $lt_cv_dlopen_self_static in
17501   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17502   *) enable_dlopen_self_static=unknown ;;
17503   esac
17504 fi
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522 striplib=
17523 old_striplib=
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17525 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17526 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17527   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17528   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17530 $as_echo "yes" >&6; }
17531 else
17532 # FIXME - insert some real tests, host_os isn't really good enough
17533   case $host_os in
17534   darwin*)
17535     if test -n "$STRIP" ; then
17536       striplib="$STRIP -x"
17537       old_striplib="$STRIP -S"
17538       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17539 $as_echo "yes" >&6; }
17540     else
17541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542 $as_echo "no" >&6; }
17543     fi
17544     ;;
17545   *)
17546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17547 $as_echo "no" >&6; }
17548     ;;
17549   esac
17550 fi
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563   # Report which library types will actually be built
17564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17565 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17567 $as_echo "$can_build_shared" >&6; }
17568
17569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17570 $as_echo_n "checking whether to build shared libraries... " >&6; }
17571   test "$can_build_shared" = "no" && enable_shared=no
17572
17573   # On AIX, shared libraries and static libraries use the same namespace, and
17574   # are all built from PIC.
17575   case $host_os in
17576   aix3*)
17577     test "$enable_shared" = yes && enable_static=no
17578     if test -n "$RANLIB"; then
17579       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17580       postinstall_cmds='$RANLIB $lib'
17581     fi
17582     ;;
17583
17584   aix[4-9]*)
17585     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17586       test "$enable_shared" = yes && enable_static=no
17587     fi
17588     ;;
17589   esac
17590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17591 $as_echo "$enable_shared" >&6; }
17592
17593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17594 $as_echo_n "checking whether to build static libraries... " >&6; }
17595   # Make sure either enable_shared or enable_static is yes.
17596   test "$enable_shared" = yes || enable_static=yes
17597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17598 $as_echo "$enable_static" >&6; }
17599
17600
17601
17602
17603 fi
17604 ac_ext=c
17605 ac_cpp='$CPP $CPPFLAGS'
17606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17609
17610 CC="$lt_save_CC"
17611
17612       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17613     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17614     (test "X$CXX" != "Xg++"))) ; then
17615   ac_ext=cpp
17616 ac_cpp='$CXXCPP $CPPFLAGS'
17617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17621 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17622 if test -z "$CXXCPP"; then
17623   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17624   $as_echo_n "(cached) " >&6
17625 else
17626       # Double quotes because CXXCPP needs to be expanded
17627     for CXXCPP in "$CXX -E" "/lib/cpp"
17628     do
17629       ac_preproc_ok=false
17630 for ac_cxx_preproc_warn_flag in '' yes
17631 do
17632   # Use a header file that comes with gcc, so configuring glibc
17633   # with a fresh cross-compiler works.
17634   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635   # <limits.h> exists even on freestanding compilers.
17636   # On the NeXT, cc -E runs the code through the compiler's parser,
17637   # not just through cpp. "Syntax error" is here to catch this case.
17638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h.  */
17640 #ifdef __STDC__
17641 # include <limits.h>
17642 #else
17643 # include <assert.h>
17644 #endif
17645                      Syntax error
17646 _ACEOF
17647 if ac_fn_cxx_try_cpp "$LINENO"; then :
17648
17649 else
17650   # Broken: fails on valid input.
17651 continue
17652 fi
17653 rm -f conftest.err conftest.$ac_ext
17654
17655   # OK, works on sane cases.  Now check whether nonexistent headers
17656   # can be detected and how.
17657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h.  */
17659 #include <ac_nonexistent.h>
17660 _ACEOF
17661 if ac_fn_cxx_try_cpp "$LINENO"; then :
17662   # Broken: success on invalid input.
17663 continue
17664 else
17665   # Passes both tests.
17666 ac_preproc_ok=:
17667 break
17668 fi
17669 rm -f conftest.err conftest.$ac_ext
17670
17671 done
17672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17673 rm -f conftest.err conftest.$ac_ext
17674 if $ac_preproc_ok; then :
17675   break
17676 fi
17677
17678     done
17679     ac_cv_prog_CXXCPP=$CXXCPP
17680
17681 fi
17682   CXXCPP=$ac_cv_prog_CXXCPP
17683 else
17684   ac_cv_prog_CXXCPP=$CXXCPP
17685 fi
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17687 $as_echo "$CXXCPP" >&6; }
17688 ac_preproc_ok=false
17689 for ac_cxx_preproc_warn_flag in '' yes
17690 do
17691   # Use a header file that comes with gcc, so configuring glibc
17692   # with a fresh cross-compiler works.
17693   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694   # <limits.h> exists even on freestanding compilers.
17695   # On the NeXT, cc -E runs the code through the compiler's parser,
17696   # not just through cpp. "Syntax error" is here to catch this case.
17697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h.  */
17699 #ifdef __STDC__
17700 # include <limits.h>
17701 #else
17702 # include <assert.h>
17703 #endif
17704                      Syntax error
17705 _ACEOF
17706 if ac_fn_cxx_try_cpp "$LINENO"; then :
17707
17708 else
17709   # Broken: fails on valid input.
17710 continue
17711 fi
17712 rm -f conftest.err conftest.$ac_ext
17713
17714   # OK, works on sane cases.  Now check whether nonexistent headers
17715   # can be detected and how.
17716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h.  */
17718 #include <ac_nonexistent.h>
17719 _ACEOF
17720 if ac_fn_cxx_try_cpp "$LINENO"; then :
17721   # Broken: success on invalid input.
17722 continue
17723 else
17724   # Passes both tests.
17725 ac_preproc_ok=:
17726 break
17727 fi
17728 rm -f conftest.err conftest.$ac_ext
17729
17730 done
17731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17732 rm -f conftest.err conftest.$ac_ext
17733 if $ac_preproc_ok; then :
17734
17735 else
17736   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17738 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17739 See \`config.log' for more details." "$LINENO" 5; }
17740 fi
17741
17742 ac_ext=c
17743 ac_cpp='$CPP $CPPFLAGS'
17744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17747
17748 else
17749   _lt_caught_CXX_error=yes
17750 fi
17751
17752 ac_ext=cpp
17753 ac_cpp='$CXXCPP $CPPFLAGS'
17754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17757
17758 archive_cmds_need_lc_CXX=no
17759 allow_undefined_flag_CXX=
17760 always_export_symbols_CXX=no
17761 archive_expsym_cmds_CXX=
17762 compiler_needs_object_CXX=no
17763 export_dynamic_flag_spec_CXX=
17764 hardcode_direct_CXX=no
17765 hardcode_direct_absolute_CXX=no
17766 hardcode_libdir_flag_spec_CXX=
17767 hardcode_libdir_flag_spec_ld_CXX=
17768 hardcode_libdir_separator_CXX=
17769 hardcode_minus_L_CXX=no
17770 hardcode_shlibpath_var_CXX=unsupported
17771 hardcode_automatic_CXX=no
17772 inherit_rpath_CXX=no
17773 module_cmds_CXX=
17774 module_expsym_cmds_CXX=
17775 link_all_deplibs_CXX=unknown
17776 old_archive_cmds_CXX=$old_archive_cmds
17777 reload_flag_CXX=$reload_flag
17778 reload_cmds_CXX=$reload_cmds
17779 no_undefined_flag_CXX=
17780 whole_archive_flag_spec_CXX=
17781 enable_shared_with_static_runtimes_CXX=no
17782
17783 # Source file extension for C++ test sources.
17784 ac_ext=cpp
17785
17786 # Object file extension for compiled C++ test sources.
17787 objext=o
17788 objext_CXX=$objext
17789
17790 # No sense in running all these tests if we already determined that
17791 # the CXX compiler isn't working.  Some variables (like enable_shared)
17792 # are currently assumed to apply to all compilers on this platform,
17793 # and will be corrupted by setting them based on a non-working compiler.
17794 if test "$_lt_caught_CXX_error" != yes; then
17795   # Code to be used in simple compile tests
17796   lt_simple_compile_test_code="int some_variable = 0;"
17797
17798   # Code to be used in simple link tests
17799   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17800
17801   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17802
17803
17804
17805
17806
17807
17808 # If no C compiler was specified, use CC.
17809 LTCC=${LTCC-"$CC"}
17810
17811 # If no C compiler flags were specified, use CFLAGS.
17812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17813
17814 # Allow CC to be a program name with arguments.
17815 compiler=$CC
17816
17817
17818   # save warnings/boilerplate of simple test code
17819   ac_outfile=conftest.$ac_objext
17820 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17821 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17822 _lt_compiler_boilerplate=`cat conftest.err`
17823 $RM conftest*
17824
17825   ac_outfile=conftest.$ac_objext
17826 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17828 _lt_linker_boilerplate=`cat conftest.err`
17829 $RM -r conftest*
17830
17831
17832   # Allow CC to be a program name with arguments.
17833   lt_save_CC=$CC
17834   lt_save_LD=$LD
17835   lt_save_GCC=$GCC
17836   GCC=$GXX
17837   lt_save_with_gnu_ld=$with_gnu_ld
17838   lt_save_path_LD=$lt_cv_path_LD
17839   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17840     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17841   else
17842     $as_unset lt_cv_prog_gnu_ld
17843   fi
17844   if test -n "${lt_cv_path_LDCXX+set}"; then
17845     lt_cv_path_LD=$lt_cv_path_LDCXX
17846   else
17847     $as_unset lt_cv_path_LD
17848   fi
17849   test -z "${LDCXX+set}" || LD=$LDCXX
17850   CC=${CXX-"c++"}
17851   compiler=$CC
17852   compiler_CXX=$CC
17853   for cc_temp in $compiler""; do
17854   case $cc_temp in
17855     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17856     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17857     \-*) ;;
17858     *) break;;
17859   esac
17860 done
17861 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17862
17863
17864   if test -n "$compiler"; then
17865     # We don't want -fno-exception when compiling C++ code, so set the
17866     # no_builtin_flag separately
17867     if test "$GXX" = yes; then
17868       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17869     else
17870       lt_prog_compiler_no_builtin_flag_CXX=
17871     fi
17872
17873     if test "$GXX" = yes; then
17874       # Set up default GNU C++ configuration
17875
17876
17877
17878 # Check whether --with-gnu-ld was given.
17879 if test "${with_gnu_ld+set}" = set; then :
17880   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17881 else
17882   with_gnu_ld=no
17883 fi
17884
17885 ac_prog=ld
17886 if test "$GCC" = yes; then
17887   # Check if gcc -print-prog-name=ld gives a path.
17888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17889 $as_echo_n "checking for ld used by $CC... " >&6; }
17890   case $host in
17891   *-*-mingw*)
17892     # gcc leaves a trailing carriage return which upsets mingw
17893     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17894   *)
17895     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17896   esac
17897   case $ac_prog in
17898     # Accept absolute paths.
17899     [\\/]* | ?:[\\/]*)
17900       re_direlt='/[^/][^/]*/\.\./'
17901       # Canonicalize the pathname of ld
17902       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17903       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17904         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17905       done
17906       test -z "$LD" && LD="$ac_prog"
17907       ;;
17908   "")
17909     # If it fails, then pretend we aren't using GCC.
17910     ac_prog=ld
17911     ;;
17912   *)
17913     # If it is relative, then search for the first ld in PATH.
17914     with_gnu_ld=unknown
17915     ;;
17916   esac
17917 elif test "$with_gnu_ld" = yes; then
17918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17919 $as_echo_n "checking for GNU ld... " >&6; }
17920 else
17921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17922 $as_echo_n "checking for non-GNU ld... " >&6; }
17923 fi
17924 if test "${lt_cv_path_LD+set}" = set; then :
17925   $as_echo_n "(cached) " >&6
17926 else
17927   if test -z "$LD"; then
17928   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17929   for ac_dir in $PATH; do
17930     IFS="$lt_save_ifs"
17931     test -z "$ac_dir" && ac_dir=.
17932     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17933       lt_cv_path_LD="$ac_dir/$ac_prog"
17934       # Check to see if the program is GNU ld.  I'd rather use --version,
17935       # but apparently some variants of GNU ld only accept -v.
17936       # Break only if it was the GNU/non-GNU ld that we prefer.
17937       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17938       *GNU* | *'with BFD'*)
17939         test "$with_gnu_ld" != no && break
17940         ;;
17941       *)
17942         test "$with_gnu_ld" != yes && break
17943         ;;
17944       esac
17945     fi
17946   done
17947   IFS="$lt_save_ifs"
17948 else
17949   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17950 fi
17951 fi
17952
17953 LD="$lt_cv_path_LD"
17954 if test -n "$LD"; then
17955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17956 $as_echo "$LD" >&6; }
17957 else
17958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17959 $as_echo "no" >&6; }
17960 fi
17961 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17963 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17964 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17965   $as_echo_n "(cached) " >&6
17966 else
17967   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17968 case `$LD -v 2>&1 </dev/null` in
17969 *GNU* | *'with BFD'*)
17970   lt_cv_prog_gnu_ld=yes
17971   ;;
17972 *)
17973   lt_cv_prog_gnu_ld=no
17974   ;;
17975 esac
17976 fi
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17978 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17979 with_gnu_ld=$lt_cv_prog_gnu_ld
17980
17981
17982
17983
17984
17985
17986
17987       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17988       # archiving commands below assume that GNU ld is being used.
17989       if test "$with_gnu_ld" = yes; then
17990         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17991         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'
17992
17993         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17994         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17995
17996         # If archive_cmds runs LD, not CC, wlarc should be empty
17997         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17998         #     investigate it a little bit more. (MM)
17999         wlarc='${wl}'
18000
18001         # ancient GNU ld didn't support --whole-archive et. al.
18002         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18003           $GREP 'no-whole-archive' > /dev/null; then
18004           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18005         else
18006           whole_archive_flag_spec_CXX=
18007         fi
18008       else
18009         with_gnu_ld=no
18010         wlarc=
18011
18012         # A generic and very simple default shared library creation
18013         # command for GNU C++ for the case where it uses the native
18014         # linker, instead of GNU ld.  If possible, this setting should
18015         # overridden to take advantage of the native linker features on
18016         # the platform it is being used on.
18017         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18018       fi
18019
18020       # Commands to make compiler produce verbose output that lists
18021       # what "hidden" libraries, object files and flags are used when
18022       # linking a shared library.
18023       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18024
18025     else
18026       GXX=no
18027       with_gnu_ld=no
18028       wlarc=
18029     fi
18030
18031     # PORTME: fill in a description of your system's C++ link characteristics
18032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18033 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18034     ld_shlibs_CXX=yes
18035     case $host_os in
18036       aix3*)
18037         # FIXME: insert proper C++ library support
18038         ld_shlibs_CXX=no
18039         ;;
18040       aix[4-9]*)
18041         if test "$host_cpu" = ia64; then
18042           # On IA64, the linker does run time linking by default, so we don't
18043           # have to do anything special.
18044           aix_use_runtimelinking=no
18045           exp_sym_flag='-Bexport'
18046           no_entry_flag=""
18047         else
18048           aix_use_runtimelinking=no
18049
18050           # Test if we are trying to use run time linking or normal
18051           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18052           # need to do runtime linking.
18053           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18054             for ld_flag in $LDFLAGS; do
18055               case $ld_flag in
18056               *-brtl*)
18057                 aix_use_runtimelinking=yes
18058                 break
18059                 ;;
18060               esac
18061             done
18062             ;;
18063           esac
18064
18065           exp_sym_flag='-bexport'
18066           no_entry_flag='-bnoentry'
18067         fi
18068
18069         # When large executables or shared objects are built, AIX ld can
18070         # have problems creating the table of contents.  If linking a library
18071         # or program results in "error TOC overflow" add -mminimal-toc to
18072         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18073         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18074
18075         archive_cmds_CXX=''
18076         hardcode_direct_CXX=yes
18077         hardcode_direct_absolute_CXX=yes
18078         hardcode_libdir_separator_CXX=':'
18079         link_all_deplibs_CXX=yes
18080         file_list_spec_CXX='${wl}-f,'
18081
18082         if test "$GXX" = yes; then
18083           case $host_os in aix4.[012]|aix4.[012].*)
18084           # We only want to do this on AIX 4.2 and lower, the check
18085           # below for broken collect2 doesn't work under 4.3+
18086           collect2name=`${CC} -print-prog-name=collect2`
18087           if test -f "$collect2name" &&
18088              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18089           then
18090             # We have reworked collect2
18091             :
18092           else
18093             # We have old collect2
18094             hardcode_direct_CXX=unsupported
18095             # It fails to find uninstalled libraries when the uninstalled
18096             # path is not listed in the libpath.  Setting hardcode_minus_L
18097             # to unsupported forces relinking
18098             hardcode_minus_L_CXX=yes
18099             hardcode_libdir_flag_spec_CXX='-L$libdir'
18100             hardcode_libdir_separator_CXX=
18101           fi
18102           esac
18103           shared_flag='-shared'
18104           if test "$aix_use_runtimelinking" = yes; then
18105             shared_flag="$shared_flag "'${wl}-G'
18106           fi
18107         else
18108           # not using gcc
18109           if test "$host_cpu" = ia64; then
18110           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18111           # chokes on -Wl,-G. The following line is correct:
18112           shared_flag='-G'
18113           else
18114             if test "$aix_use_runtimelinking" = yes; then
18115               shared_flag='${wl}-G'
18116             else
18117               shared_flag='${wl}-bM:SRE'
18118             fi
18119           fi
18120         fi
18121
18122         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18123         # It seems that -bexpall does not export symbols beginning with
18124         # underscore (_), so it is better to generate a list of symbols to
18125         # export.
18126         always_export_symbols_CXX=yes
18127         if test "$aix_use_runtimelinking" = yes; then
18128           # Warning - without using the other runtime loading flags (-brtl),
18129           # -berok will link without error, but may produce a broken library.
18130           allow_undefined_flag_CXX='-berok'
18131           # Determine the default libpath from the value encoded in an empty
18132           # executable.
18133           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h.  */
18135
18136 int
18137 main ()
18138 {
18139
18140   ;
18141   return 0;
18142 }
18143 _ACEOF
18144 if ac_fn_cxx_try_link "$LINENO"; then :
18145
18146 lt_aix_libpath_sed='
18147     /Import File Strings/,/^$/ {
18148         /^0/ {
18149             s/^0  *\(.*\)$/\1/
18150             p
18151         }
18152     }'
18153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18154 # Check for a 64-bit object if we didn't find anything.
18155 if test -z "$aix_libpath"; then
18156   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18157 fi
18158 fi
18159 rm -f core conftest.err conftest.$ac_objext \
18160     conftest$ac_exeext conftest.$ac_ext
18161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18162
18163           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18164
18165           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"
18166         else
18167           if test "$host_cpu" = ia64; then
18168             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18169             allow_undefined_flag_CXX="-z nodefs"
18170             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"
18171           else
18172             # Determine the default libpath from the value encoded in an
18173             # empty executable.
18174             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h.  */
18176
18177 int
18178 main ()
18179 {
18180
18181   ;
18182   return 0;
18183 }
18184 _ACEOF
18185 if ac_fn_cxx_try_link "$LINENO"; then :
18186
18187 lt_aix_libpath_sed='
18188     /Import File Strings/,/^$/ {
18189         /^0/ {
18190             s/^0  *\(.*\)$/\1/
18191             p
18192         }
18193     }'
18194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18195 # Check for a 64-bit object if we didn't find anything.
18196 if test -z "$aix_libpath"; then
18197   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18198 fi
18199 fi
18200 rm -f core conftest.err conftest.$ac_objext \
18201     conftest$ac_exeext conftest.$ac_ext
18202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18203
18204             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18205             # Warning - without using the other run time loading flags,
18206             # -berok will link without error, but may produce a broken library.
18207             no_undefined_flag_CXX=' ${wl}-bernotok'
18208             allow_undefined_flag_CXX=' ${wl}-berok'
18209             if test "$with_gnu_ld" = yes; then
18210               # We only use this code for GNU lds that support --whole-archive.
18211               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18212             else
18213               # Exported symbols can be pulled into shared objects from archives
18214               whole_archive_flag_spec_CXX='$convenience'
18215             fi
18216             archive_cmds_need_lc_CXX=yes
18217             # This is similar to how AIX traditionally builds its shared
18218             # libraries.
18219             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'
18220           fi
18221         fi
18222         ;;
18223
18224       beos*)
18225         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18226           allow_undefined_flag_CXX=unsupported
18227           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18228           # support --undefined.  This deserves some investigation.  FIXME
18229           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18230         else
18231           ld_shlibs_CXX=no
18232         fi
18233         ;;
18234
18235       chorus*)
18236         case $cc_basename in
18237           *)
18238           # FIXME: insert proper C++ library support
18239           ld_shlibs_CXX=no
18240           ;;
18241         esac
18242         ;;
18243
18244       cygwin* | mingw* | pw32* | cegcc*)
18245         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18246         # as there is no search path for DLLs.
18247         hardcode_libdir_flag_spec_CXX='-L$libdir'
18248         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18249         allow_undefined_flag_CXX=unsupported
18250         always_export_symbols_CXX=no
18251         enable_shared_with_static_runtimes_CXX=yes
18252
18253         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18254           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'
18255           # If the export-symbols file already is a .def file (1st line
18256           # is EXPORTS), use it as is; otherwise, prepend...
18257           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18258             cp $export_symbols $output_objdir/$soname.def;
18259           else
18260             echo EXPORTS > $output_objdir/$soname.def;
18261             cat $export_symbols >> $output_objdir/$soname.def;
18262           fi~
18263           $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'
18264         else
18265           ld_shlibs_CXX=no
18266         fi
18267         ;;
18268       darwin* | rhapsody*)
18269
18270
18271   archive_cmds_need_lc_CXX=no
18272   hardcode_direct_CXX=no
18273   hardcode_automatic_CXX=yes
18274   hardcode_shlibpath_var_CXX=unsupported
18275   if test "$lt_cv_ld_force_load" = "yes"; then
18276     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\"`'
18277   else
18278     whole_archive_flag_spec_CXX=''
18279   fi
18280   link_all_deplibs_CXX=yes
18281   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18282   case $cc_basename in
18283      ifort*) _lt_dar_can_shared=yes ;;
18284      *) _lt_dar_can_shared=$GCC ;;
18285   esac
18286   if test "$_lt_dar_can_shared" = "yes"; then
18287     output_verbose_link_cmd=func_echo_all
18288     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}"
18289     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18290     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}"
18291     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}"
18292        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18293       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}"
18294       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}"
18295     fi
18296
18297   else
18298   ld_shlibs_CXX=no
18299   fi
18300
18301         ;;
18302
18303       dgux*)
18304         case $cc_basename in
18305           ec++*)
18306             # FIXME: insert proper C++ library support
18307             ld_shlibs_CXX=no
18308             ;;
18309           ghcx*)
18310             # Green Hills C++ Compiler
18311             # FIXME: insert proper C++ library support
18312             ld_shlibs_CXX=no
18313             ;;
18314           *)
18315             # FIXME: insert proper C++ library support
18316             ld_shlibs_CXX=no
18317             ;;
18318         esac
18319         ;;
18320
18321       freebsd[12]*)
18322         # C++ shared libraries reported to be fairly broken before
18323         # switch to ELF
18324         ld_shlibs_CXX=no
18325         ;;
18326
18327       freebsd-elf*)
18328         archive_cmds_need_lc_CXX=no
18329         ;;
18330
18331       freebsd* | dragonfly*)
18332         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18333         # conventions
18334         ld_shlibs_CXX=yes
18335         ;;
18336
18337       gnu*)
18338         ;;
18339
18340       haiku*)
18341         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18342         link_all_deplibs_CXX=yes
18343         ;;
18344
18345       hpux9*)
18346         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18347         hardcode_libdir_separator_CXX=:
18348         export_dynamic_flag_spec_CXX='${wl}-E'
18349         hardcode_direct_CXX=yes
18350         hardcode_minus_L_CXX=yes # Not in the search PATH,
18351                                              # but as the default
18352                                              # location of the library.
18353
18354         case $cc_basename in
18355           CC*)
18356             # FIXME: insert proper C++ library support
18357             ld_shlibs_CXX=no
18358             ;;
18359           aCC*)
18360             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'
18361             # Commands to make compiler produce verbose output that lists
18362             # what "hidden" libraries, object files and flags are used when
18363             # linking a shared library.
18364             #
18365             # There doesn't appear to be a way to prevent this compiler from
18366             # explicitly linking system object files so we need to strip them
18367             # from the output so that they don't get included in the library
18368             # dependencies.
18369             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"'
18370             ;;
18371           *)
18372             if test "$GXX" = yes; then
18373               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'
18374             else
18375               # FIXME: insert proper C++ library support
18376               ld_shlibs_CXX=no
18377             fi
18378             ;;
18379         esac
18380         ;;
18381
18382       hpux10*|hpux11*)
18383         if test $with_gnu_ld = no; then
18384           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18385           hardcode_libdir_separator_CXX=:
18386
18387           case $host_cpu in
18388             hppa*64*|ia64*)
18389               ;;
18390             *)
18391               export_dynamic_flag_spec_CXX='${wl}-E'
18392               ;;
18393           esac
18394         fi
18395         case $host_cpu in
18396           hppa*64*|ia64*)
18397             hardcode_direct_CXX=no
18398             hardcode_shlibpath_var_CXX=no
18399             ;;
18400           *)
18401             hardcode_direct_CXX=yes
18402             hardcode_direct_absolute_CXX=yes
18403             hardcode_minus_L_CXX=yes # Not in the search PATH,
18404                                                  # but as the default
18405                                                  # location of the library.
18406             ;;
18407         esac
18408
18409         case $cc_basename in
18410           CC*)
18411             # FIXME: insert proper C++ library support
18412             ld_shlibs_CXX=no
18413             ;;
18414           aCC*)
18415             case $host_cpu in
18416               hppa*64*)
18417                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18418                 ;;
18419               ia64*)
18420                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18421                 ;;
18422               *)
18423                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18424                 ;;
18425             esac
18426             # Commands to make compiler produce verbose output that lists
18427             # what "hidden" libraries, object files and flags are used when
18428             # linking a shared library.
18429             #
18430             # There doesn't appear to be a way to prevent this compiler from
18431             # explicitly linking system object files so we need to strip them
18432             # from the output so that they don't get included in the library
18433             # dependencies.
18434             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"'
18435             ;;
18436           *)
18437             if test "$GXX" = yes; then
18438               if test $with_gnu_ld = no; then
18439                 case $host_cpu in
18440                   hppa*64*)
18441                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18442                     ;;
18443                   ia64*)
18444                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18445                     ;;
18446                   *)
18447                     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'
18448                     ;;
18449                 esac
18450               fi
18451             else
18452               # FIXME: insert proper C++ library support
18453               ld_shlibs_CXX=no
18454             fi
18455             ;;
18456         esac
18457         ;;
18458
18459       interix[3-9]*)
18460         hardcode_direct_CXX=no
18461         hardcode_shlibpath_var_CXX=no
18462         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18463         export_dynamic_flag_spec_CXX='${wl}-E'
18464         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18465         # Instead, shared libraries are loaded at an image base (0x10000000 by
18466         # default) and relocated if they conflict, which is a slow very memory
18467         # consuming and fragmenting process.  To avoid this, we pick a random,
18468         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18469         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18470         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'
18471         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'
18472         ;;
18473       irix5* | irix6*)
18474         case $cc_basename in
18475           CC*)
18476             # SGI C++
18477             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'
18478
18479             # Archives containing C++ object files must be created using
18480             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18481             # necessary to make sure instantiated templates are included
18482             # in the archive.
18483             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18484             ;;
18485           *)
18486             if test "$GXX" = yes; then
18487               if test "$with_gnu_ld" = no; then
18488                 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'
18489               else
18490                 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'
18491               fi
18492             fi
18493             link_all_deplibs_CXX=yes
18494             ;;
18495         esac
18496         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18497         hardcode_libdir_separator_CXX=:
18498         inherit_rpath_CXX=yes
18499         ;;
18500
18501       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18502         case $cc_basename in
18503           KCC*)
18504             # Kuck and Associates, Inc. (KAI) C++ Compiler
18505
18506             # KCC will only create a shared library if the output file
18507             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18508             # to its proper name (with version) after linking.
18509             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'
18510             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'
18511             # Commands to make compiler produce verbose output that lists
18512             # what "hidden" libraries, object files and flags are used when
18513             # linking a shared library.
18514             #
18515             # There doesn't appear to be a way to prevent this compiler from
18516             # explicitly linking system object files so we need to strip them
18517             # from the output so that they don't get included in the library
18518             # dependencies.
18519             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"'
18520
18521             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18522             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18523
18524             # Archives containing C++ object files must be created using
18525             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18526             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18527             ;;
18528           icpc* | ecpc* )
18529             # Intel C++
18530             with_gnu_ld=yes
18531             # version 8.0 and above of icpc choke on multiply defined symbols
18532             # if we add $predep_objects and $postdep_objects, however 7.1 and
18533             # earlier do not add the objects themselves.
18534             case `$CC -V 2>&1` in
18535               *"Version 7."*)
18536                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537                 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'
18538                 ;;
18539               *)  # Version 8.0 or newer
18540                 tmp_idyn=
18541                 case $host_cpu in
18542                   ia64*) tmp_idyn=' -i_dynamic';;
18543                 esac
18544                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18545                 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'
18546                 ;;
18547             esac
18548             archive_cmds_need_lc_CXX=no
18549             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18550             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18551             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18552             ;;
18553           pgCC* | pgcpp*)
18554             # Portland Group C++ compiler
18555             case `$CC -V` in
18556             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18557               prelink_cmds_CXX='tpldir=Template.dir~
18558                 rm -rf $tpldir~
18559                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18560                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18561               old_archive_cmds_CXX='tpldir=Template.dir~
18562                 rm -rf $tpldir~
18563                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18564                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18565                 $RANLIB $oldlib'
18566               archive_cmds_CXX='tpldir=Template.dir~
18567                 rm -rf $tpldir~
18568                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18569                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18570               archive_expsym_cmds_CXX='tpldir=Template.dir~
18571                 rm -rf $tpldir~
18572                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18573                 $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'
18574               ;;
18575             *) # Version 6 and above use weak symbols
18576               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18577               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'
18578               ;;
18579             esac
18580
18581             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18582             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18583             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'
18584             ;;
18585           cxx*)
18586             # Compaq C++
18587             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18588             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'
18589
18590             runpath_var=LD_RUN_PATH
18591             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18592             hardcode_libdir_separator_CXX=:
18593
18594             # Commands to make compiler produce verbose output that lists
18595             # what "hidden" libraries, object files and flags are used when
18596             # linking a shared library.
18597             #
18598             # There doesn't appear to be a way to prevent this compiler from
18599             # explicitly linking system object files so we need to strip them
18600             # from the output so that they don't get included in the library
18601             # dependencies.
18602             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'
18603             ;;
18604           xl* | mpixl* | bgxl*)
18605             # IBM XL 8.0 on PPC, with GNU ld
18606             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18607             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18608             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18609             if test "x$supports_anon_versioning" = xyes; then
18610               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18611                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18612                 echo "local: *; };" >> $output_objdir/$libname.ver~
18613                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18614             fi
18615             ;;
18616           *)
18617             case `$CC -V 2>&1 | sed 5q` in
18618             *Sun\ C*)
18619               # Sun C++ 5.9
18620               no_undefined_flag_CXX=' -zdefs'
18621               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18622               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'
18623               hardcode_libdir_flag_spec_CXX='-R$libdir'
18624               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'
18625               compiler_needs_object_CXX=yes
18626
18627               # Not sure whether something based on
18628               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18629               # would be better.
18630               output_verbose_link_cmd='func_echo_all'
18631
18632               # Archives containing C++ object files must be created using
18633               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18634               # necessary to make sure instantiated templates are included
18635               # in the archive.
18636               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18637               ;;
18638             esac
18639             ;;
18640         esac
18641         ;;
18642
18643       lynxos*)
18644         # FIXME: insert proper C++ library support
18645         ld_shlibs_CXX=no
18646         ;;
18647
18648       m88k*)
18649         # FIXME: insert proper C++ library support
18650         ld_shlibs_CXX=no
18651         ;;
18652
18653       mvs*)
18654         case $cc_basename in
18655           cxx*)
18656             # FIXME: insert proper C++ library support
18657             ld_shlibs_CXX=no
18658             ;;
18659           *)
18660             # FIXME: insert proper C++ library support
18661             ld_shlibs_CXX=no
18662             ;;
18663         esac
18664         ;;
18665
18666       netbsd*)
18667         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18668           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18669           wlarc=
18670           hardcode_libdir_flag_spec_CXX='-R$libdir'
18671           hardcode_direct_CXX=yes
18672           hardcode_shlibpath_var_CXX=no
18673         fi
18674         # Workaround some broken pre-1.5 toolchains
18675         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18676         ;;
18677
18678       *nto* | *qnx*)
18679         ld_shlibs_CXX=yes
18680         ;;
18681
18682       openbsd2*)
18683         # C++ shared libraries are fairly broken
18684         ld_shlibs_CXX=no
18685         ;;
18686
18687       openbsd*)
18688         if test -f /usr/libexec/ld.so; then
18689           hardcode_direct_CXX=yes
18690           hardcode_shlibpath_var_CXX=no
18691           hardcode_direct_absolute_CXX=yes
18692           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18693           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18694           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18695             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18696             export_dynamic_flag_spec_CXX='${wl}-E'
18697             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18698           fi
18699           output_verbose_link_cmd=func_echo_all
18700         else
18701           ld_shlibs_CXX=no
18702         fi
18703         ;;
18704
18705       osf3* | osf4* | osf5*)
18706         case $cc_basename in
18707           KCC*)
18708             # Kuck and Associates, Inc. (KAI) C++ Compiler
18709
18710             # KCC will only create a shared library if the output file
18711             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18712             # to its proper name (with version) after linking.
18713             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'
18714
18715             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18716             hardcode_libdir_separator_CXX=:
18717
18718             # Archives containing C++ object files must be created using
18719             # the KAI C++ compiler.
18720             case $host in
18721               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18722               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18723             esac
18724             ;;
18725           RCC*)
18726             # Rational C++ 2.4.1
18727             # FIXME: insert proper C++ library support
18728             ld_shlibs_CXX=no
18729             ;;
18730           cxx*)
18731             case $host in
18732               osf3*)
18733                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18734                 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'
18735                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18736                 ;;
18737               *)
18738                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18739                 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'
18740                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18741                   echo "-hidden">> $lib.exp~
18742                   $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~
18743                   $RM $lib.exp'
18744                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18745                 ;;
18746             esac
18747
18748             hardcode_libdir_separator_CXX=:
18749
18750             # Commands to make compiler produce verbose output that lists
18751             # what "hidden" libraries, object files and flags are used when
18752             # linking a shared library.
18753             #
18754             # There doesn't appear to be a way to prevent this compiler from
18755             # explicitly linking system object files so we need to strip them
18756             # from the output so that they don't get included in the library
18757             # dependencies.
18758             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"'
18759             ;;
18760           *)
18761             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18762               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18763               case $host in
18764                 osf3*)
18765                   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'
18766                   ;;
18767                 *)
18768                   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'
18769                   ;;
18770               esac
18771
18772               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18773               hardcode_libdir_separator_CXX=:
18774
18775               # Commands to make compiler produce verbose output that lists
18776               # what "hidden" libraries, object files and flags are used when
18777               # linking a shared library.
18778               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18779
18780             else
18781               # FIXME: insert proper C++ library support
18782               ld_shlibs_CXX=no
18783             fi
18784             ;;
18785         esac
18786         ;;
18787
18788       psos*)
18789         # FIXME: insert proper C++ library support
18790         ld_shlibs_CXX=no
18791         ;;
18792
18793       sunos4*)
18794         case $cc_basename in
18795           CC*)
18796             # Sun C++ 4.x
18797             # FIXME: insert proper C++ library support
18798             ld_shlibs_CXX=no
18799             ;;
18800           lcc*)
18801             # Lucid
18802             # FIXME: insert proper C++ library support
18803             ld_shlibs_CXX=no
18804             ;;
18805           *)
18806             # FIXME: insert proper C++ library support
18807             ld_shlibs_CXX=no
18808             ;;
18809         esac
18810         ;;
18811
18812       solaris*)
18813         case $cc_basename in
18814           CC*)
18815             # Sun C++ 4.2, 5.x and Centerline C++
18816             archive_cmds_need_lc_CXX=yes
18817             no_undefined_flag_CXX=' -zdefs'
18818             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18819             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18820               $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'
18821
18822             hardcode_libdir_flag_spec_CXX='-R$libdir'
18823             hardcode_shlibpath_var_CXX=no
18824             case $host_os in
18825               solaris2.[0-5] | solaris2.[0-5].*) ;;
18826               *)
18827                 # The compiler driver will combine and reorder linker options,
18828                 # but understands `-z linker_flag'.
18829                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18830                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18831                 ;;
18832             esac
18833             link_all_deplibs_CXX=yes
18834
18835             output_verbose_link_cmd='func_echo_all'
18836
18837             # Archives containing C++ object files must be created using
18838             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18839             # necessary to make sure instantiated templates are included
18840             # in the archive.
18841             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18842             ;;
18843           gcx*)
18844             # Green Hills C++ Compiler
18845             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18846
18847             # The C++ compiler must be used to create the archive.
18848             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18849             ;;
18850           *)
18851             # GNU C++ compiler with Solaris linker
18852             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18853               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18854               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18855                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18856                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18857                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18858
18859                 # Commands to make compiler produce verbose output that lists
18860                 # what "hidden" libraries, object files and flags are used when
18861                 # linking a shared library.
18862                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18863               else
18864                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18865                 # platform.
18866                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18867                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18868                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18869
18870                 # Commands to make compiler produce verbose output that lists
18871                 # what "hidden" libraries, object files and flags are used when
18872                 # linking a shared library.
18873                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18874               fi
18875
18876               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18877               case $host_os in
18878                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18879                 *)
18880                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18881                   ;;
18882               esac
18883             fi
18884             ;;
18885         esac
18886         ;;
18887
18888     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18889       no_undefined_flag_CXX='${wl}-z,text'
18890       archive_cmds_need_lc_CXX=no
18891       hardcode_shlibpath_var_CXX=no
18892       runpath_var='LD_RUN_PATH'
18893
18894       case $cc_basename in
18895         CC*)
18896           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18897           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18898           ;;
18899         *)
18900           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18901           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18902           ;;
18903       esac
18904       ;;
18905
18906       sysv5* | sco3.2v5* | sco5v6*)
18907         # Note: We can NOT use -z defs as we might desire, because we do not
18908         # link with -lc, and that would cause any symbols used from libc to
18909         # always be unresolved, which means just about no library would
18910         # ever link correctly.  If we're not using GNU ld we use -z text
18911         # though, which does catch some bad symbols but isn't as heavy-handed
18912         # as -z defs.
18913         no_undefined_flag_CXX='${wl}-z,text'
18914         allow_undefined_flag_CXX='${wl}-z,nodefs'
18915         archive_cmds_need_lc_CXX=no
18916         hardcode_shlibpath_var_CXX=no
18917         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18918         hardcode_libdir_separator_CXX=':'
18919         link_all_deplibs_CXX=yes
18920         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18921         runpath_var='LD_RUN_PATH'
18922
18923         case $cc_basename in
18924           CC*)
18925             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18926             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18927             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18928               '"$old_archive_cmds_CXX"
18929             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18930               '"$reload_cmds_CXX"
18931             ;;
18932           *)
18933             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18934             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18935             ;;
18936         esac
18937       ;;
18938
18939       tandem*)
18940         case $cc_basename in
18941           NCC*)
18942             # NonStop-UX NCC 3.20
18943             # FIXME: insert proper C++ library support
18944             ld_shlibs_CXX=no
18945             ;;
18946           *)
18947             # FIXME: insert proper C++ library support
18948             ld_shlibs_CXX=no
18949             ;;
18950         esac
18951         ;;
18952
18953       vxworks*)
18954         # FIXME: insert proper C++ library support
18955         ld_shlibs_CXX=no
18956         ;;
18957
18958       *)
18959         # FIXME: insert proper C++ library support
18960         ld_shlibs_CXX=no
18961         ;;
18962     esac
18963
18964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18965 $as_echo "$ld_shlibs_CXX" >&6; }
18966     test "$ld_shlibs_CXX" = no && can_build_shared=no
18967
18968     GCC_CXX="$GXX"
18969     LD_CXX="$LD"
18970
18971     ## CAVEAT EMPTOR:
18972     ## There is no encapsulation within the following macros, do not change
18973     ## the running order or otherwise move them around unless you know exactly
18974     ## what you are doing...
18975     # Dependencies to place before and after the object being linked:
18976 predep_objects_CXX=
18977 postdep_objects_CXX=
18978 predeps_CXX=
18979 postdeps_CXX=
18980 compiler_lib_search_path_CXX=
18981
18982 cat > conftest.$ac_ext <<_LT_EOF
18983 class Foo
18984 {
18985 public:
18986   Foo (void) { a = 0; }
18987 private:
18988   int a;
18989 };
18990 _LT_EOF
18991
18992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18993   (eval $ac_compile) 2>&5
18994   ac_status=$?
18995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18996   test $ac_status = 0; }; then
18997   # Parse the compiler output and extract the necessary
18998   # objects, libraries and library flags.
18999
19000   # Sentinel used to keep track of whether or not we are before
19001   # the conftest object file.
19002   pre_test_object_deps_done=no
19003
19004   for p in `eval "$output_verbose_link_cmd"`; do
19005     case $p in
19006
19007     -L* | -R* | -l*)
19008        # Some compilers place space between "-{L,R}" and the path.
19009        # Remove the space.
19010        if test $p = "-L" ||
19011           test $p = "-R"; then
19012          prev=$p
19013          continue
19014        else
19015          prev=
19016        fi
19017
19018        if test "$pre_test_object_deps_done" = no; then
19019          case $p in
19020          -L* | -R*)
19021            # Internal compiler library paths should come after those
19022            # provided the user.  The postdeps already come after the
19023            # user supplied libs so there is no need to process them.
19024            if test -z "$compiler_lib_search_path_CXX"; then
19025              compiler_lib_search_path_CXX="${prev}${p}"
19026            else
19027              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19028            fi
19029            ;;
19030          # The "-l" case would never come before the object being
19031          # linked, so don't bother handling this case.
19032          esac
19033        else
19034          if test -z "$postdeps_CXX"; then
19035            postdeps_CXX="${prev}${p}"
19036          else
19037            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19038          fi
19039        fi
19040        ;;
19041
19042     *.$objext)
19043        # This assumes that the test object file only shows up
19044        # once in the compiler output.
19045        if test "$p" = "conftest.$objext"; then
19046          pre_test_object_deps_done=yes
19047          continue
19048        fi
19049
19050        if test "$pre_test_object_deps_done" = no; then
19051          if test -z "$predep_objects_CXX"; then
19052            predep_objects_CXX="$p"
19053          else
19054            predep_objects_CXX="$predep_objects_CXX $p"
19055          fi
19056        else
19057          if test -z "$postdep_objects_CXX"; then
19058            postdep_objects_CXX="$p"
19059          else
19060            postdep_objects_CXX="$postdep_objects_CXX $p"
19061          fi
19062        fi
19063        ;;
19064
19065     *) ;; # Ignore the rest.
19066
19067     esac
19068   done
19069
19070   # Clean up.
19071   rm -f a.out a.exe
19072 else
19073   echo "libtool.m4: error: problem compiling CXX test program"
19074 fi
19075
19076 $RM -f confest.$objext
19077
19078 # PORTME: override above test on systems where it is broken
19079 case $host_os in
19080 interix[3-9]*)
19081   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19082   # hack all around it, let's just trust "g++" to DTRT.
19083   predep_objects_CXX=
19084   postdep_objects_CXX=
19085   postdeps_CXX=
19086   ;;
19087
19088 linux*)
19089   case `$CC -V 2>&1 | sed 5q` in
19090   *Sun\ C*)
19091     # Sun C++ 5.9
19092
19093     # The more standards-conforming stlport4 library is
19094     # incompatible with the Cstd library. Avoid specifying
19095     # it if it's in CXXFLAGS. Ignore libCrun as
19096     # -library=stlport4 depends on it.
19097     case " $CXX $CXXFLAGS " in
19098     *" -library=stlport4 "*)
19099       solaris_use_stlport4=yes
19100       ;;
19101     esac
19102
19103     if test "$solaris_use_stlport4" != yes; then
19104       postdeps_CXX='-library=Cstd -library=Crun'
19105     fi
19106     ;;
19107   esac
19108   ;;
19109
19110 solaris*)
19111   case $cc_basename in
19112   CC*)
19113     # The more standards-conforming stlport4 library is
19114     # incompatible with the Cstd library. Avoid specifying
19115     # it if it's in CXXFLAGS. Ignore libCrun as
19116     # -library=stlport4 depends on it.
19117     case " $CXX $CXXFLAGS " in
19118     *" -library=stlport4 "*)
19119       solaris_use_stlport4=yes
19120       ;;
19121     esac
19122
19123     # Adding this requires a known-good setup of shared libraries for
19124     # Sun compiler versions before 5.6, else PIC objects from an old
19125     # archive will be linked into the output, leading to subtle bugs.
19126     if test "$solaris_use_stlport4" != yes; then
19127       postdeps_CXX='-library=Cstd -library=Crun'
19128     fi
19129     ;;
19130   esac
19131   ;;
19132 esac
19133
19134
19135 case " $postdeps_CXX " in
19136 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19137 esac
19138  compiler_lib_search_dirs_CXX=
19139 if test -n "${compiler_lib_search_path_CXX}"; then
19140  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19141 fi
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173     lt_prog_compiler_wl_CXX=
19174 lt_prog_compiler_pic_CXX=
19175 lt_prog_compiler_static_CXX=
19176
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19178 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19179
19180   # C++ specific cases for pic, static, wl, etc.
19181   if test "$GXX" = yes; then
19182     lt_prog_compiler_wl_CXX='-Wl,'
19183     lt_prog_compiler_static_CXX='-static'
19184
19185     case $host_os in
19186     aix*)
19187       # All AIX code is PIC.
19188       if test "$host_cpu" = ia64; then
19189         # AIX 5 now supports IA64 processor
19190         lt_prog_compiler_static_CXX='-Bstatic'
19191       fi
19192       ;;
19193
19194     amigaos*)
19195       case $host_cpu in
19196       powerpc)
19197             # see comment about AmigaOS4 .so support
19198             lt_prog_compiler_pic_CXX='-fPIC'
19199         ;;
19200       m68k)
19201             # FIXME: we need at least 68020 code to build shared libraries, but
19202             # adding the `-m68020' flag to GCC prevents building anything better,
19203             # like `-m68040'.
19204             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19205         ;;
19206       esac
19207       ;;
19208
19209     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19210       # PIC is the default for these OSes.
19211       ;;
19212     mingw* | cygwin* | os2* | pw32* | cegcc*)
19213       # This hack is so that the source file can tell whether it is being
19214       # built for inclusion in a dll (and should export symbols for example).
19215       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19216       # (--disable-auto-import) libraries
19217       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19218       ;;
19219     darwin* | rhapsody*)
19220       # PIC is the default on this platform
19221       # Common symbols not allowed in MH_DYLIB files
19222       lt_prog_compiler_pic_CXX='-fno-common'
19223       ;;
19224     *djgpp*)
19225       # DJGPP does not support shared libraries at all
19226       lt_prog_compiler_pic_CXX=
19227       ;;
19228     haiku*)
19229       # PIC is the default for Haiku.
19230       # The "-static" flag exists, but is broken.
19231       lt_prog_compiler_static_CXX=
19232       ;;
19233     interix[3-9]*)
19234       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19235       # Instead, we relocate shared libraries at runtime.
19236       ;;
19237     sysv4*MP*)
19238       if test -d /usr/nec; then
19239         lt_prog_compiler_pic_CXX=-Kconform_pic
19240       fi
19241       ;;
19242     hpux*)
19243       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19244       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19245       # sets the default TLS model and affects inlining.
19246       case $host_cpu in
19247       hppa*64*)
19248         ;;
19249       *)
19250         lt_prog_compiler_pic_CXX='-fPIC'
19251         ;;
19252       esac
19253       ;;
19254     *qnx* | *nto*)
19255       # QNX uses GNU C++, but need to define -shared option too, otherwise
19256       # it will coredump.
19257       lt_prog_compiler_pic_CXX='-fPIC -shared'
19258       ;;
19259     *)
19260       lt_prog_compiler_pic_CXX='-fPIC'
19261       ;;
19262     esac
19263   else
19264     case $host_os in
19265       aix[4-9]*)
19266         # All AIX code is PIC.
19267         if test "$host_cpu" = ia64; then
19268           # AIX 5 now supports IA64 processor
19269           lt_prog_compiler_static_CXX='-Bstatic'
19270         else
19271           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19272         fi
19273         ;;
19274       chorus*)
19275         case $cc_basename in
19276         cxch68*)
19277           # Green Hills C++ Compiler
19278           # _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"
19279           ;;
19280         esac
19281         ;;
19282       dgux*)
19283         case $cc_basename in
19284           ec++*)
19285             lt_prog_compiler_pic_CXX='-KPIC'
19286             ;;
19287           ghcx*)
19288             # Green Hills C++ Compiler
19289             lt_prog_compiler_pic_CXX='-pic'
19290             ;;
19291           *)
19292             ;;
19293         esac
19294         ;;
19295       freebsd* | dragonfly*)
19296         # FreeBSD uses GNU C++
19297         ;;
19298       hpux9* | hpux10* | hpux11*)
19299         case $cc_basename in
19300           CC*)
19301             lt_prog_compiler_wl_CXX='-Wl,'
19302             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19303             if test "$host_cpu" != ia64; then
19304               lt_prog_compiler_pic_CXX='+Z'
19305             fi
19306             ;;
19307           aCC*)
19308             lt_prog_compiler_wl_CXX='-Wl,'
19309             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19310             case $host_cpu in
19311             hppa*64*|ia64*)
19312               # +Z the default
19313               ;;
19314             *)
19315               lt_prog_compiler_pic_CXX='+Z'
19316               ;;
19317             esac
19318             ;;
19319           *)
19320             ;;
19321         esac
19322         ;;
19323       interix*)
19324         # This is c89, which is MS Visual C++ (no shared libs)
19325         # Anyone wants to do a port?
19326         ;;
19327       irix5* | irix6* | nonstopux*)
19328         case $cc_basename in
19329           CC*)
19330             lt_prog_compiler_wl_CXX='-Wl,'
19331             lt_prog_compiler_static_CXX='-non_shared'
19332             # CC pic flag -KPIC is the default.
19333             ;;
19334           *)
19335             ;;
19336         esac
19337         ;;
19338       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19339         case $cc_basename in
19340           KCC*)
19341             # KAI C++ Compiler
19342             lt_prog_compiler_wl_CXX='--backend -Wl,'
19343             lt_prog_compiler_pic_CXX='-fPIC'
19344             ;;
19345           ecpc* )
19346             # old Intel C++ for x86_64 which still supported -KPIC.
19347             lt_prog_compiler_wl_CXX='-Wl,'
19348             lt_prog_compiler_pic_CXX='-KPIC'
19349             lt_prog_compiler_static_CXX='-static'
19350             ;;
19351           icpc* )
19352             # Intel C++, used to be incompatible with GCC.
19353             # ICC 10 doesn't accept -KPIC any more.
19354             lt_prog_compiler_wl_CXX='-Wl,'
19355             lt_prog_compiler_pic_CXX='-fPIC'
19356             lt_prog_compiler_static_CXX='-static'
19357             ;;
19358           pgCC* | pgcpp*)
19359             # Portland Group C++ compiler
19360             lt_prog_compiler_wl_CXX='-Wl,'
19361             lt_prog_compiler_pic_CXX='-fpic'
19362             lt_prog_compiler_static_CXX='-Bstatic'
19363             ;;
19364           cxx*)
19365             # Compaq C++
19366             # Make sure the PIC flag is empty.  It appears that all Alpha
19367             # Linux and Compaq Tru64 Unix objects are PIC.
19368             lt_prog_compiler_pic_CXX=
19369             lt_prog_compiler_static_CXX='-non_shared'
19370             ;;
19371           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19372             # IBM XL 8.0, 9.0 on PPC and BlueGene
19373             lt_prog_compiler_wl_CXX='-Wl,'
19374             lt_prog_compiler_pic_CXX='-qpic'
19375             lt_prog_compiler_static_CXX='-qstaticlink'
19376             ;;
19377           *)
19378             case `$CC -V 2>&1 | sed 5q` in
19379             *Sun\ C*)
19380               # Sun C++ 5.9
19381               lt_prog_compiler_pic_CXX='-KPIC'
19382               lt_prog_compiler_static_CXX='-Bstatic'
19383               lt_prog_compiler_wl_CXX='-Qoption ld '
19384               ;;
19385             esac
19386             ;;
19387         esac
19388         ;;
19389       lynxos*)
19390         ;;
19391       m88k*)
19392         ;;
19393       mvs*)
19394         case $cc_basename in
19395           cxx*)
19396             lt_prog_compiler_pic_CXX='-W c,exportall'
19397             ;;
19398           *)
19399             ;;
19400         esac
19401         ;;
19402       netbsd*)
19403         ;;
19404       *qnx* | *nto*)
19405         # QNX uses GNU C++, but need to define -shared option too, otherwise
19406         # it will coredump.
19407         lt_prog_compiler_pic_CXX='-fPIC -shared'
19408         ;;
19409       osf3* | osf4* | osf5*)
19410         case $cc_basename in
19411           KCC*)
19412             lt_prog_compiler_wl_CXX='--backend -Wl,'
19413             ;;
19414           RCC*)
19415             # Rational C++ 2.4.1
19416             lt_prog_compiler_pic_CXX='-pic'
19417             ;;
19418           cxx*)
19419             # Digital/Compaq C++
19420             lt_prog_compiler_wl_CXX='-Wl,'
19421             # Make sure the PIC flag is empty.  It appears that all Alpha
19422             # Linux and Compaq Tru64 Unix objects are PIC.
19423             lt_prog_compiler_pic_CXX=
19424             lt_prog_compiler_static_CXX='-non_shared'
19425             ;;
19426           *)
19427             ;;
19428         esac
19429         ;;
19430       psos*)
19431         ;;
19432       solaris*)
19433         case $cc_basename in
19434           CC*)
19435             # Sun C++ 4.2, 5.x and Centerline C++
19436             lt_prog_compiler_pic_CXX='-KPIC'
19437             lt_prog_compiler_static_CXX='-Bstatic'
19438             lt_prog_compiler_wl_CXX='-Qoption ld '
19439             ;;
19440           gcx*)
19441             # Green Hills C++ Compiler
19442             lt_prog_compiler_pic_CXX='-PIC'
19443             ;;
19444           *)
19445             ;;
19446         esac
19447         ;;
19448       sunos4*)
19449         case $cc_basename in
19450           CC*)
19451             # Sun C++ 4.x
19452             lt_prog_compiler_pic_CXX='-pic'
19453             lt_prog_compiler_static_CXX='-Bstatic'
19454             ;;
19455           lcc*)
19456             # Lucid
19457             lt_prog_compiler_pic_CXX='-pic'
19458             ;;
19459           *)
19460             ;;
19461         esac
19462         ;;
19463       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19464         case $cc_basename in
19465           CC*)
19466             lt_prog_compiler_wl_CXX='-Wl,'
19467             lt_prog_compiler_pic_CXX='-KPIC'
19468             lt_prog_compiler_static_CXX='-Bstatic'
19469             ;;
19470         esac
19471         ;;
19472       tandem*)
19473         case $cc_basename in
19474           NCC*)
19475             # NonStop-UX NCC 3.20
19476             lt_prog_compiler_pic_CXX='-KPIC'
19477             ;;
19478           *)
19479             ;;
19480         esac
19481         ;;
19482       vxworks*)
19483         ;;
19484       *)
19485         lt_prog_compiler_can_build_shared_CXX=no
19486         ;;
19487     esac
19488   fi
19489
19490 case $host_os in
19491   # For platforms which do not support PIC, -DPIC is meaningless:
19492   *djgpp*)
19493     lt_prog_compiler_pic_CXX=
19494     ;;
19495   *)
19496     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19497     ;;
19498 esac
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19500 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19501
19502
19503
19504 #
19505 # Check to make sure the PIC flag actually works.
19506 #
19507 if test -n "$lt_prog_compiler_pic_CXX"; then
19508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19509 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19510 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19511   $as_echo_n "(cached) " >&6
19512 else
19513   lt_cv_prog_compiler_pic_works_CXX=no
19514    ac_outfile=conftest.$ac_objext
19515    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19516    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19517    # Insert the option either (1) after the last *FLAGS variable, or
19518    # (2) before a word containing "conftest.", or (3) at the end.
19519    # Note that $ac_compile itself does not contain backslashes and begins
19520    # with a dollar sign (not a hyphen), so the echo should work correctly.
19521    # The option is referenced via a variable to avoid confusing sed.
19522    lt_compile=`echo "$ac_compile" | $SED \
19523    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19524    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19525    -e 's:$: $lt_compiler_flag:'`
19526    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19527    (eval "$lt_compile" 2>conftest.err)
19528    ac_status=$?
19529    cat conftest.err >&5
19530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531    if (exit $ac_status) && test -s "$ac_outfile"; then
19532      # The compiler can only warn and ignore the option if not recognized
19533      # So say no if there are warnings other than the usual output.
19534      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19535      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19536      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19537        lt_cv_prog_compiler_pic_works_CXX=yes
19538      fi
19539    fi
19540    $RM conftest*
19541
19542 fi
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19544 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19545
19546 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19547     case $lt_prog_compiler_pic_CXX in
19548      "" | " "*) ;;
19549      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19550      esac
19551 else
19552     lt_prog_compiler_pic_CXX=
19553      lt_prog_compiler_can_build_shared_CXX=no
19554 fi
19555
19556 fi
19557
19558
19559
19560 #
19561 # Check to make sure the static flag actually works.
19562 #
19563 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19565 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19566 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19567   $as_echo_n "(cached) " >&6
19568 else
19569   lt_cv_prog_compiler_static_works_CXX=no
19570    save_LDFLAGS="$LDFLAGS"
19571    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19572    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19573    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19574      # The linker can only warn and ignore the option if not recognized
19575      # So say no if there are warnings
19576      if test -s conftest.err; then
19577        # Append any errors to the config.log.
19578        cat conftest.err 1>&5
19579        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19580        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19581        if diff conftest.exp conftest.er2 >/dev/null; then
19582          lt_cv_prog_compiler_static_works_CXX=yes
19583        fi
19584      else
19585        lt_cv_prog_compiler_static_works_CXX=yes
19586      fi
19587    fi
19588    $RM -r conftest*
19589    LDFLAGS="$save_LDFLAGS"
19590
19591 fi
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19593 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19594
19595 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19596     :
19597 else
19598     lt_prog_compiler_static_CXX=
19599 fi
19600
19601
19602
19603
19604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19605 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19606 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19607   $as_echo_n "(cached) " >&6
19608 else
19609   lt_cv_prog_compiler_c_o_CXX=no
19610    $RM -r conftest 2>/dev/null
19611    mkdir conftest
19612    cd conftest
19613    mkdir out
19614    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19615
19616    lt_compiler_flag="-o out/conftest2.$ac_objext"
19617    # Insert the option either (1) after the last *FLAGS variable, or
19618    # (2) before a word containing "conftest.", or (3) at the end.
19619    # Note that $ac_compile itself does not contain backslashes and begins
19620    # with a dollar sign (not a hyphen), so the echo should work correctly.
19621    lt_compile=`echo "$ac_compile" | $SED \
19622    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19623    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19624    -e 's:$: $lt_compiler_flag:'`
19625    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19626    (eval "$lt_compile" 2>out/conftest.err)
19627    ac_status=$?
19628    cat out/conftest.err >&5
19629    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19631    then
19632      # The compiler can only warn and ignore the option if not recognized
19633      # So say no if there are warnings
19634      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19635      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19636      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19637        lt_cv_prog_compiler_c_o_CXX=yes
19638      fi
19639    fi
19640    chmod u+w . 2>&5
19641    $RM conftest*
19642    # SGI C++ compiler will create directory out/ii_files/ for
19643    # template instantiation
19644    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19645    $RM out/* && rmdir out
19646    cd ..
19647    $RM -r conftest
19648    $RM conftest*
19649
19650 fi
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19652 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19653
19654
19655
19656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19658 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19659   $as_echo_n "(cached) " >&6
19660 else
19661   lt_cv_prog_compiler_c_o_CXX=no
19662    $RM -r conftest 2>/dev/null
19663    mkdir conftest
19664    cd conftest
19665    mkdir out
19666    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19667
19668    lt_compiler_flag="-o out/conftest2.$ac_objext"
19669    # Insert the option either (1) after the last *FLAGS variable, or
19670    # (2) before a word containing "conftest.", or (3) at the end.
19671    # Note that $ac_compile itself does not contain backslashes and begins
19672    # with a dollar sign (not a hyphen), so the echo should work correctly.
19673    lt_compile=`echo "$ac_compile" | $SED \
19674    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19675    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19676    -e 's:$: $lt_compiler_flag:'`
19677    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19678    (eval "$lt_compile" 2>out/conftest.err)
19679    ac_status=$?
19680    cat out/conftest.err >&5
19681    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19683    then
19684      # The compiler can only warn and ignore the option if not recognized
19685      # So say no if there are warnings
19686      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19687      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19688      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19689        lt_cv_prog_compiler_c_o_CXX=yes
19690      fi
19691    fi
19692    chmod u+w . 2>&5
19693    $RM conftest*
19694    # SGI C++ compiler will create directory out/ii_files/ for
19695    # template instantiation
19696    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19697    $RM out/* && rmdir out
19698    cd ..
19699    $RM -r conftest
19700    $RM conftest*
19701
19702 fi
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19704 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19705
19706
19707
19708
19709 hard_links="nottested"
19710 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19711   # do not overwrite the value of need_locks provided by the user
19712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19713 $as_echo_n "checking if we can lock with hard links... " >&6; }
19714   hard_links=yes
19715   $RM conftest*
19716   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19717   touch conftest.a
19718   ln conftest.a conftest.b 2>&5 || hard_links=no
19719   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19721 $as_echo "$hard_links" >&6; }
19722   if test "$hard_links" = no; then
19723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19724 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19725     need_locks=warn
19726   fi
19727 else
19728   need_locks=no
19729 fi
19730
19731
19732
19733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19734 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19735
19736   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19737   case $host_os in
19738   aix[4-9]*)
19739     # If we're using GNU nm, then we don't want the "-C" option.
19740     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19741     # Also, AIX nm treats weak defined symbols like other global defined
19742     # symbols, whereas GNU nm marks them as "W".
19743     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19744       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'
19745     else
19746       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'
19747     fi
19748     ;;
19749   pw32*)
19750     export_symbols_cmds_CXX="$ltdll_cmds"
19751   ;;
19752   cygwin* | mingw* | cegcc*)
19753     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'
19754   ;;
19755   *)
19756     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19757   ;;
19758   esac
19759   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19760
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19762 $as_echo "$ld_shlibs_CXX" >&6; }
19763 test "$ld_shlibs_CXX" = no && can_build_shared=no
19764
19765 with_gnu_ld_CXX=$with_gnu_ld
19766
19767
19768
19769
19770
19771
19772 #
19773 # Do we need to explicitly link libc?
19774 #
19775 case "x$archive_cmds_need_lc_CXX" in
19776 x|xyes)
19777   # Assume -lc should be added
19778   archive_cmds_need_lc_CXX=yes
19779
19780   if test "$enable_shared" = yes && test "$GCC" = yes; then
19781     case $archive_cmds_CXX in
19782     *'~'*)
19783       # FIXME: we may have to deal with multi-command sequences.
19784       ;;
19785     '$CC '*)
19786       # Test whether the compiler implicitly links with -lc since on some
19787       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19788       # to ld, don't add -lc before -lgcc.
19789       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19791 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19792   $as_echo_n "(cached) " >&6
19793 else
19794   $RM conftest*
19795         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19796
19797         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19798   (eval $ac_compile) 2>&5
19799   ac_status=$?
19800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19801   test $ac_status = 0; } 2>conftest.err; then
19802           soname=conftest
19803           lib=conftest
19804           libobjs=conftest.$ac_objext
19805           deplibs=
19806           wl=$lt_prog_compiler_wl_CXX
19807           pic_flag=$lt_prog_compiler_pic_CXX
19808           compiler_flags=-v
19809           linker_flags=-v
19810           verstring=
19811           output_objdir=.
19812           libname=conftest
19813           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19814           allow_undefined_flag_CXX=
19815           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19816   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19817   ac_status=$?
19818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19819   test $ac_status = 0; }
19820           then
19821             lt_cv_archive_cmds_need_lc_CXX=no
19822           else
19823             lt_cv_archive_cmds_need_lc_CXX=yes
19824           fi
19825           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19826         else
19827           cat conftest.err 1>&5
19828         fi
19829         $RM conftest*
19830
19831 fi
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19833 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19834       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19835       ;;
19836     esac
19837   fi
19838   ;;
19839 esac
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19905 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19906
19907 library_names_spec=
19908 libname_spec='lib$name'
19909 soname_spec=
19910 shrext_cmds=".so"
19911 postinstall_cmds=
19912 postuninstall_cmds=
19913 finish_cmds=
19914 finish_eval=
19915 shlibpath_var=
19916 shlibpath_overrides_runpath=unknown
19917 version_type=none
19918 dynamic_linker="$host_os ld.so"
19919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19920 need_lib_prefix=unknown
19921 hardcode_into_libs=no
19922
19923 # when you set need_version to no, make sure it does not cause -set_version
19924 # flags to be left without arguments
19925 need_version=unknown
19926
19927 case $host_os in
19928 aix3*)
19929   version_type=linux
19930   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19931   shlibpath_var=LIBPATH
19932
19933   # AIX 3 has no versioning support, so we append a major version to the name.
19934   soname_spec='${libname}${release}${shared_ext}$major'
19935   ;;
19936
19937 aix[4-9]*)
19938   version_type=linux
19939   need_lib_prefix=no
19940   need_version=no
19941   hardcode_into_libs=yes
19942   if test "$host_cpu" = ia64; then
19943     # AIX 5 supports IA64
19944     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19945     shlibpath_var=LD_LIBRARY_PATH
19946   else
19947     # With GCC up to 2.95.x, collect2 would create an import file
19948     # for dependence libraries.  The import file would start with
19949     # the line `#! .'.  This would cause the generated library to
19950     # depend on `.', always an invalid library.  This was fixed in
19951     # development snapshots of GCC prior to 3.0.
19952     case $host_os in
19953       aix4 | aix4.[01] | aix4.[01].*)
19954       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19955            echo ' yes '
19956            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19957         :
19958       else
19959         can_build_shared=no
19960       fi
19961       ;;
19962     esac
19963     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19964     # soname into executable. Probably we can add versioning support to
19965     # collect2, so additional links can be useful in future.
19966     if test "$aix_use_runtimelinking" = yes; then
19967       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19968       # instead of lib<name>.a to let people know that these are not
19969       # typical AIX shared libraries.
19970       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19971     else
19972       # We preserve .a as extension for shared libraries through AIX4.2
19973       # and later when we are not doing run time linking.
19974       library_names_spec='${libname}${release}.a $libname.a'
19975       soname_spec='${libname}${release}${shared_ext}$major'
19976     fi
19977     shlibpath_var=LIBPATH
19978   fi
19979   ;;
19980
19981 amigaos*)
19982   case $host_cpu in
19983   powerpc)
19984     # Since July 2007 AmigaOS4 officially supports .so libraries.
19985     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19987     ;;
19988   m68k)
19989     library_names_spec='$libname.ixlibrary $libname.a'
19990     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19991     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'
19992     ;;
19993   esac
19994   ;;
19995
19996 beos*)
19997   library_names_spec='${libname}${shared_ext}'
19998   dynamic_linker="$host_os ld.so"
19999   shlibpath_var=LIBRARY_PATH
20000   ;;
20001
20002 bsdi[45]*)
20003   version_type=linux
20004   need_version=no
20005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20006   soname_spec='${libname}${release}${shared_ext}$major'
20007   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20008   shlibpath_var=LD_LIBRARY_PATH
20009   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20010   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20011   # the default ld.so.conf also contains /usr/contrib/lib and
20012   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20013   # libtool to hard-code these into programs
20014   ;;
20015
20016 cygwin* | mingw* | pw32* | cegcc*)
20017   version_type=windows
20018   shrext_cmds=".dll"
20019   need_version=no
20020   need_lib_prefix=no
20021
20022   case $GCC,$host_os in
20023   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20024     library_names_spec='$libname.dll.a'
20025     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20026     postinstall_cmds='base_file=`basename \${file}`~
20027       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20028       dldir=$destdir/`dirname \$dlpath`~
20029       test -d \$dldir || mkdir -p \$dldir~
20030       $install_prog $dir/$dlname \$dldir/$dlname~
20031       chmod a+x \$dldir/$dlname~
20032       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20033         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20034       fi'
20035     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20036       dlpath=$dir/\$dldll~
20037        $RM \$dlpath'
20038     shlibpath_overrides_runpath=yes
20039
20040     case $host_os in
20041     cygwin*)
20042       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20043       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20044
20045       ;;
20046     mingw* | cegcc*)
20047       # MinGW DLLs use traditional 'lib' prefix
20048       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20049       ;;
20050     pw32*)
20051       # pw32 DLLs use 'pw' prefix rather than 'lib'
20052       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20053       ;;
20054     esac
20055     ;;
20056
20057   *)
20058     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20059     ;;
20060   esac
20061   dynamic_linker='Win32 ld.exe'
20062   # FIXME: first we should search . and the directory the executable is in
20063   shlibpath_var=PATH
20064   ;;
20065
20066 darwin* | rhapsody*)
20067   dynamic_linker="$host_os dyld"
20068   version_type=darwin
20069   need_lib_prefix=no
20070   need_version=no
20071   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20072   soname_spec='${libname}${release}${major}$shared_ext'
20073   shlibpath_overrides_runpath=yes
20074   shlibpath_var=DYLD_LIBRARY_PATH
20075   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20076
20077   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20078   ;;
20079
20080 dgux*)
20081   version_type=linux
20082   need_lib_prefix=no
20083   need_version=no
20084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20085   soname_spec='${libname}${release}${shared_ext}$major'
20086   shlibpath_var=LD_LIBRARY_PATH
20087   ;;
20088
20089 freebsd1*)
20090   dynamic_linker=no
20091   ;;
20092
20093 freebsd* | dragonfly*)
20094   # DragonFly does not have aout.  When/if they implement a new
20095   # versioning mechanism, adjust this.
20096   if test -x /usr/bin/objformat; then
20097     objformat=`/usr/bin/objformat`
20098   else
20099     case $host_os in
20100     freebsd[123]*) objformat=aout ;;
20101     *) objformat=elf ;;
20102     esac
20103   fi
20104   version_type=freebsd-$objformat
20105   case $version_type in
20106     freebsd-elf*)
20107       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20108       need_version=no
20109       need_lib_prefix=no
20110       ;;
20111     freebsd-*)
20112       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20113       need_version=yes
20114       ;;
20115   esac
20116   shlibpath_var=LD_LIBRARY_PATH
20117   case $host_os in
20118   freebsd2*)
20119     shlibpath_overrides_runpath=yes
20120     ;;
20121   freebsd3.[01]* | freebsdelf3.[01]*)
20122     shlibpath_overrides_runpath=yes
20123     hardcode_into_libs=yes
20124     ;;
20125   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20126   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20127     shlibpath_overrides_runpath=no
20128     hardcode_into_libs=yes
20129     ;;
20130   *) # from 4.6 on, and DragonFly
20131     shlibpath_overrides_runpath=yes
20132     hardcode_into_libs=yes
20133     ;;
20134   esac
20135   ;;
20136
20137 gnu*)
20138   version_type=linux
20139   need_lib_prefix=no
20140   need_version=no
20141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20142   soname_spec='${libname}${release}${shared_ext}$major'
20143   shlibpath_var=LD_LIBRARY_PATH
20144   hardcode_into_libs=yes
20145   ;;
20146
20147 haiku*)
20148   version_type=linux
20149   need_lib_prefix=no
20150   need_version=no
20151   dynamic_linker="$host_os runtime_loader"
20152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20153   soname_spec='${libname}${release}${shared_ext}$major'
20154   shlibpath_var=LIBRARY_PATH
20155   shlibpath_overrides_runpath=yes
20156   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20157   hardcode_into_libs=yes
20158   ;;
20159
20160 hpux9* | hpux10* | hpux11*)
20161   # Give a soname corresponding to the major version so that dld.sl refuses to
20162   # link against other versions.
20163   version_type=sunos
20164   need_lib_prefix=no
20165   need_version=no
20166   case $host_cpu in
20167   ia64*)
20168     shrext_cmds='.so'
20169     hardcode_into_libs=yes
20170     dynamic_linker="$host_os dld.so"
20171     shlibpath_var=LD_LIBRARY_PATH
20172     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20174     soname_spec='${libname}${release}${shared_ext}$major'
20175     if test "X$HPUX_IA64_MODE" = X32; then
20176       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20177     else
20178       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20179     fi
20180     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20181     ;;
20182   hppa*64*)
20183     shrext_cmds='.sl'
20184     hardcode_into_libs=yes
20185     dynamic_linker="$host_os dld.sl"
20186     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20187     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20189     soname_spec='${libname}${release}${shared_ext}$major'
20190     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20191     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20192     ;;
20193   *)
20194     shrext_cmds='.sl'
20195     dynamic_linker="$host_os dld.sl"
20196     shlibpath_var=SHLIB_PATH
20197     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199     soname_spec='${libname}${release}${shared_ext}$major'
20200     ;;
20201   esac
20202   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20203   postinstall_cmds='chmod 555 $lib'
20204   # or fails outright, so override atomically:
20205   install_override_mode=555
20206   ;;
20207
20208 interix[3-9]*)
20209   version_type=linux
20210   need_lib_prefix=no
20211   need_version=no
20212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20213   soname_spec='${libname}${release}${shared_ext}$major'
20214   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20215   shlibpath_var=LD_LIBRARY_PATH
20216   shlibpath_overrides_runpath=no
20217   hardcode_into_libs=yes
20218   ;;
20219
20220 irix5* | irix6* | nonstopux*)
20221   case $host_os in
20222     nonstopux*) version_type=nonstopux ;;
20223     *)
20224         if test "$lt_cv_prog_gnu_ld" = yes; then
20225                 version_type=linux
20226         else
20227                 version_type=irix
20228         fi ;;
20229   esac
20230   need_lib_prefix=no
20231   need_version=no
20232   soname_spec='${libname}${release}${shared_ext}$major'
20233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20234   case $host_os in
20235   irix5* | nonstopux*)
20236     libsuff= shlibsuff=
20237     ;;
20238   *)
20239     case $LD in # libtool.m4 will add one of these switches to LD
20240     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20241       libsuff= shlibsuff= libmagic=32-bit;;
20242     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20243       libsuff=32 shlibsuff=N32 libmagic=N32;;
20244     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20245       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20246     *) libsuff= shlibsuff= libmagic=never-match;;
20247     esac
20248     ;;
20249   esac
20250   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20251   shlibpath_overrides_runpath=no
20252   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20253   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20254   hardcode_into_libs=yes
20255   ;;
20256
20257 # No shared lib support for Linux oldld, aout, or coff.
20258 linux*oldld* | linux*aout* | linux*coff*)
20259   dynamic_linker=no
20260   ;;
20261
20262 # This must be Linux ELF.
20263 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20264   version_type=linux
20265   need_lib_prefix=no
20266   need_version=no
20267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20268   soname_spec='${libname}${release}${shared_ext}$major'
20269   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20270   shlibpath_var=LD_LIBRARY_PATH
20271   shlibpath_overrides_runpath=no
20272
20273   # Some binutils ld are patched to set DT_RUNPATH
20274   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20275   $as_echo_n "(cached) " >&6
20276 else
20277   lt_cv_shlibpath_overrides_runpath=no
20278     save_LDFLAGS=$LDFLAGS
20279     save_libdir=$libdir
20280     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20281          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h.  */
20284
20285 int
20286 main ()
20287 {
20288
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 if ac_fn_cxx_try_link "$LINENO"; then :
20294   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20295   lt_cv_shlibpath_overrides_runpath=yes
20296 fi
20297 fi
20298 rm -f core conftest.err conftest.$ac_objext \
20299     conftest$ac_exeext conftest.$ac_ext
20300     LDFLAGS=$save_LDFLAGS
20301     libdir=$save_libdir
20302
20303 fi
20304
20305   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20306
20307   # This implies no fast_install, which is unacceptable.
20308   # Some rework will be needed to allow for fast_install
20309   # before this can be enabled.
20310   hardcode_into_libs=yes
20311
20312   # Append ld.so.conf contents to the search path
20313   if test -f /etc/ld.so.conf; then
20314     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' ' '`
20315     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20316   fi
20317
20318   # We used to test for /lib/ld.so.1 and disable shared libraries on
20319   # powerpc, because MkLinux only supported shared libraries with the
20320   # GNU dynamic linker.  Since this was broken with cross compilers,
20321   # most powerpc-linux boxes support dynamic linking these days and
20322   # people can always --disable-shared, the test was removed, and we
20323   # assume the GNU/Linux dynamic linker is in use.
20324   dynamic_linker='GNU/Linux ld.so'
20325   ;;
20326
20327 netbsd*)
20328   version_type=sunos
20329   need_lib_prefix=no
20330   need_version=no
20331   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20333     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20334     dynamic_linker='NetBSD (a.out) ld.so'
20335   else
20336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20337     soname_spec='${libname}${release}${shared_ext}$major'
20338     dynamic_linker='NetBSD ld.elf_so'
20339   fi
20340   shlibpath_var=LD_LIBRARY_PATH
20341   shlibpath_overrides_runpath=yes
20342   hardcode_into_libs=yes
20343   ;;
20344
20345 newsos6)
20346   version_type=linux
20347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348   shlibpath_var=LD_LIBRARY_PATH
20349   shlibpath_overrides_runpath=yes
20350   ;;
20351
20352 *nto* | *qnx*)
20353   version_type=qnx
20354   need_lib_prefix=no
20355   need_version=no
20356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357   soname_spec='${libname}${release}${shared_ext}$major'
20358   shlibpath_var=LD_LIBRARY_PATH
20359   shlibpath_overrides_runpath=no
20360   hardcode_into_libs=yes
20361   dynamic_linker='ldqnx.so'
20362   ;;
20363
20364 openbsd*)
20365   version_type=sunos
20366   sys_lib_dlsearch_path_spec="/usr/lib"
20367   need_lib_prefix=no
20368   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20369   case $host_os in
20370     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20371     *)                          need_version=no  ;;
20372   esac
20373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20374   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20375   shlibpath_var=LD_LIBRARY_PATH
20376   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20377     case $host_os in
20378       openbsd2.[89] | openbsd2.[89].*)
20379         shlibpath_overrides_runpath=no
20380         ;;
20381       *)
20382         shlibpath_overrides_runpath=yes
20383         ;;
20384       esac
20385   else
20386     shlibpath_overrides_runpath=yes
20387   fi
20388   ;;
20389
20390 os2*)
20391   libname_spec='$name'
20392   shrext_cmds=".dll"
20393   need_lib_prefix=no
20394   library_names_spec='$libname${shared_ext} $libname.a'
20395   dynamic_linker='OS/2 ld.exe'
20396   shlibpath_var=LIBPATH
20397   ;;
20398
20399 osf3* | osf4* | osf5*)
20400   version_type=osf
20401   need_lib_prefix=no
20402   need_version=no
20403   soname_spec='${libname}${release}${shared_ext}$major'
20404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20405   shlibpath_var=LD_LIBRARY_PATH
20406   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20407   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20408   ;;
20409
20410 rdos*)
20411   dynamic_linker=no
20412   ;;
20413
20414 solaris*)
20415   version_type=linux
20416   need_lib_prefix=no
20417   need_version=no
20418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419   soname_spec='${libname}${release}${shared_ext}$major'
20420   shlibpath_var=LD_LIBRARY_PATH
20421   shlibpath_overrides_runpath=yes
20422   hardcode_into_libs=yes
20423   # ldd complains unless libraries are executable
20424   postinstall_cmds='chmod +x $lib'
20425   ;;
20426
20427 sunos4*)
20428   version_type=sunos
20429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20430   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20431   shlibpath_var=LD_LIBRARY_PATH
20432   shlibpath_overrides_runpath=yes
20433   if test "$with_gnu_ld" = yes; then
20434     need_lib_prefix=no
20435   fi
20436   need_version=yes
20437   ;;
20438
20439 sysv4 | sysv4.3*)
20440   version_type=linux
20441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20442   soname_spec='${libname}${release}${shared_ext}$major'
20443   shlibpath_var=LD_LIBRARY_PATH
20444   case $host_vendor in
20445     sni)
20446       shlibpath_overrides_runpath=no
20447       need_lib_prefix=no
20448       runpath_var=LD_RUN_PATH
20449       ;;
20450     siemens)
20451       need_lib_prefix=no
20452       ;;
20453     motorola)
20454       need_lib_prefix=no
20455       need_version=no
20456       shlibpath_overrides_runpath=no
20457       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20458       ;;
20459   esac
20460   ;;
20461
20462 sysv4*MP*)
20463   if test -d /usr/nec ;then
20464     version_type=linux
20465     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20466     soname_spec='$libname${shared_ext}.$major'
20467     shlibpath_var=LD_LIBRARY_PATH
20468   fi
20469   ;;
20470
20471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20472   version_type=freebsd-elf
20473   need_lib_prefix=no
20474   need_version=no
20475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20476   soname_spec='${libname}${release}${shared_ext}$major'
20477   shlibpath_var=LD_LIBRARY_PATH
20478   shlibpath_overrides_runpath=yes
20479   hardcode_into_libs=yes
20480   if test "$with_gnu_ld" = yes; then
20481     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20482   else
20483     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20484     case $host_os in
20485       sco3.2v5*)
20486         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20487         ;;
20488     esac
20489   fi
20490   sys_lib_dlsearch_path_spec='/usr/lib'
20491   ;;
20492
20493 tpf*)
20494   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20495   version_type=linux
20496   need_lib_prefix=no
20497   need_version=no
20498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499   shlibpath_var=LD_LIBRARY_PATH
20500   shlibpath_overrides_runpath=no
20501   hardcode_into_libs=yes
20502   ;;
20503
20504 uts4*)
20505   version_type=linux
20506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20507   soname_spec='${libname}${release}${shared_ext}$major'
20508   shlibpath_var=LD_LIBRARY_PATH
20509   ;;
20510
20511 *)
20512   dynamic_linker=no
20513   ;;
20514 esac
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20516 $as_echo "$dynamic_linker" >&6; }
20517 test "$dynamic_linker" = no && can_build_shared=no
20518
20519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20520 if test "$GCC" = yes; then
20521   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20522 fi
20523
20524 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20525   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20526 fi
20527 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20528   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20529 fi
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20569 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20570 hardcode_action_CXX=
20571 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20572    test -n "$runpath_var_CXX" ||
20573    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20574
20575   # We can hardcode non-existent directories.
20576   if test "$hardcode_direct_CXX" != no &&
20577      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20578      # have to relink, otherwise we might link with an installed library
20579      # when we should be linking with a yet-to-be-installed one
20580      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20581      test "$hardcode_minus_L_CXX" != no; then
20582     # Linking always hardcodes the temporary library directory.
20583     hardcode_action_CXX=relink
20584   else
20585     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20586     hardcode_action_CXX=immediate
20587   fi
20588 else
20589   # We cannot hardcode anything, or else we can only hardcode existing
20590   # directories.
20591   hardcode_action_CXX=unsupported
20592 fi
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20594 $as_echo "$hardcode_action_CXX" >&6; }
20595
20596 if test "$hardcode_action_CXX" = relink ||
20597    test "$inherit_rpath_CXX" = yes; then
20598   # Fast installation is not supported
20599   enable_fast_install=no
20600 elif test "$shlibpath_overrides_runpath" = yes ||
20601      test "$enable_shared" = no; then
20602   # Fast installation is not necessary
20603   enable_fast_install=needless
20604 fi
20605
20606
20607
20608
20609
20610
20611
20612   fi # test -n "$compiler"
20613
20614   CC=$lt_save_CC
20615   LDCXX=$LD
20616   LD=$lt_save_LD
20617   GCC=$lt_save_GCC
20618   with_gnu_ld=$lt_save_with_gnu_ld
20619   lt_cv_path_LDCXX=$lt_cv_path_LD
20620   lt_cv_path_LD=$lt_save_path_LD
20621   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20622   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20623 fi # test "$_lt_caught_CXX_error" != yes
20624
20625 ac_ext=c
20626 ac_cpp='$CPP $CPPFLAGS'
20627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646 # Only expand once:
20647
20648
20649
20650
20651
20652 # Identify the assembler which will work hand-in-glove with the newly
20653 # built GCC, so that we can examine its features.  This is the assembler
20654 # which will be driven by the driver program.
20655 #
20656 # If build != host, and we aren't building gas in-tree, we identify a
20657 # build->target assembler and hope that it will have the same features
20658 # as the host->target assembler we'll be using.
20659 gcc_cv_gas_major_version=
20660 gcc_cv_gas_minor_version=
20661 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20662
20663 if test "${gcc_cv_as+set}" = set; then :
20664
20665 else
20666
20667 if test -x "$DEFAULT_ASSEMBLER"; then
20668         gcc_cv_as="$DEFAULT_ASSEMBLER"
20669 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20670      && test -f ../gas/Makefile \
20671      && test x$build = x$host; then
20672         gcc_cv_as=../gas/as-new$build_exeext
20673 elif test -x as$build_exeext; then
20674         # Build using assembler in the current directory.
20675         gcc_cv_as=./as$build_exeext
20676 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20677         gcc_cv_as="$AS_FOR_TARGET"
20678 else
20679         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20680 set dummy $AS_FOR_TARGET; ac_word=$2
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20682 $as_echo_n "checking for $ac_word... " >&6; }
20683 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20684   $as_echo_n "(cached) " >&6
20685 else
20686   case $gcc_cv_as in
20687   [\\/]* | ?:[\\/]*)
20688   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20689   ;;
20690   *)
20691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20692 for as_dir in $PATH
20693 do
20694   IFS=$as_save_IFS
20695   test -z "$as_dir" && as_dir=.
20696     for ac_exec_ext in '' $ac_executable_extensions; do
20697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20698     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20700     break 2
20701   fi
20702 done
20703   done
20704 IFS=$as_save_IFS
20705
20706   ;;
20707 esac
20708 fi
20709 gcc_cv_as=$ac_cv_path_gcc_cv_as
20710 if test -n "$gcc_cv_as"; then
20711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20712 $as_echo "$gcc_cv_as" >&6; }
20713 else
20714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20715 $as_echo "no" >&6; }
20716 fi
20717
20718
20719 fi
20720 fi
20721
20722 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20723
20724 case "$ORIGINAL_AS_FOR_TARGET" in
20725   ./as | ./as$build_exeext) ;;
20726   *) ac_config_files="$ac_config_files as:exec-tool.in"
20727  ;;
20728 esac
20729
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20731 $as_echo_n "checking what assembler to use... " >&6; }
20732 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20733   # Single tree build which includes gas.  We want to prefer it
20734   # over whatever linker top-level may have detected, since
20735   # we'll use what we're building after installation anyway.
20736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20737 $as_echo "newly built gas" >&6; }
20738   in_tree_gas=yes
20739   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20740 for f in $gcc_cv_as_bfd_srcdir/configure \
20741          $gcc_cv_as_gas_srcdir/configure \
20742          $gcc_cv_as_gas_srcdir/configure.in \
20743          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20744   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20745   if test x$gcc_cv_gas_version != x; then
20746     break
20747   fi
20748 done
20749 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20750 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20751 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20752 case $gcc_cv_gas_patch_version in
20753   "") gcc_cv_gas_patch_version="0" ;;
20754 esac
20755 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20756                             + $gcc_cv_gas_minor_version \) \* 1000 \
20757                             + $gcc_cv_gas_patch_version`
20758
20759   in_tree_gas_is_elf=no
20760   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20761      || (grep 'obj_format = multi' ../gas/Makefile \
20762          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20763   then
20764     in_tree_gas_is_elf=yes
20765   fi
20766 else
20767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20768 $as_echo "$gcc_cv_as" >&6; }
20769   in_tree_gas=no
20770 fi
20771
20772 # Identify the linker which will work hand-in-glove with the newly
20773 # built GCC, so that we can examine its features.  This is the linker
20774 # which will be driven by the driver program.
20775 #
20776 # If build != host, and we aren't building gas in-tree, we identify a
20777 # build->target linker and hope that it will have the same features
20778 # as the host->target linker we'll be using.
20779 gcc_cv_gld_major_version=
20780 gcc_cv_gld_minor_version=
20781 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20782 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20783
20784 if test "${gcc_cv_ld+set}" = set; then :
20785
20786 else
20787
20788 if test -x "$DEFAULT_LINKER"; then
20789         gcc_cv_ld="$DEFAULT_LINKER"
20790 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20791      && test -f ../ld/Makefile \
20792      && test x$build = x$host; then
20793         gcc_cv_ld=../ld/ld-new$build_exeext
20794 elif test -x collect-ld$build_exeext; then
20795         # Build using linker in the current directory.
20796         gcc_cv_ld=./collect-ld$build_exeext
20797 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
20798         gcc_cv_ld="$LD_FOR_TARGET"
20799 else
20800         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20801 set dummy $LD_FOR_TARGET; ac_word=$2
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20803 $as_echo_n "checking for $ac_word... " >&6; }
20804 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20805   $as_echo_n "(cached) " >&6
20806 else
20807   case $gcc_cv_ld in
20808   [\\/]* | ?:[\\/]*)
20809   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20810   ;;
20811   *)
20812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20813 for as_dir in $PATH
20814 do
20815   IFS=$as_save_IFS
20816   test -z "$as_dir" && as_dir=.
20817     for ac_exec_ext in '' $ac_executable_extensions; do
20818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20819     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20821     break 2
20822   fi
20823 done
20824   done
20825 IFS=$as_save_IFS
20826
20827   ;;
20828 esac
20829 fi
20830 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20831 if test -n "$gcc_cv_ld"; then
20832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20833 $as_echo "$gcc_cv_ld" >&6; }
20834 else
20835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20836 $as_echo "no" >&6; }
20837 fi
20838
20839
20840 fi
20841 fi
20842
20843 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20844 PLUGIN_LD=`basename $gcc_cv_ld`
20845
20846 # Check whether --with-plugin-ld was given.
20847 if test "${with_plugin_ld+set}" = set; then :
20848   withval=$with_plugin_ld; if test x"$withval" != x; then
20849    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20850    PLUGIN_LD="$withval"
20851  fi
20852 fi
20853
20854
20855
20856 cat >>confdefs.h <<_ACEOF
20857 #define PLUGIN_LD "$PLUGIN_LD"
20858 _ACEOF
20859
20860
20861 # Check to see if we are using gold instead of ld
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20863 $as_echo_n "checking whether we are using gold... " >&6; }
20864 ld_is_gold=no
20865 if test x$gcc_cv_ld != x; then
20866   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20867      | grep "GNU gold" > /dev/null; then
20868     ld_is_gold=yes
20869   fi
20870 fi
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20872 $as_echo "$ld_is_gold" >&6; }
20873
20874 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20875
20876 case "$ORIGINAL_LD_FOR_TARGET" in
20877   ./collect-ld | ./collect-ld$build_exeext) ;;
20878   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20879  ;;
20880 esac
20881
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20883 $as_echo_n "checking what linker to use... " >&6; }
20884 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20885         # Single tree build which includes ld.  We want to prefer it
20886         # over whatever linker top-level may have detected, since
20887         # we'll use what we're building after installation anyway.
20888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20889 $as_echo "newly built ld" >&6; }
20890         in_tree_ld=yes
20891         in_tree_ld_is_elf=no
20892         if (grep 'EMUL = .*elf' ../ld/Makefile \
20893             || grep 'EMUL = .*linux' ../ld/Makefile \
20894             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20895           in_tree_ld_is_elf=yes
20896         fi
20897         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
20898         do
20899                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20900                 if test x$gcc_cv_gld_version != x; then
20901                         break
20902                 fi
20903         done
20904         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20905         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20906 else
20907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20908 $as_echo "$gcc_cv_ld" >&6; }
20909         in_tree_ld=no
20910 fi
20911
20912 # Figure out what nm we will be using.
20913 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20914 if test "${gcc_cv_nm+set}" = set; then :
20915
20916 else
20917
20918 if test -f $gcc_cv_binutils_srcdir/configure.in \
20919      && test -f ../binutils/Makefile \
20920      && test x$build = x$host; then
20921         gcc_cv_nm=../binutils/nm-new$build_exeext
20922 elif test -x nm$build_exeext; then
20923         gcc_cv_nm=./nm$build_exeext
20924 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
20925         gcc_cv_nm="$NM_FOR_TARGET"
20926 else
20927         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20928 set dummy $NM_FOR_TARGET; ac_word=$2
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20930 $as_echo_n "checking for $ac_word... " >&6; }
20931 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20932   $as_echo_n "(cached) " >&6
20933 else
20934   case $gcc_cv_nm in
20935   [\\/]* | ?:[\\/]*)
20936   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20937   ;;
20938   *)
20939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20940 for as_dir in $PATH
20941 do
20942   IFS=$as_save_IFS
20943   test -z "$as_dir" && as_dir=.
20944     for ac_exec_ext in '' $ac_executable_extensions; do
20945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20946     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20948     break 2
20949   fi
20950 done
20951   done
20952 IFS=$as_save_IFS
20953
20954   ;;
20955 esac
20956 fi
20957 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20958 if test -n "$gcc_cv_nm"; then
20959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20960 $as_echo "$gcc_cv_nm" >&6; }
20961 else
20962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20963 $as_echo "no" >&6; }
20964 fi
20965
20966
20967 fi
20968 fi
20969
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20971 $as_echo_n "checking what nm to use... " >&6; }
20972 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20973         # Single tree build which includes binutils.
20974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20975 $as_echo "newly built nm" >&6; }
20976         in_tree_nm=yes
20977 else
20978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20979 $as_echo "$gcc_cv_nm" >&6; }
20980         in_tree_nm=no
20981 fi
20982
20983 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20984
20985 case "$ORIGINAL_NM_FOR_TARGET" in
20986   ./nm | ./nm$build_exeext) ;;
20987   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20988  ;;
20989 esac
20990
20991
20992 # Figure out what objdump we will be using.
20993 if test "${gcc_cv_objdump+set}" = set; then :
20994
20995 else
20996
20997 if test -f $gcc_cv_binutils_srcdir/configure.in \
20998      && test -f ../binutils/Makefile \
20999      && test x$build = x$host; then
21000         # Single tree build which includes binutils.
21001         gcc_cv_objdump=../binutils/objdump$build_exeext
21002 elif test -x objdump$build_exeext; then
21003         gcc_cv_objdump=./objdump$build_exeext
21004 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21005         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21006 else
21007         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21008 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21010 $as_echo_n "checking for $ac_word... " >&6; }
21011 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21012   $as_echo_n "(cached) " >&6
21013 else
21014   case $gcc_cv_objdump in
21015   [\\/]* | ?:[\\/]*)
21016   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21017   ;;
21018   *)
21019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21020 for as_dir in $PATH
21021 do
21022   IFS=$as_save_IFS
21023   test -z "$as_dir" && as_dir=.
21024     for ac_exec_ext in '' $ac_executable_extensions; do
21025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21026     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21028     break 2
21029   fi
21030 done
21031   done
21032 IFS=$as_save_IFS
21033
21034   ;;
21035 esac
21036 fi
21037 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21038 if test -n "$gcc_cv_objdump"; then
21039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21040 $as_echo "$gcc_cv_objdump" >&6; }
21041 else
21042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21043 $as_echo "no" >&6; }
21044 fi
21045
21046
21047 fi
21048 fi
21049
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21051 $as_echo_n "checking what objdump to use... " >&6; }
21052 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21053         # Single tree build which includes binutils.
21054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21055 $as_echo "newly built objdump" >&6; }
21056 elif test x$gcc_cv_objdump = x; then
21057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21058 $as_echo "not found" >&6; }
21059 else
21060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21061 $as_echo "$gcc_cv_objdump" >&6; }
21062 fi
21063
21064 # Figure out what readelf we will be using.
21065 if test "${gcc_cv_readelf+set}" = set; then :
21066
21067 else
21068
21069 if test -f $gcc_cv_binutils_srcdir/configure.in \
21070      && test -f ../binutils/Makefile \
21071      && test x$build = x$host; then
21072         # Single tree build which includes binutils.
21073         gcc_cv_readelf=../binutils/readelf$build_exeext
21074 elif test -x readelf$build_exeext; then
21075         gcc_cv_readelf=./readelf$build_exeext
21076 else
21077         # Extract the first word of "readelf", so it can be a program name with args.
21078 set dummy readelf; ac_word=$2
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21080 $as_echo_n "checking for $ac_word... " >&6; }
21081 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21082   $as_echo_n "(cached) " >&6
21083 else
21084   case $gcc_cv_readelf in
21085   [\\/]* | ?:[\\/]*)
21086   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21087   ;;
21088   *)
21089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21090 for as_dir in $PATH
21091 do
21092   IFS=$as_save_IFS
21093   test -z "$as_dir" && as_dir=.
21094     for ac_exec_ext in '' $ac_executable_extensions; do
21095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21096     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21098     break 2
21099   fi
21100 done
21101   done
21102 IFS=$as_save_IFS
21103
21104   ;;
21105 esac
21106 fi
21107 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21108 if test -n "$gcc_cv_readelf"; then
21109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21110 $as_echo "$gcc_cv_readelf" >&6; }
21111 else
21112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21113 $as_echo "no" >&6; }
21114 fi
21115
21116
21117 fi
21118 fi
21119
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21121 $as_echo_n "checking what readelf to use... " >&6; }
21122 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21123         # Single tree build which includes binutils.
21124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21125 $as_echo "newly built readelf" >&6; }
21126 elif test x$gcc_cv_readelf = x; then
21127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21128 $as_echo "not found" >&6; }
21129 else
21130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21131 $as_echo "$gcc_cv_readelf" >&6; }
21132 fi
21133
21134 # Figure out what assembler alignment features are present.
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21136 $as_echo_n "checking assembler flags... " >&6; }
21137 if test "${gcc_cv_as_flags+set}" = set; then :
21138   $as_echo_n "(cached) " >&6
21139 else
21140    case "$target" in
21141   i[34567]86-*-linux*)
21142         gcc_cv_as_flags="--32"
21143     ;;
21144   *)
21145     gcc_cv_as_flags=" "
21146     ;;
21147   esac
21148 fi
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21150 $as_echo "$gcc_cv_as_flags" >&6; }
21151
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21153 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21154 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21155   $as_echo_n "(cached) " >&6
21156 else
21157   gcc_cv_as_balign_and_p2align=no
21158     if test $in_tree_gas = yes; then
21159     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21160   then gcc_cv_as_balign_and_p2align=yes
21161 fi
21162   elif test x$gcc_cv_as != x; then
21163     echo '.balign 4
21164 .p2align 2' > conftest.s
21165     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21166   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21170   test $ac_status = 0; }; }
21171     then
21172         gcc_cv_as_balign_and_p2align=yes
21173     else
21174       echo "configure: failed program was" >&5
21175       cat conftest.s >&5
21176     fi
21177     rm -f conftest.o conftest.s
21178   fi
21179 fi
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21181 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21182 if test $gcc_cv_as_balign_and_p2align = yes; then
21183
21184 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21185
21186 fi
21187
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21189 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21190 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21191   $as_echo_n "(cached) " >&6
21192 else
21193   gcc_cv_as_max_skip_p2align=no
21194     if test $in_tree_gas = yes; then
21195     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21196   then gcc_cv_as_max_skip_p2align=yes
21197 fi
21198   elif test x$gcc_cv_as != x; then
21199     echo '.p2align 4,,7' > conftest.s
21200     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21201   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21202   (eval $ac_try) 2>&5
21203   ac_status=$?
21204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21205   test $ac_status = 0; }; }
21206     then
21207         gcc_cv_as_max_skip_p2align=yes
21208     else
21209       echo "configure: failed program was" >&5
21210       cat conftest.s >&5
21211     fi
21212     rm -f conftest.o conftest.s
21213   fi
21214 fi
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21216 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21217 if test $gcc_cv_as_max_skip_p2align = yes; then
21218
21219 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21220
21221 fi
21222
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21224 $as_echo_n "checking assembler for .literal16... " >&6; }
21225 if test "${gcc_cv_as_literal16+set}" = set; then :
21226   $as_echo_n "(cached) " >&6
21227 else
21228   gcc_cv_as_literal16=no
21229     if test $in_tree_gas = yes; then
21230     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21231   then gcc_cv_as_literal16=yes
21232 fi
21233   elif test x$gcc_cv_as != x; then
21234     echo '.literal16' > conftest.s
21235     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21236   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21237   (eval $ac_try) 2>&5
21238   ac_status=$?
21239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21240   test $ac_status = 0; }; }
21241     then
21242         gcc_cv_as_literal16=yes
21243     else
21244       echo "configure: failed program was" >&5
21245       cat conftest.s >&5
21246     fi
21247     rm -f conftest.o conftest.s
21248   fi
21249 fi
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21251 $as_echo "$gcc_cv_as_literal16" >&6; }
21252 if test $gcc_cv_as_literal16 = yes; then
21253
21254 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21255
21256 fi
21257
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21259 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21260 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21261   $as_echo_n "(cached) " >&6
21262 else
21263   gcc_cv_as_subsection_m1=no
21264     if test $in_tree_gas = yes; then
21265     if test $in_tree_gas_is_elf = yes \
21266   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21267   then gcc_cv_as_subsection_m1=yes
21268 fi
21269   elif test x$gcc_cv_as != x; then
21270     echo 'conftest_label1: .word 0
21271 .subsection -1
21272 conftest_label2: .word 0
21273 .previous' > conftest.s
21274     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21275   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21276   (eval $ac_try) 2>&5
21277   ac_status=$?
21278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21279   test $ac_status = 0; }; }
21280     then
21281         if test x$gcc_cv_nm != x; then
21282     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21283     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21284     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21285     then :
21286     else gcc_cv_as_subsection_m1=yes
21287     fi
21288     rm -f conftest.nm1 conftest.nm2
21289   fi
21290     else
21291       echo "configure: failed program was" >&5
21292       cat conftest.s >&5
21293     fi
21294     rm -f conftest.o conftest.s
21295   fi
21296 fi
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21298 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21299 if test $gcc_cv_as_subsection_m1 = yes; then
21300
21301 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21302
21303 fi
21304
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21306 $as_echo_n "checking assembler for .weak... " >&6; }
21307 if test "${gcc_cv_as_weak+set}" = set; then :
21308   $as_echo_n "(cached) " >&6
21309 else
21310   gcc_cv_as_weak=no
21311     if test $in_tree_gas = yes; then
21312     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21313   then gcc_cv_as_weak=yes
21314 fi
21315   elif test x$gcc_cv_as != x; then
21316     echo '      .weak foobar' > conftest.s
21317     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21318   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21319   (eval $ac_try) 2>&5
21320   ac_status=$?
21321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21322   test $ac_status = 0; }; }
21323     then
21324         gcc_cv_as_weak=yes
21325     else
21326       echo "configure: failed program was" >&5
21327       cat conftest.s >&5
21328     fi
21329     rm -f conftest.o conftest.s
21330   fi
21331 fi
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21333 $as_echo "$gcc_cv_as_weak" >&6; }
21334 if test $gcc_cv_as_weak = yes; then
21335
21336 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21337
21338 fi
21339
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21341 $as_echo_n "checking assembler for .weakref... " >&6; }
21342 if test "${gcc_cv_as_weakref+set}" = set; then :
21343   $as_echo_n "(cached) " >&6
21344 else
21345   gcc_cv_as_weakref=no
21346     if test $in_tree_gas = yes; then
21347     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21348   then gcc_cv_as_weakref=yes
21349 fi
21350   elif test x$gcc_cv_as != x; then
21351     echo '      .weakref foobar, barfnot' > conftest.s
21352     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21353   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21354   (eval $ac_try) 2>&5
21355   ac_status=$?
21356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21357   test $ac_status = 0; }; }
21358     then
21359         gcc_cv_as_weakref=yes
21360     else
21361       echo "configure: failed program was" >&5
21362       cat conftest.s >&5
21363     fi
21364     rm -f conftest.o conftest.s
21365   fi
21366 fi
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21368 $as_echo "$gcc_cv_as_weakref" >&6; }
21369 if test $gcc_cv_as_weakref = yes; then
21370
21371 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21372
21373 fi
21374
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21376 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21377 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21378   $as_echo_n "(cached) " >&6
21379 else
21380   gcc_cv_as_nsubspa_comdat=no
21381     if test $in_tree_gas = yes; then
21382     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21383   then gcc_cv_as_nsubspa_comdat=yes
21384 fi
21385   elif test x$gcc_cv_as != x; then
21386     echo '      .SPACE $TEXT$
21387         .NSUBSPA $CODE$,COMDAT' > conftest.s
21388     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21389   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21390   (eval $ac_try) 2>&5
21391   ac_status=$?
21392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21393   test $ac_status = 0; }; }
21394     then
21395         gcc_cv_as_nsubspa_comdat=yes
21396     else
21397       echo "configure: failed program was" >&5
21398       cat conftest.s >&5
21399     fi
21400     rm -f conftest.o conftest.s
21401   fi
21402 fi
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21404 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21405 if test $gcc_cv_as_nsubspa_comdat = yes; then
21406
21407 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21408
21409 fi
21410
21411 # .hidden needs to be supported in both the assembler and the linker,
21412 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21413 # This is irritatingly difficult to feature test for; we have to check the
21414 # date string after the version number.  If we've got an in-tree
21415 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21416 # to be safe.
21417 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21419 $as_echo_n "checking assembler for .hidden... " >&6; }
21420 if test "${gcc_cv_as_hidden+set}" = set; then :
21421   $as_echo_n "(cached) " >&6
21422 else
21423   gcc_cv_as_hidden=no
21424     if test $in_tree_gas = yes; then
21425     if test $in_tree_gas_is_elf = yes \
21426   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21427   then gcc_cv_as_hidden=yes
21428 fi
21429   elif test x$gcc_cv_as != x; then
21430     echo '      .hidden foobar
21431 foobar:' > conftest.s
21432     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21433   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21434   (eval $ac_try) 2>&5
21435   ac_status=$?
21436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21437   test $ac_status = 0; }; }
21438     then
21439
21440 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21441 # STV_HIDDEN, so disable .hidden support if so.
21442 case "${target}" in
21443   i?86-*-solaris2*)
21444     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21445       cat > conftest.s <<EOF
21446 .globl hidden
21447         .hidden hidden
21448 hidden:
21449 .globl default
21450         .set    default,hidden
21451 EOF
21452       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21453         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21454         grep '\.hidden default' > /dev/null; then
21455         gcc_cv_as_hidden=no
21456       else
21457         gcc_cv_as_hidden=yes
21458       fi
21459     else
21460       # Assume bug is present if objdump is missing.
21461       gcc_cv_as_hidden=no
21462     fi
21463     ;;
21464   *)
21465     gcc_cv_as_hidden=yes
21466     ;;
21467 esac
21468     else
21469       echo "configure: failed program was" >&5
21470       cat conftest.s >&5
21471     fi
21472     rm -f conftest.o conftest.s
21473   fi
21474 fi
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21476 $as_echo "$gcc_cv_as_hidden" >&6; }
21477
21478
21479 # gnu_indirect_function type is an extension proposed at
21480 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21481 # selection of function implementation
21482 # Check whether --enable-gnu-indirect-function was given.
21483 if test "${enable_gnu_indirect_function+set}" = set; then :
21484   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21485     yes | no) ;;
21486     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21487 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21488   esac
21489 else
21490   enable_gnu_indirect_function="$default_gnu_indirect_function"
21491 fi
21492
21493 if test x$enable_gnu_indirect_function = xyes; then
21494
21495 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21496
21497 fi
21498
21499 if test $in_tree_ld != yes ; then
21500   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21501   if test x"$ld_is_gold" = xyes; then
21502     gcc_cv_ld_hidden=yes
21503   elif echo "$ld_ver" | grep GNU > /dev/null; then
21504     ld_vers=`echo $ld_ver | sed -n \
21505         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21506     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'`
21507     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21508     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21509     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21510   else
21511     case "${target}" in
21512       *-*-solaris2*)
21513         #
21514         # Solaris 2 ld -V output looks like this for a regular version:
21515         #
21516         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21517         #
21518         # but test versions add stuff at the end:
21519         #
21520         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21521         #
21522         ld_ver=`$gcc_cv_ld -V 2>&1`
21523         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21524           ld_vers=`echo $ld_ver | sed -n \
21525             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21526           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21527           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21528         fi
21529         ;;
21530     esac
21531   fi
21532 fi
21533
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21535 $as_echo_n "checking linker for .hidden support... " >&6; }
21536 if test "${gcc_cv_ld_hidden+set}" = set; then :
21537   $as_echo_n "(cached) " >&6
21538 else
21539   if test $in_tree_ld = yes ; then
21540   gcc_cv_ld_hidden=no
21541   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 \
21542      && test $in_tree_ld_is_elf = yes; then
21543      gcc_cv_ld_hidden=yes
21544   fi
21545 else
21546   gcc_cv_ld_hidden=yes
21547   if echo "$ld_ver" | grep GNU > /dev/null; then
21548     if test 0"$ld_date" -lt 20020404; then
21549       if test -n "$ld_date"; then
21550         # If there was date string, but was earlier than 2002-04-04, fail
21551         gcc_cv_ld_hidden=no
21552       elif test -z "$ld_vers"; then
21553         # If there was no date string nor ld version number, something is wrong
21554         gcc_cv_ld_hidden=no
21555       else
21556         test -z "$ld_vers_patch" && ld_vers_patch=0
21557         if test "$ld_vers_major" -lt 2; then
21558           gcc_cv_ld_hidden=no
21559         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21560           gcc_cv_ld_hidden="no"
21561         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21562           gcc_cv_ld_hidden=no
21563         fi
21564       fi
21565     fi
21566   else
21567     case "${target}" in
21568       hppa64*-*-hpux* | ia64*-*-hpux*)
21569         gcc_cv_ld_hidden=yes
21570         ;;
21571       *-*-solaris2.8*)
21572         # .hidden support was backported to Solaris 8, starting with ld
21573         # version 1.276.
21574         if test "$ld_vers_minor" -ge 276; then
21575           gcc_cv_ld_hidden=yes
21576         else
21577           gcc_cv_ld_hidden=no
21578         fi
21579         ;;
21580       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21581         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21582         # .symbolic was only added in Solaris 9 12/02.
21583         gcc_cv_ld_hidden=yes
21584         ;;
21585       *)
21586         gcc_cv_ld_hidden=no
21587         ;;
21588     esac
21589   fi
21590 fi
21591 fi
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21593 $as_echo "$gcc_cv_ld_hidden" >&6; }
21594 libgcc_visibility=no
21595
21596
21597 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21598   libgcc_visibility=yes
21599
21600 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21601
21602 fi
21603
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21605 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21606 gcc_cv_ld_ro_rw_mix=unknown
21607 if test $in_tree_ld = yes ; then
21608   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 \
21609      && test $in_tree_ld_is_elf = yes; then
21610     gcc_cv_ld_ro_rw_mix=read-write
21611   fi
21612 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21613   echo '.section myfoosect, "a"' > conftest1.s
21614   echo '.section myfoosect, "aw"' > conftest2.s
21615   echo '.byte 1' >> conftest2.s
21616   echo '.section myfoosect, "a"' > conftest3.s
21617   echo '.byte 0' >> conftest3.s
21618   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21619      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21620      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21621      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21622         conftest2.o conftest3.o > /dev/null 2>&1; then
21623     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21624                          | sed -e '/myfoosect/!d' -e N`
21625     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21626       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21627         gcc_cv_ld_ro_rw_mix=read-only
21628       else
21629         gcc_cv_ld_ro_rw_mix=read-write
21630       fi
21631     fi
21632   fi
21633   rm -f conftest.* conftest[123].*
21634 fi
21635 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21636
21637 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21638
21639 fi
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21641 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21642
21643 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21645 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21646 if test "${gcc_cv_as_leb128+set}" = set; then :
21647   $as_echo_n "(cached) " >&6
21648 else
21649   gcc_cv_as_leb128=no
21650     if test $in_tree_gas = yes; then
21651     if test $in_tree_gas_is_elf = yes \
21652   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21653   then gcc_cv_as_leb128=yes
21654 fi
21655   elif test x$gcc_cv_as != x; then
21656     echo '      .data
21657         .uleb128 L2 - L1
21658 L1:
21659         .uleb128 1280
21660         .sleb128 -1010
21661 L2:' > conftest.s
21662     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21663   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21664   (eval $ac_try) 2>&5
21665   ac_status=$?
21666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21667   test $ac_status = 0; }; }
21668     then
21669         # GAS versions before 2.11 do not support uleb128,
21670   # despite appearing to.
21671   # ??? There exists an elf-specific test that will crash
21672   # the assembler.  Perhaps it's better to figure out whether
21673   # arbitrary sections are supported and try the test.
21674   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21675   if echo "$as_ver" | grep GNU > /dev/null; then
21676     as_vers=`echo $as_ver | sed -n \
21677         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21678     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21679     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21680     if test $as_major -eq 2 && test $as_minor -lt 11
21681     then :
21682     else gcc_cv_as_leb128=yes
21683     fi
21684   fi
21685     else
21686       echo "configure: failed program was" >&5
21687       cat conftest.s >&5
21688     fi
21689     rm -f conftest.o conftest.s
21690   fi
21691 fi
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21693 $as_echo "$gcc_cv_as_leb128" >&6; }
21694 if test $gcc_cv_as_leb128 = yes; then
21695
21696 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21697
21698 fi
21699
21700 # Check if we have assembler support for unwind directives.
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21702 $as_echo_n "checking assembler for cfi directives... " >&6; }
21703 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21704   $as_echo_n "(cached) " >&6
21705 else
21706   gcc_cv_as_cfi_directive=no
21707   if test x$gcc_cv_as != x; then
21708     echo '      .text
21709         .cfi_startproc
21710         .cfi_offset 0, 0
21711         .cfi_same_value 1
21712         .cfi_def_cfa 1, 2
21713         .cfi_escape 1, 2, 3, 4, 5
21714         .cfi_endproc' > conftest.s
21715     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21716   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21717   (eval $ac_try) 2>&5
21718   ac_status=$?
21719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21720   test $ac_status = 0; }; }
21721     then
21722         case "$target" in
21723   *-*-solaris*)
21724     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21725     # read-only and read-write sections, we need to make sure that the
21726     # assembler used emits read-write .eh_frame sections.
21727     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21728       if test "x$gcc_cv_objdump" != x; then
21729         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21730                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21731           gcc_cv_as_cfi_directive=no
21732         else
21733           case "$target" in
21734             i?86-*-solaris2.1[0-9]*)
21735               # On Solaris/x86, make sure that GCC and gas agree on using
21736               # read-only .eh_frame sections for 64-bit.
21737               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21738                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21739                         sed -e /.eh_frame/!d -e N | \
21740                         grep READONLY > /dev/null; then
21741                 gcc_cv_as_cfi_directive=yes
21742               else
21743                 gcc_cv_as_cfi_directive=no
21744               fi
21745               ;;
21746             *)
21747               gcc_cv_as_cfi_directive=yes
21748               ;;
21749           esac
21750         fi
21751       else
21752         # no objdump, err on the side of caution
21753         gcc_cv_as_cfi_directive=no
21754       fi
21755     else
21756       gcc_cv_as_cfi_directive=yes
21757     fi
21758     ;;
21759   *-*-*)
21760     gcc_cv_as_cfi_directive=yes
21761     ;;
21762 esac
21763     else
21764       echo "configure: failed program was" >&5
21765       cat conftest.s >&5
21766     fi
21767     rm -f conftest.o conftest.s
21768   fi
21769 fi
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21771 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21772
21773 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21775 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21776 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21777   $as_echo_n "(cached) " >&6
21778 else
21779   gcc_cv_as_cfi_advance_working=no
21780   if test x$gcc_cv_as != x; then
21781     echo '      .text
21782         .cfi_startproc
21783         .cfi_adjust_cfa_offset 64
21784         .skip 75040, 0
21785         .cfi_adjust_cfa_offset 128
21786         .cfi_endproc' > conftest.s
21787     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21788   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21789   (eval $ac_try) 2>&5
21790   ac_status=$?
21791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21792   test $ac_status = 0; }; }
21793     then
21794
21795 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21796     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
21797    gcc_cv_as_cfi_advance_working=yes
21798 fi
21799
21800     else
21801       echo "configure: failed program was" >&5
21802       cat conftest.s >&5
21803     fi
21804     rm -f conftest.o conftest.s
21805   fi
21806 fi
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21808 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21809
21810 else
21811   # no objdump, err on the side of caution
21812   gcc_cv_as_cfi_advance_working=no
21813 fi
21814
21815
21816 cat >>confdefs.h <<_ACEOF
21817 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21818        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21819 _ACEOF
21820
21821
21822
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21824 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21825 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21826   $as_echo_n "(cached) " >&6
21827 else
21828   gcc_cv_as_cfi_personality_directive=no
21829   if test x$gcc_cv_as != x; then
21830     echo '      .text
21831         .cfi_startproc
21832         .cfi_personality 0, symbol
21833         .cfi_endproc' > conftest.s
21834     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21835   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21836   (eval $ac_try) 2>&5
21837   ac_status=$?
21838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21839   test $ac_status = 0; }; }
21840     then
21841         gcc_cv_as_cfi_personality_directive=yes
21842     else
21843       echo "configure: failed program was" >&5
21844       cat conftest.s >&5
21845     fi
21846     rm -f conftest.o conftest.s
21847   fi
21848 fi
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21850 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21851
21852
21853 cat >>confdefs.h <<_ACEOF
21854 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21855     then echo 1; else echo 0; fi`
21856 _ACEOF
21857
21858
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21860 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21861 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21862   $as_echo_n "(cached) " >&6
21863 else
21864   gcc_cv_as_cfi_sections_directive=no
21865   if test x$gcc_cv_as != x; then
21866     echo '      .text
21867         .cfi_sections .debug_frame, .eh_frame
21868         .cfi_startproc
21869         .cfi_endproc' > conftest.s
21870     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21871   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21872   (eval $ac_try) 2>&5
21873   ac_status=$?
21874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21875   test $ac_status = 0; }; }
21876     then
21877         case $target_os in
21878   win32 | pe | cygwin* | mingw32* | uwin*)
21879     # Need to check that we generated the correct relocation for the
21880     # .debug_frame section.  This was fixed for binutils 2.21.
21881     gcc_cv_as_cfi_sections_directive=no
21882     if test "x$gcc_cv_objdump" != x; then
21883      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21884         grep secrel > /dev/null; then
21885       gcc_cv_as_cfi_sections_directive=yes
21886      fi
21887     fi
21888     ;;
21889   *)
21890     gcc_cv_as_cfi_sections_directive=yes
21891     ;;
21892 esac
21893     else
21894       echo "configure: failed program was" >&5
21895       cat conftest.s >&5
21896     fi
21897     rm -f conftest.o conftest.s
21898   fi
21899 fi
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21901 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21902
21903
21904
21905 cat >>confdefs.h <<_ACEOF
21906 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21907     then echo 1; else echo 0; fi`
21908 _ACEOF
21909
21910
21911 # GAS versions up to and including 2.11.0 may mis-optimize
21912 # .eh_frame data.
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21914 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21915 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21916   $as_echo_n "(cached) " >&6
21917 else
21918   gcc_cv_as_eh_frame=no
21919     if test $in_tree_gas = yes; then
21920     if test $in_tree_gas_is_elf = yes \
21921   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21922   then gcc_cv_as_eh_frame=yes
21923 fi
21924   elif test x$gcc_cv_as != x; then
21925     echo '      .text
21926 .LFB1:
21927         .4byte  0
21928 .L1:
21929         .4byte  0
21930 .LFE1:
21931         .section        .eh_frame,"aw",@progbits
21932 __FRAME_BEGIN__:
21933         .4byte  .LECIE1-.LSCIE1
21934 .LSCIE1:
21935         .4byte  0x0
21936         .byte   0x1
21937         .ascii "z\0"
21938         .byte   0x1
21939         .byte   0x78
21940         .byte   0x1a
21941         .byte   0x0
21942         .byte   0x4
21943         .4byte  1
21944         .p2align 1
21945 .LECIE1:
21946 .LSFDE1:
21947         .4byte  .LEFDE1-.LASFDE1
21948 .LASFDE1:
21949         .4byte  .LASFDE1-__FRAME_BEGIN__
21950         .4byte  .LFB1
21951         .4byte  .LFE1-.LFB1
21952         .byte   0x4
21953         .4byte  .LFE1-.LFB1
21954         .byte   0x4
21955         .4byte  .L1-.LFB1
21956 .LEFDE1:' > conftest.s
21957     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21958   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21959   (eval $ac_try) 2>&5
21960   ac_status=$?
21961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21962   test $ac_status = 0; }; }
21963     then
21964           cat > conftest.lit <<EOF
21965  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21966  0010 01000000 12000000 18000000 00000000  ................
21967  0020 08000000 04080000 0044               .........D      
21968 EOF
21969 cat > conftest.big <<EOF
21970  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21971  0010 00000001 00000012 00000018 00000000  ................
21972  0020 00000008 04000000 0844               .........D      
21973 EOF
21974   # If the assembler didn't choke, and we can objdump,
21975   # and we got the correct data, then succeed.
21976   # The text in the here-document typically retains its unix-style line
21977   # endings, while the output of objdump will use host line endings.
21978   # Therefore, use diff -b for the comparisons.
21979   if test x$gcc_cv_objdump != x \
21980   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21981      | tail -3 > conftest.got \
21982   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21983     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21984   then
21985     gcc_cv_as_eh_frame=yes
21986   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21987   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21988   (eval $ac_try) 2>&5
21989   ac_status=$?
21990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21991   test $ac_status = 0; }; }; then
21992     gcc_cv_as_eh_frame=buggy
21993   else
21994     # Uh oh, what do we do now?
21995     gcc_cv_as_eh_frame=no
21996   fi
21997     else
21998       echo "configure: failed program was" >&5
21999       cat conftest.s >&5
22000     fi
22001     rm -f conftest.o conftest.s
22002   fi
22003 fi
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22005 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22006
22007
22008 if test $gcc_cv_as_eh_frame = buggy; then
22009
22010 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22011
22012 fi
22013
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22015 $as_echo_n "checking assembler for section merging support... " >&6; }
22016 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22017   $as_echo_n "(cached) " >&6
22018 else
22019   gcc_cv_as_shf_merge=no
22020     if test $in_tree_gas = yes; then
22021     if test $in_tree_gas_is_elf = yes \
22022   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22023   then gcc_cv_as_shf_merge=yes
22024 fi
22025   elif test x$gcc_cv_as != x; then
22026     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22027     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22028   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22029   (eval $ac_try) 2>&5
22030   ac_status=$?
22031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22032   test $ac_status = 0; }; }
22033     then
22034         gcc_cv_as_shf_merge=yes
22035     else
22036       echo "configure: failed program was" >&5
22037       cat conftest.s >&5
22038     fi
22039     rm -f conftest.o conftest.s
22040   fi
22041 fi
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22043 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22044
22045 if test $gcc_cv_as_shf_merge = no; then
22046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22047 $as_echo_n "checking assembler for section merging support... " >&6; }
22048 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22049   $as_echo_n "(cached) " >&6
22050 else
22051   gcc_cv_as_shf_merge=no
22052     if test $in_tree_gas = yes; then
22053     if test $in_tree_gas_is_elf = yes \
22054   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22055   then gcc_cv_as_shf_merge=yes
22056 fi
22057   elif test x$gcc_cv_as != x; then
22058     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22059     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22060   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22061   (eval $ac_try) 2>&5
22062   ac_status=$?
22063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22064   test $ac_status = 0; }; }
22065     then
22066         gcc_cv_as_shf_merge=yes
22067     else
22068       echo "configure: failed program was" >&5
22069       cat conftest.s >&5
22070     fi
22071     rm -f conftest.o conftest.s
22072   fi
22073 fi
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22075 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22076
22077 fi
22078
22079 cat >>confdefs.h <<_ACEOF
22080 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22081 _ACEOF
22082
22083
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22085 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22086 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22087   $as_echo_n "(cached) " >&6
22088 else
22089   gcc_cv_as_comdat_group=no
22090     if test $in_tree_gas = yes; then
22091     if test $in_tree_gas_is_elf = yes \
22092   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22093   then gcc_cv_as_comdat_group=yes
22094 fi
22095   elif test x$gcc_cv_as != x; then
22096     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22097     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22098   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22099   (eval $ac_try) 2>&5
22100   ac_status=$?
22101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22102   test $ac_status = 0; }; }
22103     then
22104         gcc_cv_as_comdat_group=yes
22105     else
22106       echo "configure: failed program was" >&5
22107       cat conftest.s >&5
22108     fi
22109     rm -f conftest.o conftest.s
22110   fi
22111 fi
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22113 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22114
22115 if test $gcc_cv_as_comdat_group = yes; then
22116   gcc_cv_as_comdat_group_percent=no
22117 else
22118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22119 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22120 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22121   $as_echo_n "(cached) " >&6
22122 else
22123   gcc_cv_as_comdat_group_percent=no
22124     if test $in_tree_gas = yes; then
22125     if test $in_tree_gas_is_elf = yes \
22126   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22127   then gcc_cv_as_comdat_group_percent=yes
22128 fi
22129   elif test x$gcc_cv_as != x; then
22130     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22131     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22132   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22133   (eval $ac_try) 2>&5
22134   ac_status=$?
22135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22136   test $ac_status = 0; }; }
22137     then
22138         gcc_cv_as_comdat_group_percent=yes
22139     else
22140       echo "configure: failed program was" >&5
22141       cat conftest.s >&5
22142     fi
22143     rm -f conftest.o conftest.s
22144   fi
22145 fi
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22147 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22148
22149 fi
22150 if test x"$ld_is_gold" = xyes; then
22151   comdat_group=yes
22152 elif test $in_tree_ld = yes ; then
22153   comdat_group=no
22154   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 \
22155      && test $in_tree_ld_is_elf = yes; then
22156      comdat_group=yes
22157   fi
22158 elif echo "$ld_ver" | grep GNU > /dev/null; then
22159   comdat_group=yes
22160   if test 0"$ld_date" -lt 20050308; then
22161     if test -n "$ld_date"; then
22162       # If there was date string, but was earlier than 2005-03-08, fail
22163       comdat_group=no
22164     elif test "$ld_vers_major" -lt 2; then
22165       comdat_group=no
22166     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22167       comdat_group=no
22168     fi
22169   fi
22170 else
22171   case "${target}" in
22172     *-*-solaris2.1[1-9]*)
22173       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22174       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22175       # version 1.688.
22176       #
22177       # FIXME: Maybe need to refine later when COMDAT group support with
22178       # Sun as is implemented.
22179       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22180         comdat_group=yes
22181       else
22182         comdat_group=no
22183       fi
22184       ;;
22185     *)
22186       # Assume linkers other than GNU ld don't support COMDAT group.
22187       comdat_group=no
22188       ;;
22189   esac
22190 fi
22191 # Allow overriding the automatic COMDAT group tests above.
22192 # Check whether --enable-comdat was given.
22193 if test "${enable_comdat+set}" = set; then :
22194   enableval=$enable_comdat; comdat_group="$enable_comdat"
22195 fi
22196
22197 if test $comdat_group = no; then
22198   gcc_cv_as_comdat_group=no
22199   gcc_cv_as_comdat_group_percent=no
22200 fi
22201
22202 cat >>confdefs.h <<_ACEOF
22203 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22204 _ACEOF
22205
22206
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22208 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22209 if test "${gcc_cv_as_discriminator+set}" = set; then :
22210   $as_echo_n "(cached) " >&6
22211 else
22212   gcc_cv_as_discriminator=no
22213     if test $in_tree_gas = yes; then
22214     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22215   then gcc_cv_as_discriminator=yes
22216 fi
22217   elif test x$gcc_cv_as != x; then
22218     echo '      .text
22219         .file 1 "conf.c"
22220         .loc 1 1 0 discriminator 1' > conftest.s
22221     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22222   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22223   (eval $ac_try) 2>&5
22224   ac_status=$?
22225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22226   test $ac_status = 0; }; }
22227     then
22228         gcc_cv_as_discriminator=yes
22229     else
22230       echo "configure: failed program was" >&5
22231       cat conftest.s >&5
22232     fi
22233     rm -f conftest.o conftest.s
22234   fi
22235 fi
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22237 $as_echo "$gcc_cv_as_discriminator" >&6; }
22238 if test $gcc_cv_as_discriminator = yes; then
22239
22240 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22241
22242 fi
22243
22244 # Thread-local storage - the check is heavily parameterized.
22245 conftest_s=
22246 tls_first_major=
22247 tls_first_minor=
22248 tls_as_opt=
22249 case "$target" in
22250   alpha*-*-*)
22251     conftest_s='
22252         .section ".tdata","awT",@progbits
22253 foo:    .long   25
22254         .text
22255         ldq     $27,__tls_get_addr($29)         !literal!1
22256         lda     $16,foo($29)                    !tlsgd!1
22257         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22258         ldq     $27,__tls_get_addr($29)         !literal!2
22259         lda     $16,foo($29)                    !tlsldm!2
22260         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22261         ldq     $1,foo($29)                     !gotdtprel
22262         ldah    $2,foo($29)                     !dtprelhi
22263         lda     $3,foo($2)                      !dtprello
22264         lda     $4,foo($29)                     !dtprel
22265         ldq     $1,foo($29)                     !gottprel
22266         ldah    $2,foo($29)                     !tprelhi
22267         lda     $3,foo($2)                      !tprello
22268         lda     $4,foo($29)                     !tprel'
22269         tls_first_major=2
22270         tls_first_minor=13
22271         tls_as_opt=--fatal-warnings
22272         ;;
22273   cris-*-*|crisv32-*-*)
22274     conftest_s='
22275         .section ".tdata","awT",@progbits
22276 x:      .long   25
22277         .text
22278         move.d x:IE,$r10
22279         nop'
22280         tls_first_major=2
22281         tls_first_minor=20
22282         tls_as_opt=--fatal-warnings
22283         ;;
22284   frv*-*-*)
22285     conftest_s='
22286         .section ".tdata","awT",@progbits
22287 x:      .long   25
22288         .text
22289         call    #gettlsoff(x)'
22290         tls_first_major=2
22291         tls_first_minor=14
22292         ;;
22293   hppa*-*-linux*)
22294     conftest_s='
22295 t1:     .reg    %r20
22296 t2:     .reg    %r21
22297 gp:     .reg    %r19
22298         .section ".tdata","awT",@progbits
22299 foo:    .long   25
22300         .text
22301         .align  4
22302         addil LT%foo-$tls_gdidx$,gp
22303         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22304         b __tls_get_addr
22305         nop
22306         addil LT%foo-$tls_ldidx$,gp
22307         b __tls_get_addr
22308         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22309         addil LR%foo-$tls_dtpoff$,%ret0
22310         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22311         mfctl %cr27,%t1
22312         addil LT%foo-$tls_ieoff$,gp
22313         ldw RT%foo-$tls_ieoff$(%r1),%t2
22314         add %t1,%t2,%t3
22315         mfctl %cr27,%t1
22316         addil LR%foo-$tls_leoff$,%t1
22317         ldo RR%foo-$tls_leoff$(%r1),%t2'
22318         tls_first_major=2
22319         tls_first_minor=15
22320         tls_as_opt=--fatal-warnings
22321         ;;
22322   arm*-*-*)
22323     conftest_s='
22324         .section ".tdata","awT",%progbits
22325 foo:    .long   25
22326         .text
22327 .word foo(gottpoff)
22328 .word foo(tpoff)
22329 .word foo(tlsgd)
22330 .word foo(tlsldm)
22331 .word foo(tlsldo)'
22332         tls_first_major=2
22333         tls_first_minor=17
22334         ;;
22335   i[34567]86-*-*)
22336     case "$target" in
22337       i[34567]86-*-solaris2.*)
22338         on_solaris=yes
22339         tga_func=___tls_get_addr
22340         ;;
22341       *)
22342         on_solaris=no
22343         ;;
22344     esac
22345     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22346       conftest_s='
22347         .section .tdata,"awt",@progbits'
22348       tls_first_major=0
22349       tls_first_minor=0
22350
22351 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22352
22353     else
22354       conftest_s='
22355         .section ".tdata","awT",@progbits'
22356       tls_first_major=2
22357       tls_first_minor=14
22358       tls_as_opt="--fatal-warnings"
22359     fi
22360     conftest_s="$conftest_s
22361 foo:    .long   25
22362         .text
22363         movl    %gs:0, %eax
22364         leal    foo@tlsgd(,%ebx,1), %eax
22365         leal    foo@tlsldm(%ebx), %eax
22366         leal    foo@dtpoff(%eax), %edx
22367         movl    foo@gottpoff(%ebx), %eax
22368         subl    foo@gottpoff(%ebx), %eax
22369         addl    foo@gotntpoff(%ebx), %eax
22370         movl    foo@indntpoff, %eax
22371         movl    \$foo@tpoff, %eax
22372         subl    \$foo@tpoff, %eax
22373         leal    foo@ntpoff(%ecx), %eax"
22374     ;;
22375   x86_64-*-*)
22376     conftest_s='
22377         .section ".tdata","awT",@progbits
22378 foo:    .long   25
22379         .text
22380         movq    %fs:0, %rax
22381         leaq    foo@TLSGD(%rip), %rdi
22382         leaq    foo@TLSLD(%rip), %rdi
22383         leaq    foo@DTPOFF(%rax), %rdx
22384         movq    foo@GOTTPOFF(%rip), %rax
22385         movq    $foo@TPOFF, %rax'
22386         tls_first_major=2
22387         tls_first_minor=14
22388         tls_as_opt=--fatal-warnings
22389         ;;
22390   ia64-*-*)
22391     conftest_s='
22392         .section ".tdata","awT",@progbits
22393 foo:    data8   25
22394         .text
22395         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22396         addl    r17 = @ltoff(@dtprel(foo#)), gp
22397         addl    r18 = @ltoff(@tprel(foo#)), gp
22398         addl    r19 = @dtprel(foo#), gp
22399         adds    r21 = @dtprel(foo#), r13
22400         movl    r23 = @dtprel(foo#)
22401         addl    r20 = @tprel(foo#), gp
22402         adds    r22 = @tprel(foo#), r13
22403         movl    r24 = @tprel(foo#)'
22404         tls_first_major=2
22405         tls_first_minor=13
22406         tls_as_opt=--fatal-warnings
22407         ;;
22408   mips*-*-*)
22409     conftest_s='
22410         .section .tdata,"awT",@progbits
22411 x:
22412         .word 2
22413         .text
22414         addiu $4, $28, %tlsgd(x)
22415         addiu $4, $28, %tlsldm(x)
22416         lui $4, %dtprel_hi(x)
22417         addiu $4, $4, %dtprel_lo(x)
22418         lw $4, %gottprel(x)($28)
22419         lui $4, %tprel_hi(x)
22420         addiu $4, $4, %tprel_lo(x)'
22421         tls_first_major=2
22422         tls_first_minor=16
22423         tls_as_opt='-32 --fatal-warnings'
22424         ;;
22425   m68k-*-*)
22426     conftest_s='
22427         .section .tdata,"awT",@progbits
22428 x:
22429         .word 2
22430         .text
22431 foo:
22432         move.l x@TLSGD(%a5),%a0
22433         move.l x@TLSLDM(%a5),%a0
22434         move.l x@TLSLDO(%a5),%a0
22435         move.l x@TLSIE(%a5),%a0
22436         move.l x@TLSLE(%a5),%a0'
22437         tls_first_major=2
22438         tls_first_minor=19
22439         tls_as_opt='--fatal-warnings'
22440         ;;
22441   powerpc-*-*)
22442     conftest_s='
22443         .section ".tdata","awT",@progbits
22444         .align 2
22445 ld0:    .space 4
22446 ld1:    .space 4
22447 x1:     .space 4
22448 x2:     .space 4
22449 x3:     .space 4
22450         .text
22451         addi 3,31,ld0@got@tlsgd
22452         bl __tls_get_addr
22453         addi 3,31,x1@got@tlsld
22454         bl __tls_get_addr
22455         addi 9,3,x1@dtprel
22456         addis 9,3,x2@dtprel@ha
22457         addi 9,9,x2@dtprel@l
22458         lwz 9,x3@got@tprel(31)
22459         add 9,9,x@tls
22460         addi 9,2,x1@tprel
22461         addis 9,2,x2@tprel@ha
22462         addi 9,9,x2@tprel@l'
22463         tls_first_major=2
22464         tls_first_minor=14
22465         tls_as_opt="-a32 --fatal-warnings"
22466         ;;
22467   powerpc64-*-*)
22468     conftest_s='
22469         .section ".tdata","awT",@progbits
22470         .align 3
22471 ld0:    .space 8
22472 ld1:    .space 8
22473 x1:     .space 8
22474 x2:     .space 8
22475 x3:     .space 8
22476         .text
22477         addi 3,2,ld0@got@tlsgd
22478         bl .__tls_get_addr
22479         nop
22480         addi 3,2,ld1@toc
22481         bl .__tls_get_addr
22482         nop
22483         addi 3,2,x1@got@tlsld
22484         bl .__tls_get_addr
22485         nop
22486         addi 9,3,x1@dtprel
22487         bl .__tls_get_addr
22488         nop
22489         addis 9,3,x2@dtprel@ha
22490         addi 9,9,x2@dtprel@l
22491         bl .__tls_get_addr
22492         nop
22493         ld 9,x3@got@dtprel(2)
22494         add 9,9,3
22495         bl .__tls_get_addr
22496         nop'
22497         tls_first_major=2
22498         tls_first_minor=14
22499         tls_as_opt="-a64 --fatal-warnings"
22500         ;;
22501   s390-*-*)
22502     conftest_s='
22503         .section ".tdata","awT",@progbits
22504 foo:    .long   25
22505         .text
22506         .long   foo@TLSGD
22507         .long   foo@TLSLDM
22508         .long   foo@DTPOFF
22509         .long   foo@NTPOFF
22510         .long   foo@GOTNTPOFF
22511         .long   foo@INDNTPOFF
22512         l       %r1,foo@GOTNTPOFF(%r12)
22513         l       %r1,0(%r1):tls_load:foo
22514         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22515         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22516         tls_first_major=2
22517         tls_first_minor=14
22518         tls_as_opt="-m31 --fatal-warnings"
22519         ;;
22520   s390x-*-*)
22521     conftest_s='
22522         .section ".tdata","awT",@progbits
22523 foo:    .long   25
22524         .text
22525         .quad   foo@TLSGD
22526         .quad   foo@TLSLDM
22527         .quad   foo@DTPOFF
22528         .quad   foo@NTPOFF
22529         .quad   foo@GOTNTPOFF
22530         lg      %r1,foo@GOTNTPOFF(%r12)
22531         larl    %r1,foo@INDNTPOFF
22532         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22533         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22534         tls_first_major=2
22535         tls_first_minor=14
22536         tls_as_opt="-m64 -Aesame --fatal-warnings"
22537         ;;
22538   sh-*-* | sh[34]-*-*)
22539     conftest_s='
22540         .section ".tdata","awT",@progbits
22541 foo:    .long   25
22542         .text
22543         .long   foo@TLSGD
22544         .long   foo@TLSLDM
22545         .long   foo@DTPOFF
22546         .long   foo@GOTTPOFF
22547         .long   foo@TPOFF'
22548         tls_first_major=2
22549         tls_first_minor=13
22550         tls_as_opt=--fatal-warnings
22551         ;;
22552   sparc*-*-*)
22553     case "$target" in
22554       sparc*-sun-solaris2.*)
22555         on_solaris=yes
22556         tga_func=__tls_get_addr
22557         ;;
22558       *)
22559         on_solaris=no
22560         ;;
22561     esac
22562     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22563       conftest_s='
22564         .section ".tdata",#alloc,#write,#tls'
22565         tls_first_major=0
22566         tls_first_minor=0
22567     else
22568       conftest_s='
22569         .section ".tdata","awT",@progbits'
22570         tls_first_major=2
22571         tls_first_minor=14
22572         tls_as_opt="-32 --fatal-warnings"
22573     fi
22574     conftest_s="$conftest_s
22575 foo:    .long   25
22576         .text
22577         sethi   %tgd_hi22(foo), %o0
22578         add     %o0, %tgd_lo10(foo), %o1
22579         add     %l7, %o1, %o0, %tgd_add(foo)
22580         call    __tls_get_addr, %tgd_call(foo)
22581         sethi   %tldm_hi22(foo), %l1
22582         add     %l1, %tldm_lo10(foo), %l2
22583         add     %l7, %l2, %o0, %tldm_add(foo)
22584         call    __tls_get_addr, %tldm_call(foo)
22585         sethi   %tldo_hix22(foo), %l3
22586         xor     %l3, %tldo_lox10(foo), %l4
22587         add     %o0, %l4, %l5, %tldo_add(foo)
22588         sethi   %tie_hi22(foo), %o3
22589         add     %o3, %tie_lo10(foo), %o3
22590         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22591         add     %g7, %o2, %o4, %tie_add(foo)
22592         sethi   %tle_hix22(foo), %l1
22593         xor     %l1, %tle_lox10(foo), %o5
22594         ld      [%g7 + %o5], %o1"
22595         ;;
22596   xtensa*-*-*)
22597     conftest_s='
22598         .section ".tdata","awT",@progbits
22599 foo:    .long   25
22600         .text
22601         movi    a8, foo@TLSFUNC
22602         movi    a10, foo@TLSARG
22603         callx8.tls a8, foo@TLSCALL'
22604         tls_first_major=2
22605         tls_first_minor=19
22606         ;;
22607 esac
22608 set_have_as_tls=no
22609 if test "x$enable_tls" = xno ; then
22610   : # TLS explicitly disabled.
22611 elif test "x$enable_tls" = xyes ; then
22612   set_have_as_tls=yes # TLS explicitly enabled.
22613 elif test -z "$tls_first_major"; then
22614   : # If we don't have a check, assume no support.
22615 else
22616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22617 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22618 if test "${gcc_cv_as_tls+set}" = set; then :
22619   $as_echo_n "(cached) " >&6
22620 else
22621   gcc_cv_as_tls=no
22622     if test $in_tree_gas = yes; then
22623     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22624   then gcc_cv_as_tls=yes
22625 fi
22626   elif test x$gcc_cv_as != x; then
22627     echo "$conftest_s" > conftest.s
22628     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22629   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22630   (eval $ac_try) 2>&5
22631   ac_status=$?
22632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22633   test $ac_status = 0; }; }
22634     then
22635         gcc_cv_as_tls=yes
22636     else
22637       echo "configure: failed program was" >&5
22638       cat conftest.s >&5
22639     fi
22640     rm -f conftest.o conftest.s
22641   fi
22642 fi
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22644 $as_echo "$gcc_cv_as_tls" >&6; }
22645 if test $gcc_cv_as_tls = yes; then
22646   set_have_as_tls=yes
22647 fi
22648 fi
22649 case "$target" in
22650   *-*-irix6*)
22651     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22652     # with TLS support are in use, native TLS cannot work.
22653     set_have_as_tls=no
22654     ;;
22655   *-*-osf*)
22656     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22657     # gld with TLS support are in use, native TLS cannot work.
22658     set_have_as_tls=no
22659     ;;
22660   # TLS was introduced in the Solaris 9 FCS release and backported to
22661   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22662   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22663   # ld and GCC don't support any longer.
22664   *-*-solaris2.*)
22665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22666 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22667     ld_tls_support=no
22668     # Check ld and ld.so.1 TLS support.
22669     if echo "$ld_ver" | grep GNU > /dev/null; then
22670       # Assume all interesting versions of GNU ld have TLS support.
22671       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22672       ld_tls_support=yes
22673     else
22674       case "$target" in
22675         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22676         i?86-*-solaris2.8)
22677           min_tls_ld_vers_minor=280
22678           ;;
22679         # Solaris 8/SPARC ld has TLS support since version 1.272.
22680         sparc*-*-solaris2.8)
22681           min_tls_ld_vers_minor=272
22682           ;;
22683         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22684         i?86-*-solaris2.9)
22685           min_tls_ld_vers_minor=374
22686           ;;
22687         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22688         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22689           min_tls_ld_vers_minor=343
22690           ;;
22691       esac
22692       if test "$ld_vers_major" -gt 1 || \
22693         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22694         ld_tls_support=yes
22695       else
22696         set_have_as_tls=no
22697       fi
22698     fi
22699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22700 $as_echo "$ld_tls_support" >&6; }
22701
22702     save_LIBS="$LIBS"
22703     save_LDFLAGS="$LDFLAGS"
22704     LIBS=
22705     LDFLAGS=
22706
22707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22708 $as_echo_n "checking alternate thread library... " >&6; }
22709     case "$target" in
22710       # TLS support was backported to Solaris 8 patches, but only lives in
22711       # the alternate thread library which became the default in Solaris 9.
22712       # We want to always use that, irrespective of TLS support.
22713       *-*-solaris2.8)
22714         # Take multilib subdir into account.  There's no spec to handle
22715         # this.  The 64 symlink exists since Solaris 8.
22716         lwp_dir=/usr/lib/lwp
22717         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22718         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22719         ;;
22720       *-*-solaris2*)
22721         lwp_dir="none"
22722         lwp_spec=""
22723         ;;
22724     esac
22725     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22726
22727 cat >>confdefs.h <<_ACEOF
22728 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22729 _ACEOF
22730
22731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22732 $as_echo "$lwp_dir" >&6; }
22733
22734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22735 $as_echo_n "checking library containing $tga_func... " >&6; }
22736     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22737     # (32-bit x86) only lived in libthread, so check for that.  Keep
22738     # set_have_as_tls if found, disable if not.
22739     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22741 $as_echo_n "checking for library containing $tga_func... " >&6; }
22742 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22743   $as_echo_n "(cached) " >&6
22744 else
22745   ac_func_search_save_LIBS=$LIBS
22746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22747 /* end confdefs.h.  */
22748
22749 /* Override any GCC internal prototype to avoid an error.
22750    Use char because int might match the return type of a GCC
22751    builtin and then its argument prototype would still apply.  */
22752 #ifdef __cplusplus
22753 extern "C"
22754 #endif
22755 char $tga_func ();
22756 int
22757 main ()
22758 {
22759 return $tga_func ();
22760   ;
22761   return 0;
22762 }
22763 _ACEOF
22764 for ac_lib in '' thread; do
22765   if test -z "$ac_lib"; then
22766     ac_res="none required"
22767   else
22768     ac_res=-l$ac_lib
22769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22770   fi
22771   if ac_fn_c_try_link "$LINENO"; then :
22772   eval "$as_ac_Search=\$ac_res"
22773 fi
22774 rm -f core conftest.err conftest.$ac_objext \
22775     conftest$ac_exeext
22776   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22777   break
22778 fi
22779 done
22780 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22781
22782 else
22783   eval "$as_ac_Search=no"
22784 fi
22785 rm conftest.$ac_ext
22786 LIBS=$ac_func_search_save_LIBS
22787 fi
22788 eval ac_res=\$$as_ac_Search
22789                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22790 $as_echo "$ac_res" >&6; }
22791 eval ac_res=\$$as_ac_Search
22792 if test "$ac_res" != no; then :
22793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22794
22795 else
22796   set_have_as_tls=no
22797 fi
22798
22799     # Clear LIBS if we cannot support TLS.
22800     if test $set_have_as_tls = no; then
22801       LIBS=
22802     fi
22803     # Always define LIB_TLS_SPEC, even without TLS support.
22804
22805 cat >>confdefs.h <<_ACEOF
22806 #define LIB_TLS_SPEC "$LIBS"
22807 _ACEOF
22808
22809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22810 $as_echo "$LIBS" >&6; }
22811
22812     LIBS="$save_LIBS"
22813     LDFLAGS="$save_LDFLAGS"
22814     ;;
22815 esac
22816 if test $set_have_as_tls = yes ; then
22817
22818 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22819
22820 fi
22821
22822 # Target-specific assembler checks.
22823
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22825 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22826 gcc_cv_ld_static_dynamic=no
22827 if test $in_tree_ld = yes ; then
22828   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
22829     gcc_cv_ld_static_dynamic=yes
22830   fi
22831 elif test x$gcc_cv_ld != x; then
22832         # Check if linker supports -Bstatic/-Bdynamic option
22833         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22834           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22835                 gcc_cv_ld_static_dynamic=yes
22836         fi
22837 fi
22838 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22839
22840 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22841
22842 fi
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22844 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22845
22846 if test x"$demangler_in_ld" = xyes; then
22847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22848 $as_echo_n "checking linker --demangle support... " >&6; }
22849   gcc_cv_ld_demangle=no
22850   if test $in_tree_ld = yes; then
22851     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 \
22852       gcc_cv_ld_demangle=yes
22853     fi
22854   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22855     # Check if the GNU linker supports --demangle option
22856     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22857       gcc_cv_ld_demangle=yes
22858     fi
22859   fi
22860   if test x"$gcc_cv_ld_demangle" = xyes; then
22861
22862 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22863
22864   fi
22865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22866 $as_echo "$gcc_cv_ld_demangle" >&6; }
22867 fi
22868
22869 case "$target" in
22870   # All TARGET_ABI_OSF targets.
22871   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22873 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22874 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22875   $as_echo_n "(cached) " >&6
22876 else
22877   gcc_cv_as_alpha_explicit_relocs=no
22878     if test $in_tree_gas = yes; then
22879     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22880   then gcc_cv_as_alpha_explicit_relocs=yes
22881 fi
22882   elif test x$gcc_cv_as != x; then
22883     echo '      .set nomacro
22884         .text
22885         extbl   $3, $2, $3      !lituse_bytoff!1
22886         ldq     $2, a($29)      !literal!1
22887         ldq     $4, b($29)      !literal!2
22888         ldq_u   $3, 0($2)       !lituse_base!1
22889         ldq     $27, f($29)     !literal!5
22890         jsr     $26, ($27), f   !lituse_jsr!5
22891         ldah    $29, 0($26)     !gpdisp!3
22892         lda     $0, c($29)      !gprel
22893         ldah    $1, d($29)      !gprelhigh
22894         lda     $1, d($1)       !gprellow
22895         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22896     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22897   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22898   (eval $ac_try) 2>&5
22899   ac_status=$?
22900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22901   test $ac_status = 0; }; }
22902     then
22903         gcc_cv_as_alpha_explicit_relocs=yes
22904     else
22905       echo "configure: failed program was" >&5
22906       cat conftest.s >&5
22907     fi
22908     rm -f conftest.o conftest.s
22909   fi
22910 fi
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22912 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22913 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22914
22915 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22916
22917 fi
22918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22919 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22920 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22921   $as_echo_n "(cached) " >&6
22922 else
22923   gcc_cv_as_alpha_jsrdirect_relocs=no
22924     if test $in_tree_gas = yes; then
22925     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22926   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22927 fi
22928   elif test x$gcc_cv_as != x; then
22929     echo '      .set nomacro
22930         .text
22931         ldq     $27, a($29)     !literal!1
22932         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22933     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22934   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935   (eval $ac_try) 2>&5
22936   ac_status=$?
22937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938   test $ac_status = 0; }; }
22939     then
22940         gcc_cv_as_alpha_jsrdirect_relocs=yes
22941     else
22942       echo "configure: failed program was" >&5
22943       cat conftest.s >&5
22944     fi
22945     rm -f conftest.o conftest.s
22946   fi
22947 fi
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22949 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22950 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22951
22952 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22953
22954 fi
22955     ;;
22956
22957   cris-*-*)
22958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22959 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22960 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22961   $as_echo_n "(cached) " >&6
22962 else
22963   gcc_cv_as_cris_no_mul_bug=no
22964     if test $in_tree_gas = yes; then
22965     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22966   then gcc_cv_as_cris_no_mul_bug=yes
22967 fi
22968   elif test x$gcc_cv_as != x; then
22969     echo '.text' > conftest.s
22970     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22971   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22972   (eval $ac_try) 2>&5
22973   ac_status=$?
22974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22975   test $ac_status = 0; }; }
22976     then
22977         gcc_cv_as_cris_no_mul_bug=yes
22978     else
22979       echo "configure: failed program was" >&5
22980       cat conftest.s >&5
22981     fi
22982     rm -f conftest.o conftest.s
22983   fi
22984 fi
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22986 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22987 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22988
22989 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22990
22991 fi
22992     ;;
22993
22994   sparc*-*-*)
22995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22996 $as_echo_n "checking assembler for .register... " >&6; }
22997 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22998   $as_echo_n "(cached) " >&6
22999 else
23000   gcc_cv_as_sparc_register_op=no
23001   if test x$gcc_cv_as != x; then
23002     echo '.register %g2, #scratch' > conftest.s
23003     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23004   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23005   (eval $ac_try) 2>&5
23006   ac_status=$?
23007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23008   test $ac_status = 0; }; }
23009     then
23010         gcc_cv_as_sparc_register_op=yes
23011     else
23012       echo "configure: failed program was" >&5
23013       cat conftest.s >&5
23014     fi
23015     rm -f conftest.o conftest.s
23016   fi
23017 fi
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23019 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23020 if test $gcc_cv_as_sparc_register_op = yes; then
23021
23022 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23023
23024 fi
23025
23026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23027 $as_echo_n "checking assembler for -relax option... " >&6; }
23028 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23029   $as_echo_n "(cached) " >&6
23030 else
23031   gcc_cv_as_sparc_relax=no
23032   if test x$gcc_cv_as != x; then
23033     echo '.text' > conftest.s
23034     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23035   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23036   (eval $ac_try) 2>&5
23037   ac_status=$?
23038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23039   test $ac_status = 0; }; }
23040     then
23041         gcc_cv_as_sparc_relax=yes
23042     else
23043       echo "configure: failed program was" >&5
23044       cat conftest.s >&5
23045     fi
23046     rm -f conftest.o conftest.s
23047   fi
23048 fi
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23050 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23051 if test $gcc_cv_as_sparc_relax = yes; then
23052
23053 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23054
23055 fi
23056
23057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23058 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23059 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23060   $as_echo_n "(cached) " >&6
23061 else
23062   gcc_cv_as_sparc_gotdata_op=no
23063   if test x$gcc_cv_as != x; then
23064     echo '.text
23065 foo:
23066         nop
23067 bar:
23068         sethi %gdop_hix22(foo), %g1
23069         xor    %g1, %gdop_lox10(foo), %g1
23070         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23071     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23072   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23073   (eval $ac_try) 2>&5
23074   ac_status=$?
23075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23076   test $ac_status = 0; }; }
23077     then
23078         if test x$gcc_cv_ld != x \
23079        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23080          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23081            if test x$gcc_cv_objdump != x; then
23082              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23083                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23084                gcc_cv_as_sparc_gotdata_op=no
23085              else
23086                gcc_cv_as_sparc_gotdata_op=yes
23087              fi
23088            fi
23089          else
23090            gcc_cv_as_sparc_gotdata_op=yes
23091          fi
23092        fi
23093        rm -f conftest
23094     else
23095       echo "configure: failed program was" >&5
23096       cat conftest.s >&5
23097     fi
23098     rm -f conftest.o conftest.s
23099   fi
23100 fi
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23102 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23103 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23104
23105 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23106
23107 fi
23108
23109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23110 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23111 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23112   $as_echo_n "(cached) " >&6
23113 else
23114   gcc_cv_as_sparc_ua_pcrel=no
23115   if test x$gcc_cv_as != x; then
23116     echo '.text
23117 foo:
23118         nop
23119 .data
23120 .align 4
23121 .byte 0
23122 .uaword %r_disp32(foo)' > conftest.s
23123     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23124   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23125   (eval $ac_try) 2>&5
23126   ac_status=$?
23127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23128   test $ac_status = 0; }; }
23129     then
23130         if test x$gcc_cv_ld != x \
23131        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23132          gcc_cv_as_sparc_ua_pcrel=yes
23133        fi
23134        rm -f conftest
23135     else
23136       echo "configure: failed program was" >&5
23137       cat conftest.s >&5
23138     fi
23139     rm -f conftest.o conftest.s
23140   fi
23141 fi
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23143 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23144 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23145
23146 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23147
23148
23149       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23150 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23151 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23152   $as_echo_n "(cached) " >&6
23153 else
23154   gcc_cv_as_sparc_ua_pcrel_hidden=no
23155   if test x$gcc_cv_as != x; then
23156     echo '.data
23157 .align 4
23158 .byte 0x31
23159 .uaword %r_disp32(foo)
23160 .byte 0x32, 0x33, 0x34
23161 .global foo
23162 .hidden foo
23163 foo:
23164 .skip 4' > conftest.s
23165     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23166   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23167   (eval $ac_try) 2>&5
23168   ac_status=$?
23169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23170   test $ac_status = 0; }; }
23171     then
23172         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23173          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23174          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23175             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23176             if $gcc_cv_objdump -R conftest 2> /dev/null \
23177                | grep 'DISP32' > /dev/null 2>&1; then
23178                 :
23179             else
23180                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23181             fi
23182          fi
23183          rm -f conftest
23184     else
23185       echo "configure: failed program was" >&5
23186       cat conftest.s >&5
23187     fi
23188     rm -f conftest.o conftest.s
23189   fi
23190 fi
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23192 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23193 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23194
23195 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23196
23197 fi
23198
23199 fi # unaligned pcrel relocs
23200
23201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23202 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23203 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23204   $as_echo_n "(cached) " >&6
23205 else
23206   gcc_cv_as_sparc_offsetable_lo10=no
23207   if test x$gcc_cv_as != x; then
23208     echo '.text
23209         or %g1, %lo(ab) + 12, %g1
23210         or %g1, %lo(ab + 12), %g1' > conftest.s
23211     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23212   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23213   (eval $ac_try) 2>&5
23214   ac_status=$?
23215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23216   test $ac_status = 0; }; }
23217     then
23218         if test x$gcc_cv_objdump != x \
23219        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23220           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23221          gcc_cv_as_sparc_offsetable_lo10=yes
23222        fi
23223     else
23224       echo "configure: failed program was" >&5
23225       cat conftest.s >&5
23226     fi
23227     rm -f conftest.o conftest.s
23228   fi
23229 fi
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23231 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23232 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23233
23234 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23235
23236 fi
23237     ;;
23238
23239   i[34567]86-*-* | x86_64-*-*)
23240     case $target_os in
23241       cygwin*)
23242         # Full C++ conformance when using a shared libstdc++-v3 requires some
23243         # support from the Cygwin DLL, which in more recent versions exports
23244         # wrappers to aid in interposing and redirecting operators new, delete,
23245         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23246         # are configuring for a version of Cygwin that exports the wrappers.
23247         if test x$host = x$target; then
23248           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23249 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23250   gcc_ac_cygwin_dll_wrappers=yes
23251 else
23252   gcc_ac_cygwin_dll_wrappers=no
23253 fi
23254
23255         else
23256           # Can't check presence of libc functions during cross-compile, so
23257           # we just have to assume we're building for an up-to-date target.
23258           gcc_ac_cygwin_dll_wrappers=yes
23259         fi
23260
23261 cat >>confdefs.h <<_ACEOF
23262 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23263 _ACEOF
23264
23265     esac
23266     case $target_os in
23267       cygwin* | pe | mingw32*)
23268         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23269         # definition is used unconditionally to initialise the default state of
23270         # the target option variable that governs usage of the feature.
23271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23272 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23273 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23274   $as_echo_n "(cached) " >&6
23275 else
23276   gcc_cv_as_comm_has_align=no
23277     if test $in_tree_gas = yes; then
23278     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23279   then gcc_cv_as_comm_has_align=yes
23280 fi
23281   elif test x$gcc_cv_as != x; then
23282     echo '.comm foo,1,32' > conftest.s
23283     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23284   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23285   (eval $ac_try) 2>&5
23286   ac_status=$?
23287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23288   test $ac_status = 0; }; }
23289     then
23290         gcc_cv_as_comm_has_align=yes
23291     else
23292       echo "configure: failed program was" >&5
23293       cat conftest.s >&5
23294     fi
23295     rm -f conftest.o conftest.s
23296   fi
23297 fi
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23299 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23300
23301
23302 cat >>confdefs.h <<_ACEOF
23303 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23304 _ACEOF
23305
23306         # Used for DWARF 2 in PE
23307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23308 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23309 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23310   $as_echo_n "(cached) " >&6
23311 else
23312   gcc_cv_as_ix86_pe_secrel32=no
23313     if test $in_tree_gas = yes; then
23314     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23315   then gcc_cv_as_ix86_pe_secrel32=yes
23316 fi
23317   elif test x$gcc_cv_as != x; then
23318     echo '.text
23319 foo:    nop
23320 .data
23321         .secrel32 foo' > conftest.s
23322     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23323   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23324   (eval $ac_try) 2>&5
23325   ac_status=$?
23326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23327   test $ac_status = 0; }; }
23328     then
23329         if test x$gcc_cv_ld != x \
23330            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23331              gcc_cv_as_ix86_pe_secrel32=yes
23332            fi
23333            rm -f conftest
23334     else
23335       echo "configure: failed program was" >&5
23336       cat conftest.s >&5
23337     fi
23338     rm -f conftest.o conftest.s
23339   fi
23340 fi
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23342 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23343 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23344
23345 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23346
23347 fi
23348         # Test if the assembler supports the extended form of the .section
23349         # directive that specifies section alignment.  LTO support uses this,
23350         # but normally only after installation, so we warn but don't fail the
23351         # configure if LTO is enabled but the assembler does not support it.
23352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23353 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23354 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23355   $as_echo_n "(cached) " >&6
23356 else
23357   gcc_cv_as_section_has_align=no
23358     if test $in_tree_gas = yes; then
23359     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23360   then gcc_cv_as_section_has_align=yes
23361 fi
23362   elif test x$gcc_cv_as != x; then
23363     echo '.section lto_test,"dr0"' > conftest.s
23364     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23365   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23366   (eval $ac_try) 2>&5
23367   ac_status=$?
23368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23369   test $ac_status = 0; }; }
23370     then
23371         gcc_cv_as_section_has_align=yes
23372     else
23373       echo "configure: failed program was" >&5
23374       cat conftest.s >&5
23375     fi
23376     rm -f conftest.o conftest.s
23377   fi
23378 fi
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23380 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23381
23382         if test x$gcc_cv_as_section_has_align != xyes; then
23383           case ",$enable_languages," in
23384             *,lto,*)
23385               { $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
23386 $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;}
23387               ;;
23388           esac
23389         fi
23390         ;;
23391     esac
23392
23393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23394 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23395 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23396   $as_echo_n "(cached) " >&6
23397 else
23398   gcc_cv_as_ix86_filds=no
23399   if test x$gcc_cv_as != x; then
23400     echo 'filds mem; fists mem' > conftest.s
23401     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23402   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23403   (eval $ac_try) 2>&5
23404   ac_status=$?
23405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23406   test $ac_status = 0; }; }
23407     then
23408         gcc_cv_as_ix86_filds=yes
23409     else
23410       echo "configure: failed program was" >&5
23411       cat conftest.s >&5
23412     fi
23413     rm -f conftest.o conftest.s
23414   fi
23415 fi
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23417 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23418 if test $gcc_cv_as_ix86_filds = yes; then
23419
23420 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23421
23422 fi
23423
23424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23425 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23426 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23427   $as_echo_n "(cached) " >&6
23428 else
23429   gcc_cv_as_ix86_fildq=no
23430   if test x$gcc_cv_as != x; then
23431     echo 'fildq mem; fistpq mem' > conftest.s
23432     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23433   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23437   test $ac_status = 0; }; }
23438     then
23439         gcc_cv_as_ix86_fildq=yes
23440     else
23441       echo "configure: failed program was" >&5
23442       cat conftest.s >&5
23443     fi
23444     rm -f conftest.o conftest.s
23445   fi
23446 fi
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23448 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23449 if test $gcc_cv_as_ix86_fildq = yes; then
23450
23451 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23452
23453 fi
23454
23455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23456 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23457 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23458   $as_echo_n "(cached) " >&6
23459 else
23460   gcc_cv_as_ix86_cmov_sun_syntax=no
23461   if test x$gcc_cv_as != x; then
23462     echo 'cmovl.l %edx, %eax' > conftest.s
23463     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23464   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23465   (eval $ac_try) 2>&5
23466   ac_status=$?
23467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23468   test $ac_status = 0; }; }
23469     then
23470         gcc_cv_as_ix86_cmov_sun_syntax=yes
23471     else
23472       echo "configure: failed program was" >&5
23473       cat conftest.s >&5
23474     fi
23475     rm -f conftest.o conftest.s
23476   fi
23477 fi
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23479 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23480 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23481
23482 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23483
23484 fi
23485
23486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23487 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23488 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23489   $as_echo_n "(cached) " >&6
23490 else
23491   gcc_cv_as_ix86_ffreep=no
23492   if test x$gcc_cv_as != x; then
23493     echo 'ffreep %st(1)' > conftest.s
23494     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23495   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23496   (eval $ac_try) 2>&5
23497   ac_status=$?
23498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499   test $ac_status = 0; }; }
23500     then
23501         gcc_cv_as_ix86_ffreep=yes
23502     else
23503       echo "configure: failed program was" >&5
23504       cat conftest.s >&5
23505     fi
23506     rm -f conftest.o conftest.s
23507   fi
23508 fi
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23510 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23511 if test $gcc_cv_as_ix86_ffreep = yes; then
23512
23513 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23514
23515 fi
23516
23517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23518 $as_echo_n "checking assembler for .quad directive... " >&6; }
23519 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23520   $as_echo_n "(cached) " >&6
23521 else
23522   gcc_cv_as_ix86_quad=no
23523   if test x$gcc_cv_as != x; then
23524     echo '.quad 0' > conftest.s
23525     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23526   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23527   (eval $ac_try) 2>&5
23528   ac_status=$?
23529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23530   test $ac_status = 0; }; }
23531     then
23532         gcc_cv_as_ix86_quad=yes
23533     else
23534       echo "configure: failed program was" >&5
23535       cat conftest.s >&5
23536     fi
23537     rm -f conftest.o conftest.s
23538   fi
23539 fi
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23541 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23542 if test $gcc_cv_as_ix86_quad = yes; then
23543
23544 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23545
23546 fi
23547
23548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23549 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23550 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23551   $as_echo_n "(cached) " >&6
23552 else
23553   gcc_cv_as_ix86_sahf=no
23554   if test x$gcc_cv_as != x; then
23555     echo '.code64
23556        sahf' > conftest.s
23557     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23558   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23559   (eval $ac_try) 2>&5
23560   ac_status=$?
23561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23562   test $ac_status = 0; }; }
23563     then
23564         gcc_cv_as_ix86_sahf=yes
23565     else
23566       echo "configure: failed program was" >&5
23567       cat conftest.s >&5
23568     fi
23569     rm -f conftest.o conftest.s
23570   fi
23571 fi
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23573 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23574 if test $gcc_cv_as_ix86_sahf = yes; then
23575
23576 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23577
23578 fi
23579
23580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23581 $as_echo_n "checking assembler for swap suffix... " >&6; }
23582 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23583   $as_echo_n "(cached) " >&6
23584 else
23585   gcc_cv_as_ix86_swap=no
23586   if test x$gcc_cv_as != x; then
23587     echo 'movl.s %esp, %ebp' > conftest.s
23588     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23589   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23590   (eval $ac_try) 2>&5
23591   ac_status=$?
23592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23593   test $ac_status = 0; }; }
23594     then
23595         gcc_cv_as_ix86_swap=yes
23596     else
23597       echo "configure: failed program was" >&5
23598       cat conftest.s >&5
23599     fi
23600     rm -f conftest.o conftest.s
23601   fi
23602 fi
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23604 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23605 if test $gcc_cv_as_ix86_swap = yes; then
23606
23607 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23608
23609 fi
23610
23611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23612 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23613 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23614   $as_echo_n "(cached) " >&6
23615 else
23616   gcc_cv_as_ix86_diff_sect_delta=no
23617   if test x$gcc_cv_as != x; then
23618     echo '.section .rodata
23619 .L1:
23620         .long .L2-.L1
23621         .long .L3-.L1
23622         .text
23623 .L3:    nop
23624 .L2:    nop' > conftest.s
23625     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23626   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23627   (eval $ac_try) 2>&5
23628   ac_status=$?
23629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23630   test $ac_status = 0; }; }
23631     then
23632         gcc_cv_as_ix86_diff_sect_delta=yes
23633     else
23634       echo "configure: failed program was" >&5
23635       cat conftest.s >&5
23636     fi
23637     rm -f conftest.o conftest.s
23638   fi
23639 fi
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23641 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23642 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23643
23644 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23645
23646 fi
23647
23648     # These two are used unconditionally by i386.[ch]; it is to be defined
23649     # to 1 if the feature is present, 0 otherwise.
23650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23651 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23652 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23653   $as_echo_n "(cached) " >&6
23654 else
23655   gcc_cv_as_ix86_gotoff_in_data=no
23656     if test $in_tree_gas = yes; then
23657     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23658   then gcc_cv_as_ix86_gotoff_in_data=yes
23659 fi
23660   elif test x$gcc_cv_as != x; then
23661     echo '      .text
23662 .L0:
23663         nop
23664         .data
23665         .long .L0@GOTOFF' > conftest.s
23666     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23667   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23668   (eval $ac_try) 2>&5
23669   ac_status=$?
23670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23671   test $ac_status = 0; }; }
23672     then
23673         gcc_cv_as_ix86_gotoff_in_data=yes
23674     else
23675       echo "configure: failed program was" >&5
23676       cat conftest.s >&5
23677     fi
23678     rm -f conftest.o conftest.s
23679   fi
23680 fi
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23682 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23683
23684
23685 cat >>confdefs.h <<_ACEOF
23686 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23687 _ACEOF
23688
23689
23690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23691 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23692 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23693   $as_echo_n "(cached) " >&6
23694 else
23695   gcc_cv_as_ix86_rep_lock_prefix=no
23696   if test x$gcc_cv_as != x; then
23697     echo 'rep movsl
23698          lock addl %edi, (%eax,%esi)
23699          lock orl $0, (%esp)' > conftest.s
23700     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23701   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23702   (eval $ac_try) 2>&5
23703   ac_status=$?
23704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23705   test $ac_status = 0; }; }
23706     then
23707         gcc_cv_as_ix86_rep_lock_prefix=yes
23708     else
23709       echo "configure: failed program was" >&5
23710       cat conftest.s >&5
23711     fi
23712     rm -f conftest.o conftest.s
23713   fi
23714 fi
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23716 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23717 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23718
23719 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23720
23721 fi
23722
23723     ;;
23724
23725   ia64*-*-*)
23726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23727 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23728 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23729   $as_echo_n "(cached) " >&6
23730 else
23731   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23732     if test $in_tree_gas = yes; then
23733     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23734   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23735 fi
23736   elif test x$gcc_cv_as != x; then
23737     echo '      .text
23738         addl r15 = @ltoffx(x#), gp
23739         ;;
23740         ld8.mov r16 = [r15], x#' > conftest.s
23741     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23742   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23743   (eval $ac_try) 2>&5
23744   ac_status=$?
23745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23746   test $ac_status = 0; }; }
23747     then
23748         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23749     else
23750       echo "configure: failed program was" >&5
23751       cat conftest.s >&5
23752     fi
23753     rm -f conftest.o conftest.s
23754   fi
23755 fi
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23757 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23758 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23759
23760 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23761
23762 fi
23763
23764     ;;
23765
23766   powerpc*-*-*)
23767     case $target in
23768       *-*-aix*) conftest_s='    .machine "pwr5"
23769         .csect .text[PR]
23770         mfcr 3,128';;
23771       *-*-darwin*)
23772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23773 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23774 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23775   $as_echo_n "(cached) " >&6
23776 else
23777   gcc_cv_as_machine_directive=no
23778   if test x$gcc_cv_as != x; then
23779     echo '      .machine ppc7400' > conftest.s
23780     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23781   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23782   (eval $ac_try) 2>&5
23783   ac_status=$?
23784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23785   test $ac_status = 0; }; }
23786     then
23787         gcc_cv_as_machine_directive=yes
23788     else
23789       echo "configure: failed program was" >&5
23790       cat conftest.s >&5
23791     fi
23792     rm -f conftest.o conftest.s
23793   fi
23794 fi
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23796 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23797
23798         if test x$gcc_cv_as_machine_directive != xyes; then
23799           echo "*** This target requires an assembler supporting \".machine\"" >&2
23800           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23801           test x$build = x$target && exit 1
23802         fi
23803         conftest_s='    .text
23804         mfcr r3,128';;
23805       *) conftest_s='   .machine power4
23806         .text
23807         mfcr 3,128';;
23808     esac
23809
23810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23811 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23812 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23813   $as_echo_n "(cached) " >&6
23814 else
23815   gcc_cv_as_powerpc_mfcrf=no
23816     if test $in_tree_gas = yes; then
23817     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23818   then gcc_cv_as_powerpc_mfcrf=yes
23819 fi
23820   elif test x$gcc_cv_as != x; then
23821     echo "$conftest_s" > conftest.s
23822     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23823   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23824   (eval $ac_try) 2>&5
23825   ac_status=$?
23826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23827   test $ac_status = 0; }; }
23828     then
23829         gcc_cv_as_powerpc_mfcrf=yes
23830     else
23831       echo "configure: failed program was" >&5
23832       cat conftest.s >&5
23833     fi
23834     rm -f conftest.o conftest.s
23835   fi
23836 fi
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23838 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23839 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23840
23841 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23842
23843 fi
23844
23845     case $target in
23846       *-*-aix*) conftest_s='    .machine "pwr5"
23847         .csect .text[PR]
23848         popcntb 3,3';;
23849       *) conftest_s='   .machine power5
23850         .text
23851         popcntb 3,3';;
23852     esac
23853
23854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23855 $as_echo_n "checking assembler for popcntb support... " >&6; }
23856 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23857   $as_echo_n "(cached) " >&6
23858 else
23859   gcc_cv_as_powerpc_popcntb=no
23860     if test $in_tree_gas = yes; then
23861     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23862   then gcc_cv_as_powerpc_popcntb=yes
23863 fi
23864   elif test x$gcc_cv_as != x; then
23865     echo "$conftest_s" > conftest.s
23866     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23867   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23868   (eval $ac_try) 2>&5
23869   ac_status=$?
23870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23871   test $ac_status = 0; }; }
23872     then
23873         gcc_cv_as_powerpc_popcntb=yes
23874     else
23875       echo "configure: failed program was" >&5
23876       cat conftest.s >&5
23877     fi
23878     rm -f conftest.o conftest.s
23879   fi
23880 fi
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23882 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23883 if test $gcc_cv_as_powerpc_popcntb = yes; then
23884
23885 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23886
23887 fi
23888
23889     case $target in
23890       *-*-aix*) conftest_s='    .machine "pwr5x"
23891         .csect .text[PR]
23892         frin 1,1';;
23893       *) conftest_s='   .machine power5
23894         .text
23895         frin 1,1';;
23896     esac
23897
23898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23899 $as_echo_n "checking assembler for fp round support... " >&6; }
23900 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23901   $as_echo_n "(cached) " >&6
23902 else
23903   gcc_cv_as_powerpc_fprnd=no
23904     if test $in_tree_gas = yes; then
23905     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23906   then gcc_cv_as_powerpc_fprnd=yes
23907 fi
23908   elif test x$gcc_cv_as != x; then
23909     echo "$conftest_s" > conftest.s
23910     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23911   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23912   (eval $ac_try) 2>&5
23913   ac_status=$?
23914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23915   test $ac_status = 0; }; }
23916     then
23917         gcc_cv_as_powerpc_fprnd=yes
23918     else
23919       echo "configure: failed program was" >&5
23920       cat conftest.s >&5
23921     fi
23922     rm -f conftest.o conftest.s
23923   fi
23924 fi
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23926 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23927 if test $gcc_cv_as_powerpc_fprnd = yes; then
23928
23929 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23930
23931 fi
23932
23933     case $target in
23934       *-*-aix*) conftest_s='    .machine "pwr6"
23935         .csect .text[PR]
23936         mffgpr 1,3';;
23937       *) conftest_s='   .machine power6
23938         .text
23939         mffgpr 1,3';;
23940     esac
23941
23942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23943 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23944 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23945   $as_echo_n "(cached) " >&6
23946 else
23947   gcc_cv_as_powerpc_mfpgpr=no
23948     if test $in_tree_gas = yes; then
23949     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23950   then gcc_cv_as_powerpc_mfpgpr=yes
23951 fi
23952   elif test x$gcc_cv_as != x; then
23953     echo "$conftest_s" > conftest.s
23954     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23955   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23956   (eval $ac_try) 2>&5
23957   ac_status=$?
23958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23959   test $ac_status = 0; }; }
23960     then
23961         gcc_cv_as_powerpc_mfpgpr=yes
23962     else
23963       echo "configure: failed program was" >&5
23964       cat conftest.s >&5
23965     fi
23966     rm -f conftest.o conftest.s
23967   fi
23968 fi
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23970 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23971 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23972
23973 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23974
23975 fi
23976
23977     case $target in
23978       *-*-aix*) conftest_s='    .csect .text[PR]
23979 LCF..0:
23980         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23981       *-*-darwin*)
23982         conftest_s='    .text
23983 LCF0:
23984         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23985       *) conftest_s='   .text
23986 .LCF0:
23987         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23988     esac
23989
23990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23991 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23992 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23993   $as_echo_n "(cached) " >&6
23994 else
23995   gcc_cv_as_powerpc_rel16=no
23996     if test $in_tree_gas = yes; then
23997     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23998   then gcc_cv_as_powerpc_rel16=yes
23999 fi
24000   elif test x$gcc_cv_as != x; then
24001     echo "$conftest_s" > conftest.s
24002     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24003   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24004   (eval $ac_try) 2>&5
24005   ac_status=$?
24006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007   test $ac_status = 0; }; }
24008     then
24009         gcc_cv_as_powerpc_rel16=yes
24010     else
24011       echo "configure: failed program was" >&5
24012       cat conftest.s >&5
24013     fi
24014     rm -f conftest.o conftest.s
24015   fi
24016 fi
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24018 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24019 if test $gcc_cv_as_powerpc_rel16 = yes; then
24020
24021 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24022
24023 fi
24024
24025     case $target in
24026       *-*-aix*) conftest_s='    .machine "pwr6"
24027         .csect .text[PR]
24028         cmpb 3,4,5';;
24029       *) conftest_s='   .machine power6
24030         .text
24031         cmpb 3,4,5';;
24032     esac
24033
24034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24035 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24036 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24037   $as_echo_n "(cached) " >&6
24038 else
24039   gcc_cv_as_powerpc_cmpb=no
24040     if test $in_tree_gas = yes; then
24041     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24042   then gcc_cv_as_powerpc_cmpb=yes
24043 fi
24044   elif test x$gcc_cv_as != x; then
24045     echo "$conftest_s" > conftest.s
24046     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24047   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24048   (eval $ac_try) 2>&5
24049   ac_status=$?
24050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24051   test $ac_status = 0; }; }
24052     then
24053         gcc_cv_as_powerpc_cmpb=yes
24054     else
24055       echo "configure: failed program was" >&5
24056       cat conftest.s >&5
24057     fi
24058     rm -f conftest.o conftest.s
24059   fi
24060 fi
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24062 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24063 if test $gcc_cv_as_powerpc_cmpb = yes; then
24064
24065 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24066
24067 fi
24068
24069     case $target in
24070       *-*-aix*) conftest_s='    .machine "pwr6"
24071         .csect .text[PR]
24072         dadd 1,2,3';;
24073       *) conftest_s='   .machine power6
24074         .text
24075         dadd 1,2,3';;
24076     esac
24077
24078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24079 $as_echo_n "checking assembler for decimal float support... " >&6; }
24080 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24081   $as_echo_n "(cached) " >&6
24082 else
24083   gcc_cv_as_powerpc_dfp=no
24084     if test $in_tree_gas = yes; then
24085     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24086   then gcc_cv_as_powerpc_dfp=yes
24087 fi
24088   elif test x$gcc_cv_as != x; then
24089     echo "$conftest_s" > conftest.s
24090     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24091   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092   (eval $ac_try) 2>&5
24093   ac_status=$?
24094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095   test $ac_status = 0; }; }
24096     then
24097         gcc_cv_as_powerpc_dfp=yes
24098     else
24099       echo "configure: failed program was" >&5
24100       cat conftest.s >&5
24101     fi
24102     rm -f conftest.o conftest.s
24103   fi
24104 fi
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24106 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24107 if test $gcc_cv_as_powerpc_dfp = yes; then
24108
24109 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24110
24111 fi
24112
24113     case $target in
24114       *-*-aix*) conftest_s='    .machine "pwr7"
24115         .csect .text[PR]
24116         lxvd2x 1,2,3';;
24117       *) conftest_s='   .machine power7
24118         .text
24119         lxvd2x 1,2,3';;
24120     esac
24121
24122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24123 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24124 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24125   $as_echo_n "(cached) " >&6
24126 else
24127   gcc_cv_as_powerpc_vsx=no
24128     if test $in_tree_gas = yes; then
24129     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24130   then gcc_cv_as_powerpc_vsx=yes
24131 fi
24132   elif test x$gcc_cv_as != x; then
24133     echo "$conftest_s" > conftest.s
24134     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24135   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24136   (eval $ac_try) 2>&5
24137   ac_status=$?
24138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139   test $ac_status = 0; }; }
24140     then
24141         gcc_cv_as_powerpc_vsx=yes
24142     else
24143       echo "configure: failed program was" >&5
24144       cat conftest.s >&5
24145     fi
24146     rm -f conftest.o conftest.s
24147   fi
24148 fi
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24150 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24151 if test $gcc_cv_as_powerpc_vsx = yes; then
24152
24153 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24154
24155 fi
24156
24157     case $target in
24158       *-*-aix*) conftest_s='    .machine "pwr7"
24159         .csect .text[PR]
24160         popcntd 3,3';;
24161       *) conftest_s='   .machine power7
24162         .text
24163         popcntd 3,3';;
24164     esac
24165
24166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24167 $as_echo_n "checking assembler for popcntd support... " >&6; }
24168 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24169   $as_echo_n "(cached) " >&6
24170 else
24171   gcc_cv_as_powerpc_popcntd=no
24172     if test $in_tree_gas = yes; then
24173     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24174   then gcc_cv_as_powerpc_popcntd=yes
24175 fi
24176   elif test x$gcc_cv_as != x; then
24177     echo "$conftest_s" > conftest.s
24178     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24179   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24180   (eval $ac_try) 2>&5
24181   ac_status=$?
24182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24183   test $ac_status = 0; }; }
24184     then
24185         gcc_cv_as_powerpc_popcntd=yes
24186     else
24187       echo "configure: failed program was" >&5
24188       cat conftest.s >&5
24189     fi
24190     rm -f conftest.o conftest.s
24191   fi
24192 fi
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24194 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24195 if test $gcc_cv_as_powerpc_popcntd = yes; then
24196
24197 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24198
24199 fi
24200
24201     case $target in
24202       *-*-aix*) conftest_s='    .csect .text[PR]
24203         lwsync';;
24204       *) conftest_s='   .text
24205         lwsync';;
24206     esac
24207
24208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24209 $as_echo_n "checking assembler for lwsync support... " >&6; }
24210 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24211   $as_echo_n "(cached) " >&6
24212 else
24213   gcc_cv_as_powerpc_lwsync=no
24214     if test $in_tree_gas = yes; then
24215     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24216   then gcc_cv_as_powerpc_lwsync=yes
24217 fi
24218   elif test x$gcc_cv_as != x; then
24219     echo "$conftest_s" > conftest.s
24220     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24221   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24222   (eval $ac_try) 2>&5
24223   ac_status=$?
24224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24225   test $ac_status = 0; }; }
24226     then
24227         gcc_cv_as_powerpc_lwsync=yes
24228     else
24229       echo "configure: failed program was" >&5
24230       cat conftest.s >&5
24231     fi
24232     rm -f conftest.o conftest.s
24233   fi
24234 fi
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24236 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24237 if test $gcc_cv_as_powerpc_lwsync = yes; then
24238
24239 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24240
24241 fi
24242
24243     case $target in
24244       *-*-aix*) conftest_s='    .machine "476"
24245         .csect .text[PR]
24246         dci 0';;
24247       *) conftest_s='   .machine "476"
24248         .text
24249         dci 0';;
24250     esac
24251
24252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24253 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24254 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24255   $as_echo_n "(cached) " >&6
24256 else
24257   gcc_cv_as_powerpc_dci=no
24258     if test $in_tree_gas = yes; then
24259     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24260   then gcc_cv_as_powerpc_dci=yes
24261 fi
24262   elif test x$gcc_cv_as != x; then
24263     echo "$conftest_s" > conftest.s
24264     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24265   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24266   (eval $ac_try) 2>&5
24267   ac_status=$?
24268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24269   test $ac_status = 0; }; }
24270     then
24271         gcc_cv_as_powerpc_dci=yes
24272     else
24273       echo "configure: failed program was" >&5
24274       cat conftest.s >&5
24275     fi
24276     rm -f conftest.o conftest.s
24277   fi
24278 fi
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24280 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24281 if test $gcc_cv_as_powerpc_dci = yes; then
24282
24283 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24284
24285 fi
24286
24287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24288 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24289 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24290   $as_echo_n "(cached) " >&6
24291 else
24292   gcc_cv_as_powerpc_gnu_attribute=no
24293     if test $in_tree_gas = yes; then
24294     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24295   then gcc_cv_as_powerpc_gnu_attribute=yes
24296 fi
24297   elif test x$gcc_cv_as != x; then
24298     echo '.gnu_attribute 4,1' > conftest.s
24299     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24300   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301   (eval $ac_try) 2>&5
24302   ac_status=$?
24303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304   test $ac_status = 0; }; }
24305     then
24306         gcc_cv_as_powerpc_gnu_attribute=yes
24307     else
24308       echo "configure: failed program was" >&5
24309       cat conftest.s >&5
24310     fi
24311     rm -f conftest.o conftest.s
24312   fi
24313 fi
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24315 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24316 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24317
24318 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24319
24320 fi
24321
24322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24323 $as_echo_n "checking assembler for tls marker support... " >&6; }
24324 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24325   $as_echo_n "(cached) " >&6
24326 else
24327   gcc_cv_as_powerpc_tls_markers=no
24328     if test $in_tree_gas = yes; then
24329     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24330   then gcc_cv_as_powerpc_tls_markers=yes
24331 fi
24332   elif test x$gcc_cv_as != x; then
24333     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24334     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24335   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336   (eval $ac_try) 2>&5
24337   ac_status=$?
24338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339   test $ac_status = 0; }; }
24340     then
24341         gcc_cv_as_powerpc_tls_markers=yes
24342     else
24343       echo "configure: failed program was" >&5
24344       cat conftest.s >&5
24345     fi
24346     rm -f conftest.o conftest.s
24347   fi
24348 fi
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24350 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24351 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24352
24353 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24354
24355 fi
24356
24357     case $target in
24358       *-*-aix*)
24359         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24360 $as_echo_n "checking assembler for .ref support... " >&6; }
24361 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24362   $as_echo_n "(cached) " >&6
24363 else
24364   gcc_cv_as_aix_ref=no
24365     if test $in_tree_gas = yes; then
24366     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24367   then :
24368 fi
24369   elif test x$gcc_cv_as != x; then
24370     echo '      .csect stuff[rw]
24371              stuff:
24372                 .long 1
24373                 .extern sym
24374                 .ref sym
24375           ' > conftest.s
24376     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24377   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378   (eval $ac_try) 2>&5
24379   ac_status=$?
24380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381   test $ac_status = 0; }; }
24382     then
24383         gcc_cv_as_aix_ref=yes
24384     else
24385       echo "configure: failed program was" >&5
24386       cat conftest.s >&5
24387     fi
24388     rm -f conftest.o conftest.s
24389   fi
24390 fi
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24392 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24393 if test $gcc_cv_as_aix_ref = yes; then
24394
24395 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24396
24397 fi
24398         ;;
24399     esac
24400     ;;
24401
24402   mips*-*-*)
24403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24404 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24405 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24406   $as_echo_n "(cached) " >&6
24407 else
24408   gcc_cv_as_mips_explicit_relocs=no
24409     if test $in_tree_gas = yes; then
24410     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24411   then gcc_cv_as_mips_explicit_relocs=yes
24412 fi
24413   elif test x$gcc_cv_as != x; then
24414     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24415     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24416   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24417   (eval $ac_try) 2>&5
24418   ac_status=$?
24419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24420   test $ac_status = 0; }; }
24421     then
24422         gcc_cv_as_mips_explicit_relocs=yes
24423     else
24424       echo "configure: failed program was" >&5
24425       cat conftest.s >&5
24426     fi
24427     rm -f conftest.o conftest.s
24428   fi
24429 fi
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24431 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24432 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24433   if test x$target_cpu_default = x
24434        then target_cpu_default=MASK_EXPLICIT_RELOCS
24435        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24436        fi
24437 fi
24438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24439 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24440 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24441   $as_echo_n "(cached) " >&6
24442 else
24443   gcc_cv_as_mips_no_shared=no
24444     if test $in_tree_gas = yes; then
24445     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24446   then gcc_cv_as_mips_no_shared=yes
24447 fi
24448   elif test x$gcc_cv_as != x; then
24449     echo 'nop' > conftest.s
24450     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24451   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452   (eval $ac_try) 2>&5
24453   ac_status=$?
24454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455   test $ac_status = 0; }; }
24456     then
24457         gcc_cv_as_mips_no_shared=yes
24458     else
24459       echo "configure: failed program was" >&5
24460       cat conftest.s >&5
24461     fi
24462     rm -f conftest.o conftest.s
24463   fi
24464 fi
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24466 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24467 if test $gcc_cv_as_mips_no_shared = yes; then
24468
24469 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24470
24471 fi
24472
24473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24474 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24475 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24476   $as_echo_n "(cached) " >&6
24477 else
24478   gcc_cv_as_mips_gnu_attribute=no
24479     if test $in_tree_gas = yes; then
24480     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24481   then gcc_cv_as_mips_gnu_attribute=yes
24482 fi
24483   elif test x$gcc_cv_as != x; then
24484     echo '.gnu_attribute 4,1' > conftest.s
24485     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24486   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24487   (eval $ac_try) 2>&5
24488   ac_status=$?
24489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24490   test $ac_status = 0; }; }
24491     then
24492         gcc_cv_as_mips_gnu_attribute=yes
24493     else
24494       echo "configure: failed program was" >&5
24495       cat conftest.s >&5
24496     fi
24497     rm -f conftest.o conftest.s
24498   fi
24499 fi
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24501 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24502 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24503
24504 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24505
24506 fi
24507
24508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24509 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24510 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24511   $as_echo_n "(cached) " >&6
24512 else
24513   gcc_cv_as_mips_dtprelword=no
24514     if test $in_tree_gas = yes; then
24515     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24516   then gcc_cv_as_mips_dtprelword=yes
24517 fi
24518   elif test x$gcc_cv_as != x; then
24519     echo '.section .tdata,"awT",@progbits
24520 x:
24521         .word 2
24522         .text
24523         .dtprelword x+0x8000' > conftest.s
24524     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24525   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526   (eval $ac_try) 2>&5
24527   ac_status=$?
24528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529   test $ac_status = 0; }; }
24530     then
24531         gcc_cv_as_mips_dtprelword=yes
24532     else
24533       echo "configure: failed program was" >&5
24534       cat conftest.s >&5
24535     fi
24536     rm -f conftest.o conftest.s
24537   fi
24538 fi
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24540 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24541 if test $gcc_cv_as_mips_dtprelword = yes; then
24542
24543 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24544
24545 fi
24546
24547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24548 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24549 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24550   $as_echo_n "(cached) " >&6
24551 else
24552   gcc_cv_as_mips_dspr1_mult=no
24553   if test x$gcc_cv_as != x; then
24554     echo '      .set    mips32r2
24555         .set    nodspr2
24556         .set    dsp
24557         madd    $ac3,$4,$5
24558         maddu   $ac3,$4,$5
24559         msub    $ac3,$4,$5
24560         msubu   $ac3,$4,$5
24561         mult    $ac3,$4,$5
24562         multu   $ac3,$4,$5' > conftest.s
24563     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24564   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24565   (eval $ac_try) 2>&5
24566   ac_status=$?
24567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24568   test $ac_status = 0; }; }
24569     then
24570         gcc_cv_as_mips_dspr1_mult=yes
24571     else
24572       echo "configure: failed program was" >&5
24573       cat conftest.s >&5
24574     fi
24575     rm -f conftest.o conftest.s
24576   fi
24577 fi
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24579 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24580 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24581
24582 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24583
24584 fi
24585
24586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24587 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24588     gcc_cv_as_ld_jalr_reloc=no
24589     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24590       if test $in_tree_ld = yes ; then
24591         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 \
24592            && test $in_tree_ld_is_elf = yes; then
24593           gcc_cv_as_ld_jalr_reloc=yes
24594         fi
24595       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24596         echo '  .ent x' > conftest.s
24597         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24598         echo '  ld $25,%call16(y)($28)' >> conftest.s
24599         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24600         echo '1:        jalr $25' >> conftest.s
24601         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24602         echo '1:        jalr $25' >> conftest.s
24603         echo '  .end x' >> conftest.s
24604         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24605            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24606           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24607              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24608             gcc_cv_as_ld_jalr_reloc=yes
24609           fi
24610         fi
24611         rm -f conftest.*
24612       fi
24613     fi
24614     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24615       if test x$target_cpu_default = x; then
24616         target_cpu_default=MASK_RELAX_PIC_CALLS
24617       else
24618         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24619       fi
24620     fi
24621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24622 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24623
24624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24625 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24626 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24627   $as_echo_n "(cached) " >&6
24628 else
24629   gcc_cv_ld_mips_personality_relaxation=no
24630        if test $in_tree_ld = yes ; then
24631          if test "$gcc_cv_gld_major_version" -eq 2 \
24632                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24633                  -o "$gcc_cv_gld_major_version" -gt 2; then
24634            gcc_cv_ld_mips_personality_relaxation=yes
24635          fi
24636        elif test x$gcc_cv_as != x \
24637                  -a x$gcc_cv_ld != x \
24638                  -a x$gcc_cv_readelf != x ; then
24639          cat > conftest.s <<EOF
24640         .cfi_startproc
24641         .cfi_personality 0x80,indirect_ptr
24642         .ent test
24643 test:
24644         nop
24645         .end test
24646         .cfi_endproc
24647
24648         .section .data,"aw",@progbits
24649 indirect_ptr:
24650         .dc.a personality
24651 EOF
24652          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24653             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24654            if $gcc_cv_readelf -d conftest 2>&1 \
24655               | grep TEXTREL > /dev/null 2>&1; then
24656              :
24657            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24658                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24659              :
24660            else
24661              gcc_cv_ld_mips_personality_relaxation=yes
24662            fi
24663          fi
24664        fi
24665        rm -f conftest.s conftest.o conftest
24666 fi
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24668 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24669     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24670
24671 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24672
24673     fi
24674     ;;
24675 esac
24676
24677 # Mips and HP-UX need the GNU assembler.
24678 # Linux on IA64 might be able to use the Intel assembler.
24679
24680 case "$target" in
24681   mips*-*-* | *-*-hpux* )
24682     if test x$gas_flag = xyes \
24683        || test x"$host" != x"$build" \
24684        || test ! -x "$gcc_cv_as" \
24685        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24686       :
24687     else
24688       echo "*** This configuration requires the GNU assembler" >&2
24689       exit 1
24690     fi
24691     ;;
24692 esac
24693
24694 # ??? Not all targets support dwarf2 debug_line, even within a version
24695 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24696 # info to the output file.  So, as supported targets are added to gas 2.11,
24697 # add some instruction here to (also) show we expect this might work.
24698 # ??? Once 2.11 is released, probably need to add first known working
24699 # version to the per-target configury.
24700 case "$cpu_type" in
24701   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24702   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24703     insn="nop"
24704     ;;
24705   ia64 | s390)
24706     insn="nop 0"
24707     ;;
24708   mmix)
24709     insn="swym 0"
24710     ;;
24711 esac
24712 if test x"$insn" != x; then
24713  conftest_s="\
24714         .file 1 \"conftest.s\"
24715         .loc 1 3 0
24716         $insn"
24717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24718 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24719 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24720   $as_echo_n "(cached) " >&6
24721 else
24722   gcc_cv_as_dwarf2_debug_line=no
24723     if test $in_tree_gas = yes; then
24724     if test $in_tree_gas_is_elf = yes \
24725   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24726   then gcc_cv_as_dwarf2_debug_line=yes
24727 fi
24728   elif test x$gcc_cv_as != x; then
24729     echo "$conftest_s" > conftest.s
24730     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24731   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24732   (eval $ac_try) 2>&5
24733   ac_status=$?
24734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24735   test $ac_status = 0; }; }
24736     then
24737         if test x$gcc_cv_objdump != x \
24738    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24739       | grep debug_line > /dev/null 2>&1; then
24740      gcc_cv_as_dwarf2_debug_line=yes
24741    fi
24742     else
24743       echo "configure: failed program was" >&5
24744       cat conftest.s >&5
24745     fi
24746     rm -f conftest.o conftest.s
24747   fi
24748 fi
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24750 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24751
24752
24753 # The .debug_line file table must be in the exact order that
24754 # we specified the files, since these indices are also used
24755 # by DW_AT_decl_file.  Approximate this test by testing if
24756 # the assembler bitches if the same index is assigned twice.
24757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24758 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24759 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24760   $as_echo_n "(cached) " >&6
24761 else
24762   gcc_cv_as_dwarf2_file_buggy=no
24763   if test x$gcc_cv_as != x; then
24764     echo '      .file 1 "foo.s"
24765         .file 1 "bar.s"' > conftest.s
24766     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24767   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24768   (eval $ac_try) 2>&5
24769   ac_status=$?
24770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24771   test $ac_status = 0; }; }
24772     then
24773         gcc_cv_as_dwarf2_file_buggy=yes
24774     else
24775       echo "configure: failed program was" >&5
24776       cat conftest.s >&5
24777     fi
24778     rm -f conftest.o conftest.s
24779   fi
24780 fi
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24782 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24783
24784
24785  if test $gcc_cv_as_dwarf2_debug_line = yes \
24786  && test $gcc_cv_as_dwarf2_file_buggy = no; then
24787
24788 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24789
24790  fi
24791
24792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24793 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24794 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24795   $as_echo_n "(cached) " >&6
24796 else
24797   gcc_cv_as_gdwarf2_flag=no
24798     if test $in_tree_gas = yes; then
24799     if test $in_tree_gas_is_elf = yes \
24800   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24801   then gcc_cv_as_gdwarf2_flag=yes
24802 fi
24803   elif test x$gcc_cv_as != x; then
24804     echo "$insn" > conftest.s
24805     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24806   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24807   (eval $ac_try) 2>&5
24808   ac_status=$?
24809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24810   test $ac_status = 0; }; }
24811     then
24812         gcc_cv_as_gdwarf2_flag=yes
24813     else
24814       echo "configure: failed program was" >&5
24815       cat conftest.s >&5
24816     fi
24817     rm -f conftest.o conftest.s
24818   fi
24819 fi
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24821 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24822 if test $gcc_cv_as_gdwarf2_flag = yes; then
24823
24824 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24825
24826 fi
24827
24828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24829 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24830 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24831   $as_echo_n "(cached) " >&6
24832 else
24833   gcc_cv_as_gstabs_flag=no
24834     if test $in_tree_gas = yes; then
24835     if test $in_tree_gas_is_elf = yes \
24836   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24837   then gcc_cv_as_gstabs_flag=yes
24838 fi
24839   elif test x$gcc_cv_as != x; then
24840     echo "$insn" > conftest.s
24841     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24842   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24843   (eval $ac_try) 2>&5
24844   ac_status=$?
24845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24846   test $ac_status = 0; }; }
24847     then
24848         # The native Solaris 9/Intel assembler doesn't understand --gstabs
24849    # and warns about it, but still exits successfully.  So check for
24850    # this.
24851    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24852   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24853   (eval $ac_try) 2>&5
24854   ac_status=$?
24855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24856   test $ac_status = 0; }; }
24857    then :
24858    else gcc_cv_as_gstabs_flag=yes
24859    fi
24860     else
24861       echo "configure: failed program was" >&5
24862       cat conftest.s >&5
24863     fi
24864     rm -f conftest.o conftest.s
24865   fi
24866 fi
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24868 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24869 if test $gcc_cv_as_gstabs_flag = yes; then
24870
24871 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24872
24873 fi
24874
24875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24876 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24877 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24878   $as_echo_n "(cached) " >&6
24879 else
24880   gcc_cv_as_debug_prefix_map_flag=no
24881     if test $in_tree_gas = yes; then
24882     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24883   then gcc_cv_as_debug_prefix_map_flag=yes
24884 fi
24885   elif test x$gcc_cv_as != x; then
24886     echo "$insn" > conftest.s
24887     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24888   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24889   (eval $ac_try) 2>&5
24890   ac_status=$?
24891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24892   test $ac_status = 0; }; }
24893     then
24894         gcc_cv_as_debug_prefix_map_flag=yes
24895     else
24896       echo "configure: failed program was" >&5
24897       cat conftest.s >&5
24898     fi
24899     rm -f conftest.o conftest.s
24900   fi
24901 fi
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24903 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24904 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24905
24906 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24907
24908 fi
24909 fi
24910
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24912 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24913 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24914   $as_echo_n "(cached) " >&6
24915 else
24916   gcc_cv_as_lcomm_with_alignment=no
24917   if test x$gcc_cv_as != x; then
24918     echo '.lcomm bar,4,16' > conftest.s
24919     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24920   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921   (eval $ac_try) 2>&5
24922   ac_status=$?
24923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924   test $ac_status = 0; }; }
24925     then
24926         gcc_cv_as_lcomm_with_alignment=yes
24927     else
24928       echo "configure: failed program was" >&5
24929       cat conftest.s >&5
24930     fi
24931     rm -f conftest.o conftest.s
24932   fi
24933 fi
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24935 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24936 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24937
24938 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24939
24940 fi
24941
24942 # Check whether --enable-gnu-unique-object was given.
24943 if test "${enable_gnu_unique_object+set}" = set; then :
24944   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24945     yes | no) ;;
24946     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24947 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24948   esac
24949 else
24950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24951 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24952 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24953   $as_echo_n "(cached) " >&6
24954 else
24955   gcc_cv_as_gnu_unique_object=no
24956     if test $in_tree_gas = yes; then
24957     if test $in_tree_gas_is_elf = yes \
24958   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24959   then gcc_cv_as_gnu_unique_object=yes
24960 fi
24961   elif test x$gcc_cv_as != x; then
24962     echo '.type foo, @gnu_unique_object' > conftest.s
24963     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24964   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24965   (eval $ac_try) 2>&5
24966   ac_status=$?
24967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24968   test $ac_status = 0; }; }
24969     then
24970         gcc_cv_as_gnu_unique_object=yes
24971     else
24972       echo "configure: failed program was" >&5
24973       cat conftest.s >&5
24974     fi
24975     rm -f conftest.o conftest.s
24976   fi
24977 fi
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24979 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24980 if test $gcc_cv_as_gnu_unique_object = yes; then
24981   # Also check for ld.so support, i.e. glibc 2.11 or higher.
24982    if test x$host = x$build -a x$host = x$target &&
24983        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24984       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24985       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24986       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24987       if test "$glibcnum" -ge 2011 ; then
24988         enable_gnu_unique_object=yes
24989       fi
24990     fi
24991 fi
24992 fi
24993
24994 if test x$enable_gnu_unique_object = xyes; then
24995
24996 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24997
24998 fi
24999
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25001 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25002 if test "${gcc_cv_as_line_zero+set}" = set; then :
25003   $as_echo_n "(cached) " >&6
25004 else
25005   gcc_cv_as_line_zero=no
25006   if test $in_tree_gas = yes; then
25007     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25008   then gcc_cv_as_line_zero=yes
25009 fi
25010   elif test "x$gcc_cv_as" != x; then
25011     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25012     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25013   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014   (eval $ac_try) 2>&5
25015   ac_status=$?
25016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017   test $ac_status = 0; }; } &&
25018        test "x`cat conftest.out`" = x
25019     then
25020       gcc_cv_as_line_zero=yes
25021     else
25022       echo "configure: failed program was" >&5
25023       cat conftest.s >&5
25024       echo "configure: error output was" >&5
25025       cat conftest.out >&5
25026     fi
25027     rm -f conftest.o conftest.s conftest.out
25028   fi
25029 fi
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25031 $as_echo "$gcc_cv_as_line_zero" >&6; }
25032 if test "x$gcc_cv_as_line_zero" = xyes; then
25033
25034 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25035
25036 fi
25037
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25039 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25040 gcc_cv_ld_eh_frame_hdr=no
25041 if test $in_tree_ld = yes ; then
25042   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 \
25043      && test $in_tree_ld_is_elf = yes; then
25044     gcc_cv_ld_eh_frame_hdr=yes
25045   fi
25046 elif test x$gcc_cv_ld != x; then
25047         # Check if linker supports --eh-frame-hdr option
25048         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25049                 gcc_cv_ld_eh_frame_hdr=yes
25050         fi
25051 fi
25052
25053 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25054
25055 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25056
25057 fi
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25059 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25060
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25062 $as_echo_n "checking linker position independent executable support... " >&6; }
25063 gcc_cv_ld_pie=no
25064 if test $in_tree_ld = yes ; then
25065   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 \
25066      && test $in_tree_ld_is_elf = yes; then
25067     gcc_cv_ld_pie=yes
25068   fi
25069 elif test x$gcc_cv_ld != x; then
25070         # Check if linker supports -pie option
25071         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25072                 gcc_cv_ld_pie=yes
25073         fi
25074 fi
25075 if test x"$gcc_cv_ld_pie" = xyes; then
25076
25077 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25078
25079 fi
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25081 $as_echo "$gcc_cv_ld_pie" >&6; }
25082
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25084 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25085 gcc_cv_ld_eh_gc_sections=no
25086 if test $in_tree_ld = yes ; then
25087   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 \
25088      && test $in_tree_ld_is_elf = yes; then
25089     gcc_cv_ld_eh_gc_sections=yes
25090   fi
25091 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25092   cat > conftest.s <<EOF
25093         .section        .text
25094 .globl _start
25095         .type _start, @function
25096 _start:
25097         .long foo
25098         .size _start, .-_start
25099         .section        .text.foo,"ax",@progbits
25100         .type foo, @function
25101 foo:
25102         .long 0
25103         .size foo, .-foo
25104         .section        .gcc_except_table.foo,"a",@progbits
25105 .L0:
25106         .long 0
25107         .section        .eh_frame,"a",@progbits
25108         .long .L0
25109 EOF
25110   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25111     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25112          | grep "gc-sections option ignored" > /dev/null; then
25113       gcc_cv_ld_eh_gc_sections=no
25114     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25115          | grep gcc_except_table > /dev/null; then
25116       gcc_cv_ld_eh_gc_sections=yes
25117       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25118       if test x$gcc_cv_as_comdat_group != xyes; then
25119         gcc_cv_ld_eh_gc_sections=no
25120         cat > conftest.s <<EOF
25121         .section        .text
25122 .globl _start
25123         .type _start, @function
25124 _start:
25125         .long foo
25126         .size _start, .-_start
25127         .section        .gnu.linkonce.t.foo,"ax",@progbits
25128         .type foo, @function
25129 foo:
25130         .long 0
25131         .size foo, .-foo
25132         .section        .gcc_except_table.foo,"a",@progbits
25133 .L0:
25134         .long 0
25135         .section        .eh_frame,"a",@progbits
25136         .long .L0
25137 EOF
25138         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25139           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25140                | grep "gc-sections option ignored" > /dev/null; then
25141             gcc_cv_ld_eh_gc_sections=no
25142           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25143                | grep gcc_except_table > /dev/null; then
25144             gcc_cv_ld_eh_gc_sections=yes
25145           fi
25146         fi
25147       fi
25148     fi
25149   fi
25150   rm -f conftest.s conftest.o conftest
25151 fi
25152 case "$target" in
25153   hppa*-*-linux*)
25154     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25155     gcc_cv_ld_eh_gc_sections=no
25156     ;;
25157 esac
25158 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25159
25160 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25161
25162 fi
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25164 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25165
25166 # --------
25167 # UNSORTED
25168 # --------
25169
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25171 $as_echo_n "checking linker --as-needed support... " >&6; }
25172 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25173   $as_echo_n "(cached) " >&6
25174 else
25175   gcc_cv_ld_as_needed=no
25176 if test $in_tree_ld = yes ; then
25177   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 \
25178      && test $in_tree_ld_is_elf = yes; then
25179     gcc_cv_ld_as_needed=yes
25180   fi
25181 elif test x$gcc_cv_ld != x; then
25182         # Check if linker supports --as-needed and --no-as-needed options
25183         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25184                 gcc_cv_ld_as_needed=yes
25185         fi
25186 fi
25187
25188 fi
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25190 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25191 if test x"$gcc_cv_ld_as_needed" = xyes; then
25192
25193 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25194
25195 fi
25196
25197 case "$target:$tm_file" in
25198   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25200 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25201 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25202   $as_echo_n "(cached) " >&6
25203 else
25204   gcc_cv_ld_no_dot_syms=no
25205     if test $in_tree_ld = yes ; then
25206       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
25207         gcc_cv_ld_no_dot_syms=yes
25208       fi
25209     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25210       cat > conftest1.s <<EOF
25211         .text
25212         bl .foo
25213 EOF
25214       cat > conftest2.s <<EOF
25215         .section ".opd","aw"
25216         .align 3
25217         .globl foo
25218         .type foo,@function
25219 foo:
25220         .quad .LEfoo,.TOC.@tocbase,0
25221         .text
25222 .LEfoo:
25223         blr
25224         .size foo,.-.LEfoo
25225 EOF
25226       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25227          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25228          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25229         gcc_cv_ld_no_dot_syms=yes
25230       fi
25231       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25232     fi
25233
25234 fi
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25236 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25237     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25238
25239 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25240
25241     fi
25242
25243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25244 $as_echo_n "checking linker large toc support... " >&6; }
25245 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25246   $as_echo_n "(cached) " >&6
25247 else
25248   gcc_cv_ld_large_toc=no
25249     if test $in_tree_ld = yes ; then
25250       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
25251         gcc_cv_ld_large_toc=yes
25252       fi
25253     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25254       cat > conftest.s <<EOF
25255         .section ".tbss","awT",@nobits
25256         .align 3
25257 ie0:    .space 8
25258         .global _start
25259         .text
25260 _start:
25261         addis 9,13,ie0@got@tprel@ha
25262         ld 9,ie0@got@tprel@l(9)
25263 EOF
25264       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25265          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25266         gcc_cv_ld_large_toc=yes
25267       fi
25268       rm -f conftest conftest.o conftest.s
25269     fi
25270
25271 fi
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25273 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25274     if test x"$gcc_cv_ld_large_toc" = xyes; then
25275
25276 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25277
25278     fi
25279     ;;
25280 esac
25281
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25283 $as_echo_n "checking linker --build-id support... " >&6; }
25284 if test "${gcc_cv_ld_buildid+set}" = set; then :
25285   $as_echo_n "(cached) " >&6
25286 else
25287   gcc_cv_ld_buildid=no
25288   if test $in_tree_ld = yes ; then
25289     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25290        "$gcc_cv_gld_minor_version" -ge 18 -o \
25291        "$gcc_cv_gld_major_version" -gt 2 \
25292        && test $in_tree_ld_is_elf = yes; then
25293       gcc_cv_ld_buildid=yes
25294     fi
25295   elif test x$gcc_cv_ld != x; then
25296     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25297       gcc_cv_ld_buildid=yes
25298     fi
25299   fi
25300 fi
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25302 $as_echo "$gcc_cv_ld_buildid" >&6; }
25303 if test x"$gcc_cv_ld_buildid" = xyes; then
25304
25305 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25306
25307 fi
25308
25309 # Check whether --enable-linker-build-id was given.
25310 if test "${enable_linker_build_id+set}" = set; then :
25311   enableval=$enable_linker_build_id;
25312 else
25313   enable_linker_build_id=no
25314 fi
25315
25316
25317 if test x"$enable_linker_build_id" = xyes; then
25318   if test x"$gcc_cv_ld_buildid" = xyes; then
25319
25320 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25321
25322   else
25323     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25324 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25325   fi
25326 fi
25327
25328 # In binutils 2.21, GNU ld gained support for new emulations fully
25329 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25331 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25332 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25333   $as_echo_n "(cached) " >&6
25334 else
25335   gcc_cv_ld_sol2_emulation=no
25336   if test $in_tree_ld = yes ; then
25337     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25338        "$gcc_cv_gld_minor_version" -ge 21 -o \
25339        "$gcc_cv_gld_major_version" -gt 2 \
25340        && test $in_tree_ld_is_elf = yes; then
25341       gcc_cv_ld_sol2_emulation=yes
25342     fi
25343   elif test x$gcc_cv_ld != x; then
25344     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25345        grep _sol2 > /dev/null; then
25346       gcc_cv_ld_sol2_emulation=yes
25347     fi
25348   fi
25349 fi
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25351 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25352 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25353
25354 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25355
25356 fi
25357
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25359 $as_echo_n "checking linker --sysroot support... " >&6; }
25360 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25361   $as_echo_n "(cached) " >&6
25362 else
25363   gcc_cv_ld_sysroot=no
25364   if test $in_tree_ld = yes ; then
25365       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
25366         gcc_cv_ld_sysroot=yes
25367       fi
25368   elif test x$gcc_cv_ld != x; then
25369     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25370       gcc_cv_ld_sysroot=yes
25371     fi
25372   fi
25373 fi
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25375 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25376 if test x"$gcc_cv_ld_sysroot" = xyes; then
25377
25378 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25379
25380 fi
25381
25382 if test x$with_sysroot = x && test x$host = x$target \
25383    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25384    && test "$prefix" != "NONE"; then
25385
25386 cat >>confdefs.h <<_ACEOF
25387 #define PREFIX_INCLUDE_DIR "$prefix/include"
25388 _ACEOF
25389
25390 fi
25391
25392 # Test for stack protector support in target C library.
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25394 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25395 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25396   $as_echo_n "(cached) " >&6
25397 else
25398   gcc_cv_libc_provides_ssp=no
25399     case "$target" in
25400        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25401       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25402         if test "x$with_headers" != x; then
25403           glibc_header_dir=$with_headers
25404         elif test "x$with_sysroot" = x; then
25405           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25406         elif test "x$with_build_sysroot" != "x"; then
25407           glibc_header_dir="${with_build_sysroot}/usr/include"
25408         elif test "x$with_sysroot" = xyes; then
25409           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25410         else
25411           glibc_header_dir="${with_sysroot}/usr/include"
25412         fi
25413       else
25414         glibc_header_dir=/usr/include
25415       fi
25416       # glibc 2.4 and later provides __stack_chk_fail and
25417       # either __stack_chk_guard, or TLS access to stack guard canary.
25418       if test -f $glibc_header_dir/features.h \
25419          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25420             $glibc_header_dir/features.h > /dev/null; then
25421         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25422            $glibc_header_dir/features.h > /dev/null; then
25423           gcc_cv_libc_provides_ssp=yes
25424         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25425              $glibc_header_dir/features.h > /dev/null \
25426              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25427              $glibc_header_dir/features.h > /dev/null; then
25428           gcc_cv_libc_provides_ssp=yes
25429         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25430              $glibc_header_dir/features.h > /dev/null && \
25431              test -f $glibc_header_dir/bits/uClibc_config.h && \
25432              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25433              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25434           gcc_cv_libc_provides_ssp=yes
25435         fi
25436       fi
25437         ;;
25438        *-*-gnu*)
25439          # Avoid complicated tests (see
25440          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25441          # simply assert that glibc does provide this, which is true for all
25442          # realistically usable GNU/Hurd configurations.
25443          gcc_cv_libc_provides_ssp=yes;;
25444        *-*-darwin* | *-*-freebsd*)
25445          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25446 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25447   gcc_cv_libc_provides_ssp=yes
25448 else
25449   echo "no __stack_chk_fail on this target"
25450 fi
25451
25452         ;;
25453   *) gcc_cv_libc_provides_ssp=no ;;
25454     esac
25455 fi
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25457 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25458
25459 if test x$gcc_cv_libc_provides_ssp = xyes; then
25460
25461 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25462
25463 fi
25464
25465 # Check if TFmode long double should be used by default or not.
25466 # Some glibc targets used DFmode long double, but with glibc 2.4
25467 # and later they can use TFmode.
25468 case "$target" in
25469   powerpc*-*-linux* | \
25470   powerpc*-*-gnu* | \
25471   sparc*-*-linux* | \
25472   s390*-*-linux* | \
25473   alpha*-*-linux*)
25474
25475 # Check whether --with-long-double-128 was given.
25476 if test "${with_long_double_128+set}" = set; then :
25477   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25478 else
25479   gcc_cv_target_ldbl128=no
25480       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25481         if test "x$with_sysroot" = x; then
25482           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25483         elif test "x$with_build_sysroot" != "x"; then
25484           glibc_header_dir="${with_build_sysroot}/usr/include"
25485         elif test "x$with_sysroot" = xyes; then
25486           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25487         else
25488           glibc_header_dir="${with_sysroot}/usr/include"
25489         fi
25490       else
25491         glibc_header_dir=/usr/include
25492       fi
25493       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25494         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25495       && gcc_cv_target_ldbl128=yes
25496
25497 fi
25498
25499     ;;
25500 esac
25501 if test x$gcc_cv_target_ldbl128 = xyes; then
25502
25503 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25504
25505 fi
25506
25507 # Find out what GC implementation we want, or may, use.
25508
25509 # Check whether --with-gc was given.
25510 if test "${with_gc+set}" = set; then :
25511   withval=$with_gc; case "$withval" in
25512   page)
25513     GGC=ggc-$withval
25514     ;;
25515   zone)
25516     GGC=ggc-$withval
25517
25518 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25519
25520     ;;
25521   *)
25522     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25523     ;;
25524 esac
25525 else
25526   GGC=ggc-page
25527 fi
25528
25529
25530 echo "Using $GGC for garbage collection."
25531
25532 # Libraries to use on the host.  This will normally be set by the top
25533 # level Makefile.  Here we simply capture the value for our Makefile.
25534 if test -z "${HOST_LIBS+set}"; then
25535   HOST_LIBS=
25536 fi
25537
25538
25539 # Use the system's zlib library.
25540 zlibdir=-L../zlib
25541 zlibinc="-I\$(srcdir)/../zlib"
25542
25543 # Check whether --with-system-zlib was given.
25544 if test "${with_system_zlib+set}" = set; then :
25545   withval=$with_system_zlib; zlibdir=
25546 zlibinc=
25547
25548 fi
25549
25550
25551
25552
25553
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25555 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25556     # Check whether --enable-maintainer-mode was given.
25557 if test "${enable_maintainer_mode+set}" = set; then :
25558   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25559 else
25560   maintainer_mode=no
25561 fi
25562
25563
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25565 $as_echo "$maintainer_mode" >&6; }
25566
25567 if test "$maintainer_mode" = "yes"; then
25568   MAINT=''
25569 else
25570   MAINT='#'
25571 fi
25572
25573 # --------------
25574 # Language hooks
25575 # --------------
25576
25577 # Make empty files to contain the specs and options for each language.
25578 # Then add #include lines to for a compiler that has specs and/or options.
25579
25580 subdirs=
25581 lang_opt_files=
25582 lang_specs_files=
25583 lang_tree_files=
25584 # These (without "all_") are set in each config-lang.in.
25585 # `language' must be a single word so is spelled singularly.
25586 all_languages=
25587 all_compilers=
25588 all_outputs='Makefile'
25589 # List of language makefile fragments.
25590 all_lang_makefrags=
25591 # Additional files for gengtype
25592 all_gtfiles="$target_gtfiles"
25593
25594 # These are the languages that are set in --enable-languages,
25595 # and are available in the GCC tree.
25596 all_selected_languages=
25597
25598 # Add the language fragments.
25599 # Languages are added via two mechanisms.  Some information must be
25600 # recorded in makefile variables, these are defined in config-lang.in.
25601 # We accumulate them and plug them into the main Makefile.
25602 # The other mechanism is a set of hooks for each of the main targets
25603 # like `clean', `install', etc.
25604
25605 language_hooks="Make-hooks"
25606
25607 for lang in ${srcdir}/*/config-lang.in
25608 do
25609         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25610
25611         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25612         if test "x$lang_alias" = x
25613         then
25614               echo "$lang doesn't set \$language." 1>&2
25615               exit 1
25616         fi
25617         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25618         subdirs="$subdirs $subdir"
25619
25620         # $gcc_subdir is where the gcc integration files are to be found
25621         # for a language, both for internal compiler purposes (compiler
25622         # sources implementing front-end to GCC tree converters), and for
25623         # build infrastructure purposes (Make-lang.in, etc.)
25624         #
25625         # This will be <subdir> (relative to $srcdir) if a line like
25626         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25627         # is found in <langdir>/config-lang.in, and will remain <langdir>
25628         # otherwise.
25629         #
25630         # Except for the language alias (fetched above), the regular
25631         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25632         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25633         # only this and the language alias.
25634
25635         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25636         if [ "$gcc_subdir" = "" ]; then
25637            gcc_subdir="$subdir"
25638         fi
25639
25640         case ",$enable_languages," in
25641         *,$lang_alias,*)
25642             all_selected_languages="$all_selected_languages $lang_alias"
25643             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25644                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25645             fi
25646             ;;
25647         esac
25648
25649         language=
25650         boot_language=
25651         compilers=
25652         outputs=
25653         gtfiles=
25654         subdir_requires=
25655         . ${srcdir}/$gcc_subdir/config-lang.in
25656         if test "x$language" = x
25657         then
25658                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25659                 exit 1
25660         fi
25661
25662         ok=:
25663         case ",$enable_languages," in
25664                 *,$lang_alias,*) ;;
25665                 *)
25666                         for i in $subdir_requires; do
25667                                 test -f "${srcdir}/$i/config-lang.in" && continue
25668                                 ok=false
25669                                 break
25670                         done
25671                 ;;
25672         esac
25673         $ok || continue
25674
25675         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25676         if test -f $srcdir/$gcc_subdir/lang.opt; then
25677             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25678             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
25679         fi
25680         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25681             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25682         fi
25683         all_languages="$all_languages $language"
25684         all_compilers="$all_compilers $compilers"
25685         all_outputs="$all_outputs $outputs"
25686         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25687         case ",$enable_languages," in
25688                 *,lto,*)
25689
25690 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25691
25692                     enable_lto=yes
25693
25694                     ;;
25695                 *) ;;
25696         esac
25697 done
25698
25699 # Pick up gtfiles for c
25700 gtfiles=
25701 . ${srcdir}/c-config-lang.in
25702 all_gtfiles="$all_gtfiles [c] $gtfiles"
25703
25704 check_languages=
25705 for language in $all_selected_languages
25706 do
25707         check_languages="$check_languages check-$language"
25708 done
25709
25710 # We link each language in with a set of hooks, reached indirectly via
25711 # lang.${target}.  Only do so for selected languages.
25712
25713 rm -f Make-hooks
25714 touch Make-hooks
25715 target_list="all.cross start.encap rest.encap tags \
25716         install-common install-man install-info install-pdf install-html dvi \
25717         pdf html uninstall info man srcextra srcman srcinfo \
25718         mostlyclean clean distclean maintainer-clean install-plugin"
25719
25720 for t in $target_list
25721 do
25722         x=
25723         for lang in $all_selected_languages
25724         do
25725                 x="$x $lang.$t"
25726         done
25727         echo "lang.$t: $x" >> Make-hooks
25728 done
25729
25730 # --------
25731 # Option include files
25732 # --------
25733
25734 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
25735 option_includes="option-includes.mk"
25736
25737
25738 # --------
25739 # UNSORTED
25740 # --------
25741
25742 # Create .gdbinit.
25743
25744 echo "dir ." > .gdbinit
25745 echo "dir ${srcdir}" >> .gdbinit
25746 if test x$gdb_needs_out_file_path = xyes
25747 then
25748         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25749 fi
25750 if test "x$subdirs" != x; then
25751         for s in $subdirs
25752         do
25753                 echo "dir ${srcdir}/$s" >> .gdbinit
25754         done
25755 fi
25756 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25757
25758 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25759
25760
25761
25762 # Find a directory in which to install a shared libgcc.
25763
25764 # Check whether --enable-version-specific-runtime-libs was given.
25765 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25766   enableval=$enable_version_specific_runtime_libs;
25767 fi
25768
25769
25770
25771 # Check whether --with-slibdir was given.
25772 if test "${with_slibdir+set}" = set; then :
25773   withval=$with_slibdir; slibdir="$with_slibdir"
25774 else
25775   if test "${enable_version_specific_runtime_libs+set}" = set; then
25776   slibdir='$(libsubdir)'
25777 elif test "$host" != "$target"; then
25778   slibdir='$(build_tooldir)/lib'
25779 else
25780   slibdir='$(libdir)'
25781 fi
25782 fi
25783
25784
25785
25786 # Substitute configuration variables
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849 # Echo link setup.
25850 if test x${build} = x${host} ; then
25851   if test x${host} = x${target} ; then
25852     echo "Links are now set up to build a native compiler for ${target}." 1>&2
25853   else
25854     echo "Links are now set up to build a cross-compiler" 1>&2
25855     echo " from ${host} to ${target}." 1>&2
25856   fi
25857 else
25858   if test x${host} = x${target} ; then
25859     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25860     echo " for ${target}." 1>&2
25861   else
25862     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25863     echo " from ${host} to ${target}." 1>&2
25864   fi
25865 fi
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875 if test "x${CLOOGLIBS}" != "x" ; then
25876
25877 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25878
25879 fi
25880
25881 # Check for plugin support
25882 # Check whether --enable-plugin was given.
25883 if test "${enable_plugin+set}" = set; then :
25884   enableval=$enable_plugin; enable_plugin=$enableval
25885 else
25886   enable_plugin=yes; default_plugin=yes
25887 fi
25888
25889
25890 pluginlibs=
25891
25892 case "${host}" in
25893   *-*-darwin*)
25894     if test x$build = x$host; then
25895       export_sym_check="nm${exeext} -g"
25896     elif test x$host = x$target; then
25897       export_sym_check="$gcc_cv_nm -g"
25898     else
25899       export_sym_check=
25900     fi
25901   ;;
25902   *)
25903     if test x$build = x$host; then
25904       export_sym_check="objdump${exeext} -T"
25905     elif test x$host = x$target; then
25906       export_sym_check="$gcc_cv_objdump -T"
25907     else
25908       export_sym_check=
25909     fi
25910   ;;
25911 esac
25912
25913 if test x"$enable_plugin" = x"yes"; then
25914
25915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25916 $as_echo_n "checking for exported symbols... " >&6; }
25917   if test "x$export_sym_check" != x; then
25918     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25919     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25920     if $export_sym_check conftest | grep foobar > /dev/null; then
25921       : # No need to use a flag
25922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25923 $as_echo "yes" >&6; }
25924     else
25925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25926 $as_echo "yes" >&6; }
25927       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25928 $as_echo_n "checking for -rdynamic... " >&6; }
25929       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25930       if $export_sym_check conftest | grep foobar > /dev/null; then
25931         plugin_rdynamic=yes
25932         pluginlibs="-rdynamic"
25933       else
25934         plugin_rdynamic=no
25935         enable_plugin=no
25936       fi
25937       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25938 $as_echo "$plugin_rdynamic" >&6; }
25939     fi
25940   else
25941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25942 $as_echo "unable to check" >&6; }
25943   fi
25944
25945   # Check -ldl
25946   saved_LIBS="$LIBS"
25947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25948 $as_echo_n "checking for library containing dlopen... " >&6; }
25949 if test "${ac_cv_search_dlopen+set}" = set; then :
25950   $as_echo_n "(cached) " >&6
25951 else
25952   ac_func_search_save_LIBS=$LIBS
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h.  */
25955
25956 /* Override any GCC internal prototype to avoid an error.
25957    Use char because int might match the return type of a GCC
25958    builtin and then its argument prototype would still apply.  */
25959 #ifdef __cplusplus
25960 extern "C"
25961 #endif
25962 char dlopen ();
25963 int
25964 main ()
25965 {
25966 return dlopen ();
25967   ;
25968   return 0;
25969 }
25970 _ACEOF
25971 for ac_lib in '' dl; do
25972   if test -z "$ac_lib"; then
25973     ac_res="none required"
25974   else
25975     ac_res=-l$ac_lib
25976     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25977   fi
25978   if ac_fn_c_try_link "$LINENO"; then :
25979   ac_cv_search_dlopen=$ac_res
25980 fi
25981 rm -f core conftest.err conftest.$ac_objext \
25982     conftest$ac_exeext
25983   if test "${ac_cv_search_dlopen+set}" = set; then :
25984   break
25985 fi
25986 done
25987 if test "${ac_cv_search_dlopen+set}" = set; then :
25988
25989 else
25990   ac_cv_search_dlopen=no
25991 fi
25992 rm conftest.$ac_ext
25993 LIBS=$ac_func_search_save_LIBS
25994 fi
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25996 $as_echo "$ac_cv_search_dlopen" >&6; }
25997 ac_res=$ac_cv_search_dlopen
25998 if test "$ac_res" != no; then :
25999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26000
26001 fi
26002
26003   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26004     pluginlibs="$pluginlibs -ldl"
26005   fi
26006   LIBS="$saved_LIBS"
26007
26008   # Check that we can build shared objects with -fPIC -shared
26009   saved_LDFLAGS="$LDFLAGS"
26010   saved_CFLAGS="$CFLAGS"
26011   case "${host}" in
26012     *-*-darwin*)
26013       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26014       CFLAGS="$CFLAGS -fPIC"
26015       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26016     ;;
26017     *)
26018       CFLAGS="$CFLAGS -fPIC"
26019       LDFLAGS="$LDFLAGS -fPIC -shared"
26020     ;;
26021   esac
26022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26023 $as_echo_n "checking for -fPIC -shared... " >&6; }
26024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h.  */
26026 extern int X;
26027 int
26028 main ()
26029 {
26030 return X == 0;
26031   ;
26032   return 0;
26033 }
26034 _ACEOF
26035 if ac_fn_c_try_link "$LINENO"; then :
26036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26037 $as_echo "yes" >&6; }; have_pic_shared=yes
26038 else
26039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26040 $as_echo "no" >&6; }; have_pic_shared=no
26041 fi
26042 rm -f core conftest.err conftest.$ac_objext \
26043     conftest$ac_exeext conftest.$ac_ext
26044   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26045     pluginlibs=
26046     enable_plugin=no
26047   fi
26048   LDFLAGS="$saved_LDFLAGS"
26049   CFLAGS="$saved_CFLAGS"
26050
26051   # If plugin support had been requested but not available, fail.
26052   if test x"$enable_plugin" = x"no" ; then
26053     if test x"$default_plugin" != x"yes"; then
26054       as_fn_error "
26055 Building GCC with plugin support requires a host that supports
26056 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26057     fi
26058   fi
26059 fi
26060
26061
26062
26063 if test x"$enable_plugin" = x"yes"; then
26064
26065 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26066
26067 fi
26068
26069 # Configure the subdirectories
26070 # AC_CONFIG_SUBDIRS($subdirs)
26071
26072 # Create the Makefile
26073 # and configure language subdirectories
26074 ac_config_files="$ac_config_files $all_outputs"
26075
26076
26077 ac_config_commands="$ac_config_commands default"
26078
26079 cat >confcache <<\_ACEOF
26080 # This file is a shell script that caches the results of configure
26081 # tests run on this system so they can be shared between configure
26082 # scripts and configure runs, see configure's option --config-cache.
26083 # It is not useful on other systems.  If it contains results you don't
26084 # want to keep, you may remove or edit it.
26085 #
26086 # config.status only pays attention to the cache file if you give it
26087 # the --recheck option to rerun configure.
26088 #
26089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26091 # following values.
26092
26093 _ACEOF
26094
26095 # The following way of writing the cache mishandles newlines in values,
26096 # but we know of no workaround that is simple, portable, and efficient.
26097 # So, we kill variables containing newlines.
26098 # Ultrix sh set writes to stderr and can't be redirected directly,
26099 # and sets the high bit in the cache file unless we assign to the vars.
26100 (
26101   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26102     eval ac_val=\$$ac_var
26103     case $ac_val in #(
26104     *${as_nl}*)
26105       case $ac_var in #(
26106       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26108       esac
26109       case $ac_var in #(
26110       _ | IFS | as_nl) ;; #(
26111       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26112       *) { eval $ac_var=; unset $ac_var;} ;;
26113       esac ;;
26114     esac
26115   done
26116
26117   (set) 2>&1 |
26118     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26119     *${as_nl}ac_space=\ *)
26120       # `set' does not quote correctly, so add quotes: double-quote
26121       # substitution turns \\\\ into \\, and sed turns \\ into \.
26122       sed -n \
26123         "s/'/'\\\\''/g;
26124           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26125       ;; #(
26126     *)
26127       # `set' quotes correctly as required by POSIX, so do not add quotes.
26128       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26129       ;;
26130     esac |
26131     sort
26132 ) |
26133   sed '
26134      /^ac_cv_env_/b end
26135      t clear
26136      :clear
26137      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26138      t end
26139      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26140      :end' >>confcache
26141 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26142   if test -w "$cache_file"; then
26143     test "x$cache_file" != "x/dev/null" &&
26144       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26145 $as_echo "$as_me: updating cache $cache_file" >&6;}
26146     cat confcache >$cache_file
26147   else
26148     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26149 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26150   fi
26151 fi
26152 rm -f confcache
26153
26154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26155 # Let make expand exec_prefix.
26156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26157
26158 DEFS=-DHAVE_CONFIG_H
26159
26160 ac_libobjs=
26161 ac_ltlibobjs=
26162 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26163   # 1. Remove the extension, and $U if already installed.
26164   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26165   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26166   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26167   #    will be set to the directory where LIBOBJS objects are built.
26168   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26169   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26170 done
26171 LIBOBJS=$ac_libobjs
26172
26173 LTLIBOBJS=$ac_ltlibobjs
26174
26175
26176
26177
26178 : ${CONFIG_STATUS=./config.status}
26179 ac_write_fail=0
26180 ac_clean_files_save=$ac_clean_files
26181 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26183 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26184 as_write_fail=0
26185 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26186 #! $SHELL
26187 # Generated by $as_me.
26188 # Run this file to recreate the current configuration.
26189 # Compiler output produced by configure, useful for debugging
26190 # configure, is in config.log if it exists.
26191
26192 debug=false
26193 ac_cs_recheck=false
26194 ac_cs_silent=false
26195
26196 SHELL=\${CONFIG_SHELL-$SHELL}
26197 export SHELL
26198 _ASEOF
26199 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26200 ## -------------------- ##
26201 ## M4sh Initialization. ##
26202 ## -------------------- ##
26203
26204 # Be more Bourne compatible
26205 DUALCASE=1; export DUALCASE # for MKS sh
26206 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26207   emulate sh
26208   NULLCMD=:
26209   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26210   # is contrary to our usage.  Disable this feature.
26211   alias -g '${1+"$@"}'='"$@"'
26212   setopt NO_GLOB_SUBST
26213 else
26214   case `(set -o) 2>/dev/null` in #(
26215   *posix*) :
26216     set -o posix ;; #(
26217   *) :
26218      ;;
26219 esac
26220 fi
26221
26222
26223 as_nl='
26224 '
26225 export as_nl
26226 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26227 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26229 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26230 # Prefer a ksh shell builtin over an external printf program on Solaris,
26231 # but without wasting forks for bash or zsh.
26232 if test -z "$BASH_VERSION$ZSH_VERSION" \
26233     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26234   as_echo='print -r --'
26235   as_echo_n='print -rn --'
26236 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26237   as_echo='printf %s\n'
26238   as_echo_n='printf %s'
26239 else
26240   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26241     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26242     as_echo_n='/usr/ucb/echo -n'
26243   else
26244     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26245     as_echo_n_body='eval
26246       arg=$1;
26247       case $arg in #(
26248       *"$as_nl"*)
26249         expr "X$arg" : "X\\(.*\\)$as_nl";
26250         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26251       esac;
26252       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26253     '
26254     export as_echo_n_body
26255     as_echo_n='sh -c $as_echo_n_body as_echo'
26256   fi
26257   export as_echo_body
26258   as_echo='sh -c $as_echo_body as_echo'
26259 fi
26260
26261 # The user is always right.
26262 if test "${PATH_SEPARATOR+set}" != set; then
26263   PATH_SEPARATOR=:
26264   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26265     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26266       PATH_SEPARATOR=';'
26267   }
26268 fi
26269
26270
26271 # IFS
26272 # We need space, tab and new line, in precisely that order.  Quoting is
26273 # there to prevent editors from complaining about space-tab.
26274 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26275 # splitting by setting IFS to empty value.)
26276 IFS=" ""        $as_nl"
26277
26278 # Find who we are.  Look in the path if we contain no directory separator.
26279 case $0 in #((
26280   *[\\/]* ) as_myself=$0 ;;
26281   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26282 for as_dir in $PATH
26283 do
26284   IFS=$as_save_IFS
26285   test -z "$as_dir" && as_dir=.
26286     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26287   done
26288 IFS=$as_save_IFS
26289
26290      ;;
26291 esac
26292 # We did not find ourselves, most probably we were run as `sh COMMAND'
26293 # in which case we are not to be found in the path.
26294 if test "x$as_myself" = x; then
26295   as_myself=$0
26296 fi
26297 if test ! -f "$as_myself"; then
26298   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26299   exit 1
26300 fi
26301
26302 # Unset variables that we do not need and which cause bugs (e.g. in
26303 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26304 # suppresses any "Segmentation fault" message there.  '((' could
26305 # trigger a bug in pdksh 5.2.14.
26306 for as_var in BASH_ENV ENV MAIL MAILPATH
26307 do eval test x\${$as_var+set} = xset \
26308   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26309 done
26310 PS1='$ '
26311 PS2='> '
26312 PS4='+ '
26313
26314 # NLS nuisances.
26315 LC_ALL=C
26316 export LC_ALL
26317 LANGUAGE=C
26318 export LANGUAGE
26319
26320 # CDPATH.
26321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26322
26323
26324 # as_fn_error ERROR [LINENO LOG_FD]
26325 # ---------------------------------
26326 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26327 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26328 # script with status $?, using 1 if that was 0.
26329 as_fn_error ()
26330 {
26331   as_status=$?; test $as_status -eq 0 && as_status=1
26332   if test "$3"; then
26333     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26334     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26335   fi
26336   $as_echo "$as_me: error: $1" >&2
26337   as_fn_exit $as_status
26338 } # as_fn_error
26339
26340
26341 # as_fn_set_status STATUS
26342 # -----------------------
26343 # Set $? to STATUS, without forking.
26344 as_fn_set_status ()
26345 {
26346   return $1
26347 } # as_fn_set_status
26348
26349 # as_fn_exit STATUS
26350 # -----------------
26351 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26352 as_fn_exit ()
26353 {
26354   set +e
26355   as_fn_set_status $1
26356   exit $1
26357 } # as_fn_exit
26358
26359 # as_fn_unset VAR
26360 # ---------------
26361 # Portably unset VAR.
26362 as_fn_unset ()
26363 {
26364   { eval $1=; unset $1;}
26365 }
26366 as_unset=as_fn_unset
26367 # as_fn_append VAR VALUE
26368 # ----------------------
26369 # Append the text in VALUE to the end of the definition contained in VAR. Take
26370 # advantage of any shell optimizations that allow amortized linear growth over
26371 # repeated appends, instead of the typical quadratic growth present in naive
26372 # implementations.
26373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26374   eval 'as_fn_append ()
26375   {
26376     eval $1+=\$2
26377   }'
26378 else
26379   as_fn_append ()
26380   {
26381     eval $1=\$$1\$2
26382   }
26383 fi # as_fn_append
26384
26385 # as_fn_arith ARG...
26386 # ------------------
26387 # Perform arithmetic evaluation on the ARGs, and store the result in the
26388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26389 # must be portable across $(()) and expr.
26390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26391   eval 'as_fn_arith ()
26392   {
26393     as_val=$(( $* ))
26394   }'
26395 else
26396   as_fn_arith ()
26397   {
26398     as_val=`expr "$@" || test $? -eq 1`
26399   }
26400 fi # as_fn_arith
26401
26402
26403 if expr a : '\(a\)' >/dev/null 2>&1 &&
26404    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26405   as_expr=expr
26406 else
26407   as_expr=false
26408 fi
26409
26410 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26411   as_basename=basename
26412 else
26413   as_basename=false
26414 fi
26415
26416 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26417   as_dirname=dirname
26418 else
26419   as_dirname=false
26420 fi
26421
26422 as_me=`$as_basename -- "$0" ||
26423 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26424          X"$0" : 'X\(//\)$' \| \
26425          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26426 $as_echo X/"$0" |
26427     sed '/^.*\/\([^/][^/]*\)\/*$/{
26428             s//\1/
26429             q
26430           }
26431           /^X\/\(\/\/\)$/{
26432             s//\1/
26433             q
26434           }
26435           /^X\/\(\/\).*/{
26436             s//\1/
26437             q
26438           }
26439           s/.*/./; q'`
26440
26441 # Avoid depending upon Character Ranges.
26442 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26443 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26444 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26445 as_cr_digits='0123456789'
26446 as_cr_alnum=$as_cr_Letters$as_cr_digits
26447
26448 ECHO_C= ECHO_N= ECHO_T=
26449 case `echo -n x` in #(((((
26450 -n*)
26451   case `echo 'xy\c'` in
26452   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26453   xy)  ECHO_C='\c';;
26454   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26455        ECHO_T=' ';;
26456   esac;;
26457 *)
26458   ECHO_N='-n';;
26459 esac
26460
26461 rm -f conf$$ conf$$.exe conf$$.file
26462 if test -d conf$$.dir; then
26463   rm -f conf$$.dir/conf$$.file
26464 else
26465   rm -f conf$$.dir
26466   mkdir conf$$.dir 2>/dev/null
26467 fi
26468 if (echo >conf$$.file) 2>/dev/null; then
26469   if ln -s conf$$.file conf$$ 2>/dev/null; then
26470     as_ln_s='ln -s'
26471     # ... but there are two gotchas:
26472     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26473     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26474     # In both cases, we have to default to `cp -p'.
26475     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26476       as_ln_s='cp -p'
26477   elif ln conf$$.file conf$$ 2>/dev/null; then
26478     as_ln_s=ln
26479   else
26480     as_ln_s='cp -p'
26481   fi
26482 else
26483   as_ln_s='cp -p'
26484 fi
26485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26486 rmdir conf$$.dir 2>/dev/null
26487
26488
26489 # as_fn_mkdir_p
26490 # -------------
26491 # Create "$as_dir" as a directory, including parents if necessary.
26492 as_fn_mkdir_p ()
26493 {
26494
26495   case $as_dir in #(
26496   -*) as_dir=./$as_dir;;
26497   esac
26498   test -d "$as_dir" || eval $as_mkdir_p || {
26499     as_dirs=
26500     while :; do
26501       case $as_dir in #(
26502       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26503       *) as_qdir=$as_dir;;
26504       esac
26505       as_dirs="'$as_qdir' $as_dirs"
26506       as_dir=`$as_dirname -- "$as_dir" ||
26507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26508          X"$as_dir" : 'X\(//\)[^/]' \| \
26509          X"$as_dir" : 'X\(//\)$' \| \
26510          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26511 $as_echo X"$as_dir" |
26512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26513             s//\1/
26514             q
26515           }
26516           /^X\(\/\/\)[^/].*/{
26517             s//\1/
26518             q
26519           }
26520           /^X\(\/\/\)$/{
26521             s//\1/
26522             q
26523           }
26524           /^X\(\/\).*/{
26525             s//\1/
26526             q
26527           }
26528           s/.*/./; q'`
26529       test -d "$as_dir" && break
26530     done
26531     test -z "$as_dirs" || eval "mkdir $as_dirs"
26532   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26533
26534
26535 } # as_fn_mkdir_p
26536 if mkdir -p . 2>/dev/null; then
26537   as_mkdir_p='mkdir -p "$as_dir"'
26538 else
26539   test -d ./-p && rmdir ./-p
26540   as_mkdir_p=false
26541 fi
26542
26543 if test -x / >/dev/null 2>&1; then
26544   as_test_x='test -x'
26545 else
26546   if ls -dL / >/dev/null 2>&1; then
26547     as_ls_L_option=L
26548   else
26549     as_ls_L_option=
26550   fi
26551   as_test_x='
26552     eval sh -c '\''
26553       if test -d "$1"; then
26554         test -d "$1/.";
26555       else
26556         case $1 in #(
26557         -*)set "./$1";;
26558         esac;
26559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26560         ???[sx]*):;;*)false;;esac;fi
26561     '\'' sh
26562   '
26563 fi
26564 as_executable_p=$as_test_x
26565
26566 # Sed expression to map a string onto a valid CPP name.
26567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26568
26569 # Sed expression to map a string onto a valid variable name.
26570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26571
26572
26573 exec 6>&1
26574 ## ----------------------------------- ##
26575 ## Main body of $CONFIG_STATUS script. ##
26576 ## ----------------------------------- ##
26577 _ASEOF
26578 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26579
26580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26581 # Save the log message, to keep $0 and so on meaningful, and to
26582 # report actual input values of CONFIG_FILES etc. instead of their
26583 # values after options handling.
26584 ac_log="
26585 This file was extended by $as_me, which was
26586 generated by GNU Autoconf 2.64.  Invocation command line was
26587
26588   CONFIG_FILES    = $CONFIG_FILES
26589   CONFIG_HEADERS  = $CONFIG_HEADERS
26590   CONFIG_LINKS    = $CONFIG_LINKS
26591   CONFIG_COMMANDS = $CONFIG_COMMANDS
26592   $ $0 $@
26593
26594 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26595 "
26596
26597 _ACEOF
26598
26599 case $ac_config_files in *"
26600 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26601 esac
26602
26603 case $ac_config_headers in *"
26604 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26605 esac
26606
26607
26608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26609 # Files that config.status was made for.
26610 config_files="$ac_config_files"
26611 config_headers="$ac_config_headers"
26612 config_commands="$ac_config_commands"
26613
26614 _ACEOF
26615
26616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26617 ac_cs_usage="\
26618 \`$as_me' instantiates files and other configuration actions
26619 from templates according to the current configuration.  Unless the files
26620 and actions are specified as TAGs, all are instantiated by default.
26621
26622 Usage: $0 [OPTION]... [TAG]...
26623
26624   -h, --help       print this help, then exit
26625   -V, --version    print version number and configuration settings, then exit
26626   -q, --quiet, --silent
26627                    do not print progress messages
26628   -d, --debug      don't remove temporary files
26629       --recheck    update $as_me by reconfiguring in the same conditions
26630       --file=FILE[:TEMPLATE]
26631                    instantiate the configuration file FILE
26632       --header=FILE[:TEMPLATE]
26633                    instantiate the configuration header FILE
26634
26635 Configuration files:
26636 $config_files
26637
26638 Configuration headers:
26639 $config_headers
26640
26641 Configuration commands:
26642 $config_commands
26643
26644 Report bugs to the package provider."
26645
26646 _ACEOF
26647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26648 ac_cs_version="\\
26649 config.status
26650 configured by $0, generated by GNU Autoconf 2.64,
26651   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26652
26653 Copyright (C) 2009 Free Software Foundation, Inc.
26654 This config.status script is free software; the Free Software Foundation
26655 gives unlimited permission to copy, distribute and modify it."
26656
26657 ac_pwd='$ac_pwd'
26658 srcdir='$srcdir'
26659 AWK='$AWK'
26660 test -n "\$AWK" || AWK=awk
26661 _ACEOF
26662
26663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26664 # The default lists apply if the user does not specify any file.
26665 ac_need_defaults=:
26666 while test $# != 0
26667 do
26668   case $1 in
26669   --*=*)
26670     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26671     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26672     ac_shift=:
26673     ;;
26674   *)
26675     ac_option=$1
26676     ac_optarg=$2
26677     ac_shift=shift
26678     ;;
26679   esac
26680
26681   case $ac_option in
26682   # Handling of the options.
26683   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26684     ac_cs_recheck=: ;;
26685   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26686     $as_echo "$ac_cs_version"; exit ;;
26687   --debug | --debu | --deb | --de | --d | -d )
26688     debug=: ;;
26689   --file | --fil | --fi | --f )
26690     $ac_shift
26691     case $ac_optarg in
26692     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26693     esac
26694     as_fn_append CONFIG_FILES " '$ac_optarg'"
26695     ac_need_defaults=false;;
26696   --header | --heade | --head | --hea )
26697     $ac_shift
26698     case $ac_optarg in
26699     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26700     esac
26701     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26702     ac_need_defaults=false;;
26703   --he | --h)
26704     # Conflict between --help and --header
26705     as_fn_error "ambiguous option: \`$1'
26706 Try \`$0 --help' for more information.";;
26707   --help | --hel | -h )
26708     $as_echo "$ac_cs_usage"; exit ;;
26709   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26710   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26711     ac_cs_silent=: ;;
26712
26713   # This is an error.
26714   -*) as_fn_error "unrecognized option: \`$1'
26715 Try \`$0 --help' for more information." ;;
26716
26717   *) as_fn_append ac_config_targets " $1"
26718      ac_need_defaults=false ;;
26719
26720   esac
26721   shift
26722 done
26723
26724 ac_configure_extra_args=
26725
26726 if $ac_cs_silent; then
26727   exec 6>/dev/null
26728   ac_configure_extra_args="$ac_configure_extra_args --silent"
26729 fi
26730
26731 _ACEOF
26732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26733 if \$ac_cs_recheck; then
26734   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26735   shift
26736   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26737   CONFIG_SHELL='$SHELL'
26738   export CONFIG_SHELL
26739   exec "\$@"
26740 fi
26741
26742 _ACEOF
26743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26744 exec 5>>config.log
26745 {
26746   echo
26747   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26748 ## Running $as_me. ##
26749 _ASBOX
26750   $as_echo "$ac_log"
26751 } >&5
26752
26753 _ACEOF
26754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26755 #
26756 # INIT-COMMANDS
26757 #
26758 subdirs='$subdirs'
26759
26760 _ACEOF
26761
26762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26763
26764 # Handling of arguments.
26765 for ac_config_target in $ac_config_targets
26766 do
26767   case $ac_config_target in
26768     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26769     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26770     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26771     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26772     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26773     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26774
26775   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26776   esac
26777 done
26778
26779
26780 # If the user did not use the arguments to specify the items to instantiate,
26781 # then the envvar interface is used.  Set only those that are not.
26782 # We use the long form for the default assignment because of an extremely
26783 # bizarre bug on SunOS 4.1.3.
26784 if $ac_need_defaults; then
26785   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26786   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26787   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26788 fi
26789
26790 # Have a temporary directory for convenience.  Make it in the build tree
26791 # simply because there is no reason against having it here, and in addition,
26792 # creating and moving files from /tmp can sometimes cause problems.
26793 # Hook for its removal unless debugging.
26794 # Note that there is a small window in which the directory will not be cleaned:
26795 # after its creation but before its name has been assigned to `$tmp'.
26796 $debug ||
26797 {
26798   tmp=
26799   trap 'exit_status=$?
26800   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26801 ' 0
26802   trap 'as_fn_exit 1' 1 2 13 15
26803 }
26804 # Create a (secure) tmp directory for tmp files.
26805
26806 {
26807   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26808   test -n "$tmp" && test -d "$tmp"
26809 }  ||
26810 {
26811   tmp=./conf$$-$RANDOM
26812   (umask 077 && mkdir "$tmp")
26813 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26814
26815 # Set up the scripts for CONFIG_FILES section.
26816 # No need to generate them if there are no CONFIG_FILES.
26817 # This happens for instance with `./config.status config.h'.
26818 if test -n "$CONFIG_FILES"; then
26819
26820 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26821   ac_cs_awk_getline=:
26822   ac_cs_awk_pipe_init=
26823   ac_cs_awk_read_file='
26824       while ((getline aline < (F[key])) > 0)
26825         print(aline)
26826       close(F[key])'
26827   ac_cs_awk_pipe_fini=
26828 else
26829   ac_cs_awk_getline=false
26830   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26831   ac_cs_awk_read_file='
26832       print "|#_!!_#|"
26833       print "cat " F[key] " &&"
26834       '$ac_cs_awk_pipe_init
26835   # The final `:' finishes the AND list.
26836   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26837 fi
26838 ac_cr=`echo X | tr X '\015'`
26839 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26840 # But we know of no other shell where ac_cr would be empty at this
26841 # point, so we can use a bashism as a fallback.
26842 if test "x$ac_cr" = x; then
26843   eval ac_cr=\$\'\\r\'
26844 fi
26845 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26846 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26847   ac_cs_awk_cr='\r'
26848 else
26849   ac_cs_awk_cr=$ac_cr
26850 fi
26851
26852 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26853 _ACEOF
26854
26855 # Create commands to substitute file output variables.
26856 {
26857   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26858   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26859   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26860   echo "_ACAWK" &&
26861   echo "_ACEOF"
26862 } >conf$$files.sh &&
26863 . ./conf$$files.sh ||
26864   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26865 rm -f conf$$files.sh
26866
26867 {
26868   echo "cat >conf$$subs.awk <<_ACEOF" &&
26869   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26870   echo "_ACEOF"
26871 } >conf$$subs.sh ||
26872   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26873 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26874 ac_delim='%!_!# '
26875 for ac_last_try in false false false false false :; do
26876   . ./conf$$subs.sh ||
26877     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26878
26879   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26880   if test $ac_delim_n = $ac_delim_num; then
26881     break
26882   elif $ac_last_try; then
26883     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26884   else
26885     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26886   fi
26887 done
26888 rm -f conf$$subs.sh
26889
26890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26891 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26892 _ACEOF
26893 sed -n '
26894 h
26895 s/^/S["/; s/!.*/"]=/
26896 p
26897 g
26898 s/^[^!]*!//
26899 :repl
26900 t repl
26901 s/'"$ac_delim"'$//
26902 t delim
26903 :nl
26904 h
26905 s/\(.\{148\}\).*/\1/
26906 t more1
26907 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26908 p
26909 n
26910 b repl
26911 :more1
26912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26913 p
26914 g
26915 s/.\{148\}//
26916 t nl
26917 :delim
26918 h
26919 s/\(.\{148\}\).*/\1/
26920 t more2
26921 s/["\\]/\\&/g; s/^/"/; s/$/"/
26922 p
26923 b
26924 :more2
26925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26926 p
26927 g
26928 s/.\{148\}//
26929 t delim
26930 ' <conf$$subs.awk | sed '
26931 /^[^""]/{
26932   N
26933   s/\n//
26934 }
26935 ' >>$CONFIG_STATUS || ac_write_fail=1
26936 rm -f conf$$subs.awk
26937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26938 _ACAWK
26939 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26940   for (key in S) S_is_set[key] = 1
26941   FS = "\a"
26942   \$ac_cs_awk_pipe_init
26943 }
26944 {
26945   line = $ 0
26946   nfields = split(line, field, "@")
26947   substed = 0
26948   len = length(field[1])
26949   for (i = 2; i < nfields; i++) {
26950     key = field[i]
26951     keylen = length(key)
26952     if (S_is_set[key]) {
26953       value = S[key]
26954       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26955       len += length(value) + length(field[++i])
26956       substed = 1
26957     } else
26958       len += 1 + keylen
26959   }
26960   if (nfields == 3 && !substed) {
26961     key = field[2]
26962     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
26963       \$ac_cs_awk_read_file
26964       next
26965     }
26966   }
26967   print line
26968 }
26969 \$ac_cs_awk_pipe_fini
26970 _ACAWK
26971 _ACEOF
26972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26973 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26974   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26975 else
26976   cat
26977 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26978   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26979 _ACEOF
26980
26981 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26982 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26983 # trailing colons and then remove the whole line if VPATH becomes empty
26984 # (actually we leave an empty line to preserve line numbers).
26985 if test "x$srcdir" = x.; then
26986   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26987 s/:*\$(srcdir):*/:/
26988 s/:*\${srcdir}:*/:/
26989 s/:*@srcdir@:*/:/
26990 s/^\([^=]*=[     ]*\):*/\1/
26991 s/:*$//
26992 s/^[^=]*=[       ]*$//
26993 }'
26994 fi
26995
26996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26997 fi # test -n "$CONFIG_FILES"
26998
26999 # Set up the scripts for CONFIG_HEADERS section.
27000 # No need to generate them if there are no CONFIG_HEADERS.
27001 # This happens for instance with `./config.status Makefile'.
27002 if test -n "$CONFIG_HEADERS"; then
27003 cat >"$tmp/defines.awk" <<\_ACAWK ||
27004 BEGIN {
27005 _ACEOF
27006
27007 # Transform confdefs.h into an awk script `defines.awk', embedded as
27008 # here-document in config.status, that substitutes the proper values into
27009 # config.h.in to produce config.h.
27010
27011 # Create a delimiter string that does not exist in confdefs.h, to ease
27012 # handling of long lines.
27013 ac_delim='%!_!# '
27014 for ac_last_try in false false :; do
27015   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27016   if test -z "$ac_t"; then
27017     break
27018   elif $ac_last_try; then
27019     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27020   else
27021     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27022   fi
27023 done
27024
27025 # For the awk script, D is an array of macro values keyed by name,
27026 # likewise P contains macro parameters if any.  Preserve backslash
27027 # newline sequences.
27028
27029 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27030 sed -n '
27031 s/.\{148\}/&'"$ac_delim"'/g
27032 t rset
27033 :rset
27034 s/^[     ]*#[    ]*define[       ][      ]*/ /
27035 t def
27036 d
27037 :def
27038 s/\\$//
27039 t bsnl
27040 s/["\\]/\\&/g
27041 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27042 D["\1"]=" \3"/p
27043 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27044 d
27045 :bsnl
27046 s/["\\]/\\&/g
27047 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27048 D["\1"]=" \3\\\\\\n"\\/p
27049 t cont
27050 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27051 t cont
27052 d
27053 :cont
27054 n
27055 s/.\{148\}/&'"$ac_delim"'/g
27056 t clear
27057 :clear
27058 s/\\$//
27059 t bsnlc
27060 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27061 d
27062 :bsnlc
27063 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27064 b cont
27065 ' <confdefs.h | sed '
27066 s/'"$ac_delim"'/"\\\
27067 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27068
27069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27070   for (key in D) D_is_set[key] = 1
27071   FS = "\a"
27072 }
27073 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27074   line = \$ 0
27075   split(line, arg, " ")
27076   if (arg[1] == "#") {
27077     defundef = arg[2]
27078     mac1 = arg[3]
27079   } else {
27080     defundef = substr(arg[1], 2)
27081     mac1 = arg[2]
27082   }
27083   split(mac1, mac2, "(") #)
27084   macro = mac2[1]
27085   prefix = substr(line, 1, index(line, defundef) - 1)
27086   if (D_is_set[macro]) {
27087     # Preserve the white space surrounding the "#".
27088     print prefix "define", macro P[macro] D[macro]
27089     next
27090   } else {
27091     # Replace #undef with comments.  This is necessary, for example,
27092     # in the case of _POSIX_SOURCE, which is predefined and required
27093     # on some systems where configure will not decide to define it.
27094     if (defundef == "undef") {
27095       print "/*", prefix defundef, macro, "*/"
27096       next
27097     }
27098   }
27099 }
27100 { print }
27101 _ACAWK
27102 _ACEOF
27103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27104   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27105 fi # test -n "$CONFIG_HEADERS"
27106
27107
27108 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27109 shift
27110 for ac_tag
27111 do
27112   case $ac_tag in
27113   :[FHLC]) ac_mode=$ac_tag; continue;;
27114   esac
27115   case $ac_mode$ac_tag in
27116   :[FHL]*:*);;
27117   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27118   :[FH]-) ac_tag=-:-;;
27119   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27120   esac
27121   ac_save_IFS=$IFS
27122   IFS=:
27123   set x $ac_tag
27124   IFS=$ac_save_IFS
27125   shift
27126   ac_file=$1
27127   shift
27128
27129   case $ac_mode in
27130   :L) ac_source=$1;;
27131   :[FH])
27132     ac_file_inputs=
27133     for ac_f
27134     do
27135       case $ac_f in
27136       -) ac_f="$tmp/stdin";;
27137       *) # Look for the file first in the build tree, then in the source tree
27138          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27139          # because $ac_f cannot contain `:'.
27140          test -f "$ac_f" ||
27141            case $ac_f in
27142            [\\/$]*) false;;
27143            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27144            esac ||
27145            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27146       esac
27147       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27148       as_fn_append ac_file_inputs " '$ac_f'"
27149     done
27150
27151     # Let's still pretend it is `configure' which instantiates (i.e., don't
27152     # use $as_me), people would be surprised to read:
27153     #    /* config.h.  Generated by config.status.  */
27154     configure_input='Generated from '`
27155           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27156         `' by configure.'
27157     if test x"$ac_file" != x-; then
27158       configure_input="$ac_file.  $configure_input"
27159       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27160 $as_echo "$as_me: creating $ac_file" >&6;}
27161     fi
27162     # Neutralize special characters interpreted by sed in replacement strings.
27163     case $configure_input in #(
27164     *\&* | *\|* | *\\* )
27165        ac_sed_conf_input=`$as_echo "$configure_input" |
27166        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27167     *) ac_sed_conf_input=$configure_input;;
27168     esac
27169
27170     case $ac_tag in
27171     *:-:* | *:-) cat >"$tmp/stdin" \
27172       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27173     esac
27174     ;;
27175   esac
27176
27177   ac_dir=`$as_dirname -- "$ac_file" ||
27178 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27179          X"$ac_file" : 'X\(//\)[^/]' \| \
27180          X"$ac_file" : 'X\(//\)$' \| \
27181          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27182 $as_echo X"$ac_file" |
27183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27184             s//\1/
27185             q
27186           }
27187           /^X\(\/\/\)[^/].*/{
27188             s//\1/
27189             q
27190           }
27191           /^X\(\/\/\)$/{
27192             s//\1/
27193             q
27194           }
27195           /^X\(\/\).*/{
27196             s//\1/
27197             q
27198           }
27199           s/.*/./; q'`
27200   as_dir="$ac_dir"; as_fn_mkdir_p
27201   ac_builddir=.
27202
27203 case "$ac_dir" in
27204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27205 *)
27206   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27207   # A ".." for each directory in $ac_dir_suffix.
27208   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27209   case $ac_top_builddir_sub in
27210   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27211   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27212   esac ;;
27213 esac
27214 ac_abs_top_builddir=$ac_pwd
27215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27216 # for backward compatibility:
27217 ac_top_builddir=$ac_top_build_prefix
27218
27219 case $srcdir in
27220   .)  # We are building in place.
27221     ac_srcdir=.
27222     ac_top_srcdir=$ac_top_builddir_sub
27223     ac_abs_top_srcdir=$ac_pwd ;;
27224   [\\/]* | ?:[\\/]* )  # Absolute name.
27225     ac_srcdir=$srcdir$ac_dir_suffix;
27226     ac_top_srcdir=$srcdir
27227     ac_abs_top_srcdir=$srcdir ;;
27228   *) # Relative name.
27229     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27230     ac_top_srcdir=$ac_top_build_prefix$srcdir
27231     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27232 esac
27233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27234
27235
27236   case $ac_mode in
27237   :F)
27238   #
27239   # CONFIG_FILE
27240   #
27241
27242 _ACEOF
27243
27244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27245 # If the template does not know about datarootdir, expand it.
27246 # FIXME: This hack should be removed a few years after 2.60.
27247 ac_datarootdir_hack=; ac_datarootdir_seen=
27248 ac_sed_dataroot='
27249 /datarootdir/ {
27250   p
27251   q
27252 }
27253 /@datadir@/p
27254 /@docdir@/p
27255 /@infodir@/p
27256 /@localedir@/p
27257 /@mandir@/p'
27258 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27259 *datarootdir*) ac_datarootdir_seen=yes;;
27260 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27261   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27262 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27263 _ACEOF
27264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27265   ac_datarootdir_hack='
27266   s&@datadir@&$datadir&g
27267   s&@docdir@&$docdir&g
27268   s&@infodir@&$infodir&g
27269   s&@localedir@&$localedir&g
27270   s&@mandir@&$mandir&g
27271   s&\\\${datarootdir}&$datarootdir&g' ;;
27272 esac
27273 _ACEOF
27274
27275 # Neutralize VPATH when `$srcdir' = `.'.
27276 # Shell code in configure.ac might set extrasub.
27277 # FIXME: do we really want to maintain this feature?
27278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27279 ac_sed_extra="$ac_vpsub
27280 $extrasub
27281 _ACEOF
27282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27283 :t
27284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27285 s|@configure_input@|$ac_sed_conf_input|;t t
27286 s&@top_builddir@&$ac_top_builddir_sub&;t t
27287 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27288 s&@srcdir@&$ac_srcdir&;t t
27289 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27290 s&@top_srcdir@&$ac_top_srcdir&;t t
27291 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27292 s&@builddir@&$ac_builddir&;t t
27293 s&@abs_builddir@&$ac_abs_builddir&;t t
27294 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27295 $ac_datarootdir_hack
27296 "
27297 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27298 if $ac_cs_awk_getline; then
27299   $AWK -f "$tmp/subs.awk"
27300 else
27301   $AWK -f "$tmp/subs.awk" | $SHELL
27302 fi >$tmp/out \
27303   || as_fn_error "could not create $ac_file" "$LINENO" 5
27304
27305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27306   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27307   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27308   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27309 which seems to be undefined.  Please make sure it is defined." >&5
27310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27311 which seems to be undefined.  Please make sure it is defined." >&2;}
27312
27313   rm -f "$tmp/stdin"
27314   case $ac_file in
27315   -) cat "$tmp/out" && rm -f "$tmp/out";;
27316   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27317   esac \
27318   || as_fn_error "could not create $ac_file" "$LINENO" 5
27319  ;;
27320   :H)
27321   #
27322   # CONFIG_HEADER
27323   #
27324   if test x"$ac_file" != x-; then
27325     {
27326       $as_echo "/* $configure_input  */" \
27327       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27328     } >"$tmp/config.h" \
27329       || as_fn_error "could not create $ac_file" "$LINENO" 5
27330     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27331       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27332 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27333     else
27334       rm -f "$ac_file"
27335       mv "$tmp/config.h" "$ac_file" \
27336         || as_fn_error "could not create $ac_file" "$LINENO" 5
27337     fi
27338   else
27339     $as_echo "/* $configure_input  */" \
27340       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27341       || as_fn_error "could not create -" "$LINENO" 5
27342   fi
27343  ;;
27344
27345   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27346 $as_echo "$as_me: executing $ac_file commands" >&6;}
27347  ;;
27348   esac
27349
27350
27351   case $ac_file$ac_mode in
27352     "as":F) chmod +x as ;;
27353     "collect-ld":F) chmod +x collect-ld ;;
27354     "nm":F) chmod +x nm ;;
27355     "default":C)
27356 case ${CONFIG_HEADERS} in
27357   *auto-host.h:config.in*)
27358   echo > cstamp-h ;;
27359 esac
27360 # Make sure all the subdirs exist.
27361 for d in $subdirs doc build c-family
27362 do
27363     test -d $d || mkdir $d
27364 done
27365  ;;
27366
27367   esac
27368 done # for ac_tag
27369
27370
27371 as_fn_exit 0
27372 _ACEOF
27373 ac_clean_files=$ac_clean_files_save
27374
27375 test $ac_write_fail = 0 ||
27376   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27377
27378
27379 # configure is writing to config.log, and then calls config.status.
27380 # config.status does its own redirection, appending to config.log.
27381 # Unfortunately, on DOS this fails, as config.log is still kept open
27382 # by configure, so config.status won't be able to write to it; its
27383 # output is simply discarded.  So we exec the FD to /dev/null,
27384 # effectively closing config.log, so it can be properly (re)opened and
27385 # appended to by config.status.  When coming back to configure, we
27386 # need to make the FD available again.
27387 if test "$no_create" != yes; then
27388   ac_cs_success=:
27389   ac_config_status_args=
27390   test "$silent" = yes &&
27391     ac_config_status_args="$ac_config_status_args --quiet"
27392   exec 5>/dev/null
27393   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27394   exec 5>>config.log
27395   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27396   # would make configure fail if this is the last instruction.
27397   $ac_cs_success || as_fn_exit $?
27398 fi
27399 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27400   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27401 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27402 fi
27403
27404