OSDN Git Service

ChangeLog:
[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 LIBELFINC
606 LIBELFLIBS
607 CLOOGINC
608 CLOOGLIBS
609 PPLINC
610 PPLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
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_makefiles
666 all_lang_makefrags
667 all_gtfiles
668 all_compilers
669 srcdir
670 subdirs
671 slibdir
672 dollar
673 gcc_tooldir
674 LTO_USE_LIBELF
675 LTO_BINARY_READER
676 enable_lto
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 GGC
682 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 CXXCPP
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
715 ALL
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 AR
741 NM
742 BISON
743 FLEX
744 GENERATED_MANPAGES
745 BUILD_INFO
746 MAKEINFO
747 have_mktemp_command
748 make_compare_target
749 INSTALL_DATA
750 INSTALL_PROGRAM
751 INSTALL
752 ranlib_flags
753 RANLIB
754 LN
755 LN_S
756 AWK
757 SET_MAKE
758 REPORT_BUGS_TEXI
759 REPORT_BUGS_TO
760 PKGVERSION
761 onestep
762 CONFIGURE_SPECS
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
765 TARGET_SYSTEM_ROOT
766 enable_shared
767 enable_fixed_point
768 enable_decimal_float
769 enable_multilib
770 ENABLE_BUILD_WITH_CXX
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREEBROWSER
776 nocommon_flag
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
785 CPP
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
792 CXX
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_werror_always
870 enable_checking
871 enable_coverage
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
874 with_stabs
875 enable_multilib
876 enable___cxa_atexit
877 enable_decimal_float
878 enable_fixed_point
879 enable_threads
880 enable_tls
881 enable_objc_gc
882 with_dwarf2
883 enable_shared
884 with_build_sysroot
885 with_sysroot
886 with_specs
887 enable_intermodule
888 with_pkgversion
889 with_bugurl
890 enable_languages
891 with_multilib_list
892 enable_rpath
893 with_libiconv_prefix
894 enable_initfini_array
895 enable_sjlj_exceptions
896 with_system_libunwind
897 enable_secureplt
898 enable_cld
899 enable_win32_registry
900 enable_static
901 with_pic
902 enable_fast_install
903 enable_libtool_lock
904 with_plugin_ld
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 LIBELFLIBS
936 LIBELFINC'
937
938
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 ac_unrecognized_opts=
943 ac_unrecognized_sep=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
946 cache_file=/dev/null
947 exec_prefix=NONE
948 no_create=
949 no_recursion=
950 prefix=NONE
951 program_prefix=NONE
952 program_suffix=NONE
953 program_transform_name=s,x,x,
954 silent=
955 site=
956 srcdir=
957 verbose=
958 x_includes=NONE
959 x_libraries=NONE
960
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE}'
978 infodir='${datarootdir}/info'
979 htmldir='${docdir}'
980 dvidir='${docdir}'
981 pdfdir='${docdir}'
982 psdir='${docdir}'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
986
987 ac_prev=
988 ac_dashdash=
989 for ac_option
990 do
991   # If the previous option needs an argument, assign it.
992   if test -n "$ac_prev"; then
993     eval $ac_prev=\$ac_option
994     ac_prev=
995     continue
996   fi
997
998   case $ac_option in
999   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000   *)    ac_optarg=yes ;;
1001   esac
1002
1003   # Accept the important Cygnus configure options, so we can diagnose typos.
1004
1005   case $ac_dashdash$ac_option in
1006   --)
1007     ac_dashdash=yes ;;
1008
1009   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010     ac_prev=bindir ;;
1011   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012     bindir=$ac_optarg ;;
1013
1014   -build | --build | --buil | --bui | --bu)
1015     ac_prev=build_alias ;;
1016   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017     build_alias=$ac_optarg ;;
1018
1019   -cache-file | --cache-file | --cache-fil | --cache-fi \
1020   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021     ac_prev=cache_file ;;
1022   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024     cache_file=$ac_optarg ;;
1025
1026   --config-cache | -C)
1027     cache_file=config.cache ;;
1028
1029   -datadir | --datadir | --datadi | --datad)
1030     ac_prev=datadir ;;
1031   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032     datadir=$ac_optarg ;;
1033
1034   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035   | --dataroo | --dataro | --datar)
1036     ac_prev=datarootdir ;;
1037   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039     datarootdir=$ac_optarg ;;
1040
1041   -disable-* | --disable-*)
1042     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045       as_fn_error "invalid feature name: $ac_useropt"
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval enable_$ac_useropt=no ;;
1056
1057   -docdir | --docdir | --docdi | --doc | --do)
1058     ac_prev=docdir ;;
1059   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060     docdir=$ac_optarg ;;
1061
1062   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063     ac_prev=dvidir ;;
1064   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065     dvidir=$ac_optarg ;;
1066
1067   -enable-* | --enable-*)
1068     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071       as_fn_error "invalid feature name: $ac_useropt"
1072     ac_useropt_orig=$ac_useropt
1073     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074     case $ac_user_opts in
1075       *"
1076 "enable_$ac_useropt"
1077 "*) ;;
1078       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079          ac_unrecognized_sep=', ';;
1080     esac
1081     eval enable_$ac_useropt=\$ac_optarg ;;
1082
1083   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085   | --exec | --exe | --ex)
1086     ac_prev=exec_prefix ;;
1087   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089   | --exec=* | --exe=* | --ex=*)
1090     exec_prefix=$ac_optarg ;;
1091
1092   -gas | --gas | --ga | --g)
1093     # Obsolete; use --with-gas.
1094     with_gas=yes ;;
1095
1096   -help | --help | --hel | --he | -h)
1097     ac_init_help=long ;;
1098   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099     ac_init_help=recursive ;;
1100   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101     ac_init_help=short ;;
1102
1103   -host | --host | --hos | --ho)
1104     ac_prev=host_alias ;;
1105   -host=* | --host=* | --hos=* | --ho=*)
1106     host_alias=$ac_optarg ;;
1107
1108   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109     ac_prev=htmldir ;;
1110   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111   | --ht=*)
1112     htmldir=$ac_optarg ;;
1113
1114   -includedir | --includedir | --includedi | --included | --include \
1115   | --includ | --inclu | --incl | --inc)
1116     ac_prev=includedir ;;
1117   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118   | --includ=* | --inclu=* | --incl=* | --inc=*)
1119     includedir=$ac_optarg ;;
1120
1121   -infodir | --infodir | --infodi | --infod | --info | --inf)
1122     ac_prev=infodir ;;
1123   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124     infodir=$ac_optarg ;;
1125
1126   -libdir | --libdir | --libdi | --libd)
1127     ac_prev=libdir ;;
1128   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129     libdir=$ac_optarg ;;
1130
1131   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132   | --libexe | --libex | --libe)
1133     ac_prev=libexecdir ;;
1134   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135   | --libexe=* | --libex=* | --libe=*)
1136     libexecdir=$ac_optarg ;;
1137
1138   -localedir | --localedir | --localedi | --localed | --locale)
1139     ac_prev=localedir ;;
1140   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141     localedir=$ac_optarg ;;
1142
1143   -localstatedir | --localstatedir | --localstatedi | --localstated \
1144   | --localstate | --localstat | --localsta | --localst | --locals)
1145     ac_prev=localstatedir ;;
1146   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148     localstatedir=$ac_optarg ;;
1149
1150   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151     ac_prev=mandir ;;
1152   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153     mandir=$ac_optarg ;;
1154
1155   -nfp | --nfp | --nf)
1156     # Obsolete; use --without-fp.
1157     with_fp=no ;;
1158
1159   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160   | --no-cr | --no-c | -n)
1161     no_create=yes ;;
1162
1163   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165     no_recursion=yes ;;
1166
1167   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169   | --oldin | --oldi | --old | --ol | --o)
1170     ac_prev=oldincludedir ;;
1171   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174     oldincludedir=$ac_optarg ;;
1175
1176   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177     ac_prev=prefix ;;
1178   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179     prefix=$ac_optarg ;;
1180
1181   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182   | --program-pre | --program-pr | --program-p)
1183     ac_prev=program_prefix ;;
1184   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186     program_prefix=$ac_optarg ;;
1187
1188   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189   | --program-suf | --program-su | --program-s)
1190     ac_prev=program_suffix ;;
1191   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193     program_suffix=$ac_optarg ;;
1194
1195   -program-transform-name | --program-transform-name \
1196   | --program-transform-nam | --program-transform-na \
1197   | --program-transform-n | --program-transform- \
1198   | --program-transform | --program-transfor \
1199   | --program-transfo | --program-transf \
1200   | --program-trans | --program-tran \
1201   | --progr-tra | --program-tr | --program-t)
1202     ac_prev=program_transform_name ;;
1203   -program-transform-name=* | --program-transform-name=* \
1204   | --program-transform-nam=* | --program-transform-na=* \
1205   | --program-transform-n=* | --program-transform-=* \
1206   | --program-transform=* | --program-transfor=* \
1207   | --program-transfo=* | --program-transf=* \
1208   | --program-trans=* | --program-tran=* \
1209   | --progr-tra=* | --program-tr=* | --program-t=*)
1210     program_transform_name=$ac_optarg ;;
1211
1212   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213     ac_prev=pdfdir ;;
1214   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215     pdfdir=$ac_optarg ;;
1216
1217   -psdir | --psdir | --psdi | --psd | --ps)
1218     ac_prev=psdir ;;
1219   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220     psdir=$ac_optarg ;;
1221
1222   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223   | -silent | --silent | --silen | --sile | --sil)
1224     silent=yes ;;
1225
1226   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227     ac_prev=sbindir ;;
1228   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229   | --sbi=* | --sb=*)
1230     sbindir=$ac_optarg ;;
1231
1232   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234   | --sharedst | --shareds | --shared | --share | --shar \
1235   | --sha | --sh)
1236     ac_prev=sharedstatedir ;;
1237   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240   | --sha=* | --sh=*)
1241     sharedstatedir=$ac_optarg ;;
1242
1243   -site | --site | --sit)
1244     ac_prev=site ;;
1245   -site=* | --site=* | --sit=*)
1246     site=$ac_optarg ;;
1247
1248   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249     ac_prev=srcdir ;;
1250   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251     srcdir=$ac_optarg ;;
1252
1253   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254   | --syscon | --sysco | --sysc | --sys | --sy)
1255     ac_prev=sysconfdir ;;
1256   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258     sysconfdir=$ac_optarg ;;
1259
1260   -target | --target | --targe | --targ | --tar | --ta | --t)
1261     ac_prev=target_alias ;;
1262   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263     target_alias=$ac_optarg ;;
1264
1265   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266     verbose=yes ;;
1267
1268   -version | --version | --versio | --versi | --vers | -V)
1269     ac_init_version=: ;;
1270
1271   -with-* | --with-*)
1272     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273     # Reject names that are not valid shell variable names.
1274     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275       as_fn_error "invalid package name: $ac_useropt"
1276     ac_useropt_orig=$ac_useropt
1277     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278     case $ac_user_opts in
1279       *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283          ac_unrecognized_sep=', ';;
1284     esac
1285     eval with_$ac_useropt=\$ac_optarg ;;
1286
1287   -without-* | --without-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       as_fn_error "invalid package name: $ac_useropt"
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval with_$ac_useropt=no ;;
1302
1303   --x)
1304     # Obsolete; use --with-x.
1305     with_x=yes ;;
1306
1307   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308   | --x-incl | --x-inc | --x-in | --x-i)
1309     ac_prev=x_includes ;;
1310   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312     x_includes=$ac_optarg ;;
1313
1314   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316     ac_prev=x_libraries ;;
1317   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319     x_libraries=$ac_optarg ;;
1320
1321   -*) as_fn_error "unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information."
1323     ;;
1324
1325   *=*)
1326     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327     # Reject names that are not valid shell variable names.
1328     case $ac_envvar in #(
1329       '' | [0-9]* | *[!_$as_cr_alnum]* )
1330       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1331     esac
1332     eval $ac_envvar=\$ac_optarg
1333     export $ac_envvar ;;
1334
1335   *)
1336     # FIXME: should be removed in autoconf 3.0.
1337     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341     ;;
1342
1343   esac
1344 done
1345
1346 if test -n "$ac_prev"; then
1347   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348   as_fn_error "missing argument to $ac_option"
1349 fi
1350
1351 if test -n "$ac_unrecognized_opts"; then
1352   case $enable_option_checking in
1353     no) ;;
1354     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1355     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356   esac
1357 fi
1358
1359 # Check all directory arguments for consistency.
1360 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361                 datadir sysconfdir sharedstatedir localstatedir includedir \
1362                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363                 libdir localedir mandir
1364 do
1365   eval ac_val=\$$ac_var
1366   # Remove trailing slashes.
1367   case $ac_val in
1368     */ )
1369       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370       eval $ac_var=\$ac_val;;
1371   esac
1372   # Be sure to have absolute directory names.
1373   case $ac_val in
1374     [\\/$]* | ?:[\\/]* )  continue;;
1375     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376   esac
1377   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1378 done
1379
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1386
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389   if test "x$build_alias" = x; then
1390     cross_compiling=maybe
1391     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392     If a cross compiler is detected then cross compile mode will be used." >&2
1393   elif test "x$build_alias" != "x$host_alias"; then
1394     cross_compiling=yes
1395   fi
1396 fi
1397
1398 ac_tool_prefix=
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400
1401 test "$silent" = yes && exec 6>/dev/null
1402
1403
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407   as_fn_error "working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409   as_fn_error "pwd does not report name of working directory"
1410
1411
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414   ac_srcdir_defaulted=yes
1415   # Try the directory containing this script, then the parent directory.
1416   ac_confdir=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418          X"$as_myself" : 'X\(//\)[^/]' \| \
1419          X"$as_myself" : 'X\(//\)$' \| \
1420          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\/\)[^/].*/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\/\)$/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\).*/{
1435             s//\1/
1436             q
1437           }
1438           s/.*/./; q'`
1439   srcdir=$ac_confdir
1440   if test ! -r "$srcdir/$ac_unique_file"; then
1441     srcdir=..
1442   fi
1443 else
1444   ac_srcdir_defaulted=no
1445 fi
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1449 fi
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1453         pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456   srcdir=.
1457 fi
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for ac_var in $ac_precious_vars; do
1465   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_env_${ac_var}_value=\$${ac_var}
1467   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 done
1470
1471 #
1472 # Report the --help message.
1473 #
1474 if test "$ac_init_help" = "long"; then
1475   # Omit some internal or obsolete options to make the list less imposing.
1476   # This message is too long to be a string in the A/UX 3.1 sh.
1477   cat <<_ACEOF
1478 \`configure' configures this package to adapt to many kinds of systems.
1479
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1481
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE.  See below for descriptions of some of the useful variables.
1484
1485 Defaults for the options are specified in brackets.
1486
1487 Configuration:
1488   -h, --help              display this help and exit
1489       --help=short        display options specific to this package
1490       --help=recursive    display the short help of all the included packages
1491   -V, --version           display version information and exit
1492   -q, --quiet, --silent   do not print \`checking...' messages
1493       --cache-file=FILE   cache test results in FILE [disabled]
1494   -C, --config-cache      alias for \`--cache-file=config.cache'
1495   -n, --no-create         do not create output files
1496       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1497
1498 Installation directories:
1499   --prefix=PREFIX         install architecture-independent files in PREFIX
1500                           [$ac_default_prefix]
1501   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1502                           [PREFIX]
1503
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1508
1509 For better control, use the options below.
1510
1511 Fine tuning of the installation directories:
1512   --bindir=DIR            user executables [EPREFIX/bin]
1513   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1514   --libexecdir=DIR        program executables [EPREFIX/libexec]
1515   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1516   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1517   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1518   --libdir=DIR            object code libraries [EPREFIX/lib]
1519   --includedir=DIR        C header files [PREFIX/include]
1520   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1521   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1522   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1523   --infodir=DIR           info documentation [DATAROOTDIR/info]
1524   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1525   --mandir=DIR            man documentation [DATAROOTDIR/man]
1526   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1527   --htmldir=DIR           html documentation [DOCDIR]
1528   --dvidir=DIR            dvi documentation [DOCDIR]
1529   --pdfdir=DIR            pdf documentation [DOCDIR]
1530   --psdir=DIR             ps documentation [DOCDIR]
1531 _ACEOF
1532
1533   cat <<\_ACEOF
1534
1535 Program names:
1536   --program-prefix=PREFIX            prepend PREFIX to installed program names
1537   --program-suffix=SUFFIX            append SUFFIX to installed program names
1538   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1539
1540 System types:
1541   --build=BUILD     configure for building on BUILD [guessed]
1542   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1543   --target=TARGET   configure for building compilers for TARGET [HOST]
1544 _ACEOF
1545 fi
1546
1547 if test -n "$ac_init_help"; then
1548
1549   cat <<\_ACEOF
1550
1551 Optional Features:
1552   --disable-option-checking  ignore unrecognized --enable/--with options
1553   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555   --enable-generated-files-in-srcdir
1556                           put copies of generated files in source dir
1557                           intended for creating source tarballs for users
1558                           without texinfo bison or flex.
1559   --enable-werror-always  enable -Werror despite compiler version
1560   --enable-checking=LIST
1561                           enable expensive run-time checks.  With LIST,
1562                           enable only specific categories of checks.
1563                           Categories are: yes,no,all,none,release.
1564                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1565                           rtlflag,rtl,runtime,tree,valgrind,types.
1566   --enable-coverage=LEVEL
1567                           enable compiler's code coverage collection.
1568                           Use to measure compiler performance and locate
1569                           unused parts of the compiler. With LEVEL, specify
1570                           optimization. Values are opt, noopt,
1571                           default is noopt
1572   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1573   --enable-build-with-cxx build with C++ compiler instead of C compiler
1574   --enable-multilib       enable library support for multiple ABIs
1575   --enable-__cxa_atexit   enable __cxa_atexit for C++
1576   --enable-decimal-float={no,yes,bid,dpd}
1577                         enable decimal float extension to C.  Selecting 'bid'
1578                         or 'dpd' choses which decimal floating point format
1579                         to use
1580   --enable-fixed-point    enable fixed-point arithmetic extension to C
1581   --enable-threads        enable thread usage for target GCC
1582   --enable-threads=LIB    use LIB thread package for target GCC
1583   --enable-tls            enable or disable generation of tls code
1584                           overriding the assembler check for tls support
1585   --enable-objc-gc        enable the use of Boehm's garbage collector with
1586                           the GNU Objective-C runtime
1587   --disable-shared        don't provide a shared libgcc
1588   --enable-intermodule    build the compiler in one step
1589   --enable-languages=LIST specify which front-ends to build
1590   --disable-rpath         do not hardcode runtime library paths
1591   --enable-initfini-array       use .init_array/.fini_array sections
1592   --enable-sjlj-exceptions
1593                           arrange to use setjmp/longjmp exception handling
1594   --enable-secureplt      enable -msecure-plt by default for PowerPC
1595   --enable-cld            enable -mcld by default for 32bit x86
1596   --disable-win32-registry
1597                           disable lookup of installation paths in the
1598                           Registry on Windows hosts
1599   --enable-win32-registry enable registry lookup (default)
1600   --enable-win32-registry=KEY
1601                           use KEY instead of GCC version as the last portion
1602                           of the registry key
1603   --enable-shared[=PKGS]  build shared libraries [default=yes]
1604   --enable-static[=PKGS]  build static libraries [default=yes]
1605   --enable-fast-install[=PKGS]
1606                           optimize for fast installation [default=yes]
1607   --disable-libtool-lock  avoid locking (might break parallel builds)
1608   --enable-comdat         enable COMDAT group support
1609   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1610                                 glibc systems
1611   --enable-linker-build-id
1612                           compiler will always pass --build-id to linker
1613   --enable-maintainer-mode
1614                           enable make rules and dependencies not useful
1615                           (and sometimes confusing) to the casual installer
1616   --enable-version-specific-runtime-libs
1617                           specify that runtime libraries should be
1618                           installed in a compiler-specific directory
1619   --enable-plugin         enable plugin support
1620
1621 Optional Packages:
1622   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1623   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1624   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1625   --with-local-prefix=DIR specifies directory to put local include
1626   --with-gxx-include-dir=DIR
1627                           specifies directory to put g++ header files
1628   --with-cpp-install-dir=DIR
1629                           install the user visible C preprocessor in DIR
1630                           (relative to PREFIX) as well as PREFIX/bin
1631   --with-gnu-ld           arrange to work with GNU ld.
1632   --with-ld               arrange to use the specified ld (full pathname)
1633   --with-demangler-in-ld  try to use demangler in GNU ld.
1634   --with-gnu-as           arrange to work with GNU as
1635   --with-as               arrange to use the specified as (full pathname)
1636   --with-stabs            arrange to use stabs instead of host debug format
1637   --with-dwarf2           force the default debug format to be DWARF 2
1638   --with-build-sysroot=sysroot
1639                           use sysroot as the system root during the build
1640   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1641   --with-specs=SPECS      add SPECS to driver command-line processing
1642   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1643   --with-bugurl=URL       Direct users to URL to report a bug
1644   --with-multilib-list    Select multilibs (SH only)
1645   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1646   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1647   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1648   --with-system-libunwind use installed libunwind
1649   --with-pic              try to use only PIC/non-PIC objects [default=use
1650                           both]
1651   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1652   --with-plugin-ld=[ARG]  specify the plugin linker
1653   --with-long-double-128  Use 128-bit long double by default.
1654   --with-gc={page,zone}   choose the garbage collection mechanism to use
1655                           with the compiler
1656   --with-system-zlib      use installed libz
1657   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1658
1659 Some influential environment variables:
1660   CC          C compiler command
1661   CFLAGS      C compiler flags
1662   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1663               nonstandard directory <lib dir>
1664   LIBS        libraries to pass to the linker, e.g. -l<library>
1665   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1666               you have headers in a nonstandard directory <include dir>
1667   CXX         C++ compiler command
1668   CXXFLAGS    C++ compiler flags
1669   CPP         C preprocessor
1670   CXXCPP      C++ preprocessor
1671   GMPLIBS     How to link GMP
1672   GMPINC      How to find GMP include files
1673   PPLLIBS     How to link PPL
1674   PPLINC      How to find PPL include files
1675   CLOOGLIBS   How to link CLOOG
1676   CLOOGINC    How to find CLOOG include files
1677   LIBELFLIBS  How to link libelf
1678   LIBELFINC   How to find libelf include files
1679
1680 Use these variables to override the choices made by `configure' or to help
1681 it to find libraries and programs with nonstandard names/locations.
1682
1683 Report bugs to the package provider.
1684 _ACEOF
1685 ac_status=$?
1686 fi
1687
1688 if test "$ac_init_help" = "recursive"; then
1689   # If there are subdirs, report their specific --help.
1690   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691     test -d "$ac_dir" ||
1692       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1693       continue
1694     ac_builddir=.
1695
1696 case "$ac_dir" in
1697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 *)
1699   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700   # A ".." for each directory in $ac_dir_suffix.
1701   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702   case $ac_top_builddir_sub in
1703   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705   esac ;;
1706 esac
1707 ac_abs_top_builddir=$ac_pwd
1708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709 # for backward compatibility:
1710 ac_top_builddir=$ac_top_build_prefix
1711
1712 case $srcdir in
1713   .)  # We are building in place.
1714     ac_srcdir=.
1715     ac_top_srcdir=$ac_top_builddir_sub
1716     ac_abs_top_srcdir=$ac_pwd ;;
1717   [\\/]* | ?:[\\/]* )  # Absolute name.
1718     ac_srcdir=$srcdir$ac_dir_suffix;
1719     ac_top_srcdir=$srcdir
1720     ac_abs_top_srcdir=$srcdir ;;
1721   *) # Relative name.
1722     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723     ac_top_srcdir=$ac_top_build_prefix$srcdir
1724     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1725 esac
1726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727
1728     cd "$ac_dir" || { ac_status=$?; continue; }
1729     # Check for guested configure.
1730     if test -f "$ac_srcdir/configure.gnu"; then
1731       echo &&
1732       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733     elif test -f "$ac_srcdir/configure"; then
1734       echo &&
1735       $SHELL "$ac_srcdir/configure" --help=recursive
1736     else
1737       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738     fi || ac_status=$?
1739     cd "$ac_pwd" || { ac_status=$?; break; }
1740   done
1741 fi
1742
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1745   cat <<\_ACEOF
1746 configure
1747 generated by GNU Autoconf 2.64
1748
1749 Copyright (C) 2009 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1752 _ACEOF
1753   exit
1754 fi
1755
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1759
1760 # ac_fn_c_try_compile LINENO
1761 # --------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_compile ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   rm -f conftest.$ac_objext
1767   if { { ac_try="$ac_compile"
1768 case "(($ac_try" in
1769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770   *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774   (eval "$ac_compile") 2>conftest.err
1775   ac_status=$?
1776   if test -s conftest.err; then
1777     grep -v '^ *+' conftest.err >conftest.er1
1778     cat conftest.er1 >&5
1779     mv -f conftest.er1 conftest.err
1780   fi
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && {
1783          test -z "$ac_c_werror_flag" ||
1784          test ! -s conftest.err
1785        } && test -s conftest.$ac_objext; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791         ac_retval=1
1792 fi
1793   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794   return $ac_retval
1795
1796 } # ac_fn_c_try_compile
1797
1798 # ac_fn_cxx_try_compile LINENO
1799 # ----------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_cxx_try_compile ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   rm -f conftest.$ac_objext
1805   if { { ac_try="$ac_compile"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_compile") 2>conftest.err
1813   ac_status=$?
1814   if test -s conftest.err; then
1815     grep -v '^ *+' conftest.err >conftest.er1
1816     cat conftest.er1 >&5
1817     mv -f conftest.er1 conftest.err
1818   fi
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && {
1821          test -z "$ac_cxx_werror_flag" ||
1822          test ! -s conftest.err
1823        } && test -s conftest.$ac_objext; then :
1824   ac_retval=0
1825 else
1826   $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829         ac_retval=1
1830 fi
1831   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832   return $ac_retval
1833
1834 } # ac_fn_cxx_try_compile
1835
1836 # ac_fn_c_try_cpp LINENO
1837 # ----------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_cpp ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   if { { ac_try="$ac_cpp conftest.$ac_ext"
1843 case "(($ac_try" in
1844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845   *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850   ac_status=$?
1851   if test -s conftest.err; then
1852     grep -v '^ *+' conftest.err >conftest.er1
1853     cat conftest.er1 >&5
1854     mv -f conftest.er1 conftest.err
1855   fi
1856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857   test $ac_status = 0; } >/dev/null && {
1858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859          test ! -s conftest.err
1860        }; then :
1861   ac_retval=0
1862 else
1863   $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866     ac_retval=1
1867 fi
1868   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869   return $ac_retval
1870
1871 } # ac_fn_c_try_cpp
1872
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1877 # accordingly.
1878 ac_fn_c_check_header_mongrel ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885   $as_echo_n "(cached) " >&6
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 else
1891   # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h.  */
1896 $4
1897 #include <$2>
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900   ac_header_compiler=yes
1901 else
1902   ac_header_compiler=no
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1907
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h.  */
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_cpp "$LINENO"; then :
1916   ac_header_preproc=yes
1917 else
1918   ac_header_preproc=no
1919 fi
1920 rm -f conftest.err conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1923
1924 # So?  What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1926   yes:no: )
1927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931     ;;
1932   no:yes:* )
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943     ;;
1944 esac
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948   $as_echo_n "(cached) " >&6
1949 else
1950   eval "$3=\$ac_header_compiler"
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 fi
1956   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958 } # ac_fn_c_check_header_mongrel
1959
1960 # ac_fn_c_try_run LINENO
1961 # ----------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1963 # that executables *can* be run.
1964 ac_fn_c_try_run ()
1965 {
1966   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967   if { { ac_try="$ac_link"
1968 case "(($ac_try" in
1969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970   *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974   (eval "$ac_link") 2>&5
1975   ac_status=$?
1976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1978   { { case "(($ac_try" in
1979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980   *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984   (eval "$ac_try") 2>&5
1985   ac_status=$?
1986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987   test $ac_status = 0; }; }; then :
1988   ac_retval=0
1989 else
1990   $as_echo "$as_me: program exited with status $ac_status" >&5
1991        $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994        ac_retval=$ac_status
1995 fi
1996   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998   return $ac_retval
1999
2000 } # ac_fn_c_try_run
2001
2002 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists and can be compiled using the include files in
2005 # INCLUDES, setting the cache variable VAR accordingly.
2006 ac_fn_c_check_header_compile ()
2007 {
2008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012   $as_echo_n "(cached) " >&6
2013 else
2014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 #include <$2>
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020   eval "$3=yes"
2021 else
2022   eval "$3=no"
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 fi
2026 eval ac_res=\$$3
2027                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030
2031 } # ac_fn_c_check_header_compile
2032
2033 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2034 # --------------------------------------------
2035 # Tries to find the compile-time value of EXPR in a program that includes
2036 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2037 # computed
2038 ac_fn_c_compute_int ()
2039 {
2040   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041   if test "$cross_compiling" = yes; then
2042     # Depending upon the size, compute the lo and hi bounds.
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h.  */
2045 $4
2046 int
2047 main ()
2048 {
2049 static int test_array [1 - 2 * !(($2) >= 0)];
2050 test_array [0] = 0
2051
2052   ;
2053   return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057   ac_lo=0 ac_mid=0
2058   while :; do
2059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 $4
2062 int
2063 main ()
2064 {
2065 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2066 test_array [0] = 0
2067
2068   ;
2069   return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073   ac_hi=$ac_mid; break
2074 else
2075   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2076                         if test $ac_lo -le $ac_mid; then
2077                           ac_lo= ac_hi=
2078                           break
2079                         fi
2080                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2081 fi
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083   done
2084 else
2085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $4
2088 int
2089 main ()
2090 {
2091 static int test_array [1 - 2 * !(($2) < 0)];
2092 test_array [0] = 0
2093
2094   ;
2095   return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099   ac_hi=-1 ac_mid=-1
2100   while :; do
2101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 $4
2104 int
2105 main ()
2106 {
2107 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2108 test_array [0] = 0
2109
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115   ac_lo=$ac_mid; break
2116 else
2117   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2118                         if test $ac_mid -le $ac_hi; then
2119                           ac_lo= ac_hi=
2120                           break
2121                         fi
2122                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125   done
2126 else
2127   ac_lo= ac_hi=
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 # Binary search between lo and hi bounds.
2133 while test "x$ac_lo" != "x$ac_hi"; do
2134   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h.  */
2137 $4
2138 int
2139 main ()
2140 {
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 test_array [0] = 0
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149   ac_hi=$ac_mid
2150 else
2151   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 done
2155 case $ac_lo in #((
2156 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157 '') ac_retval=1 ;;
2158 esac
2159   else
2160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h.  */
2162 $4
2163 static long int longval () { return $2; }
2164 static unsigned long int ulongval () { return $2; }
2165 #include <stdio.h>
2166 #include <stdlib.h>
2167 int
2168 main ()
2169 {
2170
2171   FILE *f = fopen ("conftest.val", "w");
2172   if (! f)
2173     return 1;
2174   if (($2) < 0)
2175     {
2176       long int i = longval ();
2177       if (i != ($2))
2178         return 1;
2179       fprintf (f, "%ld", i);
2180     }
2181   else
2182     {
2183       unsigned long int i = ulongval ();
2184       if (i != ($2))
2185         return 1;
2186       fprintf (f, "%lu", i);
2187     }
2188   /* Do not output a trailing newline, as this causes \r\n confusion
2189      on some platforms.  */
2190   return ferror (f) || fclose (f) != 0;
2191
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 if ac_fn_c_try_run "$LINENO"; then :
2197   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198 else
2199   ac_retval=1
2200 fi
2201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202   conftest.$ac_objext conftest.beam conftest.$ac_ext
2203 rm -f conftest.val
2204
2205   fi
2206   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207   return $ac_retval
2208
2209 } # ac_fn_c_compute_int
2210
2211 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2212 # -------------------------------------------
2213 # Tests whether TYPE exists after having included INCLUDES, setting cache
2214 # variable VAR accordingly.
2215 ac_fn_c_check_type ()
2216 {
2217   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219 $as_echo_n "checking for $2... " >&6; }
2220 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2221   $as_echo_n "(cached) " >&6
2222 else
2223   eval "$3=no"
2224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h.  */
2226 $4
2227 int
2228 main ()
2229 {
2230 if (sizeof ($2))
2231          return 0;
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 $4
2240 int
2241 main ()
2242 {
2243 if (sizeof (($2)))
2244             return 0;
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250
2251 else
2252   eval "$3=yes"
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 eval ac_res=\$$3
2259                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262
2263 } # ac_fn_c_check_type
2264
2265 # ac_fn_c_find_intX_t LINENO BITS VAR
2266 # -----------------------------------
2267 # Finds a signed integer type with width BITS, setting cache variable VAR
2268 # accordingly.
2269 ac_fn_c_find_intX_t ()
2270 {
2271   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2273 $as_echo_n "checking for int$2_t... " >&6; }
2274 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2275   $as_echo_n "(cached) " >&6
2276 else
2277   eval "$3=no"
2278      for ac_type in int$2_t 'int' 'long int' \
2279          'long long int' 'short int' 'signed char'; do
2280        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 $ac_includes_default
2283 int
2284 main ()
2285 {
2286 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2287 test_array [0] = 0
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h.  */
2296 $ac_includes_default
2297 int
2298 main ()
2299 {
2300 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2301                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2302 test_array [0] = 0
2303
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309
2310 else
2311   case $ac_type in #(
2312   int$2_t) :
2313     eval "$3=yes" ;; #(
2314   *) :
2315     eval "$3=\$ac_type" ;;
2316 esac
2317 fi
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321        eval as_val=\$$3
2322    if test "x$as_val" = x""no; then :
2323
2324 else
2325   break
2326 fi
2327      done
2328 fi
2329 eval ac_res=\$$3
2330                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2333
2334 } # ac_fn_c_find_intX_t
2335
2336 # ac_fn_c_try_link LINENO
2337 # -----------------------
2338 # Try to link conftest.$ac_ext, and return whether this succeeded.
2339 ac_fn_c_try_link ()
2340 {
2341   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342   rm -f conftest.$ac_objext conftest$ac_exeext
2343   if { { ac_try="$ac_link"
2344 case "(($ac_try" in
2345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346   *) ac_try_echo=$ac_try;;
2347 esac
2348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2349 $as_echo "$ac_try_echo"; } >&5
2350   (eval "$ac_link") 2>conftest.err
2351   ac_status=$?
2352   if test -s conftest.err; then
2353     grep -v '^ *+' conftest.err >conftest.er1
2354     cat conftest.er1 >&5
2355     mv -f conftest.er1 conftest.err
2356   fi
2357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358   test $ac_status = 0; } && {
2359          test -z "$ac_c_werror_flag" ||
2360          test ! -s conftest.err
2361        } && test -s conftest$ac_exeext && {
2362          test "$cross_compiling" = yes ||
2363          $as_test_x conftest$ac_exeext
2364        }; then :
2365   ac_retval=0
2366 else
2367   $as_echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370         ac_retval=1
2371 fi
2372   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2373   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2374   # interfere with the next link command; also delete a directory that is
2375   # left behind by Apple's compiler.  We do this before executing the actions.
2376   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2377   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378   return $ac_retval
2379
2380 } # ac_fn_c_try_link
2381
2382 # ac_fn_c_find_uintX_t LINENO BITS VAR
2383 # ------------------------------------
2384 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2385 # accordingly.
2386 ac_fn_c_find_uintX_t ()
2387 {
2388   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2390 $as_echo_n "checking for uint$2_t... " >&6; }
2391 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   eval "$3=no"
2395      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2396          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2397        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h.  */
2399 $ac_includes_default
2400 int
2401 main ()
2402 {
2403 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2404 test_array [0] = 0
2405
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_c_try_compile "$LINENO"; then :
2411   case $ac_type in #(
2412   uint$2_t) :
2413     eval "$3=yes" ;; #(
2414   *) :
2415     eval "$3=\$ac_type" ;;
2416 esac
2417 fi
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419        eval as_val=\$$3
2420    if test "x$as_val" = x""no; then :
2421
2422 else
2423   break
2424 fi
2425      done
2426 fi
2427 eval ac_res=\$$3
2428                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2431
2432 } # ac_fn_c_find_uintX_t
2433
2434 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2435 # ----------------------------------------------
2436 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2437 ac_fn_c_check_header_preproc ()
2438 {
2439   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2441 $as_echo_n "checking for $2... " >&6; }
2442 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2443   $as_echo_n "(cached) " >&6
2444 else
2445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h.  */
2447 #include <$2>
2448 _ACEOF
2449 if ac_fn_c_try_cpp "$LINENO"; then :
2450   eval "$3=yes"
2451 else
2452   eval "$3=no"
2453 fi
2454 rm -f conftest.err conftest.$ac_ext
2455 fi
2456 eval ac_res=\$$3
2457                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2460
2461 } # ac_fn_c_check_header_preproc
2462
2463 # ac_fn_c_check_func LINENO FUNC VAR
2464 # ----------------------------------
2465 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2466 ac_fn_c_check_func ()
2467 {
2468   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470 $as_echo_n "checking for $2... " >&6; }
2471 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2472   $as_echo_n "(cached) " >&6
2473 else
2474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h.  */
2476 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2478 #define $2 innocuous_$2
2479
2480 /* System header to define __stub macros and hopefully few prototypes,
2481     which can conflict with char $2 (); below.
2482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2483     <limits.h> exists even on freestanding compilers.  */
2484
2485 #ifdef __STDC__
2486 # include <limits.h>
2487 #else
2488 # include <assert.h>
2489 #endif
2490
2491 #undef $2
2492
2493 /* Override any GCC internal prototype to avoid an error.
2494    Use char because int might match the return type of a GCC
2495    builtin and then its argument prototype would still apply.  */
2496 #ifdef __cplusplus
2497 extern "C"
2498 #endif
2499 char $2 ();
2500 /* The GNU C library defines this for functions which it implements
2501     to always fail with ENOSYS.  Some functions are actually named
2502     something starting with __ and the normal name is an alias.  */
2503 #if defined __stub_$2 || defined __stub___$2
2504 choke me
2505 #endif
2506
2507 int
2508 main ()
2509 {
2510 return $2 ();
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 if ac_fn_c_try_link "$LINENO"; then :
2516   eval "$3=yes"
2517 else
2518   eval "$3=no"
2519 fi
2520 rm -f core conftest.err conftest.$ac_objext \
2521     conftest$ac_exeext conftest.$ac_ext
2522 fi
2523 eval ac_res=\$$3
2524                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525 $as_echo "$ac_res" >&6; }
2526   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2527
2528 } # ac_fn_c_check_func
2529
2530 # ac_fn_cxx_try_cpp LINENO
2531 # ------------------------
2532 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2533 ac_fn_cxx_try_cpp ()
2534 {
2535   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536   if { { ac_try="$ac_cpp conftest.$ac_ext"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2542 $as_echo "$ac_try_echo"; } >&5
2543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2544   ac_status=$?
2545   if test -s conftest.err; then
2546     grep -v '^ *+' conftest.err >conftest.er1
2547     cat conftest.er1 >&5
2548     mv -f conftest.er1 conftest.err
2549   fi
2550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2551   test $ac_status = 0; } >/dev/null && {
2552          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2553          test ! -s conftest.err
2554        }; then :
2555   ac_retval=0
2556 else
2557   $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560     ac_retval=1
2561 fi
2562   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563   return $ac_retval
2564
2565 } # ac_fn_cxx_try_cpp
2566
2567 # ac_fn_cxx_try_link LINENO
2568 # -------------------------
2569 # Try to link conftest.$ac_ext, and return whether this succeeded.
2570 ac_fn_cxx_try_link ()
2571 {
2572   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573   rm -f conftest.$ac_objext conftest$ac_exeext
2574   if { { ac_try="$ac_link"
2575 case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581   (eval "$ac_link") 2>conftest.err
2582   ac_status=$?
2583   if test -s conftest.err; then
2584     grep -v '^ *+' conftest.err >conftest.er1
2585     cat conftest.er1 >&5
2586     mv -f conftest.er1 conftest.err
2587   fi
2588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589   test $ac_status = 0; } && {
2590          test -z "$ac_cxx_werror_flag" ||
2591          test ! -s conftest.err
2592        } && test -s conftest$ac_exeext && {
2593          test "$cross_compiling" = yes ||
2594          $as_test_x conftest$ac_exeext
2595        }; then :
2596   ac_retval=0
2597 else
2598   $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601         ac_retval=1
2602 fi
2603   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2604   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2605   # interfere with the next link command; also delete a directory that is
2606   # left behind by Apple's compiler.  We do this before executing the actions.
2607   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2608   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609   return $ac_retval
2610
2611 } # ac_fn_cxx_try_link
2612 cat >config.log <<_ACEOF
2613 This file contains any messages produced by compilers while
2614 running configure, to aid debugging if configure makes a mistake.
2615
2616 It was created by $as_me, which was
2617 generated by GNU Autoconf 2.64.  Invocation command line was
2618
2619   $ $0 $@
2620
2621 _ACEOF
2622 exec 5>>config.log
2623 {
2624 cat <<_ASUNAME
2625 ## --------- ##
2626 ## Platform. ##
2627 ## --------- ##
2628
2629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2634
2635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2636 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2637
2638 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2639 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2641 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2642 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2643 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2644 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2645
2646 _ASUNAME
2647
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653     $as_echo "PATH: $as_dir"
2654   done
2655 IFS=$as_save_IFS
2656
2657 } >&5
2658
2659 cat >&5 <<_ACEOF
2660
2661
2662 ## ----------- ##
2663 ## Core tests. ##
2664 ## ----------- ##
2665
2666 _ACEOF
2667
2668
2669 # Keep a trace of the command line.
2670 # Strip out --no-create and --no-recursion so they do not pile up.
2671 # Strip out --silent because we don't want to record it for future runs.
2672 # Also quote any args containing shell meta-characters.
2673 # Make two passes to allow for proper duplicate-argument suppression.
2674 ac_configure_args=
2675 ac_configure_args0=
2676 ac_configure_args1=
2677 ac_must_keep_next=false
2678 for ac_pass in 1 2
2679 do
2680   for ac_arg
2681   do
2682     case $ac_arg in
2683     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2684     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2685     | -silent | --silent | --silen | --sile | --sil)
2686       continue ;;
2687     *\'*)
2688       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2689     esac
2690     case $ac_pass in
2691     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2692     2)
2693       as_fn_append ac_configure_args1 " '$ac_arg'"
2694       if test $ac_must_keep_next = true; then
2695         ac_must_keep_next=false # Got value, back to normal.
2696       else
2697         case $ac_arg in
2698           *=* | --config-cache | -C | -disable-* | --disable-* \
2699           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2700           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2701           | -with-* | --with-* | -without-* | --without-* | --x)
2702             case "$ac_configure_args0 " in
2703               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2704             esac
2705             ;;
2706           -* ) ac_must_keep_next=true ;;
2707         esac
2708       fi
2709       as_fn_append ac_configure_args " '$ac_arg'"
2710       ;;
2711     esac
2712   done
2713 done
2714 { ac_configure_args0=; unset ac_configure_args0;}
2715 { ac_configure_args1=; unset ac_configure_args1;}
2716
2717 # When interrupted or exit'd, cleanup temporary files, and complete
2718 # config.log.  We remove comments because anyway the quotes in there
2719 # would cause problems or look ugly.
2720 # WARNING: Use '\'' to represent an apostrophe within the trap.
2721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2722 trap 'exit_status=$?
2723   # Save into config.log some information that might help in debugging.
2724   {
2725     echo
2726
2727     cat <<\_ASBOX
2728 ## ---------------- ##
2729 ## Cache variables. ##
2730 ## ---------------- ##
2731 _ASBOX
2732     echo
2733     # The following way of writing the cache mishandles newlines in values,
2734 (
2735   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2736     eval ac_val=\$$ac_var
2737     case $ac_val in #(
2738     *${as_nl}*)
2739       case $ac_var in #(
2740       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742       esac
2743       case $ac_var in #(
2744       _ | IFS | as_nl) ;; #(
2745       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2746       *) { eval $ac_var=; unset $ac_var;} ;;
2747       esac ;;
2748     esac
2749   done
2750   (set) 2>&1 |
2751     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2752     *${as_nl}ac_space=\ *)
2753       sed -n \
2754         "s/'\''/'\''\\\\'\'''\''/g;
2755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756       ;; #(
2757     *)
2758       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2759       ;;
2760     esac |
2761     sort
2762 )
2763     echo
2764
2765     cat <<\_ASBOX
2766 ## ----------------- ##
2767 ## Output variables. ##
2768 ## ----------------- ##
2769 _ASBOX
2770     echo
2771     for ac_var in $ac_subst_vars
2772     do
2773       eval ac_val=\$$ac_var
2774       case $ac_val in
2775       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2776       esac
2777       $as_echo "$ac_var='\''$ac_val'\''"
2778     done | sort
2779     echo
2780
2781     if test -n "$ac_subst_files"; then
2782       cat <<\_ASBOX
2783 ## ------------------- ##
2784 ## File substitutions. ##
2785 ## ------------------- ##
2786 _ASBOX
2787       echo
2788       for ac_var in $ac_subst_files
2789       do
2790         eval ac_val=\$$ac_var
2791         case $ac_val in
2792         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2793         esac
2794         $as_echo "$ac_var='\''$ac_val'\''"
2795       done | sort
2796       echo
2797     fi
2798
2799     if test -s confdefs.h; then
2800       cat <<\_ASBOX
2801 ## ----------- ##
2802 ## confdefs.h. ##
2803 ## ----------- ##
2804 _ASBOX
2805       echo
2806       cat confdefs.h
2807       echo
2808     fi
2809     test "$ac_signal" != 0 &&
2810       $as_echo "$as_me: caught signal $ac_signal"
2811     $as_echo "$as_me: exit $exit_status"
2812   } >&5
2813   rm -f core *.core core.conftest.* &&
2814     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2815     exit $exit_status
2816 ' 0
2817 for ac_signal in 1 2 13 15; do
2818   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2819 done
2820 ac_signal=0
2821
2822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2823 rm -f -r conftest* confdefs.h
2824
2825 $as_echo "/* confdefs.h */" > confdefs.h
2826
2827 # Predefined preprocessor variables.
2828
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_NAME "$PACKAGE_NAME"
2831 _ACEOF
2832
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2835 _ACEOF
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2839 _ACEOF
2840
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_STRING "$PACKAGE_STRING"
2843 _ACEOF
2844
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2847 _ACEOF
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_URL "$PACKAGE_URL"
2851 _ACEOF
2852
2853
2854 # Let the site file select an alternate cache file if it wants to.
2855 # Prefer an explicitly selected file to automatically selected ones.
2856 ac_site_file1=NONE
2857 ac_site_file2=NONE
2858 if test -n "$CONFIG_SITE"; then
2859   ac_site_file1=$CONFIG_SITE
2860 elif test "x$prefix" != xNONE; then
2861   ac_site_file1=$prefix/share/config.site
2862   ac_site_file2=$prefix/etc/config.site
2863 else
2864   ac_site_file1=$ac_default_prefix/share/config.site
2865   ac_site_file2=$ac_default_prefix/etc/config.site
2866 fi
2867 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2868 do
2869   test "x$ac_site_file" = xNONE && continue
2870   if test -r "$ac_site_file"; then
2871     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2872 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2873     sed 's/^/| /' "$ac_site_file" >&5
2874     . "$ac_site_file"
2875   fi
2876 done
2877
2878 if test -r "$cache_file"; then
2879   # Some versions of bash will fail to source /dev/null (special
2880   # files actually), so we avoid doing that.
2881   if test -f "$cache_file"; then
2882     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2883 $as_echo "$as_me: loading cache $cache_file" >&6;}
2884     case $cache_file in
2885       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2886       *)                      . "./$cache_file";;
2887     esac
2888   fi
2889 else
2890   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2891 $as_echo "$as_me: creating cache $cache_file" >&6;}
2892   >$cache_file
2893 fi
2894
2895 # Check that the precious variables saved in the cache have kept the same
2896 # value.
2897 ac_cache_corrupted=false
2898 for ac_var in $ac_precious_vars; do
2899   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2900   eval ac_new_set=\$ac_env_${ac_var}_set
2901   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2902   eval ac_new_val=\$ac_env_${ac_var}_value
2903   case $ac_old_set,$ac_new_set in
2904     set,)
2905       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2906 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2907       ac_cache_corrupted=: ;;
2908     ,set)
2909       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2910 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2911       ac_cache_corrupted=: ;;
2912     ,);;
2913     *)
2914       if test "x$ac_old_val" != "x$ac_new_val"; then
2915         # differences in whitespace do not lead to failure.
2916         ac_old_val_w=`echo x $ac_old_val`
2917         ac_new_val_w=`echo x $ac_new_val`
2918         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2919           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2920 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2921           ac_cache_corrupted=:
2922         else
2923           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2924 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2925           eval $ac_var=\$ac_old_val
2926         fi
2927         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2928 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2929         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2930 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2931       fi;;
2932   esac
2933   # Pass precious variables to config.status.
2934   if test "$ac_new_set" = set; then
2935     case $ac_new_val in
2936     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2937     *) ac_arg=$ac_var=$ac_new_val ;;
2938     esac
2939     case " $ac_configure_args " in
2940       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2941       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2942     esac
2943   fi
2944 done
2945 if $ac_cache_corrupted; then
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2949 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2950   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2951 fi
2952 ## -------------------- ##
2953 ## Main body of script. ##
2954 ## -------------------- ##
2955
2956 ac_ext=c
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961
2962
2963
2964
2965
2966
2967 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2968
2969
2970 gcc_version=`cat $srcdir/BASE-VER`
2971
2972 # Determine the host, build, and target systems
2973 ac_aux_dir=
2974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2975   for ac_t in install-sh install.sh shtool; do
2976     if test -f "$ac_dir/$ac_t"; then
2977       ac_aux_dir=$ac_dir
2978       ac_install_sh="$ac_aux_dir/$ac_t -c"
2979       break 2
2980     fi
2981   done
2982 done
2983 if test -z "$ac_aux_dir"; then
2984   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2985 fi
2986
2987 # These three variables are undocumented and unsupported,
2988 # and are intended to be withdrawn in a future Autoconf release.
2989 # They can cause serious problems if a builder's source tree is in a directory
2990 # whose full name contains unusual characters.
2991 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2992 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2993 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2994
2995
2996 # Make sure we can run config.sub.
2997 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2998   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2999
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3001 $as_echo_n "checking build system type... " >&6; }
3002 if test "${ac_cv_build+set}" = set; then :
3003   $as_echo_n "(cached) " >&6
3004 else
3005   ac_build_alias=$build_alias
3006 test "x$ac_build_alias" = x &&
3007   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3008 test "x$ac_build_alias" = x &&
3009   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3011   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3012
3013 fi
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3015 $as_echo "$ac_cv_build" >&6; }
3016 case $ac_cv_build in
3017 *-*-*) ;;
3018 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3019 esac
3020 build=$ac_cv_build
3021 ac_save_IFS=$IFS; IFS='-'
3022 set x $ac_cv_build
3023 shift
3024 build_cpu=$1
3025 build_vendor=$2
3026 shift; shift
3027 # Remember, the first character of IFS is used to create $*,
3028 # except with old shells:
3029 build_os=$*
3030 IFS=$ac_save_IFS
3031 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3032
3033
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3035 $as_echo_n "checking host system type... " >&6; }
3036 if test "${ac_cv_host+set}" = set; then :
3037   $as_echo_n "(cached) " >&6
3038 else
3039   if test "x$host_alias" = x; then
3040   ac_cv_host=$ac_cv_build
3041 else
3042   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3043     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3044 fi
3045
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3048 $as_echo "$ac_cv_host" >&6; }
3049 case $ac_cv_host in
3050 *-*-*) ;;
3051 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3052 esac
3053 host=$ac_cv_host
3054 ac_save_IFS=$IFS; IFS='-'
3055 set x $ac_cv_host
3056 shift
3057 host_cpu=$1
3058 host_vendor=$2
3059 shift; shift
3060 # Remember, the first character of IFS is used to create $*,
3061 # except with old shells:
3062 host_os=$*
3063 IFS=$ac_save_IFS
3064 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3065
3066
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3068 $as_echo_n "checking target system type... " >&6; }
3069 if test "${ac_cv_target+set}" = set; then :
3070   $as_echo_n "(cached) " >&6
3071 else
3072   if test "x$target_alias" = x; then
3073   ac_cv_target=$ac_cv_host
3074 else
3075   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3076     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3077 fi
3078
3079 fi
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3081 $as_echo "$ac_cv_target" >&6; }
3082 case $ac_cv_target in
3083 *-*-*) ;;
3084 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3085 esac
3086 target=$ac_cv_target
3087 ac_save_IFS=$IFS; IFS='-'
3088 set x $ac_cv_target
3089 shift
3090 target_cpu=$1
3091 target_vendor=$2
3092 shift; shift
3093 # Remember, the first character of IFS is used to create $*,
3094 # except with old shells:
3095 target_os=$*
3096 IFS=$ac_save_IFS
3097 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3098
3099
3100 # The aliases save the names the user supplied, while $host etc.
3101 # will get canonicalized.
3102 test -n "$target_alias" &&
3103   test "$program_prefix$program_suffix$program_transform_name" = \
3104     NONENONEs,x,x, &&
3105   program_prefix=${target_alias}-
3106
3107 # Determine the noncanonical target name, for directory use.
3108  case ${build_alias} in
3109   "") build_noncanonical=${build} ;;
3110   *) build_noncanonical=${build_alias} ;;
3111 esac
3112
3113  case ${host_alias} in
3114   "") host_noncanonical=${build_noncanonical} ;;
3115   *) host_noncanonical=${host_alias} ;;
3116 esac
3117
3118  case ${target_alias} in
3119   "") target_noncanonical=${host_noncanonical} ;;
3120   *) target_noncanonical=${target_alias} ;;
3121 esac
3122
3123
3124
3125
3126 # Determine the target- and build-specific subdirectories
3127
3128 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3129 # have matching libraries, they should use host libraries: Makefile.tpl
3130 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3131 # However, they still use the build modules, because the corresponding
3132 # host modules (e.g. bison) are only built for the host when bootstrap
3133 # finishes. So:
3134 # - build_subdir is where we find build modules, and never changes.
3135 # - build_libsubdir is where we find build libraries, and can be overridden.
3136
3137 # Prefix 'build-' so this never conflicts with target_subdir.
3138 build_subdir="build-${build_noncanonical}"
3139
3140 # Check whether --with-build-libsubdir was given.
3141 if test "${with_build_libsubdir+set}" = set; then :
3142   withval=$with_build_libsubdir; build_libsubdir="$withval"
3143 else
3144   build_libsubdir="$build_subdir"
3145 fi
3146
3147 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3148 if ( test $srcdir = . && test -d gcc ) \
3149    || test -d $srcdir/../host-${host_noncanonical}; then
3150   host_subdir="host-${host_noncanonical}"
3151 else
3152   host_subdir=.
3153 fi
3154 # No prefix.
3155 target_subdir=${target_noncanonical}
3156
3157
3158 # Set program_transform_name
3159 test "$program_prefix" != NONE &&
3160   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3161 # Use a double $ so make ignores it.
3162 test "$program_suffix" != NONE &&
3163   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3164 # Double any \ or $.
3165 # By default was `s,x,x', remove it if useless.
3166 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3167 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3168
3169
3170 # Check for bogus environment variables.
3171 # Test if LIBRARY_PATH contains the notation for the current directory
3172 # since this would lead to problems installing/building glibc.
3173 # LIBRARY_PATH contains the current directory if one of the following
3174 # is true:
3175 # - one of the terminals (":" and ";") is the first or last sign
3176 # - two terminals occur directly after each other
3177 # - the path contains an element with a dot in it
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3179 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3180 case ${LIBRARY_PATH} in
3181   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3182     library_path_setting="contains current directory"
3183     ;;
3184   *)
3185     library_path_setting="ok"
3186     ;;
3187 esac
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3189 $as_echo "$library_path_setting" >&6; }
3190 if test "$library_path_setting" != "ok"; then
3191 as_fn_error "
3192 *** LIBRARY_PATH shouldn't contain the current directory when
3193 *** building gcc. Please change the environment variable
3194 *** and run configure again." "$LINENO" 5
3195 fi
3196
3197 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3198 # since this would lead to problems installing/building glibc.
3199 # GCC_EXEC_PREFIX contains the current directory if one of the following
3200 # is true:
3201 # - one of the terminals (":" and ";") is the first or last sign
3202 # - two terminals occur directly after each other
3203 # - the path contains an element with a dot in it
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3205 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3206 case ${GCC_EXEC_PREFIX} in
3207   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3208     gcc_exec_prefix_setting="contains current directory"
3209     ;;
3210   *)
3211     gcc_exec_prefix_setting="ok"
3212     ;;
3213 esac
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3215 $as_echo "$gcc_exec_prefix_setting" >&6; }
3216 if test "$gcc_exec_prefix_setting" != "ok"; then
3217 as_fn_error "
3218 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3219 *** building gcc. Please change the environment variable
3220 *** and run configure again." "$LINENO" 5
3221 fi
3222
3223 # -----------
3224 # Directories
3225 # -----------
3226
3227 # Specify the local prefix
3228 local_prefix=
3229
3230 # Check whether --with-local-prefix was given.
3231 if test "${with_local_prefix+set}" = set; then :
3232   withval=$with_local_prefix; case "${withval}" in
3233 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3234 no)     ;;
3235 *)      local_prefix=$with_local_prefix ;;
3236 esac
3237 fi
3238
3239
3240 # Default local prefix if it is empty
3241 if test x$local_prefix = x; then
3242         local_prefix=/usr/local
3243 fi
3244
3245 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3246 # passed in by the toplevel make and thus we'd get different behavior
3247 # depending on where we built the sources.
3248 gcc_gxx_include_dir=
3249 # Specify the g++ header file directory
3250
3251 # Check whether --with-gxx-include-dir was given.
3252 if test "${with_gxx_include_dir+set}" = set; then :
3253   withval=$with_gxx_include_dir; case "${withval}" in
3254 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3255 no)     ;;
3256 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3257 esac
3258 fi
3259
3260
3261 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3262 if test x${gcc_gxx_include_dir} = x; then
3263   if test x${enable_version_specific_runtime_libs} = xyes; then
3264     gcc_gxx_include_dir='${libsubdir}/include/c++'
3265   else
3266     libstdcxx_incdir='include/c++/$(version)'
3267     if test x$host != x$target; then
3268        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3269     fi
3270     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3271   fi
3272 fi
3273
3274
3275 # Check whether --with-cpp_install_dir was given.
3276 if test "${with_cpp_install_dir+set}" = set; then :
3277   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3278   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3279 elif test x$withval != xno; then
3280   cpp_install_dir=$withval
3281 fi
3282 fi
3283
3284
3285 # We would like to our source tree to be readonly.  However when releases or
3286 # pre-releases are generated, the flex/bison generated files as well as the
3287 # various formats of manuals need to be included along with the rest of the
3288 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3289 # just that.
3290
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3292 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3293     # Check whether --enable-generated-files-in-srcdir was given.
3294 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3295   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3296 else
3297   generated_files_in_srcdir=no
3298 fi
3299
3300
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3302 $as_echo "$generated_files_in_srcdir" >&6; }
3303
3304 if test "$generated_files_in_srcdir" = "yes"; then
3305   GENINSRC=''
3306 else
3307   GENINSRC='#'
3308 fi
3309
3310
3311 # -------------------
3312 # Find default linker
3313 # -------------------
3314
3315 # With GNU ld
3316
3317 # Check whether --with-gnu-ld was given.
3318 if test "${with_gnu_ld+set}" = set; then :
3319   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3320 else
3321   gnu_ld_flag=no
3322 fi
3323
3324
3325 # With pre-defined ld
3326
3327 # Check whether --with-ld was given.
3328 if test "${with_ld+set}" = set; then :
3329   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3330 fi
3331
3332 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3333   if test ! -x "$DEFAULT_LINKER"; then
3334     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3335   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3336     gnu_ld_flag=yes
3337   fi
3338
3339 cat >>confdefs.h <<_ACEOF
3340 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3341 _ACEOF
3342
3343 fi
3344
3345 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3346
3347 cat >>confdefs.h <<_ACEOF
3348 #define HAVE_GNU_LD $gnu_ld
3349 _ACEOF
3350
3351
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3353 $as_echo_n "checking whether a default linker was specified... " >&6; }
3354 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3355   if test x"$gnu_ld_flag" = x"no"; then
3356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3357 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3358   else
3359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3360 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3361   fi
3362 else
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367 # With demangler in GNU ld
3368
3369 # Check whether --with-demangler-in-ld was given.
3370 if test "${with_demangler_in_ld+set}" = set; then :
3371   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3372 else
3373   demangler_in_ld=no
3374 fi
3375
3376
3377 # ----------------------
3378 # Find default assembler
3379 # ----------------------
3380
3381 # With GNU as
3382
3383 # Check whether --with-gnu-as was given.
3384 if test "${with_gnu_as+set}" = set; then :
3385   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3386 else
3387   gas_flag=no
3388 fi
3389
3390
3391
3392 # Check whether --with-as was given.
3393 if test "${with_as+set}" = set; then :
3394   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3395 fi
3396
3397 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3398   if test ! -x "$DEFAULT_ASSEMBLER"; then
3399     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3400   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3401     gas_flag=yes
3402   fi
3403
3404 cat >>confdefs.h <<_ACEOF
3405 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3406 _ACEOF
3407
3408 fi
3409
3410 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3411
3412 cat >>confdefs.h <<_ACEOF
3413 #define HAVE_GNU_AS $gnu_as
3414 _ACEOF
3415
3416
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3418 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3419 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3420   if test x"$gas_flag" = x"no"; then
3421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3422 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3423   else
3424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3425 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3426   fi
3427 else
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432 # ---------------
3433 # Find C compiler
3434 # ---------------
3435
3436 # If a non-executable a.out is present (e.g. created by GNU as above even if
3437 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3438 # file, even when creating an executable, so an execution test fails.
3439 # Remove possible default executable files to avoid this.
3440 #
3441 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3442 # Autoconf includes it.
3443 rm -f a.out a.exe b.out
3444
3445 # Find the native compiler
3446 ac_ext=c
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -n "$ac_tool_prefix"; then
3452   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   if test -n "$CC"; then
3460   ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465   IFS=$as_save_IFS
3466   test -z "$as_dir" && as_dir=.
3467     for ac_exec_ext in '' $ac_executable_extensions; do
3468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471     break 2
3472   fi
3473 done
3474   done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3483 else
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488
3489 fi
3490 if test -z "$ac_cv_prog_CC"; then
3491   ac_ct_CC=$CC
3492   # Extract the first word of "gcc", so it can be a program name with args.
3493 set dummy gcc; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3497   $as_echo_n "(cached) " >&6
3498 else
3499   if test -n "$ac_ct_CC"; then
3500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505   IFS=$as_save_IFS
3506   test -z "$as_dir" && as_dir=.
3507     for ac_exec_ext in '' $ac_executable_extensions; do
3508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509     ac_cv_prog_ac_ct_CC="gcc"
3510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511     break 2
3512   fi
3513 done
3514   done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3523 else
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 fi
3527
3528   if test "x$ac_ct_CC" = x; then
3529     CC=""
3530   else
3531     case $cross_compiling:$ac_tool_warned in
3532 yes:)
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537     CC=$ac_ct_CC
3538   fi
3539 else
3540   CC="$ac_cv_prog_CC"
3541 fi
3542
3543 if test -z "$CC"; then
3544           if test -n "$ac_tool_prefix"; then
3545     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}cc; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then :
3550   $as_echo_n "(cached) " >&6
3551 else
3552   if test -n "$CC"; then
3553   ac_cv_prog_CC="$CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560     for ac_exec_ext in '' $ac_executable_extensions; do
3561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562     ac_cv_prog_CC="${ac_tool_prefix}cc"
3563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567   done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3576 else
3577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 fi
3580
3581
3582   fi
3583 fi
3584 if test -z "$CC"; then
3585   # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590   $as_echo_n "(cached) " >&6
3591 else
3592   if test -n "$CC"; then
3593   ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595   ac_prog_rejected=no
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601     for ac_exec_ext in '' $ac_executable_extensions; do
3602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3604        ac_prog_rejected=yes
3605        continue
3606      fi
3607     ac_cv_prog_CC="cc"
3608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610   fi
3611 done
3612   done
3613 IFS=$as_save_IFS
3614
3615 if test $ac_prog_rejected = yes; then
3616   # We found a bogon in the path, so make sure we never use it.
3617   set dummy $ac_cv_prog_CC
3618   shift
3619   if test $# != 0; then
3620     # We chose a different compiler from the bogus one.
3621     # However, it has the same basename, so the bogon will be chosen
3622     # first if we set CC to just the basename; use the full file name.
3623     shift
3624     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3625   fi
3626 fi
3627 fi
3628 fi
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638
3639 fi
3640 if test -z "$CC"; then
3641   if test -n "$ac_tool_prefix"; then
3642   for ac_prog in cl.exe
3643   do
3644     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   if test -n "$CC"; then
3652   ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659     for ac_exec_ext in '' $ac_executable_extensions; do
3660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666   done
3667 IFS=$as_save_IFS
3668
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681     test -n "$CC" && break
3682   done
3683 fi
3684 if test -z "$CC"; then
3685   ac_ct_CC=$CC
3686   for ac_prog in cl.exe
3687 do
3688   # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3693   $as_echo_n "(cached) " >&6
3694 else
3695   if test -n "$ac_ct_CC"; then
3696   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701   IFS=$as_save_IFS
3702   test -z "$as_dir" && as_dir=.
3703     for ac_exec_ext in '' $ac_executable_extensions; do
3704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705     ac_cv_prog_ac_ct_CC="$ac_prog"
3706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707     break 2
3708   fi
3709 done
3710   done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3716 if test -n "$ac_ct_CC"; then
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3718 $as_echo "$ac_ct_CC" >&6; }
3719 else
3720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 fi
3723
3724
3725   test -n "$ac_ct_CC" && break
3726 done
3727
3728   if test "x$ac_ct_CC" = x; then
3729     CC=""
3730   else
3731     case $cross_compiling:$ac_tool_warned in
3732 yes:)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned=yes ;;
3736 esac
3737     CC=$ac_ct_CC
3738   fi
3739 fi
3740
3741 fi
3742
3743
3744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error "no acceptable C compiler found in \$PATH
3747 See \`config.log' for more details." "$LINENO" 5; }
3748
3749 # Provide some information about the compiler.
3750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3751 set X $ac_compile
3752 ac_compiler=$2
3753 for ac_option in --version -v -V -qversion; do
3754   { { ac_try="$ac_compiler $ac_option >&5"
3755 case "(($ac_try" in
3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757   *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3762   ac_status=$?
3763   if test -s conftest.err; then
3764     sed '10a\
3765 ... rest of stderr output deleted ...
3766          10q' conftest.err >conftest.er1
3767     cat conftest.er1 >&5
3768     rm -f conftest.er1 conftest.err
3769   fi
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }
3772 done
3773
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h.  */
3776
3777 int
3778 main ()
3779 {
3780
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 ac_clean_files_save=$ac_clean_files
3786 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3787 # Try to create an executable without -o first, disregard a.out.
3788 # It will help us diagnose broken compilers, and finding out an intuition
3789 # of exeext.
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3791 $as_echo_n "checking for C compiler default output file name... " >&6; }
3792 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3793
3794 # The possible output files:
3795 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3796
3797 ac_rmfiles=
3798 for ac_file in $ac_files
3799 do
3800   case $ac_file in
3801     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3803   esac
3804 done
3805 rm -f $ac_rmfiles
3806
3807 if { { ac_try="$ac_link_default"
3808 case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814   (eval "$ac_link_default") 2>&5
3815   ac_status=$?
3816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817   test $ac_status = 0; }; then :
3818   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3820 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3821 # so that the user can short-circuit this test for compilers unknown to
3822 # Autoconf.
3823 for ac_file in $ac_files ''
3824 do
3825   test -f "$ac_file" || continue
3826   case $ac_file in
3827     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3828         ;;
3829     [ab].out )
3830         # We found the default executable, but exeext='' is most
3831         # certainly right.
3832         break;;
3833     *.* )
3834         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3835         then :; else
3836            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3837         fi
3838         # We set ac_cv_exeext here because the later test for it is not
3839         # safe: cross compilers may not add the suffix if given an `-o'
3840         # argument, so we may need to know it at that point already.
3841         # Even if this section looks crufty: it has the advantage of
3842         # actually working.
3843         break;;
3844     * )
3845         break;;
3846   esac
3847 done
3848 test "$ac_cv_exeext" = no && ac_cv_exeext=
3849
3850 else
3851   ac_file=''
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3854 $as_echo "$ac_file" >&6; }
3855 if test -z "$ac_file"; then :
3856   $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 { as_fn_set_status 77
3862 as_fn_error "C compiler cannot create executables
3863 See \`config.log' for more details." "$LINENO" 5; }; }
3864 fi
3865 ac_exeext=$ac_cv_exeext
3866
3867 # Check that the compiler produces executables we can run.  If not, either
3868 # the compiler is broken, or we cross compile.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3870 $as_echo_n "checking whether the C compiler works... " >&6; }
3871 # If not cross compiling, check that we can run a simple program.
3872 if test "$cross_compiling" != yes; then
3873   if { ac_try='./$ac_file'
3874   { { case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880   (eval "$ac_try") 2>&5
3881   ac_status=$?
3882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883   test $ac_status = 0; }; }; then
3884     cross_compiling=no
3885   else
3886     if test "$cross_compiling" = maybe; then
3887         cross_compiling=yes
3888     else
3889         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error "cannot run C compiled programs.
3892 If you meant to cross compile, use \`--host'.
3893 See \`config.log' for more details." "$LINENO" 5; }
3894     fi
3895   fi
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3898 $as_echo "yes" >&6; }
3899
3900 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3901 ac_clean_files=$ac_clean_files_save
3902 # Check that the compiler produces executables we can run.  If not, either
3903 # the compiler is broken, or we cross compile.
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3905 $as_echo_n "checking whether we are cross compiling... " >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3907 $as_echo "$cross_compiling" >&6; }
3908
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3910 $as_echo_n "checking for suffix of executables... " >&6; }
3911 if { { ac_try="$ac_link"
3912 case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918   (eval "$ac_link") 2>&5
3919   ac_status=$?
3920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921   test $ac_status = 0; }; then :
3922   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3923 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3924 # work properly (i.e., refer to `conftest.exe'), while it won't with
3925 # `rm'.
3926 for ac_file in conftest.exe conftest conftest.*; do
3927   test -f "$ac_file" || continue
3928   case $ac_file in
3929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3930     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3931           break;;
3932     * ) break;;
3933   esac
3934 done
3935 else
3936   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error "cannot compute suffix of executables: cannot compile and link
3939 See \`config.log' for more details." "$LINENO" 5; }
3940 fi
3941 rm -f conftest$ac_cv_exeext
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3943 $as_echo "$ac_cv_exeext" >&6; }
3944
3945 rm -f conftest.$ac_ext
3946 EXEEXT=$ac_cv_exeext
3947 ac_exeext=$EXEEXT
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949 $as_echo_n "checking for suffix of object files... " >&6; }
3950 if test "${ac_cv_objext+set}" = set; then :
3951   $as_echo_n "(cached) " >&6
3952 else
3953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.o conftest.obj
3965 if { { ac_try="$ac_compile"
3966 case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972   (eval "$ac_compile") 2>&5
3973   ac_status=$?
3974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975   test $ac_status = 0; }; then :
3976   for ac_file in conftest.o conftest.obj conftest.*; do
3977   test -f "$ac_file" || continue;
3978   case $ac_file in
3979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3981        break;;
3982   esac
3983 done
3984 else
3985   $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error "cannot compute suffix of object files: cannot compile
3991 See \`config.log' for more details." "$LINENO" 5; }
3992 fi
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 $as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3998 ac_objext=$OBJEXT
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h.  */
4006
4007 int
4008 main ()
4009 {
4010 #ifndef __GNUC__
4011        choke me
4012 #endif
4013
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019   ac_compiler_gnu=yes
4020 else
4021   ac_compiler_gnu=no
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025
4026 fi
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4030   GCC=yes
4031 else
4032   GCC=
4033 fi
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if test "${ac_cv_prog_cc_g+set}" = set; then :
4039   $as_echo_n "(cached) " >&6
4040 else
4041   ac_save_c_werror_flag=$ac_c_werror_flag
4042    ac_c_werror_flag=yes
4043    ac_cv_prog_cc_g=no
4044    CFLAGS="-g"
4045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047
4048 int
4049 main ()
4050 {
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057   ac_cv_prog_cc_g=yes
4058 else
4059   CFLAGS=""
4060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h.  */
4062
4063 int
4064 main ()
4065 {
4066
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072
4073 else
4074   ac_c_werror_flag=$ac_save_c_werror_flag
4075          CFLAGS="-g"
4076          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078
4079 int
4080 main ()
4081 {
4082
4083   ;
4084   return 0;
4085 }
4086 _ACEOF
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088   ac_cv_prog_cc_g=yes
4089 fi
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100   CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102   if test "$GCC" = yes; then
4103     CFLAGS="-g -O2"
4104   else
4105     CFLAGS="-g"
4106   fi
4107 else
4108   if test "$GCC" = yes; then
4109     CFLAGS="-O2"
4110   else
4111     CFLAGS=
4112   fi
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4117   $as_echo_n "(cached) " >&6
4118 else
4119   ac_cv_prog_cc_c89=no
4120 ac_save_CC=$CC
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h.  */
4123 #include <stdarg.h>
4124 #include <stdio.h>
4125 #include <sys/types.h>
4126 #include <sys/stat.h>
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4131      char **p;
4132      int i;
4133 {
4134   return p[i];
4135 }
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4137 {
4138   char *s;
4139   va_list v;
4140   va_start (v,p);
4141   s = g (p, va_arg (v,int));
4142   va_end (v);
4143   return s;
4144 }
4145
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4147    function prototypes and stuff, but not '\xHH' hex character constants.
4148    These don't provoke an error unfortunately, instead are silently treated
4149    as 'x'.  The following induces an error, until -std is added to get
4150    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4151    array size at least.  It's necessary to write '\x00'==0 to get something
4152    that's true only with -std.  */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4154
4155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4156    inside strings and character constants.  */
4157 #define FOO(x) 'x'
4158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4159
4160 int test (int i, double x);
4161 struct s1 {int (*f) (int a);};
4162 struct s2 {int (*f) (double a);};
4163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4164 int argc;
4165 char **argv;
4166 int
4167 main ()
4168 {
4169 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4176 do
4177   CC="$ac_save_CC $ac_arg"
4178   if ac_fn_c_try_compile "$LINENO"; then :
4179   ac_cv_prog_cc_c89=$ac_arg
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext
4182   test "x$ac_cv_prog_cc_c89" != "xno" && break
4183 done
4184 rm -f conftest.$ac_ext
4185 CC=$ac_save_CC
4186
4187 fi
4188 # AC_CACHE_VAL
4189 case "x$ac_cv_prog_cc_c89" in
4190   x)
4191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4193   xno)
4194     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4196   *)
4197     CC="$CC $ac_cv_prog_cc_c89"
4198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4200 esac
4201 if test "x$ac_cv_prog_cc_c89" != xno; then :
4202
4203 fi
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211 if test "x$CC" != xcc; then
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4213 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4214 else
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4216 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4217 fi
4218 set dummy $CC; ac_cc=`$as_echo "$2" |
4219                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4220 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h.  */
4225
4226 int
4227 main ()
4228 {
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 # Make sure it works both with $CC and with simple cc.
4235 # We do the test twice because some compilers refuse to overwrite an
4236 # existing .o file with -o, though they will create one.
4237 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4238 rm -f conftest2.*
4239 if { { case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244 $as_echo "$ac_try_echo"; } >&5
4245   (eval "$ac_try") 2>&5
4246   ac_status=$?
4247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248   test $ac_status = 0; } &&
4249    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251   *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255   (eval "$ac_try") 2>&5
4256   ac_status=$?
4257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258   test $ac_status = 0; };
4259 then
4260   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4261   if test "x$CC" != xcc; then
4262     # Test first that cc exists at all.
4263     if { ac_try='cc -c conftest.$ac_ext >&5'
4264   { { case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 $as_echo "$ac_try_echo"; } >&5
4270   (eval "$ac_try") 2>&5
4271   ac_status=$?
4272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273   test $ac_status = 0; }; }; then
4274       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4275       rm -f conftest2.*
4276       if { { case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282   (eval "$ac_try") 2>&5
4283   ac_status=$?
4284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285   test $ac_status = 0; } &&
4286          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295   test $ac_status = 0; };
4296       then
4297         # cc works too.
4298         :
4299       else
4300         # cc exists but doesn't like -o.
4301         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4302       fi
4303     fi
4304   fi
4305 else
4306   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4307 fi
4308 rm -f core conftest*
4309
4310 fi
4311 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4313 $as_echo "yes" >&6; }
4314 else
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4317
4318 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4319
4320 fi
4321
4322 # expand $ac_aux_dir to an absolute path
4323 am_aux_dir=`cd $ac_aux_dir && pwd`
4324
4325 # FIXME: we rely on the cache variable name because
4326 # there is no other way.
4327 set dummy $CC
4328 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4329 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4330 if test "$am_t" != yes; then
4331    # Losing compiler, so override with the script.
4332    # FIXME: It is wrong to rewrite CC.
4333    # But if we don't then we get into trouble of one sort or another.
4334    # A longer-term fix would be to have automake use am__CC in this case,
4335    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4336    CC="$am_aux_dir/compile $CC"
4337 fi
4338
4339
4340 ac_ext=cpp
4341 ac_cpp='$CXXCPP $CPPFLAGS'
4342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4345 if test -z "$CXX"; then
4346   if test -n "$CCC"; then
4347     CXX=$CCC
4348   else
4349     if test -n "$ac_tool_prefix"; then
4350   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4351   do
4352     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if test "${ac_cv_prog_CXX+set}" = set; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   if test -n "$CXX"; then
4360   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367     for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374   done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 CXX=$ac_cv_prog_CXX
4380 if test -n "$CXX"; then
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4382 $as_echo "$CXX" >&6; }
4383 else
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 fi
4387
4388
4389     test -n "$CXX" && break
4390   done
4391 fi
4392 if test -z "$CXX"; then
4393   ac_ct_CXX=$CXX
4394   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4395 do
4396   # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403   if test -n "$ac_ct_CXX"; then
4404   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411     for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_prog_ac_ct_CXX="$ac_prog"
4414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418   done
4419 IFS=$as_save_IFS
4420
4421 fi
4422 fi
4423 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4424 if test -n "$ac_ct_CXX"; then
4425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4426 $as_echo "$ac_ct_CXX" >&6; }
4427 else
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 fi
4431
4432
4433   test -n "$ac_ct_CXX" && break
4434 done
4435
4436   if test "x$ac_ct_CXX" = x; then
4437     CXX="g++"
4438   else
4439     case $cross_compiling:$ac_tool_warned in
4440 yes:)
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4443 ac_tool_warned=yes ;;
4444 esac
4445     CXX=$ac_ct_CXX
4446   fi
4447 fi
4448
4449   fi
4450 fi
4451 # Provide some information about the compiler.
4452 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4453 set X $ac_compile
4454 ac_compiler=$2
4455 for ac_option in --version -v -V -qversion; do
4456   { { ac_try="$ac_compiler $ac_option >&5"
4457 case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4464   ac_status=$?
4465   if test -s conftest.err; then
4466     sed '10a\
4467 ... rest of stderr output deleted ...
4468          10q' conftest.err >conftest.er1
4469     cat conftest.er1 >&5
4470     rm -f conftest.er1 conftest.err
4471   fi
4472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473   test $ac_status = 0; }
4474 done
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4477 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4478 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4479   $as_echo_n "(cached) " >&6
4480 else
4481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h.  */
4483
4484 int
4485 main ()
4486 {
4487 #ifndef __GNUC__
4488        choke me
4489 #endif
4490
4491   ;
4492   return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_cxx_try_compile "$LINENO"; then :
4496   ac_compiler_gnu=yes
4497 else
4498   ac_compiler_gnu=no
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4502
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4505 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4506 if test $ac_compiler_gnu = yes; then
4507   GXX=yes
4508 else
4509   GXX=
4510 fi
4511 ac_test_CXXFLAGS=${CXXFLAGS+set}
4512 ac_save_CXXFLAGS=$CXXFLAGS
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4514 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4515 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4519    ac_cxx_werror_flag=yes
4520    ac_cv_prog_cxx_g=no
4521    CXXFLAGS="-g"
4522    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524
4525 int
4526 main ()
4527 {
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 if ac_fn_cxx_try_compile "$LINENO"; then :
4534   ac_cv_prog_cxx_g=yes
4535 else
4536   CXXFLAGS=""
4537       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h.  */
4539
4540 int
4541 main ()
4542 {
4543
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 if ac_fn_cxx_try_compile "$LINENO"; then :
4549
4550 else
4551   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4552          CXXFLAGS="-g"
4553          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h.  */
4555
4556 int
4557 main ()
4558 {
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_cxx_try_compile "$LINENO"; then :
4565   ac_cv_prog_cxx_g=yes
4566 fi
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4573 fi
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4575 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4576 if test "$ac_test_CXXFLAGS" = set; then
4577   CXXFLAGS=$ac_save_CXXFLAGS
4578 elif test $ac_cv_prog_cxx_g = yes; then
4579   if test "$GXX" = yes; then
4580     CXXFLAGS="-g -O2"
4581   else
4582     CXXFLAGS="-g"
4583   fi
4584 else
4585   if test "$GXX" = yes; then
4586     CXXFLAGS="-O2"
4587   else
4588     CXXFLAGS=
4589   fi
4590 fi
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596
4597
4598
4599
4600 if test -n "$ac_tool_prefix"; then
4601   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4602 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   if test -n "$GNATBIND"; then
4609   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616     for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623   done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
4628 GNATBIND=$ac_cv_prog_GNATBIND
4629 if test -n "$GNATBIND"; then
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4631 $as_echo "$GNATBIND" >&6; }
4632 else
4633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637
4638 fi
4639 if test -z "$ac_cv_prog_GNATBIND"; then
4640   ac_ct_GNATBIND=$GNATBIND
4641   # Extract the first word of "gnatbind", so it can be a program name with args.
4642 set dummy gnatbind; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4646   $as_echo_n "(cached) " >&6
4647 else
4648   if test -n "$ac_ct_GNATBIND"; then
4649   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654   IFS=$as_save_IFS
4655   test -z "$as_dir" && as_dir=.
4656     for ac_exec_ext in '' $ac_executable_extensions; do
4657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660     break 2
4661   fi
4662 done
4663   done
4664 IFS=$as_save_IFS
4665
4666 fi
4667 fi
4668 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4669 if test -n "$ac_ct_GNATBIND"; then
4670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4671 $as_echo "$ac_ct_GNATBIND" >&6; }
4672 else
4673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4675 fi
4676
4677   if test "x$ac_ct_GNATBIND" = x; then
4678     GNATBIND="no"
4679   else
4680     case $cross_compiling:$ac_tool_warned in
4681 yes:)
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4685 esac
4686     GNATBIND=$ac_ct_GNATBIND
4687   fi
4688 else
4689   GNATBIND="$ac_cv_prog_GNATBIND"
4690 fi
4691
4692 if test -n "$ac_tool_prefix"; then
4693   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   if test -n "$GNATMAKE"; then
4701   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708     for ac_exec_ext in '' $ac_executable_extensions; do
4709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715   done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 GNATMAKE=$ac_cv_prog_GNATMAKE
4721 if test -n "$GNATMAKE"; then
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4723 $as_echo "$GNATMAKE" >&6; }
4724 else
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 fi
4728
4729
4730 fi
4731 if test -z "$ac_cv_prog_GNATMAKE"; then
4732   ac_ct_GNATMAKE=$GNATMAKE
4733   # Extract the first word of "gnatmake", so it can be a program name with args.
4734 set dummy gnatmake; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   if test -n "$ac_ct_GNATMAKE"; then
4741   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748     for ac_exec_ext in '' $ac_executable_extensions; do
4749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755   done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
4760 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4761 if test -n "$ac_ct_GNATMAKE"; then
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4763 $as_echo "$ac_ct_GNATMAKE" >&6; }
4764 else
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769   if test "x$ac_ct_GNATMAKE" = x; then
4770     GNATMAKE="no"
4771   else
4772     case $cross_compiling:$ac_tool_warned in
4773 yes:)
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned=yes ;;
4777 esac
4778     GNATMAKE=$ac_ct_GNATMAKE
4779   fi
4780 else
4781   GNATMAKE="$ac_cv_prog_GNATMAKE"
4782 fi
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4785 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4786 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   cat >conftest.adb <<EOF
4790 procedure conftest is begin null; end conftest;
4791 EOF
4792 acx_cv_cc_gcc_supports_ada=no
4793 # There is a bug in old released versions of GCC which causes the
4794 # driver to exit successfully when the appropriate language module
4795 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4796 # Therefore we must check for the error message as well as an
4797 # unsuccessful exit.
4798 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4799 # given a .adb file, but produce no object file.  So we must check
4800 # if an object file was really produced to guard against this.
4801 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4802 if test x"$errors" = x && test -f conftest.$ac_objext; then
4803   acx_cv_cc_gcc_supports_ada=yes
4804 fi
4805 rm -f conftest.*
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4808 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4809
4810 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4811   have_gnat=yes
4812 else
4813   have_gnat=no
4814 fi
4815
4816
4817 # autoconf is lame and doesn't give us any substitution variable for this.
4818 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4819   NO_MINUS_C_MINUS_O=yes
4820 else
4821   OUTPUT_OPTION='-o $@'
4822 fi
4823
4824
4825
4826 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4827 # optimizations to be activated explicitly by the toplevel.
4828 case "$CC" in
4829   */prev-gcc/xgcc*) ;;
4830   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4831 esac
4832
4833
4834 # -------------------------
4835 # Check C compiler features
4836 # -------------------------
4837
4838
4839 ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4845 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4846 # On Suns, sometimes $CPP names a directory.
4847 if test -n "$CPP" && test -d "$CPP"; then
4848   CPP=
4849 fi
4850 if test -z "$CPP"; then
4851   if test "${ac_cv_prog_CPP+set}" = set; then :
4852   $as_echo_n "(cached) " >&6
4853 else
4854       # Double quotes because CPP needs to be expanded
4855     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4856     do
4857       ac_preproc_ok=false
4858 for ac_c_preproc_warn_flag in '' yes
4859 do
4860   # Use a header file that comes with gcc, so configuring glibc
4861   # with a fresh cross-compiler works.
4862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863   # <limits.h> exists even on freestanding compilers.
4864   # On the NeXT, cc -E runs the code through the compiler's parser,
4865   # not just through cpp. "Syntax error" is here to catch this case.
4866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h.  */
4868 #ifdef __STDC__
4869 # include <limits.h>
4870 #else
4871 # include <assert.h>
4872 #endif
4873                      Syntax error
4874 _ACEOF
4875 if ac_fn_c_try_cpp "$LINENO"; then :
4876
4877 else
4878   # Broken: fails on valid input.
4879 continue
4880 fi
4881 rm -f conftest.err conftest.$ac_ext
4882
4883   # OK, works on sane cases.  Now check whether nonexistent headers
4884   # can be detected and how.
4885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h.  */
4887 #include <ac_nonexistent.h>
4888 _ACEOF
4889 if ac_fn_c_try_cpp "$LINENO"; then :
4890   # Broken: success on invalid input.
4891 continue
4892 else
4893   # Passes both tests.
4894 ac_preproc_ok=:
4895 break
4896 fi
4897 rm -f conftest.err conftest.$ac_ext
4898
4899 done
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.$ac_ext
4902 if $ac_preproc_ok; then :
4903   break
4904 fi
4905
4906     done
4907     ac_cv_prog_CPP=$CPP
4908
4909 fi
4910   CPP=$ac_cv_prog_CPP
4911 else
4912   ac_cv_prog_CPP=$CPP
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4915 $as_echo "$CPP" >&6; }
4916 ac_preproc_ok=false
4917 for ac_c_preproc_warn_flag in '' yes
4918 do
4919   # Use a header file that comes with gcc, so configuring glibc
4920   # with a fresh cross-compiler works.
4921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922   # <limits.h> exists even on freestanding compilers.
4923   # On the NeXT, cc -E runs the code through the compiler's parser,
4924   # not just through cpp. "Syntax error" is here to catch this case.
4925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h.  */
4927 #ifdef __STDC__
4928 # include <limits.h>
4929 #else
4930 # include <assert.h>
4931 #endif
4932                      Syntax error
4933 _ACEOF
4934 if ac_fn_c_try_cpp "$LINENO"; then :
4935
4936 else
4937   # Broken: fails on valid input.
4938 continue
4939 fi
4940 rm -f conftest.err conftest.$ac_ext
4941
4942   # OK, works on sane cases.  Now check whether nonexistent headers
4943   # can be detected and how.
4944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h.  */
4946 #include <ac_nonexistent.h>
4947 _ACEOF
4948 if ac_fn_c_try_cpp "$LINENO"; then :
4949   # Broken: success on invalid input.
4950 continue
4951 else
4952   # Passes both tests.
4953 ac_preproc_ok=:
4954 break
4955 fi
4956 rm -f conftest.err conftest.$ac_ext
4957
4958 done
4959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4960 rm -f conftest.err conftest.$ac_ext
4961 if $ac_preproc_ok; then :
4962
4963 else
4964   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4967 See \`config.log' for more details." "$LINENO" 5; }
4968 fi
4969
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4979 if test "${ac_cv_path_GREP+set}" = set; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   if test -z "$GREP"; then
4983   ac_path_GREP_found=false
4984   # Loop through the user's path and test for each of PROGNAME-LIST
4985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_prog in grep ggrep; do
4991     for ac_exec_ext in '' $ac_executable_extensions; do
4992       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4993       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4994 # Check for GNU ac_path_GREP and select it if it is found.
4995   # Check for GNU $ac_path_GREP
4996 case `"$ac_path_GREP" --version 2>&1` in
4997 *GNU*)
4998   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4999 *)
5000   ac_count=0
5001   $as_echo_n 0123456789 >"conftest.in"
5002   while :
5003   do
5004     cat "conftest.in" "conftest.in" >"conftest.tmp"
5005     mv "conftest.tmp" "conftest.in"
5006     cp "conftest.in" "conftest.nl"
5007     $as_echo 'GREP' >> "conftest.nl"
5008     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5009     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5010     as_fn_arith $ac_count + 1 && ac_count=$as_val
5011     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5012       # Best one so far, save it but keep looking for a better one
5013       ac_cv_path_GREP="$ac_path_GREP"
5014       ac_path_GREP_max=$ac_count
5015     fi
5016     # 10*(2^10) chars as input seems more than enough
5017     test $ac_count -gt 10 && break
5018   done
5019   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5020 esac
5021
5022       $ac_path_GREP_found && break 3
5023     done
5024   done
5025   done
5026 IFS=$as_save_IFS
5027   if test -z "$ac_cv_path_GREP"; then
5028     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5029   fi
5030 else
5031   ac_cv_path_GREP=$GREP
5032 fi
5033
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5036 $as_echo "$ac_cv_path_GREP" >&6; }
5037  GREP="$ac_cv_path_GREP"
5038
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5041 $as_echo_n "checking for egrep... " >&6; }
5042 if test "${ac_cv_path_EGREP+set}" = set; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5046    then ac_cv_path_EGREP="$GREP -E"
5047    else
5048      if test -z "$EGREP"; then
5049   ac_path_EGREP_found=false
5050   # Loop through the user's path and test for each of PROGNAME-LIST
5051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5053 do
5054   IFS=$as_save_IFS
5055   test -z "$as_dir" && as_dir=.
5056     for ac_prog in egrep; do
5057     for ac_exec_ext in '' $ac_executable_extensions; do
5058       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5059       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5060 # Check for GNU ac_path_EGREP and select it if it is found.
5061   # Check for GNU $ac_path_EGREP
5062 case `"$ac_path_EGREP" --version 2>&1` in
5063 *GNU*)
5064   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5065 *)
5066   ac_count=0
5067   $as_echo_n 0123456789 >"conftest.in"
5068   while :
5069   do
5070     cat "conftest.in" "conftest.in" >"conftest.tmp"
5071     mv "conftest.tmp" "conftest.in"
5072     cp "conftest.in" "conftest.nl"
5073     $as_echo 'EGREP' >> "conftest.nl"
5074     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5075     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5076     as_fn_arith $ac_count + 1 && ac_count=$as_val
5077     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5078       # Best one so far, save it but keep looking for a better one
5079       ac_cv_path_EGREP="$ac_path_EGREP"
5080       ac_path_EGREP_max=$ac_count
5081     fi
5082     # 10*(2^10) chars as input seems more than enough
5083     test $ac_count -gt 10 && break
5084   done
5085   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5086 esac
5087
5088       $ac_path_EGREP_found && break 3
5089     done
5090   done
5091   done
5092 IFS=$as_save_IFS
5093   if test -z "$ac_cv_path_EGREP"; then
5094     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5095   fi
5096 else
5097   ac_cv_path_EGREP=$EGREP
5098 fi
5099
5100    fi
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5103 $as_echo "$ac_cv_path_EGREP" >&6; }
5104  EGREP="$ac_cv_path_EGREP"
5105
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5108 $as_echo_n "checking for ANSI C header files... " >&6; }
5109 if test "${ac_cv_header_stdc+set}" = set; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h.  */
5114 #include <stdlib.h>
5115 #include <stdarg.h>
5116 #include <string.h>
5117 #include <float.h>
5118
5119 int
5120 main ()
5121 {
5122
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128   ac_cv_header_stdc=yes
5129 else
5130   ac_cv_header_stdc=no
5131 fi
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133
5134 if test $ac_cv_header_stdc = yes; then
5135   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h.  */
5138 #include <string.h>
5139
5140 _ACEOF
5141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5142   $EGREP "memchr" >/dev/null 2>&1; then :
5143
5144 else
5145   ac_cv_header_stdc=no
5146 fi
5147 rm -f conftest*
5148
5149 fi
5150
5151 if test $ac_cv_header_stdc = yes; then
5152   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h.  */
5155 #include <stdlib.h>
5156
5157 _ACEOF
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159   $EGREP "free" >/dev/null 2>&1; then :
5160
5161 else
5162   ac_cv_header_stdc=no
5163 fi
5164 rm -f conftest*
5165
5166 fi
5167
5168 if test $ac_cv_header_stdc = yes; then
5169   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5170   if test "$cross_compiling" = yes; then :
5171   :
5172 else
5173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h.  */
5175 #include <ctype.h>
5176 #include <stdlib.h>
5177 #if ((' ' & 0x0FF) == 0x020)
5178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5180 #else
5181 # define ISLOWER(c) \
5182                    (('a' <= (c) && (c) <= 'i') \
5183                      || ('j' <= (c) && (c) <= 'r') \
5184                      || ('s' <= (c) && (c) <= 'z'))
5185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5186 #endif
5187
5188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5189 int
5190 main ()
5191 {
5192   int i;
5193   for (i = 0; i < 256; i++)
5194     if (XOR (islower (i), ISLOWER (i))
5195         || toupper (i) != TOUPPER (i))
5196       return 2;
5197   return 0;
5198 }
5199 _ACEOF
5200 if ac_fn_c_try_run "$LINENO"; then :
5201
5202 else
5203   ac_cv_header_stdc=no
5204 fi
5205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5206   conftest.$ac_objext conftest.beam conftest.$ac_ext
5207 fi
5208
5209 fi
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5212 $as_echo "$ac_cv_header_stdc" >&6; }
5213 if test $ac_cv_header_stdc = yes; then
5214
5215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5216
5217 fi
5218
5219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5220 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5221                   inttypes.h stdint.h unistd.h
5222 do :
5223   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5225 "
5226 eval as_val=\$$as_ac_Header
5227    if test "x$as_val" = x""yes; then :
5228   cat >>confdefs.h <<_ACEOF
5229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5230 _ACEOF
5231
5232 fi
5233
5234 done
5235
5236
5237
5238   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5239 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5240   MINIX=yes
5241 else
5242   MINIX=
5243 fi
5244
5245
5246   if test "$MINIX" = yes; then
5247
5248 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5249
5250
5251 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5252
5253
5254 $as_echo "#define _MINIX 1" >>confdefs.h
5255
5256   fi
5257
5258
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5260 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5261 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h.  */
5266
5267 #         define __EXTENSIONS__ 1
5268           $ac_includes_default
5269 int
5270 main ()
5271 {
5272
5273   ;
5274   return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278   ac_cv_safe_to_define___extensions__=yes
5279 else
5280   ac_cv_safe_to_define___extensions__=no
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5285 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5286   test $ac_cv_safe_to_define___extensions__ = yes &&
5287     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5288
5289   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5290
5291   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5292
5293   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5294
5295   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5296
5297
5298 ac_ext=c
5299 ac_cpp='$CPP $CPPFLAGS'
5300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5305 # On Suns, sometimes $CPP names a directory.
5306 if test -n "$CPP" && test -d "$CPP"; then
5307   CPP=
5308 fi
5309 if test -z "$CPP"; then
5310   if test "${ac_cv_prog_CPP+set}" = set; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313       # Double quotes because CPP needs to be expanded
5314     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5315     do
5316       ac_preproc_ok=false
5317 for ac_c_preproc_warn_flag in '' yes
5318 do
5319   # Use a header file that comes with gcc, so configuring glibc
5320   # with a fresh cross-compiler works.
5321   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5322   # <limits.h> exists even on freestanding compilers.
5323   # On the NeXT, cc -E runs the code through the compiler's parser,
5324   # not just through cpp. "Syntax error" is here to catch this case.
5325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h.  */
5327 #ifdef __STDC__
5328 # include <limits.h>
5329 #else
5330 # include <assert.h>
5331 #endif
5332                      Syntax error
5333 _ACEOF
5334 if ac_fn_c_try_cpp "$LINENO"; then :
5335
5336 else
5337   # Broken: fails on valid input.
5338 continue
5339 fi
5340 rm -f conftest.err conftest.$ac_ext
5341
5342   # OK, works on sane cases.  Now check whether nonexistent headers
5343   # can be detected and how.
5344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h.  */
5346 #include <ac_nonexistent.h>
5347 _ACEOF
5348 if ac_fn_c_try_cpp "$LINENO"; then :
5349   # Broken: success on invalid input.
5350 continue
5351 else
5352   # Passes both tests.
5353 ac_preproc_ok=:
5354 break
5355 fi
5356 rm -f conftest.err conftest.$ac_ext
5357
5358 done
5359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5360 rm -f conftest.err conftest.$ac_ext
5361 if $ac_preproc_ok; then :
5362   break
5363 fi
5364
5365     done
5366     ac_cv_prog_CPP=$CPP
5367
5368 fi
5369   CPP=$ac_cv_prog_CPP
5370 else
5371   ac_cv_prog_CPP=$CPP
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5374 $as_echo "$CPP" >&6; }
5375 ac_preproc_ok=false
5376 for ac_c_preproc_warn_flag in '' yes
5377 do
5378   # Use a header file that comes with gcc, so configuring glibc
5379   # with a fresh cross-compiler works.
5380   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381   # <limits.h> exists even on freestanding compilers.
5382   # On the NeXT, cc -E runs the code through the compiler's parser,
5383   # not just through cpp. "Syntax error" is here to catch this case.
5384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h.  */
5386 #ifdef __STDC__
5387 # include <limits.h>
5388 #else
5389 # include <assert.h>
5390 #endif
5391                      Syntax error
5392 _ACEOF
5393 if ac_fn_c_try_cpp "$LINENO"; then :
5394
5395 else
5396   # Broken: fails on valid input.
5397 continue
5398 fi
5399 rm -f conftest.err conftest.$ac_ext
5400
5401   # OK, works on sane cases.  Now check whether nonexistent headers
5402   # can be detected and how.
5403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h.  */
5405 #include <ac_nonexistent.h>
5406 _ACEOF
5407 if ac_fn_c_try_cpp "$LINENO"; then :
5408   # Broken: success on invalid input.
5409 continue
5410 else
5411   # Passes both tests.
5412 ac_preproc_ok=:
5413 break
5414 fi
5415 rm -f conftest.err conftest.$ac_ext
5416
5417 done
5418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5419 rm -f conftest.err conftest.$ac_ext
5420 if $ac_preproc_ok; then :
5421
5422 else
5423   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5425 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5426 See \`config.log' for more details." "$LINENO" 5; }
5427 fi
5428
5429 ac_ext=c
5430 ac_cpp='$CPP $CPPFLAGS'
5431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5436 $as_echo_n "checking for inline... " >&6; }
5437 if test "${ac_cv_c_inline+set}" = set; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   ac_cv_c_inline=no
5441 for ac_kw in inline __inline__ __inline; do
5442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h.  */
5444 #ifndef __cplusplus
5445 typedef int foo_t;
5446 static $ac_kw foo_t static_foo () {return 0; }
5447 $ac_kw foo_t foo () {return 0; }
5448 #endif
5449
5450 _ACEOF
5451 if ac_fn_c_try_compile "$LINENO"; then :
5452   ac_cv_c_inline=$ac_kw
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455   test "$ac_cv_c_inline" != no && break
5456 done
5457
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5460 $as_echo "$ac_cv_c_inline" >&6; }
5461
5462 case $ac_cv_c_inline in
5463   inline | yes) ;;
5464   *)
5465     case $ac_cv_c_inline in
5466       no) ac_val=;;
5467       *) ac_val=$ac_cv_c_inline;;
5468     esac
5469     cat >>confdefs.h <<_ACEOF
5470 #ifndef __cplusplus
5471 #define inline $ac_val
5472 #endif
5473 _ACEOF
5474     ;;
5475 esac
5476
5477
5478 # sizeof(char) is 1 by definition.
5479 # The cast to long int works around a bug in the HP C Compiler
5480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5482 # This bug is HP SR number 8606223364.
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5484 $as_echo_n "checking size of void *... " >&6; }
5485 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5489
5490 else
5491   if test "$ac_cv_type_void_p" = yes; then
5492      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5494 { as_fn_set_status 77
5495 as_fn_error "cannot compute sizeof (void *)
5496 See \`config.log' for more details." "$LINENO" 5; }; }
5497    else
5498      ac_cv_sizeof_void_p=0
5499    fi
5500 fi
5501
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5504 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5505
5506
5507
5508 cat >>confdefs.h <<_ACEOF
5509 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5510 _ACEOF
5511
5512
5513 # The cast to long int works around a bug in the HP C Compiler
5514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5516 # This bug is HP SR number 8606223364.
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5518 $as_echo_n "checking size of short... " >&6; }
5519 if test "${ac_cv_sizeof_short+set}" = set; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5523
5524 else
5525   if test "$ac_cv_type_short" = yes; then
5526      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5528 { as_fn_set_status 77
5529 as_fn_error "cannot compute sizeof (short)
5530 See \`config.log' for more details." "$LINENO" 5; }; }
5531    else
5532      ac_cv_sizeof_short=0
5533    fi
5534 fi
5535
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5538 $as_echo "$ac_cv_sizeof_short" >&6; }
5539
5540
5541
5542 cat >>confdefs.h <<_ACEOF
5543 #define SIZEOF_SHORT $ac_cv_sizeof_short
5544 _ACEOF
5545
5546
5547 # The cast to long int works around a bug in the HP C Compiler
5548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5550 # This bug is HP SR number 8606223364.
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5552 $as_echo_n "checking size of int... " >&6; }
5553 if test "${ac_cv_sizeof_int+set}" = set; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5557
5558 else
5559   if test "$ac_cv_type_int" = yes; then
5560      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5562 { as_fn_set_status 77
5563 as_fn_error "cannot compute sizeof (int)
5564 See \`config.log' for more details." "$LINENO" 5; }; }
5565    else
5566      ac_cv_sizeof_int=0
5567    fi
5568 fi
5569
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5572 $as_echo "$ac_cv_sizeof_int" >&6; }
5573
5574
5575
5576 cat >>confdefs.h <<_ACEOF
5577 #define SIZEOF_INT $ac_cv_sizeof_int
5578 _ACEOF
5579
5580
5581 # The cast to long int works around a bug in the HP C Compiler
5582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5584 # This bug is HP SR number 8606223364.
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5586 $as_echo_n "checking size of long... " >&6; }
5587 if test "${ac_cv_sizeof_long+set}" = set; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5591
5592 else
5593   if test "$ac_cv_type_long" = yes; then
5594      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5596 { as_fn_set_status 77
5597 as_fn_error "cannot compute sizeof (long)
5598 See \`config.log' for more details." "$LINENO" 5; }; }
5599    else
5600      ac_cv_sizeof_long=0
5601    fi
5602 fi
5603
5604 fi
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5606 $as_echo "$ac_cv_sizeof_long" >&6; }
5607
5608
5609
5610 cat >>confdefs.h <<_ACEOF
5611 #define SIZEOF_LONG $ac_cv_sizeof_long
5612 _ACEOF
5613
5614
5615 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5616 if test "x$ac_cv_type_long_long" = x""yes; then :
5617
5618 cat >>confdefs.h <<_ACEOF
5619 #define HAVE_LONG_LONG 1
5620 _ACEOF
5621
5622 # The cast to long int works around a bug in the HP C Compiler
5623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5625 # This bug is HP SR number 8606223364.
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5627 $as_echo_n "checking size of long long... " >&6; }
5628 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5632
5633 else
5634   if test "$ac_cv_type_long_long" = yes; then
5635      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5637 { as_fn_set_status 77
5638 as_fn_error "cannot compute sizeof (long long)
5639 See \`config.log' for more details." "$LINENO" 5; }; }
5640    else
5641      ac_cv_sizeof_long_long=0
5642    fi
5643 fi
5644
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5647 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5648
5649
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5653 _ACEOF
5654
5655
5656 fi
5657
5658 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5659 if test "x$ac_cv_type___int64" = x""yes; then :
5660
5661 cat >>confdefs.h <<_ACEOF
5662 #define HAVE___INT64 1
5663 _ACEOF
5664
5665 # The cast to long int works around a bug in the HP C Compiler
5666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5668 # This bug is HP SR number 8606223364.
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5670 $as_echo_n "checking size of __int64... " >&6; }
5671 if test "${ac_cv_sizeof___int64+set}" = set; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5675
5676 else
5677   if test "$ac_cv_type___int64" = yes; then
5678      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5680 { as_fn_set_status 77
5681 as_fn_error "cannot compute sizeof (__int64)
5682 See \`config.log' for more details." "$LINENO" 5; }; }
5683    else
5684      ac_cv_sizeof___int64=0
5685    fi
5686 fi
5687
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5690 $as_echo "$ac_cv_sizeof___int64" >&6; }
5691
5692
5693
5694 cat >>confdefs.h <<_ACEOF
5695 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5696 _ACEOF
5697
5698
5699 fi
5700
5701 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5702 case $ac_cv_c_int8_t in #(
5703   no|yes) ;; #(
5704   *)
5705
5706 cat >>confdefs.h <<_ACEOF
5707 #define int8_t $ac_cv_c_int8_t
5708 _ACEOF
5709 ;;
5710 esac
5711
5712 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5713 case $ac_cv_c_int16_t in #(
5714   no|yes) ;; #(
5715   *)
5716
5717 cat >>confdefs.h <<_ACEOF
5718 #define int16_t $ac_cv_c_int16_t
5719 _ACEOF
5720 ;;
5721 esac
5722
5723 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5724 case $ac_cv_c_int32_t in #(
5725   no|yes) ;; #(
5726   *)
5727
5728 cat >>confdefs.h <<_ACEOF
5729 #define int32_t $ac_cv_c_int32_t
5730 _ACEOF
5731 ;;
5732 esac
5733
5734 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5735 case $ac_cv_c_int64_t in #(
5736   no|yes) ;; #(
5737   *)
5738
5739 cat >>confdefs.h <<_ACEOF
5740 #define int64_t $ac_cv_c_int64_t
5741 _ACEOF
5742 ;;
5743 esac
5744
5745
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5747 $as_echo_n "checking for long long int... " >&6; }
5748 if test "${ac_cv_type_long_long_int+set}" = set; then :
5749   $as_echo_n "(cached) " >&6
5750 else
5751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h.  */
5753
5754   /* For now, do not test the preprocessor; as of 2007 there are too many
5755          implementations with broken preprocessors.  Perhaps this can
5756          be revisited in 2012.  In the meantime, code should not expect
5757          #if to work with literals wider than 32 bits.  */
5758       /* Test literals.  */
5759       long long int ll = 9223372036854775807ll;
5760       long long int nll = -9223372036854775807LL;
5761       unsigned long long int ull = 18446744073709551615ULL;
5762       /* Test constant expressions.   */
5763       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5764                      ? 1 : -1)];
5765       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5766                      ? 1 : -1)];
5767       int i = 63;
5768 int
5769 main ()
5770 {
5771 /* Test availability of runtime routines for shift and division.  */
5772       long long int llmax = 9223372036854775807ll;
5773       unsigned long long int ullmax = 18446744073709551615ull;
5774       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5775               | (llmax / ll) | (llmax % ll)
5776               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5777               | (ullmax / ull) | (ullmax % ull));
5778   ;
5779   return 0;
5780 }
5781
5782 _ACEOF
5783 if ac_fn_c_try_link "$LINENO"; then :
5784                         if test "$cross_compiling" = yes; then :
5785   ac_cv_type_long_long_int=yes
5786 else
5787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h.  */
5789 #include <limits.h>
5790                #ifndef LLONG_MAX
5791                # define HALF \
5792                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5793                # define LLONG_MAX (HALF - 1 + HALF)
5794                #endif
5795 int
5796 main ()
5797 {
5798 long long int n = 1;
5799                int i;
5800                for (i = 0; ; i++)
5801                  {
5802                    long long int m = n << i;
5803                    if (m >> i != n)
5804                      return 1;
5805                    if (LLONG_MAX / 2 < m)
5806                      break;
5807                  }
5808                return 0;
5809   ;
5810   return 0;
5811 }
5812 _ACEOF
5813 if ac_fn_c_try_run "$LINENO"; then :
5814   ac_cv_type_long_long_int=yes
5815 else
5816   ac_cv_type_long_long_int=no
5817 fi
5818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5819   conftest.$ac_objext conftest.beam conftest.$ac_ext
5820 fi
5821
5822 else
5823   ac_cv_type_long_long_int=no
5824 fi
5825 rm -f core conftest.err conftest.$ac_objext \
5826     conftest$ac_exeext conftest.$ac_ext
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5829 $as_echo "$ac_cv_type_long_long_int" >&6; }
5830   if test $ac_cv_type_long_long_int = yes; then
5831
5832 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5833
5834   fi
5835
5836
5837
5838   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5839 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5840
5841 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5842
5843 else
5844   test $ac_cv_type_long_long_int = yes \
5845        && ac_type='long long int' \
5846        || ac_type='long int'
5847
5848 cat >>confdefs.h <<_ACEOF
5849 #define intmax_t $ac_type
5850 _ACEOF
5851
5852 fi
5853
5854
5855
5856   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5857 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5858
5859 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5860
5861 else
5862   for ac_type in 'int' 'long int' 'long long int'; do
5863        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h.  */
5865 $ac_includes_default
5866 int
5867 main ()
5868 {
5869 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5870 test_array [0] = 0
5871
5872   ;
5873   return 0;
5874 }
5875 _ACEOF
5876 if ac_fn_c_try_compile "$LINENO"; then :
5877
5878 cat >>confdefs.h <<_ACEOF
5879 #define intptr_t $ac_type
5880 _ACEOF
5881
5882           ac_type=
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885        test -z "$ac_type" && break
5886      done
5887 fi
5888
5889
5890 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5891 case $ac_cv_c_uint8_t in #(
5892   no|yes) ;; #(
5893   *)
5894
5895 $as_echo "#define _UINT8_T 1" >>confdefs.h
5896
5897
5898 cat >>confdefs.h <<_ACEOF
5899 #define uint8_t $ac_cv_c_uint8_t
5900 _ACEOF
5901 ;;
5902   esac
5903
5904 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5905 case $ac_cv_c_uint16_t in #(
5906   no|yes) ;; #(
5907   *)
5908
5909
5910 cat >>confdefs.h <<_ACEOF
5911 #define uint16_t $ac_cv_c_uint16_t
5912 _ACEOF
5913 ;;
5914   esac
5915
5916 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5917 case $ac_cv_c_uint32_t in #(
5918   no|yes) ;; #(
5919   *)
5920
5921 $as_echo "#define _UINT32_T 1" >>confdefs.h
5922
5923
5924 cat >>confdefs.h <<_ACEOF
5925 #define uint32_t $ac_cv_c_uint32_t
5926 _ACEOF
5927 ;;
5928   esac
5929
5930 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5931 case $ac_cv_c_uint64_t in #(
5932   no|yes) ;; #(
5933   *)
5934
5935 $as_echo "#define _UINT64_T 1" >>confdefs.h
5936
5937
5938 cat >>confdefs.h <<_ACEOF
5939 #define uint64_t $ac_cv_c_uint64_t
5940 _ACEOF
5941 ;;
5942   esac
5943
5944
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5946 $as_echo_n "checking for unsigned long long int... " >&6; }
5947 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h.  */
5952
5953   /* For now, do not test the preprocessor; as of 2007 there are too many
5954          implementations with broken preprocessors.  Perhaps this can
5955          be revisited in 2012.  In the meantime, code should not expect
5956          #if to work with literals wider than 32 bits.  */
5957       /* Test literals.  */
5958       long long int ll = 9223372036854775807ll;
5959       long long int nll = -9223372036854775807LL;
5960       unsigned long long int ull = 18446744073709551615ULL;
5961       /* Test constant expressions.   */
5962       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5963                      ? 1 : -1)];
5964       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5965                      ? 1 : -1)];
5966       int i = 63;
5967 int
5968 main ()
5969 {
5970 /* Test availability of runtime routines for shift and division.  */
5971       long long int llmax = 9223372036854775807ll;
5972       unsigned long long int ullmax = 18446744073709551615ull;
5973       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5974               | (llmax / ll) | (llmax % ll)
5975               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5976               | (ullmax / ull) | (ullmax % ull));
5977   ;
5978   return 0;
5979 }
5980
5981 _ACEOF
5982 if ac_fn_c_try_link "$LINENO"; then :
5983   ac_cv_type_unsigned_long_long_int=yes
5984 else
5985   ac_cv_type_unsigned_long_long_int=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext \
5988     conftest$ac_exeext conftest.$ac_ext
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5991 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5992   if test $ac_cv_type_unsigned_long_long_int = yes; then
5993
5994 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5995
5996   fi
5997
5998
5999
6000   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6001 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6002
6003 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6004
6005 else
6006   test $ac_cv_type_unsigned_long_long_int = yes \
6007        && ac_type='unsigned long long int' \
6008        || ac_type='unsigned long int'
6009
6010 cat >>confdefs.h <<_ACEOF
6011 #define uintmax_t $ac_type
6012 _ACEOF
6013
6014 fi
6015
6016
6017
6018   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6019 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6020
6021 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6022
6023 else
6024   for ac_type in 'unsigned int' 'unsigned long int' \
6025         'unsigned long long int'; do
6026        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h.  */
6028 $ac_includes_default
6029 int
6030 main ()
6031 {
6032 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6033 test_array [0] = 0
6034
6035   ;
6036   return 0;
6037 }
6038 _ACEOF
6039 if ac_fn_c_try_compile "$LINENO"; then :
6040
6041 cat >>confdefs.h <<_ACEOF
6042 #define uintptr_t $ac_type
6043 _ACEOF
6044
6045           ac_type=
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048        test -z "$ac_type" && break
6049      done
6050 fi
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 # ---------------------
6067 # Warnings and checking
6068 # ---------------------
6069
6070 # Check $CC warning features (if it's GCC).
6071 # We want to use -pedantic, but we don't want warnings about
6072 # * 'long long'
6073 # * variadic macros
6074 # * overlong strings
6075 # So, we only use -pedantic if we can disable those warnings.
6076
6077 loose_warn=
6078 save_CFLAGS="$CFLAGS"
6079 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6080   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6081
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6083 $as_echo_n "checking whether $CC supports $option... " >&6; }
6084 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   CFLAGS="$option"
6088     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h.  */
6090
6091 int
6092 main ()
6093 {
6094
6095   ;
6096   return 0;
6097 }
6098 _ACEOF
6099 if ac_fn_c_try_compile "$LINENO"; then :
6100   eval "$as_acx_Woption=yes"
6101 else
6102   eval "$as_acx_Woption=no"
6103 fi
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105
6106 fi
6107 eval ac_res=\$$as_acx_Woption
6108                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6109 $as_echo "$ac_res" >&6; }
6110   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6111   loose_warn="$loose_warn${loose_warn:+ }$option"
6112 fi
6113   done
6114 CFLAGS="$save_CFLAGS"
6115
6116 c_loose_warn=
6117 save_CFLAGS="$CFLAGS"
6118 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6119   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6120
6121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6122 $as_echo_n "checking whether $CC supports $option... " >&6; }
6123 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   CFLAGS="$option"
6127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h.  */
6129
6130 int
6131 main ()
6132 {
6133
6134   ;
6135   return 0;
6136 }
6137 _ACEOF
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139   eval "$as_acx_Woption=yes"
6140 else
6141   eval "$as_acx_Woption=no"
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144
6145 fi
6146 eval ac_res=\$$as_acx_Woption
6147                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6148 $as_echo "$ac_res" >&6; }
6149   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6150   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6151 fi
6152   done
6153 CFLAGS="$save_CFLAGS"
6154
6155 strict_warn=
6156 save_CFLAGS="$CFLAGS"
6157 for option in -Wmissing-format-attribute; do
6158   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6159
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6161 $as_echo_n "checking whether $CC supports $option... " >&6; }
6162 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   CFLAGS="$option"
6166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h.  */
6168
6169 int
6170 main ()
6171 {
6172
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178   eval "$as_acx_Woption=yes"
6179 else
6180   eval "$as_acx_Woption=no"
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183
6184 fi
6185 eval ac_res=\$$as_acx_Woption
6186                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6187 $as_echo "$ac_res" >&6; }
6188   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6189   strict_warn="$strict_warn${strict_warn:+ }$option"
6190 fi
6191   done
6192 CFLAGS="$save_CFLAGS"
6193
6194 c_strict_warn=
6195 save_CFLAGS="$CFLAGS"
6196 for option in -Wold-style-definition -Wc++-compat; do
6197   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6198
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6200 $as_echo_n "checking whether $CC supports $option... " >&6; }
6201 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   CFLAGS="$option"
6205     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h.  */
6207
6208 int
6209 main ()
6210 {
6211
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217   eval "$as_acx_Woption=yes"
6218 else
6219   eval "$as_acx_Woption=no"
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222
6223 fi
6224 eval ac_res=\$$as_acx_Woption
6225                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6226 $as_echo "$ac_res" >&6; }
6227   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6228   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6229 fi
6230   done
6231 CFLAGS="$save_CFLAGS"
6232
6233 if test "$GCC" = yes; then :
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6235 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6236 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6237   $as_echo_n "(cached) " >&6
6238 else
6239   save_CFLAGS="$CFLAGS"
6240 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h.  */
6243
6244 int
6245 main ()
6246 {
6247
6248   ;
6249   return 0;
6250 }
6251 _ACEOF
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6254 else
6255   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 CFLAGS="$save_CFLAGS"
6259 fi
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6261 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6262 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6263   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6264 fi
6265
6266 fi
6267
6268 # Check whether --enable-werror-always was given.
6269 if test "${enable_werror_always+set}" = set; then :
6270   enableval=$enable_werror_always;
6271 else
6272   enable_werror_always=no
6273 fi
6274
6275 if test $enable_werror_always = yes; then :
6276   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6277 fi
6278
6279
6280
6281 # The above macros do nothing if the compiler is not GCC.  However, the
6282 # Makefile has more goo to add other flags, so these variables are used
6283 # to enable warnings only for GCC.
6284 warn_cflags=
6285 warn_cxxflags=
6286 if test "x$GCC" = "xyes"; then
6287   warn_cflags='$(GCC_WARN_CFLAGS)'
6288   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6289 fi
6290
6291
6292
6293 # Enable expensive internal checks
6294 is_release=
6295 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6296   is_release=yes
6297 fi
6298
6299 # Check whether --enable-checking was given.
6300 if test "${enable_checking+set}" = set; then :
6301   enableval=$enable_checking; ac_checking_flags="${enableval}"
6302 else
6303
6304 # Determine the default checks.
6305 if test x$is_release = x ; then
6306   ac_checking_flags=yes
6307 else
6308   ac_checking_flags=release
6309 fi
6310 fi
6311
6312 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6313 for check in release $ac_checking_flags
6314 do
6315         case $check in
6316         # these set all the flags to specific states
6317         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6318                         ac_fold_checking= ; ac_gc_checking=1 ;
6319                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6320                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6321                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6322                         ac_types_checking=1 ;;
6323         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6324                         ac_fold_checking= ; ac_gc_checking= ;
6325                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6326                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6327                         ac_tree_checking= ; ac_valgrind_checking= ;
6328                         ac_types_checking= ;;
6329         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6330                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6331                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6332                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6333                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6334                         ac_types_checking=1 ;;
6335         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6336                         ac_fold_checking= ; ac_gc_checking= ;
6337                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6338                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6339                         ac_tree_checking= ; ac_valgrind_checking= ;
6340                         ac_types_checking= ;;
6341         # these enable particular checks
6342         assert)         ac_assert_checking=1 ;;
6343         df)             ac_df_checking=1 ;;
6344         fold)           ac_fold_checking=1 ;;
6345         gc)             ac_gc_checking=1 ;;
6346         gcac)           ac_gc_always_collect=1 ;;
6347         gimple)         ac_gimple_checking=1 ;;
6348         misc)           ac_checking=1 ;;
6349         rtl)            ac_rtl_checking=1 ;;
6350         rtlflag)        ac_rtlflag_checking=1 ;;
6351         runtime)        ac_runtime_checking=1 ;;
6352         tree)           ac_tree_checking=1 ;;
6353         types)          ac_types_checking=1 ;;
6354         valgrind)       ac_valgrind_checking=1 ;;
6355         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6356         esac
6357 done
6358 IFS="$ac_save_IFS"
6359
6360 nocommon_flag=""
6361 if test x$ac_checking != x ; then
6362
6363 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6364
6365   nocommon_flag=-fno-common
6366 fi
6367
6368 if test x$ac_df_checking != x ; then
6369
6370 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6371
6372 fi
6373 if test x$ac_assert_checking != x ; then
6374
6375 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6376
6377 fi
6378 if test x$ac_gimple_checking != x ; then
6379
6380 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6381
6382 fi
6383
6384 if test x$ac_runtime_checking != x ; then
6385
6386 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6387
6388 fi
6389 if test x$ac_tree_checking != x ; then
6390
6391 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6392
6393   TREEBROWSER=tree-browser.o
6394 fi
6395 if test x$ac_types_checking != x ; then
6396
6397 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6398
6399 fi
6400
6401 if test x$ac_rtl_checking != x ; then
6402
6403 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6404
6405 fi
6406 if test x$ac_rtlflag_checking != x ; then
6407
6408 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6409
6410 fi
6411 if test x$ac_gc_checking != x ; then
6412
6413 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6414
6415 fi
6416 if test x$ac_gc_always_collect != x ; then
6417
6418 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6419
6420 fi
6421 if test x$ac_fold_checking != x ; then
6422
6423 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6424
6425 fi
6426 valgrind_path_defines=
6427 valgrind_command=
6428
6429 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6430 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6431   have_valgrind_h=yes
6432 else
6433   have_valgrind_h=no
6434 fi
6435
6436
6437
6438 if test x$ac_valgrind_checking != x ; then
6439   # It is certainly possible that there's valgrind but no valgrind.h.
6440   # GCC relies on making annotations so we must have both.
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6442 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h.  */
6445 #include <valgrind/memcheck.h>
6446 #ifndef VALGRIND_DISCARD
6447 #error VALGRIND_DISCARD not defined
6448 #endif
6449 _ACEOF
6450 if ac_fn_c_try_cpp "$LINENO"; then :
6451   gcc_cv_header_valgrind_memcheck_h=yes
6452 else
6453   gcc_cv_header_valgrind_memcheck_h=no
6454 fi
6455 rm -f conftest.err conftest.$ac_ext
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6457 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6459 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h.  */
6462 #include <memcheck.h>
6463 #ifndef VALGRIND_DISCARD
6464 #error VALGRIND_DISCARD not defined
6465 #endif
6466 _ACEOF
6467 if ac_fn_c_try_cpp "$LINENO"; then :
6468   gcc_cv_header_memcheck_h=yes
6469 else
6470   gcc_cv_header_memcheck_h=no
6471 fi
6472 rm -f conftest.err conftest.$ac_ext
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6474 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6475
6476 # Prepare PATH_SEPARATOR.
6477 # The user is always right.
6478 if test "${PATH_SEPARATOR+set}" != set; then
6479   echo "#! /bin/sh" >conf$$.sh
6480   echo  "exit 0"   >>conf$$.sh
6481   chmod +x conf$$.sh
6482   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6483     PATH_SEPARATOR=';'
6484   else
6485     PATH_SEPARATOR=:
6486   fi
6487   rm -f conf$$.sh
6488 fi
6489
6490 # Find out how to test for executable files. Don't use a zero-byte file,
6491 # as systems may use methods other than mode bits to determine executability.
6492 cat >conf$$.file <<_ASEOF
6493 #! /bin/sh
6494 exit 0
6495 _ASEOF
6496 chmod +x conf$$.file
6497 if test -x conf$$.file >/dev/null 2>&1; then
6498   ac_executable_p="test -x"
6499 else
6500   ac_executable_p="test -f"
6501 fi
6502 rm -f conf$$.file
6503
6504 # Extract the first word of "valgrind", so it can be a program name with args.
6505 set dummy valgrind; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6509   $as_echo_n "(cached) " >&6
6510 else
6511   case "$valgrind_path" in
6512   [\\/]* | ?:[\\/]*)
6513     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6514     ;;
6515   *)
6516     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6517     for ac_dir in $PATH; do
6518       IFS="$ac_save_IFS"
6519       test -z "$ac_dir" && ac_dir=.
6520       for ac_exec_ext in '' $ac_executable_extensions; do
6521         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6522           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6523             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6524             break 2
6525           fi
6526         fi
6527       done
6528     done
6529     IFS="$ac_save_IFS"
6530     ;;
6531 esac
6532 fi
6533 valgrind_path="$ac_cv_path_valgrind_path"
6534 if test -n "$valgrind_path"; then
6535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6536 $as_echo "$valgrind_path" >&6; }
6537 else
6538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6540 fi
6541
6542   if test "x$valgrind_path" = "x" \
6543     || (test $have_valgrind_h = no \
6544         && test $gcc_cv_header_memcheck_h = no \
6545         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6546         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6547   fi
6548   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6549   valgrind_command="$valgrind_path -q"
6550
6551 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6552
6553   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6554
6555 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6556
6557   fi
6558   if test $gcc_cv_header_memcheck_h = yes; then
6559
6560 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6561
6562   fi
6563 fi
6564
6565
6566
6567 # Enable code coverage collection
6568 # Check whether --enable-coverage was given.
6569 if test "${enable_coverage+set}" = set; then :
6570   enableval=$enable_coverage; case "${enableval}" in
6571   yes|noopt)
6572     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6573     ;;
6574   opt)
6575     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6576     ;;
6577   no)
6578     # a.k.a. --disable-coverage
6579     coverage_flags=""
6580     ;;
6581   *)
6582     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6583     ;;
6584 esac
6585 else
6586   coverage_flags=""
6587 fi
6588
6589
6590
6591 # Check whether --enable-gather-detailed-mem-stats was given.
6592 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6593   enableval=$enable_gather_detailed_mem_stats;
6594 else
6595   enable_gather_detailed_mem_stats=no
6596 fi
6597
6598 if test x$enable_gather_detailed_mem_stats = xyes ; then
6599
6600 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6601
6602 fi
6603
6604 # -------------------------------
6605 # Miscenalleous configure options
6606 # -------------------------------
6607
6608 # See if we are building gcc with C++.
6609 # Check whether --enable-build-with-cxx was given.
6610 if test "${enable_build_with_cxx+set}" = set; then :
6611   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6612 else
6613   ENABLE_BUILD_WITH_CXX=no
6614 fi
6615
6616
6617
6618 # With stabs
6619
6620 # Check whether --with-stabs was given.
6621 if test "${with_stabs+set}" = set; then :
6622   withval=$with_stabs; stabs="$with_stabs"
6623 else
6624   stabs=no
6625 fi
6626
6627
6628 # Determine whether or not multilibs are enabled.
6629 # Check whether --enable-multilib was given.
6630 if test "${enable_multilib+set}" = set; then :
6631   enableval=$enable_multilib;
6632 else
6633   enable_multilib=yes
6634 fi
6635
6636
6637
6638 # Enable __cxa_atexit for C++.
6639 # Check whether --enable-__cxa_atexit was given.
6640 if test "${enable___cxa_atexit+set}" = set; then :
6641   enableval=$enable___cxa_atexit;
6642 fi
6643
6644
6645 # Enable C extension for decimal float if target supports it.
6646 # Check whether --enable-decimal-float was given.
6647 if test "${enable_decimal_float+set}" = set; then :
6648   enableval=$enable_decimal_float;
6649   case $enable_decimal_float in
6650     yes | no | bid | dpd) ;;
6651     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6652 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6653   esac
6654
6655 else
6656
6657   case $target in
6658     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6659       enable_decimal_float=yes
6660       ;;
6661     *)
6662       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6663 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6664       enable_decimal_float=no
6665       ;;
6666   esac
6667
6668 fi
6669
6670
6671 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6672
6673 cat >>confdefs.h <<_ACEOF
6674 #define ENABLE_DECIMAL_FLOAT $dfp
6675 _ACEOF
6676
6677
6678 # x86's use BID format instead of DPD
6679 case x$enable_decimal_float in
6680   xyes)
6681     case $target in
6682       i?86*-*-linux* | x86_64*-*-linux*)
6683         enable_decimal_float=bid
6684         ;;
6685       *)
6686         enable_decimal_float=dpd
6687         ;;
6688     esac
6689     ;;
6690   xno)
6691     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6692     # dependency on libdecnumber.
6693     enable_decimal_float=dpd
6694     ;;
6695 esac
6696
6697
6698 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6699
6700 cat >>confdefs.h <<_ACEOF
6701 #define ENABLE_DECIMAL_BID_FORMAT $bid
6702 _ACEOF
6703
6704
6705 # Enable C extension for fixed-point arithmetic.
6706 # Check whether --enable-fixed-point was given.
6707 if test "${enable_fixed_point+set}" = set; then :
6708   enableval=$enable_fixed_point;
6709
6710 else
6711
6712   case $target in
6713     mips*-*-*)
6714       case $host in
6715         mips*-sgi-irix*)
6716           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6717 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6718           enable_fixed_point=no
6719           ;;
6720         *)
6721           enable_fixed_point=yes
6722           ;;
6723       esac
6724       ;;
6725     *)
6726       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6727 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6728       enable_fixed_point=no
6729       ;;
6730   esac
6731
6732 fi
6733
6734
6735
6736 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6737
6738 cat >>confdefs.h <<_ACEOF
6739 #define ENABLE_FIXED_POINT $fixedpoint
6740 _ACEOF
6741
6742
6743 # Enable threads
6744 # Pass with no value to take the default
6745 # Pass with a value to specify a thread package
6746 # Check whether --enable-threads was given.
6747 if test "${enable_threads+set}" = set; then :
6748   enableval=$enable_threads;
6749 else
6750   enable_threads=''
6751 fi
6752
6753
6754 # Check whether --enable-tls was given.
6755 if test "${enable_tls+set}" = set; then :
6756   enableval=$enable_tls;
6757   case $enable_tls in
6758     yes | no) ;;
6759     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6760 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6761   esac
6762
6763 else
6764   enable_tls=''
6765 fi
6766
6767
6768 # Check whether --enable-objc-gc was given.
6769 if test "${enable_objc_gc+set}" = set; then :
6770   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6771         objc_boehm_gc=''
6772 else
6773         objc_boehm_gc=1
6774 fi
6775 else
6776   objc_boehm_gc=''
6777 fi
6778
6779
6780
6781 # Check whether --with-dwarf2 was given.
6782 if test "${with_dwarf2+set}" = set; then :
6783   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6784 else
6785   dwarf2=no
6786 fi
6787
6788
6789 # Check whether --enable-shared was given.
6790 if test "${enable_shared+set}" = set; then :
6791   enableval=$enable_shared;
6792   case $enable_shared in
6793   yes | no) ;;
6794   *)
6795     enable_shared=no
6796     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6797     for pkg in $enableval; do
6798       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6799         enable_shared=yes
6800       fi
6801     done
6802     IFS="$ac_save_ifs"
6803     ;;
6804   esac
6805
6806 else
6807   enable_shared=yes
6808 fi
6809
6810
6811
6812
6813 # Check whether --with-build-sysroot was given.
6814 if test "${with_build_sysroot+set}" = set; then :
6815   withval=$with_build_sysroot;
6816 fi
6817
6818
6819
6820 # Check whether --with-sysroot was given.
6821 if test "${with_sysroot+set}" = set; then :
6822   withval=$with_sysroot;
6823  case ${with_sysroot} in
6824  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6825  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6826  esac
6827
6828  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6829  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6830
6831  if test "x$prefix" = xNONE; then
6832   test_prefix=/usr/local
6833  else
6834   test_prefix=$prefix
6835  fi
6836  if test "x$exec_prefix" = xNONE; then
6837   test_exec_prefix=$test_prefix
6838  else
6839   test_exec_prefix=$exec_prefix
6840  fi
6841  case ${TARGET_SYSTEM_ROOT} in
6842  "${test_prefix}"|"${test_prefix}/"*|\
6843  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6844  '${prefix}'|'${prefix}/'*|\
6845  '${exec_prefix}'|'${exec_prefix}/'*)
6846    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6847    TARGET_SYSTEM_ROOT_DEFINE="$t"
6848    ;;
6849  esac
6850
6851 else
6852
6853  TARGET_SYSTEM_ROOT=
6854  TARGET_SYSTEM_ROOT_DEFINE=
6855  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6856
6857 fi
6858
6859
6860
6861
6862
6863
6864 # Check whether --with-specs was given.
6865 if test "${with_specs+set}" = set; then :
6866   withval=$with_specs; CONFIGURE_SPECS=$withval
6867 else
6868   CONFIGURE_SPECS=
6869
6870 fi
6871
6872
6873
6874 # Build with intermodule optimisations
6875 # Check whether --enable-intermodule was given.
6876 if test "${enable_intermodule+set}" = set; then :
6877   enableval=$enable_intermodule; case ${enable_intermodule} in
6878   yes) onestep="-onestep";;
6879   *) onestep="";;
6880 esac
6881 else
6882   onestep=""
6883 fi
6884
6885
6886
6887
6888
6889 # Check whether --with-pkgversion was given.
6890 if test "${with_pkgversion+set}" = set; then :
6891   withval=$with_pkgversion; case "$withval" in
6892       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6893       no)  PKGVERSION= ;;
6894       *)   PKGVERSION="($withval) " ;;
6895      esac
6896 else
6897   PKGVERSION="(GCC) "
6898
6899 fi
6900
6901
6902
6903
6904
6905 # Check whether --with-bugurl was given.
6906 if test "${with_bugurl+set}" = set; then :
6907   withval=$with_bugurl; case "$withval" in
6908       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6909       no)  BUGURL=
6910            ;;
6911       *)   BUGURL="$withval"
6912            ;;
6913      esac
6914 else
6915   BUGURL="http://gcc.gnu.org/bugs.html"
6916
6917 fi
6918
6919   case ${BUGURL} in
6920   "")
6921     REPORT_BUGS_TO=
6922     REPORT_BUGS_TEXI=
6923     ;;
6924   *)
6925     REPORT_BUGS_TO="<$BUGURL>"
6926     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6927     ;;
6928   esac;
6929
6930
6931
6932
6933 # Sanity check enable_languages in case someone does not run the toplevel
6934 # configure # script.
6935 # Check whether --enable-languages was given.
6936 if test "${enable_languages+set}" = set; then :
6937   enableval=$enable_languages; case ,${enable_languages}, in
6938        ,,|,yes,)
6939                 # go safe -- we cannot be much sure without the toplevel
6940                 # configure's
6941                 # analysis of which target libs are present and usable
6942                 enable_languages=c
6943                 ;;
6944          *,all,*)
6945                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6946                 ;;
6947         *,c,*)
6948                 ;;
6949         *)
6950                 enable_languages=c,${enable_languages}
6951                 ;;
6952 esac
6953 else
6954   enable_languages=c
6955 fi
6956
6957
6958
6959 # Check whether --with-multilib-list was given.
6960 if test "${with_multilib_list+set}" = set; then :
6961   withval=$with_multilib_list; :
6962 else
6963   with_multilib_list=default
6964 fi
6965
6966
6967 # -------------------------
6968 # Checks for other programs
6969 # -------------------------
6970
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6972 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6973 set x ${MAKE-make}
6974 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6975 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   cat >conftest.make <<\_ACEOF
6979 SHELL = /bin/sh
6980 all:
6981         @echo '@@@%%%=$(MAKE)=@@@%%%'
6982 _ACEOF
6983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6984 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6985   *@@@%%%=?*=@@@%%%*)
6986     eval ac_cv_prog_make_${ac_make}_set=yes;;
6987   *)
6988     eval ac_cv_prog_make_${ac_make}_set=no;;
6989 esac
6990 rm -f conftest.make
6991 fi
6992 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6994 $as_echo "yes" >&6; }
6995   SET_MAKE=
6996 else
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999   SET_MAKE="MAKE=${MAKE-make}"
7000 fi
7001
7002
7003 # Find some useful tools
7004 for ac_prog in gawk mawk nawk awk
7005 do
7006   # Extract the first word of "$ac_prog", so it can be a program name with args.
7007 set dummy $ac_prog; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if test "${ac_cv_prog_AWK+set}" = set; then :
7011   $as_echo_n "(cached) " >&6
7012 else
7013   if test -n "$AWK"; then
7014   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021     for ac_exec_ext in '' $ac_executable_extensions; do
7022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023     ac_cv_prog_AWK="$ac_prog"
7024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028   done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 AWK=$ac_cv_prog_AWK
7034 if test -n "$AWK"; then
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7036 $as_echo "$AWK" >&6; }
7037 else
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042
7043   test -n "$AWK" && break
7044 done
7045
7046 # We need awk to create options.c and options.h.
7047 # Bail out if it's missing.
7048 case ${AWK} in
7049   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7050 esac
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7053 $as_echo_n "checking whether ln -s works... " >&6; }
7054 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7055   $as_echo_n "(cached) " >&6
7056 else
7057   rm -f conftestdata_t
7058 echo >conftestdata_f
7059 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7060 then
7061   gcc_cv_prog_LN_S="ln -s"
7062 else
7063   if ln conftestdata_f conftestdata_t 2>/dev/null
7064   then
7065     gcc_cv_prog_LN_S=ln
7066   else
7067     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7068     then
7069       gcc_cv_prog_LN_S="cp -p"
7070     else
7071       gcc_cv_prog_LN_S=cp
7072     fi
7073   fi
7074 fi
7075 rm -f conftestdata_f conftestdata_t
7076
7077 fi
7078 LN_S="$gcc_cv_prog_LN_S"
7079 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7081 $as_echo "yes" >&6; }
7082 else
7083   if test "$gcc_cv_prog_LN_S" = "ln"; then
7084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7085 $as_echo "no, using ln" >&6; }
7086   else
7087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7088 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7089   fi
7090 fi
7091
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7093 $as_echo_n "checking whether ln works... " >&6; }
7094 if test "${acx_cv_prog_LN+set}" = set; then :
7095   $as_echo_n "(cached) " >&6
7096 else
7097   rm -f conftestdata_t
7098 echo >conftestdata_f
7099 if ln conftestdata_f conftestdata_t 2>/dev/null
7100 then
7101   acx_cv_prog_LN=ln
7102 else
7103   acx_cv_prog_LN=no
7104 fi
7105 rm -f conftestdata_f conftestdata_t
7106
7107 fi
7108 if test $acx_cv_prog_LN = no; then
7109   LN="$LN_S"
7110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7111 $as_echo "no, using $LN" >&6; }
7112 else
7113   LN="$acx_cv_prog_LN"
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7115 $as_echo "yes" >&6; }
7116 fi
7117
7118 if test -n "$ac_tool_prefix"; then
7119   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7124   $as_echo_n "(cached) " >&6
7125 else
7126   if test -n "$RANLIB"; then
7127   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134     for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141   done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 RANLIB=$ac_cv_prog_RANLIB
7147 if test -n "$RANLIB"; then
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7149 $as_echo "$RANLIB" >&6; }
7150 else
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155
7156 fi
7157 if test -z "$ac_cv_prog_RANLIB"; then
7158   ac_ct_RANLIB=$RANLIB
7159   # Extract the first word of "ranlib", so it can be a program name with args.
7160 set dummy ranlib; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7164   $as_echo_n "(cached) " >&6
7165 else
7166   if test -n "$ac_ct_RANLIB"; then
7167   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174     for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_prog_ac_ct_RANLIB="ranlib"
7177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181   done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7187 if test -n "$ac_ct_RANLIB"; then
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7189 $as_echo "$ac_ct_RANLIB" >&6; }
7190 else
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195   if test "x$ac_ct_RANLIB" = x; then
7196     RANLIB=":"
7197   else
7198     case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204     RANLIB=$ac_ct_RANLIB
7205   fi
7206 else
7207   RANLIB="$ac_cv_prog_RANLIB"
7208 fi
7209
7210 case "${host}" in
7211 *-*-darwin*)
7212   # By default, the Darwin ranlib will not treat common symbols as
7213   # definitions when  building the archive table of contents.  Other
7214   # ranlibs do that; pass an option to the Darwin ranlib that makes
7215   # it behave similarly.
7216   ranlib_flags="-c"
7217   ;;
7218 *)
7219   ranlib_flags=""
7220 esac
7221
7222
7223 # Find a good install program.  We prefer a C program (faster),
7224 # so one script is as good as another.  But avoid the broken or
7225 # incompatible versions:
7226 # SysV /etc/install, /usr/sbin/install
7227 # SunOS /usr/etc/install
7228 # IRIX /sbin/install
7229 # AIX /bin/install
7230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7232 # ./install, which can be erroneously created by make from ./install.sh.
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7234 $as_echo_n "checking for a BSD compatible install... " >&6; }
7235 if test -z "$INSTALL"; then
7236 if test "${ac_cv_path_install+set}" = set; then :
7237   $as_echo_n "(cached) " >&6
7238 else
7239     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7240   for ac_dir in $PATH; do
7241     # Account for people who put trailing slashes in PATH elements.
7242     case "$ac_dir/" in
7243     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7244     *)
7245       # OSF1 and SCO ODT 3.0 have their own names for install.
7246       for ac_prog in ginstall scoinst install; do
7247         if test -f $ac_dir/$ac_prog; then
7248           if test $ac_prog = install &&
7249             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7250             # AIX install.  It has an incompatible calling convention.
7251             # OSF/1 installbsd also uses dspmsg, but is usable.
7252             :
7253           else
7254             ac_cv_path_install="$ac_dir/$ac_prog -c"
7255             break 2
7256           fi
7257         fi
7258       done
7259       ;;
7260     esac
7261   done
7262   IFS="$ac_save_IFS"
7263
7264 fi
7265   if test "${ac_cv_path_install+set}" = set; then
7266     INSTALL="$ac_cv_path_install"
7267   else
7268     # As a last resort, use the slow shell script.  We don't cache a
7269     # path for INSTALL within a source directory, because that will
7270     # break other packages using the cache if that directory is
7271     # removed, or if the path is relative.
7272     INSTALL="$ac_install_sh"
7273   fi
7274 fi
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7276 $as_echo "$INSTALL" >&6; }
7277
7278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7279 # It thinks the first close brace ends the variable substitution.
7280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7281
7282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7283
7284
7285 # See if cmp has --ignore-initial.
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7287 $as_echo_n "checking for cmp's capabilities... " >&6; }
7288 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7289   $as_echo_n "(cached) " >&6
7290 else
7291    echo abfoo >t1
7292   echo cdfoo >t2
7293   gcc_cv_prog_cmp_skip=slowcompare
7294   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7295     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7296       :
7297     else
7298       gcc_cv_prog_cmp_skip=gnucompare
7299     fi
7300   fi
7301   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7302     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7303       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7304         :
7305       else
7306         gcc_cv_prog_cmp_skip=fastcompare
7307       fi
7308     fi
7309   fi
7310   rm t1 t2
7311
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7314 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7315 make_compare_target=$gcc_cv_prog_cmp_skip
7316
7317
7318
7319 # See if we have the mktemp command.
7320 # Extract the first word of "mktemp", so it can be a program name with args.
7321 set dummy mktemp; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7325   $as_echo_n "(cached) " >&6
7326 else
7327   if test -n "$have_mktemp_command"; then
7328   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335     for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_prog_have_mktemp_command="yes"
7338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342   done
7343 IFS=$as_save_IFS
7344
7345   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7346 fi
7347 fi
7348 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7349 if test -n "$have_mktemp_command"; then
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7351 $as_echo "$have_mktemp_command" >&6; }
7352 else
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357
7358
7359 # See if makeinfo has been installed and is modern enough
7360 # that we can use it.
7361
7362   # Extract the first word of "makeinfo", so it can be a program name with args.
7363 set dummy makeinfo; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   if test -n "$MAKEINFO"; then
7370   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377     for ac_exec_ext in '' $ac_executable_extensions; do
7378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379     ac_cv_prog_MAKEINFO="makeinfo"
7380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384   done
7385 IFS=$as_save_IFS
7386
7387 fi
7388 fi
7389 MAKEINFO=$ac_cv_prog_MAKEINFO
7390 if test -n "$MAKEINFO"; then
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7392 $as_echo "$MAKEINFO" >&6; }
7393 else
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397
7398
7399   if test -n "$MAKEINFO"; then
7400     # Found it, now check the version.
7401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7402 $as_echo_n "checking for modern makeinfo... " >&6; }
7403 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7404   $as_echo_n "(cached) " >&6
7405 else
7406   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7407                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7408
7409                     case $ac_prog_version in
7410                       '')  gcc_cv_prog_makeinfo_modern=no;;
7411                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7412                       *)   gcc_cv_prog_makeinfo_modern=no;;
7413                     esac
7414
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7417 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7418   else
7419     gcc_cv_prog_makeinfo_modern=no
7420   fi
7421   if test $gcc_cv_prog_makeinfo_modern = no; then
7422     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7423   fi
7424
7425 if test $gcc_cv_prog_makeinfo_modern = no; then
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7427 *** Makeinfo is missing or too old.
7428 *** Info documentation will not be built." >&5
7429 $as_echo "$as_me: WARNING:
7430 *** Makeinfo is missing or too old.
7431 *** Info documentation will not be built." >&2;}
7432   BUILD_INFO=
7433 else
7434   BUILD_INFO=info
7435 fi
7436
7437
7438 # Is pod2man recent enough to regenerate manpages?
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7440 $as_echo_n "checking for recent Pod::Man... " >&6; }
7441 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7443 $as_echo "yes" >&6; }
7444   GENERATED_MANPAGES=generated-manpages
7445 else
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448   GENERATED_MANPAGES=
7449 fi
7450
7451
7452 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7453
7454 # How about lex?
7455 for ac_prog in flex
7456 do
7457   # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if test "${ac_cv_prog_FLEX+set}" = set; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464   if test -n "$FLEX"; then
7465   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472     for ac_exec_ext in '' $ac_executable_extensions; do
7473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474     ac_cv_prog_FLEX="$ac_prog"
7475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479   done
7480 IFS=$as_save_IFS
7481
7482 fi
7483 fi
7484 FLEX=$ac_cv_prog_FLEX
7485 if test -n "$FLEX"; then
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7487 $as_echo "$FLEX" >&6; }
7488 else
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 fi
7492
7493
7494   test -n "$FLEX" && break
7495 done
7496 test -n "$FLEX" || FLEX="$MISSING flex"
7497
7498
7499 # Bison?
7500 for ac_prog in bison
7501 do
7502   # Extract the first word of "$ac_prog", so it can be a program name with args.
7503 set dummy $ac_prog; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if test "${ac_cv_prog_BISON+set}" = set; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   if test -n "$BISON"; then
7510   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515   IFS=$as_save_IFS
7516   test -z "$as_dir" && as_dir=.
7517     for ac_exec_ext in '' $ac_executable_extensions; do
7518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519     ac_cv_prog_BISON="$ac_prog"
7520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521     break 2
7522   fi
7523 done
7524   done
7525 IFS=$as_save_IFS
7526
7527 fi
7528 fi
7529 BISON=$ac_cv_prog_BISON
7530 if test -n "$BISON"; then
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7532 $as_echo "$BISON" >&6; }
7533 else
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7536 fi
7537
7538
7539   test -n "$BISON" && break
7540 done
7541 test -n "$BISON" || BISON="$MISSING bison"
7542
7543
7544 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7545 # check for build == host before using them.
7546
7547 # NM
7548 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7549   && test -d ../binutils ; then
7550   NM='$(objdir)/../binutils/nm-new'
7551 else
7552   # Extract the first word of "nm", so it can be a program name with args.
7553 set dummy nm; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_NM+set}" = set; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559   if test -n "$NM"; then
7560   ac_cv_prog_NM="$NM" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565   IFS=$as_save_IFS
7566   test -z "$as_dir" && as_dir=.
7567     for ac_exec_ext in '' $ac_executable_extensions; do
7568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569     ac_cv_prog_NM="nm"
7570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571     break 2
7572   fi
7573 done
7574   done
7575 IFS=$as_save_IFS
7576
7577   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7578 fi
7579 fi
7580 NM=$ac_cv_prog_NM
7581 if test -n "$NM"; then
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7583 $as_echo "$NM" >&6; }
7584 else
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587 fi
7588
7589
7590 fi
7591
7592 # AR
7593 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7594   && test -d ../binutils ; then
7595   AR='$(objdir)/../binutils/ar'
7596 else
7597   # Extract the first word of "ar", so it can be a program name with args.
7598 set dummy ar; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if test "${ac_cv_prog_AR+set}" = set; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   if test -n "$AR"; then
7605   ac_cv_prog_AR="$AR" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614     ac_cv_prog_AR="ar"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621
7622   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7623 fi
7624 fi
7625 AR=$ac_cv_prog_AR
7626 if test -n "$AR"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7628 $as_echo "$AR" >&6; }
7629 else
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633
7634
7635 fi
7636
7637
7638 # --------------------
7639 # Checks for C headers
7640 # --------------------
7641
7642 # Need to reject headers which give warnings, so that the -Werror bootstrap
7643 # works later. *sigh*  This needs to come before all header checks.
7644
7645 ac_c_preproc_warn_flag=yes
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7648 $as_echo_n "checking for ANSI C header files... " >&6; }
7649 if test "${ac_cv_header_stdc+set}" = set; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h.  */
7654 #include <stdlib.h>
7655 #include <stdarg.h>
7656 #include <string.h>
7657 #include <float.h>
7658
7659 int
7660 main ()
7661 {
7662
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 if ac_fn_c_try_compile "$LINENO"; then :
7668   ac_cv_header_stdc=yes
7669 else
7670   ac_cv_header_stdc=no
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673
7674 if test $ac_cv_header_stdc = yes; then
7675   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h.  */
7678 #include <string.h>
7679
7680 _ACEOF
7681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7682   $EGREP "memchr" >/dev/null 2>&1; then :
7683
7684 else
7685   ac_cv_header_stdc=no
7686 fi
7687 rm -f conftest*
7688
7689 fi
7690
7691 if test $ac_cv_header_stdc = yes; then
7692   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h.  */
7695 #include <stdlib.h>
7696
7697 _ACEOF
7698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7699   $EGREP "free" >/dev/null 2>&1; then :
7700
7701 else
7702   ac_cv_header_stdc=no
7703 fi
7704 rm -f conftest*
7705
7706 fi
7707
7708 if test $ac_cv_header_stdc = yes; then
7709   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7710   if test "$cross_compiling" = yes; then :
7711   :
7712 else
7713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h.  */
7715 #include <ctype.h>
7716 #include <stdlib.h>
7717 #if ((' ' & 0x0FF) == 0x020)
7718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7720 #else
7721 # define ISLOWER(c) \
7722                    (('a' <= (c) && (c) <= 'i') \
7723                      || ('j' <= (c) && (c) <= 'r') \
7724                      || ('s' <= (c) && (c) <= 'z'))
7725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7726 #endif
7727
7728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7729 int
7730 main ()
7731 {
7732   int i;
7733   for (i = 0; i < 256; i++)
7734     if (XOR (islower (i), ISLOWER (i))
7735         || toupper (i) != TOUPPER (i))
7736       return 2;
7737   return 0;
7738 }
7739 _ACEOF
7740 if ac_fn_c_try_run "$LINENO"; then :
7741
7742 else
7743   ac_cv_header_stdc=no
7744 fi
7745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7746   conftest.$ac_objext conftest.beam conftest.$ac_ext
7747 fi
7748
7749 fi
7750 fi
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7752 $as_echo "$ac_cv_header_stdc" >&6; }
7753 if test $ac_cv_header_stdc = yes; then
7754
7755 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7756
7757 fi
7758
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7760 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7761 if test "${ac_cv_header_time+set}" = set; then :
7762   $as_echo_n "(cached) " >&6
7763 else
7764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h.  */
7766 #include <sys/types.h>
7767 #include <sys/time.h>
7768 #include <time.h>
7769
7770 int
7771 main ()
7772 {
7773 if ((struct tm *) 0)
7774 return 0;
7775   ;
7776   return 0;
7777 }
7778 _ACEOF
7779 if ac_fn_c_try_compile "$LINENO"; then :
7780   ac_cv_header_time=yes
7781 else
7782   ac_cv_header_time=no
7783 fi
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785 fi
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7787 $as_echo "$ac_cv_header_time" >&6; }
7788 if test $ac_cv_header_time = yes; then
7789
7790 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7791
7792 fi
7793
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7795 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7796 if test "${gcc_cv_header_string+set}" = set; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h.  */
7801 #include <string.h>
7802 #include <strings.h>
7803 int
7804 main ()
7805 {
7806
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812   gcc_cv_header_string=yes
7813 else
7814   gcc_cv_header_string=no
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7819 $as_echo "$gcc_cv_header_string" >&6; }
7820 if test $gcc_cv_header_string = yes; then
7821
7822 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7823
7824 fi
7825
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7827 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7828 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h.  */
7833 #include <sys/types.h>
7834 #include <sys/wait.h>
7835 #ifndef WEXITSTATUS
7836 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7837 #endif
7838 #ifndef WIFEXITED
7839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7840 #endif
7841
7842 int
7843 main ()
7844 {
7845   int s;
7846   wait (&s);
7847   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853   ac_cv_header_sys_wait_h=yes
7854 else
7855   ac_cv_header_sys_wait_h=no
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7860 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7861 if test $ac_cv_header_sys_wait_h = yes; then
7862
7863 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7864
7865 fi
7866
7867 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7868                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7869                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7870                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7871 do :
7872   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7874 eval as_val=\$$as_ac_Header
7875    if test "x$as_val" = x""yes; then :
7876   cat >>confdefs.h <<_ACEOF
7877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7878 _ACEOF
7879
7880 fi
7881 done
7882
7883
7884 # Check for thread headers.
7885 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7886 if test "x$ac_cv_header_thread_h" = x""yes; then :
7887   have_thread_h=yes
7888 else
7889   have_thread_h=
7890 fi
7891
7892 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7893 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7894   have_pthread_h=yes
7895 else
7896   have_pthread_h=
7897 fi
7898
7899
7900 # These tests can't be done till we know if we have limits.h.
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7902 $as_echo_n "checking for CHAR_BIT... " >&6; }
7903 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7904   $as_echo_n "(cached) " >&6
7905 else
7906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h.  */
7908 #ifdef HAVE_LIMITS_H
7909 #include <limits.h>
7910 #endif
7911 #ifdef CHAR_BIT
7912 found
7913 #endif
7914 _ACEOF
7915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916   $EGREP "found" >/dev/null 2>&1; then :
7917   gcc_cv_decl_char_bit=yes
7918 else
7919   gcc_cv_decl_char_bit=no
7920 fi
7921 rm -f conftest*
7922
7923
7924 fi
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7926 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7927 if test $gcc_cv_decl_char_bit = no; then
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7929 $as_echo_n "checking number of bits in a byte... " >&6; }
7930 if test "${gcc_cv_c_nbby+set}" = set; then :
7931   $as_echo_n "(cached) " >&6
7932 else
7933   i=8
7934  gcc_cv_c_nbby=
7935  while test $i -lt 65; do
7936    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h.  */
7938
7939 int
7940 main ()
7941 {
7942 switch(0) {
7943   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7944   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7945   ; }
7946   ;
7947   return 0;
7948 }
7949 _ACEOF
7950 if ac_fn_c_try_compile "$LINENO"; then :
7951   gcc_cv_c_nbby=$i; break
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954    i=`expr $i + 1`
7955  done
7956  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7957
7958 fi
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7960 $as_echo "$gcc_cv_c_nbby" >&6; }
7961 if test $gcc_cv_c_nbby = failed; then
7962   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7963 else
7964
7965 cat >>confdefs.h <<_ACEOF
7966 #define CHAR_BIT $gcc_cv_c_nbby
7967 _ACEOF
7968
7969 fi
7970 fi
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7972 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7973 if test "${ac_cv_c_bigendian+set}" = set; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   ac_cv_c_bigendian=unknown
7977     # See if we're dealing with a universal compiler.
7978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h.  */
7980 #ifndef __APPLE_CC__
7981                not a universal capable compiler
7982              #endif
7983              typedef int dummy;
7984
7985 _ACEOF
7986 if ac_fn_c_try_compile "$LINENO"; then :
7987
7988         # Check for potential -arch flags.  It is not universal unless
7989         # there are at least two -arch flags with different values.
7990         ac_arch=
7991         ac_prev=
7992         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7993          if test -n "$ac_prev"; then
7994            case $ac_word in
7995              i?86 | x86_64 | ppc | ppc64)
7996                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7997                  ac_arch=$ac_word
7998                else
7999                  ac_cv_c_bigendian=universal
8000                  break
8001                fi
8002                ;;
8003            esac
8004            ac_prev=
8005          elif test "x$ac_word" = "x-arch"; then
8006            ac_prev=arch
8007          fi
8008        done
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011     if test $ac_cv_c_bigendian = unknown; then
8012       # See if sys/param.h defines the BYTE_ORDER macro.
8013       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h.  */
8015 #include <sys/types.h>
8016              #include <sys/param.h>
8017
8018 int
8019 main ()
8020 {
8021 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8022                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8023                      && LITTLE_ENDIAN)
8024               bogus endian macros
8025              #endif
8026
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 if ac_fn_c_try_compile "$LINENO"; then :
8032   # It does; now see whether it defined to BIG_ENDIAN or not.
8033          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h.  */
8035 #include <sys/types.h>
8036                 #include <sys/param.h>
8037
8038 int
8039 main ()
8040 {
8041 #if BYTE_ORDER != BIG_ENDIAN
8042                  not big endian
8043                 #endif
8044
8045   ;
8046   return 0;
8047 }
8048 _ACEOF
8049 if ac_fn_c_try_compile "$LINENO"; then :
8050   ac_cv_c_bigendian=yes
8051 else
8052   ac_cv_c_bigendian=no
8053 fi
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057     fi
8058     if test $ac_cv_c_bigendian = unknown; then
8059       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h.  */
8062 #include <limits.h>
8063
8064 int
8065 main ()
8066 {
8067 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8068               bogus endian macros
8069              #endif
8070
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076   # It does; now see whether it defined to _BIG_ENDIAN or not.
8077          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h.  */
8079 #include <limits.h>
8080
8081 int
8082 main ()
8083 {
8084 #ifndef _BIG_ENDIAN
8085                  not big endian
8086                 #endif
8087
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093   ac_cv_c_bigendian=yes
8094 else
8095   ac_cv_c_bigendian=no
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100     fi
8101     if test $ac_cv_c_bigendian = unknown; then
8102       # Compile a test program.
8103       if test "$cross_compiling" = yes; then :
8104   # Try to guess by grepping values from an object file.
8105          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h.  */
8107 short int ascii_mm[] =
8108                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8109                 short int ascii_ii[] =
8110                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8111                 int use_ascii (int i) {
8112                   return ascii_mm[i] + ascii_ii[i];
8113                 }
8114                 short int ebcdic_ii[] =
8115                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8116                 short int ebcdic_mm[] =
8117                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8118                 int use_ebcdic (int i) {
8119                   return ebcdic_mm[i] + ebcdic_ii[i];
8120                 }
8121                 extern int foo;
8122
8123 int
8124 main ()
8125 {
8126 return use_ascii (foo) == use_ebcdic (foo);
8127   ;
8128   return 0;
8129 }
8130 _ACEOF
8131 if ac_fn_c_try_compile "$LINENO"; then :
8132   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8133               ac_cv_c_bigendian=yes
8134             fi
8135             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8136               if test "$ac_cv_c_bigendian" = unknown; then
8137                 ac_cv_c_bigendian=no
8138               else
8139                 # finding both strings is unlikely to happen, but who knows?
8140                 ac_cv_c_bigendian=unknown
8141               fi
8142             fi
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 else
8146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h.  */
8148 $ac_includes_default
8149 int
8150 main ()
8151 {
8152
8153              /* Are we little or big endian?  From Harbison&Steele.  */
8154              union
8155              {
8156                long int l;
8157                char c[sizeof (long int)];
8158              } u;
8159              u.l = 1;
8160              return u.c[sizeof (long int) - 1] == 1;
8161
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 if ac_fn_c_try_run "$LINENO"; then :
8167   ac_cv_c_bigendian=no
8168 else
8169   ac_cv_c_bigendian=yes
8170 fi
8171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8172   conftest.$ac_objext conftest.beam conftest.$ac_ext
8173 fi
8174
8175     fi
8176 fi
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8178 $as_echo "$ac_cv_c_bigendian" >&6; }
8179  case $ac_cv_c_bigendian in #(
8180    yes)
8181      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8182 ;; #(
8183    no)
8184       ;; #(
8185    universal)
8186
8187 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8188
8189      ;; #(
8190    *)
8191      as_fn_error "unknown endianness
8192  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8193  esac
8194
8195
8196 # --------
8197 # UNSORTED
8198 # --------
8199
8200
8201 # These libraries may be used by collect2.
8202 # We may need a special search path to get them linked.
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8204 $as_echo_n "checking for collect2 libraries... " >&6; }
8205 if test "${gcc_cv_collect2_libs+set}" = set; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208   save_LIBS="$LIBS"
8209 for libs in '' -lld -lmld \
8210                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8211                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8212 do
8213         LIBS="$libs"
8214         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h.  */
8216
8217 /* Override any GCC internal prototype to avoid an error.
8218    Use char because int might match the return type of a GCC
8219    builtin and then its argument prototype would still apply.  */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 char ldopen ();
8224 int
8225 main ()
8226 {
8227 return ldopen ();
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233   gcc_cv_collect2_libs="$libs"; break
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext \
8236     conftest$ac_exeext conftest.$ac_ext
8237 done
8238 LIBS="$save_LIBS"
8239 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8242 $as_echo "$gcc_cv_collect2_libs" >&6; }
8243 case $gcc_cv_collect2_libs in
8244         "none required")        ;;
8245         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8246 esac
8247
8248
8249 # When building Ada code on Alpha, we need exc_resume which is usually in
8250 # -lexc.  So test for it.
8251 save_LIBS="$LIBS"
8252 LIBS=
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8254 $as_echo_n "checking for library containing exc_resume... " >&6; }
8255 if test "${ac_cv_search_exc_resume+set}" = set; then :
8256   $as_echo_n "(cached) " >&6
8257 else
8258   ac_func_search_save_LIBS=$LIBS
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h.  */
8261
8262 /* Override any GCC internal prototype to avoid an error.
8263    Use char because int might match the return type of a GCC
8264    builtin and then its argument prototype would still apply.  */
8265 #ifdef __cplusplus
8266 extern "C"
8267 #endif
8268 char exc_resume ();
8269 int
8270 main ()
8271 {
8272 return exc_resume ();
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 for ac_lib in '' exc; do
8278   if test -z "$ac_lib"; then
8279     ac_res="none required"
8280   else
8281     ac_res=-l$ac_lib
8282     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8283   fi
8284   if ac_fn_c_try_link "$LINENO"; then :
8285   ac_cv_search_exc_resume=$ac_res
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288     conftest$ac_exeext
8289   if test "${ac_cv_search_exc_resume+set}" = set; then :
8290   break
8291 fi
8292 done
8293 if test "${ac_cv_search_exc_resume+set}" = set; then :
8294
8295 else
8296   ac_cv_search_exc_resume=no
8297 fi
8298 rm conftest.$ac_ext
8299 LIBS=$ac_func_search_save_LIBS
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8302 $as_echo "$ac_cv_search_exc_resume" >&6; }
8303 ac_res=$ac_cv_search_exc_resume
8304 if test "$ac_res" != no; then :
8305   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8306
8307 fi
8308
8309 GNAT_LIBEXC="$LIBS"
8310 LIBS="$save_LIBS"
8311
8312
8313 # Some systems put ldexp and frexp in libm instead of libc; assume
8314 # they're both in the same place.  jcf-dump needs them.
8315 save_LIBS="$LIBS"
8316 LIBS=
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8318 $as_echo_n "checking for library containing ldexp... " >&6; }
8319 if test "${ac_cv_search_ldexp+set}" = set; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   ac_func_search_save_LIBS=$LIBS
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h.  */
8325
8326 /* Override any GCC internal prototype to avoid an error.
8327    Use char because int might match the return type of a GCC
8328    builtin and then its argument prototype would still apply.  */
8329 #ifdef __cplusplus
8330 extern "C"
8331 #endif
8332 char ldexp ();
8333 int
8334 main ()
8335 {
8336 return ldexp ();
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 for ac_lib in '' m; do
8342   if test -z "$ac_lib"; then
8343     ac_res="none required"
8344   else
8345     ac_res=-l$ac_lib
8346     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8347   fi
8348   if ac_fn_c_try_link "$LINENO"; then :
8349   ac_cv_search_ldexp=$ac_res
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352     conftest$ac_exeext
8353   if test "${ac_cv_search_ldexp+set}" = set; then :
8354   break
8355 fi
8356 done
8357 if test "${ac_cv_search_ldexp+set}" = set; then :
8358
8359 else
8360   ac_cv_search_ldexp=no
8361 fi
8362 rm conftest.$ac_ext
8363 LIBS=$ac_func_search_save_LIBS
8364 fi
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8366 $as_echo "$ac_cv_search_ldexp" >&6; }
8367 ac_res=$ac_cv_search_ldexp
8368 if test "$ac_res" != no; then :
8369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8370
8371 fi
8372
8373 LDEXP_LIB="$LIBS"
8374 LIBS="$save_LIBS"
8375
8376
8377 # Use <inttypes.h> only if it exists,
8378 # doesn't clash with <sys/types.h>, and declares intmax_t.
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8380 $as_echo_n "checking for inttypes.h... " >&6; }
8381 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h.  */
8386 #include <sys/types.h>
8387 #include <inttypes.h>
8388 int
8389 main ()
8390 {
8391 intmax_t i = -1;
8392   ;
8393   return 0;
8394 }
8395 _ACEOF
8396 if ac_fn_c_try_compile "$LINENO"; then :
8397   gcc_cv_header_inttypes_h=yes
8398 else
8399   gcc_cv_header_inttypes_h=no
8400 fi
8401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402 fi
8403
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8405 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8406 if test $gcc_cv_header_inttypes_h = yes; then
8407
8408 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8409
8410 fi
8411
8412
8413
8414 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8415         sysconf strsignal getrusage nl_langinfo \
8416         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8417         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
8418 do :
8419   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8421 eval as_val=\$$as_ac_var
8422    if test "x$as_val" = x""yes; then :
8423   cat >>confdefs.h <<_ACEOF
8424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8425 _ACEOF
8426
8427 fi
8428 done
8429
8430
8431 save_CPPFLAGS="$CPPFLAGS"
8432 save_LIBS="$LIBS"
8433 LIBS="$LIBS $LIBELFLIBS"
8434 for ac_func in elf_getshdrstrndx
8435 do :
8436   ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8437 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8438   cat >>confdefs.h <<_ACEOF
8439 #define HAVE_ELF_GETSHDRSTRNDX 1
8440 _ACEOF
8441
8442 else
8443   for ac_func in elf_getshstrndx
8444 do :
8445   ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8446 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8447   cat >>confdefs.h <<_ACEOF
8448 #define HAVE_ELF_GETSHSTRNDX 1
8449 _ACEOF
8450  if test "$cross_compiling" = yes; then :
8451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8453 as_fn_error "cannot run test program while cross compiling
8454 See \`config.log' for more details." "$LINENO" 5; }
8455 else
8456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h.  */
8458 #include <stdlib.h>
8459 #include <libelf.h>
8460 int main()
8461 {
8462   return elf_getshstrndx (NULL, 0) == 0;
8463 }
8464 _ACEOF
8465 if ac_fn_c_try_run "$LINENO"; then :
8466
8467 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8468
8469 fi
8470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8471   conftest.$ac_objext conftest.beam conftest.$ac_ext
8472 fi
8473
8474 fi
8475 done
8476
8477
8478 fi
8479 done
8480
8481 LIBS="$save_LIBS"
8482 CPPFLAGS="$save_CPPFLAGS"
8483
8484 if test x$ac_cv_func_mbstowcs = xyes; then
8485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8486 $as_echo_n "checking whether mbstowcs works... " >&6; }
8487 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490       if test "$cross_compiling" = yes; then :
8491   gcc_cv_func_mbstowcs_works=yes
8492 else
8493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h.  */
8495 #include <stdlib.h>
8496 int main()
8497 {
8498   mbstowcs(0, "", 0);
8499   return 0;
8500 }
8501 _ACEOF
8502 if ac_fn_c_try_run "$LINENO"; then :
8503   gcc_cv_func_mbstowcs_works=yes
8504 else
8505   gcc_cv_func_mbstowcs_works=no
8506 fi
8507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8508   conftest.$ac_objext conftest.beam conftest.$ac_ext
8509 fi
8510
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8513 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8514   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8515
8516 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8517
8518   fi
8519 fi
8520
8521 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8522 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8523
8524 else
8525
8526 cat >>confdefs.h <<_ACEOF
8527 #define ssize_t int
8528 _ACEOF
8529
8530 fi
8531
8532 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8533 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8534
8535 else
8536
8537 cat >>confdefs.h <<_ACEOF
8538 #define caddr_t char *
8539 _ACEOF
8540
8541 fi
8542
8543
8544
8545 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8546 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8547   gcc_header_sys_mman_h=yes
8548 else
8549   gcc_header_sys_mman_h=no
8550 fi
8551
8552 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8553 if test "x$ac_cv_func_mmap" = x""yes; then :
8554   gcc_func_mmap=yes
8555 else
8556   gcc_func_mmap=no
8557 fi
8558
8559 if test "$gcc_header_sys_mman_h" != yes \
8560  || test "$gcc_func_mmap" != yes; then
8561    gcc_cv_func_mmap_file=no
8562    gcc_cv_func_mmap_dev_zero=no
8563    gcc_cv_func_mmap_anon=no
8564 else
8565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8566 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8567 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8568   $as_echo_n "(cached) " >&6
8569 else
8570   # Add a system to this blacklist if
8571    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8572    # memory area containing the same data that you'd get if you applied
8573    # read() to the same fd.  The only system known to have a problem here
8574    # is VMS, where text files have record structure.
8575    case "$host_os" in
8576      vms* | ultrix*)
8577         gcc_cv_func_mmap_file=no ;;
8578      *)
8579         gcc_cv_func_mmap_file=yes;;
8580    esac
8581 fi
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8583 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8585 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8586 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   # Add a system to this blacklist if it has mmap() but /dev/zero
8590    # does not exist, or if mmapping /dev/zero does not give anonymous
8591    # zeroed pages with both the following properties:
8592    # 1. If you map N consecutive pages in with one call, and then
8593    #    unmap any subset of those pages, the pages that were not
8594    #    explicitly unmapped remain accessible.
8595    # 2. If you map two adjacent blocks of memory and then unmap them
8596    #    both at once, they must both go away.
8597    # Systems known to be in this category are Windows (all variants),
8598    # VMS, and Darwin.
8599    case "$host_os" in
8600      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8601         gcc_cv_func_mmap_dev_zero=no ;;
8602      *)
8603         gcc_cv_func_mmap_dev_zero=yes;;
8604    esac
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8607 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8608
8609    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8611 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8612 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8613   $as_echo_n "(cached) " >&6
8614 else
8615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h.  */
8617 #include <sys/types.h>
8618 #include <sys/mman.h>
8619 #include <unistd.h>
8620
8621 #ifndef MAP_ANONYMOUS
8622 #define MAP_ANONYMOUS MAP_ANON
8623 #endif
8624
8625 int
8626 main ()
8627 {
8628 int n = MAP_ANONYMOUS;
8629   ;
8630   return 0;
8631 }
8632 _ACEOF
8633 if ac_fn_c_try_compile "$LINENO"; then :
8634   gcc_cv_decl_map_anon=yes
8635 else
8636   gcc_cv_decl_map_anon=no
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8641 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8642
8643    if test $gcc_cv_decl_map_anon = no; then
8644      gcc_cv_func_mmap_anon=no
8645    else
8646      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8647 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8648 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8652    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8653    # doesn't give anonymous zeroed pages with the same properties listed
8654    # above for use of /dev/zero.
8655    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8656    case "$host_os" in
8657      vms* | cygwin* | pe | mingw* | sco* | udk* )
8658         gcc_cv_func_mmap_anon=no ;;
8659      *)
8660         gcc_cv_func_mmap_anon=yes;;
8661    esac
8662 fi
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8664 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8665    fi
8666 fi
8667
8668 if test $gcc_cv_func_mmap_file = yes; then
8669
8670 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8671
8672 fi
8673 if test $gcc_cv_func_mmap_dev_zero = yes; then
8674
8675 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8676
8677 fi
8678 if test $gcc_cv_func_mmap_anon = yes; then
8679
8680 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8681
8682 fi
8683
8684
8685 case "${host}" in
8686 *-*-*vms*)
8687   # Under VMS, vfork works very differently than on Unix. The standard test
8688   # won't work, and it isn't easily adaptable. It makes more sense to
8689   # just force it.
8690   ac_cv_func_vfork_works=yes
8691   ;;
8692 esac
8693 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8694 if test "x$ac_cv_type_pid_t" = x""yes; then :
8695
8696 else
8697
8698 cat >>confdefs.h <<_ACEOF
8699 #define pid_t int
8700 _ACEOF
8701
8702 fi
8703
8704 for ac_header in vfork.h
8705 do :
8706   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8707 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8708   cat >>confdefs.h <<_ACEOF
8709 #define HAVE_VFORK_H 1
8710 _ACEOF
8711
8712 fi
8713 done
8714
8715 for ac_func in fork vfork
8716 do :
8717   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8718 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8719 eval as_val=\$$as_ac_var
8720    if test "x$as_val" = x""yes; then :
8721   cat >>confdefs.h <<_ACEOF
8722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8723 _ACEOF
8724
8725 fi
8726 done
8727
8728 if test "x$ac_cv_func_fork" = xyes; then
8729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8730 $as_echo_n "checking for working fork... " >&6; }
8731 if test "${ac_cv_func_fork_works+set}" = set; then :
8732   $as_echo_n "(cached) " >&6
8733 else
8734   if test "$cross_compiling" = yes; then :
8735   ac_cv_func_fork_works=cross
8736 else
8737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h.  */
8739 $ac_includes_default
8740 int
8741 main ()
8742 {
8743
8744           /* By Ruediger Kuhlmann. */
8745           return fork () < 0;
8746
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 if ac_fn_c_try_run "$LINENO"; then :
8752   ac_cv_func_fork_works=yes
8753 else
8754   ac_cv_func_fork_works=no
8755 fi
8756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8757   conftest.$ac_objext conftest.beam conftest.$ac_ext
8758 fi
8759
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8762 $as_echo "$ac_cv_func_fork_works" >&6; }
8763
8764 else
8765   ac_cv_func_fork_works=$ac_cv_func_fork
8766 fi
8767 if test "x$ac_cv_func_fork_works" = xcross; then
8768   case $host in
8769     *-*-amigaos* | *-*-msdosdjgpp*)
8770       # Override, as these systems have only a dummy fork() stub
8771       ac_cv_func_fork_works=no
8772       ;;
8773     *)
8774       ac_cv_func_fork_works=yes
8775       ;;
8776   esac
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8778 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8779 fi
8780 ac_cv_func_vfork_works=$ac_cv_func_vfork
8781 if test "x$ac_cv_func_vfork" = xyes; then
8782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8783 $as_echo_n "checking for working vfork... " >&6; }
8784 if test "${ac_cv_func_vfork_works+set}" = set; then :
8785   $as_echo_n "(cached) " >&6
8786 else
8787   if test "$cross_compiling" = yes; then :
8788   ac_cv_func_vfork_works=cross
8789 else
8790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h.  */
8792 /* Thanks to Paul Eggert for this test.  */
8793 $ac_includes_default
8794 #include <sys/wait.h>
8795 #ifdef HAVE_VFORK_H
8796 # include <vfork.h>
8797 #endif
8798 /* On some sparc systems, changes by the child to local and incoming
8799    argument registers are propagated back to the parent.  The compiler
8800    is told about this with #include <vfork.h>, but some compilers
8801    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8802    static variable whose address is put into a register that is
8803    clobbered by the vfork.  */
8804 static void
8805 #ifdef __cplusplus
8806 sparc_address_test (int arg)
8807 # else
8808 sparc_address_test (arg) int arg;
8809 #endif
8810 {
8811   static pid_t child;
8812   if (!child) {
8813     child = vfork ();
8814     if (child < 0) {
8815       perror ("vfork");
8816       _exit(2);
8817     }
8818     if (!child) {
8819       arg = getpid();
8820       write(-1, "", 0);
8821       _exit (arg);
8822     }
8823   }
8824 }
8825
8826 int
8827 main ()
8828 {
8829   pid_t parent = getpid ();
8830   pid_t child;
8831
8832   sparc_address_test (0);
8833
8834   child = vfork ();
8835
8836   if (child == 0) {
8837     /* Here is another test for sparc vfork register problems.  This
8838        test uses lots of local variables, at least as many local
8839        variables as main has allocated so far including compiler
8840        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8841        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8842        reuse the register of parent for one of the local variables,
8843        since it will think that parent can't possibly be used any more
8844        in this routine.  Assigning to the local variable will thus
8845        munge parent in the parent process.  */
8846     pid_t
8847       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8848       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8849     /* Convince the compiler that p..p7 are live; otherwise, it might
8850        use the same hardware register for all 8 local variables.  */
8851     if (p != p1 || p != p2 || p != p3 || p != p4
8852         || p != p5 || p != p6 || p != p7)
8853       _exit(1);
8854
8855     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8856        from child file descriptors.  If the child closes a descriptor
8857        before it execs or exits, this munges the parent's descriptor
8858        as well.  Test for this by closing stdout in the child.  */
8859     _exit(close(fileno(stdout)) != 0);
8860   } else {
8861     int status;
8862     struct stat st;
8863
8864     while (wait(&status) != child)
8865       ;
8866     return (
8867          /* Was there some problem with vforking?  */
8868          child < 0
8869
8870          /* Did the child fail?  (This shouldn't happen.)  */
8871          || status
8872
8873          /* Did the vfork/compiler bug occur?  */
8874          || parent != getpid()
8875
8876          /* Did the file descriptor bug occur?  */
8877          || fstat(fileno(stdout), &st) != 0
8878          );
8879   }
8880 }
8881 _ACEOF
8882 if ac_fn_c_try_run "$LINENO"; then :
8883   ac_cv_func_vfork_works=yes
8884 else
8885   ac_cv_func_vfork_works=no
8886 fi
8887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8888   conftest.$ac_objext conftest.beam conftest.$ac_ext
8889 fi
8890
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8893 $as_echo "$ac_cv_func_vfork_works" >&6; }
8894
8895 fi;
8896 if test "x$ac_cv_func_fork_works" = xcross; then
8897   ac_cv_func_vfork_works=$ac_cv_func_vfork
8898   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8899 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8900 fi
8901
8902 if test "x$ac_cv_func_vfork_works" = xyes; then
8903
8904 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8905
8906 else
8907
8908 $as_echo "#define vfork fork" >>confdefs.h
8909
8910 fi
8911 if test "x$ac_cv_func_fork_works" = xyes; then
8912
8913 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8914
8915 fi
8916
8917
8918
8919       if test "X$prefix" = "XNONE"; then
8920     acl_final_prefix="$ac_default_prefix"
8921   else
8922     acl_final_prefix="$prefix"
8923   fi
8924   if test "X$exec_prefix" = "XNONE"; then
8925     acl_final_exec_prefix='${prefix}'
8926   else
8927     acl_final_exec_prefix="$exec_prefix"
8928   fi
8929   acl_save_prefix="$prefix"
8930   prefix="$acl_final_prefix"
8931   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8932   prefix="$acl_save_prefix"
8933
8934
8935 # Check whether --with-gnu-ld was given.
8936 if test "${with_gnu_ld+set}" = set; then :
8937   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8938 else
8939   with_gnu_ld=no
8940 fi
8941
8942 # Prepare PATH_SEPARATOR.
8943 # The user is always right.
8944 if test "${PATH_SEPARATOR+set}" != set; then
8945   echo "#! /bin/sh" >conf$$.sh
8946   echo  "exit 0"   >>conf$$.sh
8947   chmod +x conf$$.sh
8948   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8949     PATH_SEPARATOR=';'
8950   else
8951     PATH_SEPARATOR=:
8952   fi
8953   rm -f conf$$.sh
8954 fi
8955 ac_prog=ld
8956 if test "$GCC" = yes; then
8957   # Check if gcc -print-prog-name=ld gives a path.
8958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8959 $as_echo_n "checking for ld used by GCC... " >&6; }
8960   case $host in
8961   *-*-mingw*)
8962     # gcc leaves a trailing carriage return which upsets mingw
8963     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8964   *)
8965     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8966   esac
8967   case $ac_prog in
8968     # Accept absolute paths.
8969     [\\/]* | [A-Za-z]:[\\/]*)
8970       re_direlt='/[^/][^/]*/\.\./'
8971       # Canonicalize the path of ld
8972       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8973       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8974         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8975       done
8976       test -z "$LD" && LD="$ac_prog"
8977       ;;
8978   "")
8979     # If it fails, then pretend we aren't using GCC.
8980     ac_prog=ld
8981     ;;
8982   *)
8983     # If it is relative, then search for the first ld in PATH.
8984     with_gnu_ld=unknown
8985     ;;
8986   esac
8987 elif test "$with_gnu_ld" = yes; then
8988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8989 $as_echo_n "checking for GNU ld... " >&6; }
8990 else
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8992 $as_echo_n "checking for non-GNU ld... " >&6; }
8993 fi
8994 if test "${acl_cv_path_LD+set}" = set; then :
8995   $as_echo_n "(cached) " >&6
8996 else
8997   if test -z "$LD"; then
8998   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8999   for ac_dir in $PATH; do
9000     test -z "$ac_dir" && ac_dir=.
9001     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9002       acl_cv_path_LD="$ac_dir/$ac_prog"
9003       # Check to see if the program is GNU ld.  I'd rather use --version,
9004       # but apparently some GNU ld's only accept -v.
9005       # Break only if it was the GNU/non-GNU ld that we prefer.
9006       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9007         test "$with_gnu_ld" != no && break
9008       else
9009         test "$with_gnu_ld" != yes && break
9010       fi
9011     fi
9012   done
9013   IFS="$ac_save_ifs"
9014 else
9015   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9016 fi
9017 fi
9018
9019 LD="$acl_cv_path_LD"
9020 if test -n "$LD"; then
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9022 $as_echo "$LD" >&6; }
9023 else
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9026 fi
9027 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9029 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9030 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9031   $as_echo_n "(cached) " >&6
9032 else
9033   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9034 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9035   acl_cv_prog_gnu_ld=yes
9036 else
9037   acl_cv_prog_gnu_ld=no
9038 fi
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9041 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9042 with_gnu_ld=$acl_cv_prog_gnu_ld
9043
9044
9045
9046                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9047 $as_echo_n "checking for shared library run path origin... " >&6; }
9048 if test "${acl_cv_rpath+set}" = set; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051
9052     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9053     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9054     . ./conftest.sh
9055     rm -f ./conftest.sh
9056     acl_cv_rpath=done
9057
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9060 $as_echo "$acl_cv_rpath" >&6; }
9061   wl="$acl_cv_wl"
9062   libext="$acl_cv_libext"
9063   shlibext="$acl_cv_shlibext"
9064   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9065   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9066   hardcode_direct="$acl_cv_hardcode_direct"
9067   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9068     # Check whether --enable-rpath was given.
9069 if test "${enable_rpath+set}" = set; then :
9070   enableval=$enable_rpath; :
9071 else
9072   enable_rpath=yes
9073 fi
9074
9075
9076
9077
9078
9079
9080
9081
9082     use_additional=yes
9083
9084   acl_save_prefix="$prefix"
9085   prefix="$acl_final_prefix"
9086   acl_save_exec_prefix="$exec_prefix"
9087   exec_prefix="$acl_final_exec_prefix"
9088
9089     eval additional_includedir=\"$includedir\"
9090     eval additional_libdir=\"$libdir\"
9091
9092   exec_prefix="$acl_save_exec_prefix"
9093   prefix="$acl_save_prefix"
9094
9095
9096 # Check whether --with-libiconv-prefix was given.
9097 if test "${with_libiconv_prefix+set}" = set; then :
9098   withval=$with_libiconv_prefix;
9099     if test "X$withval" = "Xno"; then
9100       use_additional=no
9101     else
9102       if test "X$withval" = "X"; then
9103
9104   acl_save_prefix="$prefix"
9105   prefix="$acl_final_prefix"
9106   acl_save_exec_prefix="$exec_prefix"
9107   exec_prefix="$acl_final_exec_prefix"
9108
9109           eval additional_includedir=\"$includedir\"
9110           eval additional_libdir=\"$libdir\"
9111
9112   exec_prefix="$acl_save_exec_prefix"
9113   prefix="$acl_save_prefix"
9114
9115       else
9116         additional_includedir="$withval/include"
9117         additional_libdir="$withval/lib"
9118       fi
9119     fi
9120
9121 fi
9122
9123       LIBICONV=
9124   LTLIBICONV=
9125   INCICONV=
9126   rpathdirs=
9127   ltrpathdirs=
9128   names_already_handled=
9129   names_next_round='iconv '
9130   while test -n "$names_next_round"; do
9131     names_this_round="$names_next_round"
9132     names_next_round=
9133     for name in $names_this_round; do
9134       already_handled=
9135       for n in $names_already_handled; do
9136         if test "$n" = "$name"; then
9137           already_handled=yes
9138           break
9139         fi
9140       done
9141       if test -z "$already_handled"; then
9142         names_already_handled="$names_already_handled $name"
9143                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9144         eval value=\"\$HAVE_LIB$uppername\"
9145         if test -n "$value"; then
9146           if test "$value" = yes; then
9147             eval value=\"\$LIB$uppername\"
9148             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9149             eval value=\"\$LTLIB$uppername\"
9150             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9151           else
9152                                     :
9153           fi
9154         else
9155                               found_dir=
9156           found_la=
9157           found_so=
9158           found_a=
9159           if test $use_additional = yes; then
9160             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9161               found_dir="$additional_libdir"
9162               found_so="$additional_libdir/lib$name.$shlibext"
9163               if test -f "$additional_libdir/lib$name.la"; then
9164                 found_la="$additional_libdir/lib$name.la"
9165               fi
9166             else
9167               if test -f "$additional_libdir/lib$name.$libext"; then
9168                 found_dir="$additional_libdir"
9169                 found_a="$additional_libdir/lib$name.$libext"
9170                 if test -f "$additional_libdir/lib$name.la"; then
9171                   found_la="$additional_libdir/lib$name.la"
9172                 fi
9173               fi
9174             fi
9175           fi
9176           if test "X$found_dir" = "X"; then
9177             for x in $LDFLAGS $LTLIBICONV; do
9178
9179   acl_save_prefix="$prefix"
9180   prefix="$acl_final_prefix"
9181   acl_save_exec_prefix="$exec_prefix"
9182   exec_prefix="$acl_final_exec_prefix"
9183   eval x=\"$x\"
9184   exec_prefix="$acl_save_exec_prefix"
9185   prefix="$acl_save_prefix"
9186
9187               case "$x" in
9188                 -L*)
9189                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9190                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9191                     found_dir="$dir"
9192                     found_so="$dir/lib$name.$shlibext"
9193                     if test -f "$dir/lib$name.la"; then
9194                       found_la="$dir/lib$name.la"
9195                     fi
9196                   else
9197                     if test -f "$dir/lib$name.$libext"; then
9198                       found_dir="$dir"
9199                       found_a="$dir/lib$name.$libext"
9200                       if test -f "$dir/lib$name.la"; then
9201                         found_la="$dir/lib$name.la"
9202                       fi
9203                     fi
9204                   fi
9205                   ;;
9206               esac
9207               if test "X$found_dir" != "X"; then
9208                 break
9209               fi
9210             done
9211           fi
9212           if test "X$found_dir" != "X"; then
9213                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9214             if test "X$found_so" != "X"; then
9215                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9216                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9217               else
9218                                                                                 haveit=
9219                 for x in $ltrpathdirs; do
9220                   if test "X$x" = "X$found_dir"; then
9221                     haveit=yes
9222                     break
9223                   fi
9224                 done
9225                 if test -z "$haveit"; then
9226                   ltrpathdirs="$ltrpathdirs $found_dir"
9227                 fi
9228                                 if test "$hardcode_direct" = yes; then
9229                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9230                 else
9231                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9232                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9233                                                             haveit=
9234                     for x in $rpathdirs; do
9235                       if test "X$x" = "X$found_dir"; then
9236                         haveit=yes
9237                         break
9238                       fi
9239                     done
9240                     if test -z "$haveit"; then
9241                       rpathdirs="$rpathdirs $found_dir"
9242                     fi
9243                   else
9244                                                                                 haveit=
9245                     for x in $LDFLAGS $LIBICONV; do
9246
9247   acl_save_prefix="$prefix"
9248   prefix="$acl_final_prefix"
9249   acl_save_exec_prefix="$exec_prefix"
9250   exec_prefix="$acl_final_exec_prefix"
9251   eval x=\"$x\"
9252   exec_prefix="$acl_save_exec_prefix"
9253   prefix="$acl_save_prefix"
9254
9255                       if test "X$x" = "X-L$found_dir"; then
9256                         haveit=yes
9257                         break
9258                       fi
9259                     done
9260                     if test -z "$haveit"; then
9261                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9262                     fi
9263                     if test "$hardcode_minus_L" != no; then
9264                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9265                     else
9266                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9267                     fi
9268                   fi
9269                 fi
9270               fi
9271             else
9272               if test "X$found_a" != "X"; then
9273                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9274               else
9275                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9276               fi
9277             fi
9278                         additional_includedir=
9279             case "$found_dir" in
9280               */lib | */lib/)
9281                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9282                 additional_includedir="$basedir/include"
9283                 ;;
9284             esac
9285             if test "X$additional_includedir" != "X"; then
9286                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9287                 haveit=
9288                 if test "X$additional_includedir" = "X/usr/local/include"; then
9289                   if test -n "$GCC"; then
9290                     case $host_os in
9291                       linux*) haveit=yes;;
9292                     esac
9293                   fi
9294                 fi
9295                 if test -z "$haveit"; then
9296                   for x in $CPPFLAGS $INCICONV; do
9297
9298   acl_save_prefix="$prefix"
9299   prefix="$acl_final_prefix"
9300   acl_save_exec_prefix="$exec_prefix"
9301   exec_prefix="$acl_final_exec_prefix"
9302   eval x=\"$x\"
9303   exec_prefix="$acl_save_exec_prefix"
9304   prefix="$acl_save_prefix"
9305
9306                     if test "X$x" = "X-I$additional_includedir"; then
9307                       haveit=yes
9308                       break
9309                     fi
9310                   done
9311                   if test -z "$haveit"; then
9312                     if test -d "$additional_includedir"; then
9313                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9314                     fi
9315                   fi
9316                 fi
9317               fi
9318             fi
9319                         if test -n "$found_la"; then
9320                                                         save_libdir="$libdir"
9321               case "$found_la" in
9322                 */* | *\\*) . "$found_la" ;;
9323                 *) . "./$found_la" ;;
9324               esac
9325               libdir="$save_libdir"
9326                             for dep in $dependency_libs; do
9327                 case "$dep" in
9328                   -L*)
9329                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9330                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9331                       haveit=
9332                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9333                         if test -n "$GCC"; then
9334                           case $host_os in
9335                             linux*) haveit=yes;;
9336                           esac
9337                         fi
9338                       fi
9339                       if test -z "$haveit"; then
9340                         haveit=
9341                         for x in $LDFLAGS $LIBICONV; do
9342
9343   acl_save_prefix="$prefix"
9344   prefix="$acl_final_prefix"
9345   acl_save_exec_prefix="$exec_prefix"
9346   exec_prefix="$acl_final_exec_prefix"
9347   eval x=\"$x\"
9348   exec_prefix="$acl_save_exec_prefix"
9349   prefix="$acl_save_prefix"
9350
9351                           if test "X$x" = "X-L$additional_libdir"; then
9352                             haveit=yes
9353                             break
9354                           fi
9355                         done
9356                         if test -z "$haveit"; then
9357                           if test -d "$additional_libdir"; then
9358                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9359                           fi
9360                         fi
9361                         haveit=
9362                         for x in $LDFLAGS $LTLIBICONV; do
9363
9364   acl_save_prefix="$prefix"
9365   prefix="$acl_final_prefix"
9366   acl_save_exec_prefix="$exec_prefix"
9367   exec_prefix="$acl_final_exec_prefix"
9368   eval x=\"$x\"
9369   exec_prefix="$acl_save_exec_prefix"
9370   prefix="$acl_save_prefix"
9371
9372                           if test "X$x" = "X-L$additional_libdir"; then
9373                             haveit=yes
9374                             break
9375                           fi
9376                         done
9377                         if test -z "$haveit"; then
9378                           if test -d "$additional_libdir"; then
9379                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9380                           fi
9381                         fi
9382                       fi
9383                     fi
9384                     ;;
9385                   -R*)
9386                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9387                     if test "$enable_rpath" != no; then
9388                                                                   haveit=
9389                       for x in $rpathdirs; do
9390                         if test "X$x" = "X$dir"; then
9391                           haveit=yes
9392                           break
9393                         fi
9394                       done
9395                       if test -z "$haveit"; then
9396                         rpathdirs="$rpathdirs $dir"
9397                       fi
9398                                                                   haveit=
9399                       for x in $ltrpathdirs; do
9400                         if test "X$x" = "X$dir"; then
9401                           haveit=yes
9402                           break
9403                         fi
9404                       done
9405                       if test -z "$haveit"; then
9406                         ltrpathdirs="$ltrpathdirs $dir"
9407                       fi
9408                     fi
9409                     ;;
9410                   -l*)
9411                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9412                     ;;
9413                   *.la)
9414                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9415                     ;;
9416                   *)
9417                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9418                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9419                     ;;
9420                 esac
9421               done
9422             fi
9423           else
9424                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9425             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9426           fi
9427         fi
9428       fi
9429     done
9430   done
9431   if test "X$rpathdirs" != "X"; then
9432     if test -n "$hardcode_libdir_separator"; then
9433                         alldirs=
9434       for found_dir in $rpathdirs; do
9435         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9436       done
9437             acl_save_libdir="$libdir"
9438       libdir="$alldirs"
9439       eval flag=\"$hardcode_libdir_flag_spec\"
9440       libdir="$acl_save_libdir"
9441       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9442     else
9443             for found_dir in $rpathdirs; do
9444         acl_save_libdir="$libdir"
9445         libdir="$found_dir"
9446         eval flag=\"$hardcode_libdir_flag_spec\"
9447         libdir="$acl_save_libdir"
9448         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9449       done
9450     fi
9451   fi
9452   if test "X$ltrpathdirs" != "X"; then
9453             for found_dir in $ltrpathdirs; do
9454       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9455     done
9456   fi
9457
9458
9459
9460
9461
9462
9463
9464           am_save_CPPFLAGS="$CPPFLAGS"
9465
9466   for element in $INCICONV; do
9467     haveit=
9468     for x in $CPPFLAGS; do
9469
9470   acl_save_prefix="$prefix"
9471   prefix="$acl_final_prefix"
9472   acl_save_exec_prefix="$exec_prefix"
9473   exec_prefix="$acl_final_exec_prefix"
9474   eval x=\"$x\"
9475   exec_prefix="$acl_save_exec_prefix"
9476   prefix="$acl_save_prefix"
9477
9478       if test "X$x" = "X$element"; then
9479         haveit=yes
9480         break
9481       fi
9482     done
9483     if test -z "$haveit"; then
9484       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9485     fi
9486   done
9487
9488
9489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9490 $as_echo_n "checking for iconv... " >&6; }
9491 if test "${am_cv_func_iconv+set}" = set; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494
9495     am_cv_func_iconv="no, consider installing GNU libiconv"
9496     am_cv_lib_iconv=no
9497     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h.  */
9499 #include <stdlib.h>
9500 #include <iconv.h>
9501 int
9502 main ()
9503 {
9504 iconv_t cd = iconv_open("","");
9505        iconv(cd,NULL,NULL,NULL,NULL);
9506        iconv_close(cd);
9507   ;
9508   return 0;
9509 }
9510 _ACEOF
9511 if ac_fn_c_try_link "$LINENO"; then :
9512   am_cv_func_iconv=yes
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515     conftest$ac_exeext conftest.$ac_ext
9516     if test "$am_cv_func_iconv" != yes; then
9517       am_save_LIBS="$LIBS"
9518       LIBS="$LIBS $LIBICONV"
9519       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h.  */
9521 #include <stdlib.h>
9522 #include <iconv.h>
9523 int
9524 main ()
9525 {
9526 iconv_t cd = iconv_open("","");
9527          iconv(cd,NULL,NULL,NULL,NULL);
9528          iconv_close(cd);
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 if ac_fn_c_try_link "$LINENO"; then :
9534   am_cv_lib_iconv=yes
9535         am_cv_func_iconv=yes
9536 fi
9537 rm -f core conftest.err conftest.$ac_objext \
9538     conftest$ac_exeext conftest.$ac_ext
9539       LIBS="$am_save_LIBS"
9540     fi
9541
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9544 $as_echo "$am_cv_func_iconv" >&6; }
9545   if test "$am_cv_func_iconv" = yes; then
9546
9547 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9548
9549   fi
9550   if test "$am_cv_lib_iconv" = yes; then
9551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9552 $as_echo_n "checking how to link with libiconv... " >&6; }
9553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9554 $as_echo "$LIBICONV" >&6; }
9555   else
9556             CPPFLAGS="$am_save_CPPFLAGS"
9557     LIBICONV=
9558     LTLIBICONV=
9559   fi
9560
9561
9562
9563   if test "$am_cv_func_iconv" = yes; then
9564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9565 $as_echo_n "checking for iconv declaration... " >&6; }
9566     if test "${am_cv_proto_iconv+set}" = set; then :
9567   $as_echo_n "(cached) " >&6
9568 else
9569
9570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h.  */
9572
9573 #include <stdlib.h>
9574 #include <iconv.h>
9575 extern
9576 #ifdef __cplusplus
9577 "C"
9578 #endif
9579 #if defined(__STDC__) || defined(__cplusplus)
9580 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9581 #else
9582 size_t iconv();
9583 #endif
9584
9585 int
9586 main ()
9587 {
9588
9589   ;
9590   return 0;
9591 }
9592 _ACEOF
9593 if ac_fn_c_try_compile "$LINENO"; then :
9594   am_cv_proto_iconv_arg1=""
9595 else
9596   am_cv_proto_iconv_arg1="const"
9597 fi
9598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9599       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);"
9600 fi
9601
9602     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9604          }$am_cv_proto_iconv" >&5
9605 $as_echo "${ac_t:-
9606          }$am_cv_proto_iconv" >&6; }
9607
9608 cat >>confdefs.h <<_ACEOF
9609 #define ICONV_CONST $am_cv_proto_iconv_arg1
9610 _ACEOF
9611
9612   fi
9613
9614 # Until we have in-tree GNU iconv:
9615 LIBICONV_DEP=
9616
9617
9618
9619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9620 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9621 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9622   $as_echo_n "(cached) " >&6
9623 else
9624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h.  */
9626 #include <locale.h>
9627 int
9628 main ()
9629 {
9630 return LC_MESSAGES
9631   ;
9632   return 0;
9633 }
9634 _ACEOF
9635 if ac_fn_c_try_link "$LINENO"; then :
9636   am_cv_val_LC_MESSAGES=yes
9637 else
9638   am_cv_val_LC_MESSAGES=no
9639 fi
9640 rm -f core conftest.err conftest.$ac_objext \
9641     conftest$ac_exeext conftest.$ac_ext
9642 fi
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9644 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9645   if test $am_cv_val_LC_MESSAGES = yes; then
9646
9647 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9648
9649   fi
9650
9651
9652
9653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9654 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9655 if test "${am_cv_langinfo_codeset+set}" = set; then :
9656   $as_echo_n "(cached) " >&6
9657 else
9658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h.  */
9660 #include <langinfo.h>
9661 int
9662 main ()
9663 {
9664 char* cs = nl_langinfo(CODESET);
9665   ;
9666   return 0;
9667 }
9668 _ACEOF
9669 if ac_fn_c_try_link "$LINENO"; then :
9670   am_cv_langinfo_codeset=yes
9671 else
9672   am_cv_langinfo_codeset=no
9673 fi
9674 rm -f core conftest.err conftest.$ac_objext \
9675     conftest$ac_exeext conftest.$ac_ext
9676
9677 fi
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9679 $as_echo "$am_cv_langinfo_codeset" >&6; }
9680   if test $am_cv_langinfo_codeset = yes; then
9681
9682 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9683
9684   fi
9685
9686
9687 # We will need to find libiberty.h and ansidecl.h
9688 saved_CFLAGS="$CFLAGS"
9689 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9690 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9691         strsignal strstr strverscmp \
9692         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9693         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
9694 do
9695   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9697 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9698 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9699   $as_echo_n "(cached) " >&6
9700 else
9701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h.  */
9703 #undef $ac_tr_decl
9704 #define $ac_tr_decl 1
9705
9706 #include "ansidecl.h"
9707 #include "system.h"
9708
9709 int
9710 main ()
9711 {
9712 #ifndef $ac_func
9713 char *(*pfn) = (char *(*)) $ac_func ;
9714 #endif
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 if ac_fn_c_try_compile "$LINENO"; then :
9720   eval "gcc_cv_have_decl_$ac_func=yes"
9721 else
9722   eval "gcc_cv_have_decl_$ac_func=no"
9723 fi
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725 fi
9726
9727 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9729 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9730 #define $ac_tr_decl 1
9731 _ACEOF
9732
9733 else
9734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9736 #define $ac_tr_decl 0
9737 _ACEOF
9738
9739 fi
9740
9741 done
9742
9743
9744 for ac_func in getrlimit setrlimit getrusage
9745 do
9746   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9748 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9749 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9750   $as_echo_n "(cached) " >&6
9751 else
9752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h.  */
9754 #undef $ac_tr_decl
9755 #define $ac_tr_decl 1
9756
9757 #include "ansidecl.h"
9758 #include "system.h"
9759 #ifdef HAVE_SYS_RESOURCE_H
9760 #include <sys/resource.h>
9761 #endif
9762
9763
9764 int
9765 main ()
9766 {
9767 #ifndef $ac_func
9768 char *(*pfn) = (char *(*)) $ac_func ;
9769 #endif
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 if ac_fn_c_try_compile "$LINENO"; then :
9775   eval "gcc_cv_have_decl_$ac_func=yes"
9776 else
9777   eval "gcc_cv_have_decl_$ac_func=no"
9778 fi
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 fi
9781
9782 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9784 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9785 #define $ac_tr_decl 1
9786 _ACEOF
9787
9788 else
9789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9791 #define $ac_tr_decl 0
9792 _ACEOF
9793
9794 fi
9795
9796 done
9797
9798
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h.  */
9801
9802 #include "ansidecl.h"
9803 #include "system.h"
9804 #ifdef HAVE_SYS_RESOURCE_H
9805 #include <sys/resource.h>
9806 #endif
9807
9808 int
9809 main ()
9810 {
9811 rlim_t l = 0;
9812   ;
9813   return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_compile "$LINENO"; then :
9817
9818 else
9819
9820 $as_echo "#define rlim_t long" >>confdefs.h
9821
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824
9825 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9826 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9827 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9828 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9829 for ac_func in ldgetname
9830 do
9831   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9833 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9834 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9835   $as_echo_n "(cached) " >&6
9836 else
9837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h.  */
9839 #undef $ac_tr_decl
9840 #define $ac_tr_decl 1
9841
9842 #include "ansidecl.h"
9843 #include "system.h"
9844 #ifdef HAVE_LDFCN_H
9845 #undef FREAD
9846 #undef FWRITE
9847 #include <ldfcn.h>
9848 #endif
9849
9850
9851 int
9852 main ()
9853 {
9854 #ifndef $ac_func
9855 char *(*pfn) = (char *(*)) $ac_func ;
9856 #endif
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 if ac_fn_c_try_compile "$LINENO"; then :
9862   eval "gcc_cv_have_decl_$ac_func=yes"
9863 else
9864   eval "gcc_cv_have_decl_$ac_func=no"
9865 fi
9866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9867 fi
9868
9869 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9871 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9872 #define $ac_tr_decl 1
9873 _ACEOF
9874
9875 else
9876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9878 #define $ac_tr_decl 0
9879 _ACEOF
9880
9881 fi
9882
9883 done
9884
9885
9886 for ac_func in times
9887 do
9888   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9890 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9891 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9892   $as_echo_n "(cached) " >&6
9893 else
9894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h.  */
9896 #undef $ac_tr_decl
9897 #define $ac_tr_decl 1
9898
9899 #include "ansidecl.h"
9900 #include "system.h"
9901 #ifdef HAVE_SYS_TIMES_H
9902 #include <sys/times.h>
9903 #endif
9904
9905
9906 int
9907 main ()
9908 {
9909 #ifndef $ac_func
9910 char *(*pfn) = (char *(*)) $ac_func ;
9911 #endif
9912   ;
9913   return 0;
9914 }
9915 _ACEOF
9916 if ac_fn_c_try_compile "$LINENO"; then :
9917   eval "gcc_cv_have_decl_$ac_func=yes"
9918 else
9919   eval "gcc_cv_have_decl_$ac_func=no"
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922 fi
9923
9924 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9926 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9927 #define $ac_tr_decl 1
9928 _ACEOF
9929
9930 else
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9933 #define $ac_tr_decl 0
9934 _ACEOF
9935
9936 fi
9937
9938 done
9939
9940
9941 for ac_func in sigaltstack
9942 do
9943   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9945 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9946 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9947   $as_echo_n "(cached) " >&6
9948 else
9949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h.  */
9951 #undef $ac_tr_decl
9952 #define $ac_tr_decl 1
9953
9954 #include "ansidecl.h"
9955 #include "system.h"
9956 #include <signal.h>
9957
9958
9959 int
9960 main ()
9961 {
9962 #ifndef $ac_func
9963 char *(*pfn) = (char *(*)) $ac_func ;
9964 #endif
9965   ;
9966   return 0;
9967 }
9968 _ACEOF
9969 if ac_fn_c_try_compile "$LINENO"; then :
9970   eval "gcc_cv_have_decl_$ac_func=yes"
9971 else
9972   eval "gcc_cv_have_decl_$ac_func=no"
9973 fi
9974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 fi
9976
9977 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9979 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9980 #define $ac_tr_decl 1
9981 _ACEOF
9982
9983 else
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9986 #define $ac_tr_decl 0
9987 _ACEOF
9988
9989 fi
9990
9991 done
9992
9993
9994 # More time-related stuff.
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9996 $as_echo_n "checking for struct tms... " >&6; }
9997 if test "${ac_cv_struct_tms+set}" = set; then :
9998   $as_echo_n "(cached) " >&6
9999 else
10000
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h.  */
10003
10004 #include "ansidecl.h"
10005 #include "system.h"
10006 #ifdef HAVE_SYS_TIMES_H
10007 #include <sys/times.h>
10008 #endif
10009
10010 int
10011 main ()
10012 {
10013 struct tms tms;
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 if ac_fn_c_try_compile "$LINENO"; then :
10019   ac_cv_struct_tms=yes
10020 else
10021   ac_cv_struct_tms=no
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10024 fi
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10026 $as_echo "$ac_cv_struct_tms" >&6; }
10027 if test $ac_cv_struct_tms = yes; then
10028
10029 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10030
10031 fi
10032
10033 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10034 # revisit after autoconf 2.50.
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10036 $as_echo_n "checking for clock_t... " >&6; }
10037 if test "${gcc_cv_type_clock_t+set}" = set; then :
10038   $as_echo_n "(cached) " >&6
10039 else
10040
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h.  */
10043
10044 #include "ansidecl.h"
10045 #include "system.h"
10046
10047 int
10048 main ()
10049 {
10050 clock_t x;
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 if ac_fn_c_try_compile "$LINENO"; then :
10056   gcc_cv_type_clock_t=yes
10057 else
10058   gcc_cv_type_clock_t=no
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10063 $as_echo "$gcc_cv_type_clock_t" >&6; }
10064 if test $gcc_cv_type_clock_t = yes; then
10065
10066 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10067
10068 fi
10069
10070 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10071 CFLAGS="$saved_CFLAGS"
10072
10073 # Check whether --enable-initfini-array was given.
10074 if test "${enable_initfini_array+set}" = set; then :
10075   enableval=$enable_initfini_array;
10076 else
10077
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10079 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10080 if test "${gcc_cv_initfini_array+set}" = set; then :
10081   $as_echo_n "(cached) " >&6
10082 else
10083     if test "$cross_compiling" = yes; then :
10084   gcc_cv_initfini_array=no
10085 else
10086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h.  */
10088
10089 static int x = -1;
10090 int main (void) { return x; }
10091 int foo (void) { x = 0; }
10092 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10093 _ACEOF
10094 if ac_fn_c_try_run "$LINENO"; then :
10095   gcc_cv_initfini_array=yes
10096 else
10097   gcc_cv_initfini_array=no
10098 fi
10099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10100   conftest.$ac_objext conftest.beam conftest.$ac_ext
10101 fi
10102
10103 fi
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10105 $as_echo "$gcc_cv_initfini_array" >&6; }
10106   enable_initfini_array=$gcc_cv_initfini_array
10107
10108 fi
10109
10110 if test $enable_initfini_array = yes; then
10111
10112 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10113
10114 fi
10115
10116 # mkdir takes a single argument on some systems.
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10118 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10119 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h.  */
10124
10125 #include <sys/types.h>
10126 #ifdef HAVE_SYS_STAT_H
10127 # include <sys/stat.h>
10128 #endif
10129 #ifdef HAVE_UNISTD_H
10130 # include <unistd.h>
10131 #endif
10132 #ifdef HAVE_DIRECT_H
10133 # include <direct.h>
10134 #endif
10135 int
10136 main ()
10137 {
10138 mkdir ("foo", 0);
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 if ac_fn_c_try_compile "$LINENO"; then :
10144   gcc_cv_mkdir_takes_one_arg=no
10145 else
10146   gcc_cv_mkdir_takes_one_arg=yes
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 fi
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10151 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10152 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10153
10154 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10155
10156 fi
10157
10158
10159 # File extensions
10160 manext='.1'
10161 objext='.o'
10162
10163
10164
10165 # With Setjmp/Longjmp based exception handling.
10166 # Check whether --enable-sjlj-exceptions was given.
10167 if test "${enable_sjlj_exceptions+set}" = set; then :
10168   enableval=$enable_sjlj_exceptions; case $target in
10169   *-*-hpux10*)
10170     if test $enableval != yes; then
10171       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10172 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10173       enableval=yes
10174     fi
10175     ;;
10176 esac
10177 force_sjlj_exceptions=yes
10178 else
10179   case $target in
10180   *-*-hpux10*)
10181     force_sjlj_exceptions=yes
10182     enableval=yes
10183     ;;
10184   *)
10185     force_sjlj_exceptions=no
10186     ;;
10187 esac
10188 fi
10189
10190 if test $force_sjlj_exceptions = yes; then
10191   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10192
10193 cat >>confdefs.h <<_ACEOF
10194 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10195 _ACEOF
10196
10197 fi
10198
10199 # For platforms with the unwind ABI which includes an unwind library,
10200 # libunwind, we can choose to use the system libunwind.
10201 # config.gcc also contains tests of with_system_libunwind.
10202
10203
10204 # Check whether --with-system-libunwind was given.
10205 if test "${with_system_libunwind+set}" = set; then :
10206   withval=$with_system_libunwind;
10207 fi
10208
10209   # If system-libunwind was not specifically set, pick a default setting.
10210   if test x$with_system_libunwind = x; then
10211     case ${target} in
10212       ia64-*-hpux*) with_system_libunwind=yes ;;
10213       *) with_system_libunwind=no ;;
10214     esac
10215   fi
10216   # Based on system-libunwind and target, do we have ipinfo?
10217   if  test x$with_system_libunwind = xyes; then
10218     case ${target} in
10219       ia64-*-*) have_unwind_getipinfo=no ;;
10220       *) have_unwind_getipinfo=yes ;;
10221     esac
10222   else
10223     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10224
10225     case ${target} in
10226       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10227       *) have_unwind_getipinfo=yes ;;
10228     esac
10229
10230   fi
10231
10232   if test x$have_unwind_getipinfo = xyes; then
10233
10234 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10235
10236   fi
10237
10238
10239 # --------------------------------------------------------
10240 # Build, host, and target specific configuration fragments
10241 # --------------------------------------------------------
10242
10243 # Collect build-machine-specific information.
10244 . ${srcdir}/config.build
10245
10246 # Collect host-machine-specific information.
10247 . ${srcdir}/config.host
10248
10249 target_gtfiles=
10250
10251 # Collect target-machine-specific information.
10252 . ${srcdir}/config.gcc
10253
10254 extra_objs="${host_extra_objs} ${extra_objs}"
10255 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10256
10257 # Default the target-machine variables that were not explicitly set.
10258 if test x"$tm_file" = x
10259 then tm_file=$cpu_type/$cpu_type.h; fi
10260
10261 if test x"$extra_headers" = x
10262 then extra_headers=; fi
10263
10264 if test x$md_file = x
10265 then md_file=$cpu_type/$cpu_type.md; fi
10266
10267 if test x$out_file = x
10268 then out_file=$cpu_type/$cpu_type.c; fi
10269
10270 if test x"$tmake_file" = x
10271 then tmake_file=$cpu_type/t-$cpu_type
10272 fi
10273
10274 if test x"$dwarf2" = xyes
10275 then tm_file="$tm_file tm-dwarf2.h"
10276 fi
10277
10278 # Say what files are being used for the output code and MD file.
10279 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10280 echo "Using \`$srcdir/config/$md_file' as machine description file."
10281
10282 # If any of the xm_file variables contain nonexistent files, warn
10283 # about them and drop them.
10284
10285 bx=
10286 for x in $build_xm_file; do
10287   if    test -f $srcdir/config/$x
10288   then      bx="$bx $x"
10289   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10290 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10291   fi
10292 done
10293 build_xm_file="$bx"
10294
10295 hx=
10296 for x in $host_xm_file; do
10297   if    test -f $srcdir/config/$x
10298   then      hx="$hx $x"
10299   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10300 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10301   fi
10302 done
10303 host_xm_file="$hx"
10304
10305 tx=
10306 for x in $xm_file; do
10307   if    test -f $srcdir/config/$x
10308   then      tx="$tx $x"
10309   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10310 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10311   fi
10312 done
10313 xm_file="$tx"
10314
10315 count=a
10316 for f in $tm_file; do
10317         count=${count}x
10318 done
10319 if test $count = ax; then
10320         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10321 else
10322         echo "Using the following target machine macro files:"
10323         for f in $tm_file; do
10324                 echo "  $srcdir/config/$f"
10325         done
10326 fi
10327
10328 if test x$need_64bit_hwint = xyes; then
10329
10330 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10331
10332 fi
10333
10334 if test x$use_long_long_for_widest_fast_int = xyes; then
10335
10336 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10337
10338 fi
10339
10340 count=a
10341 for f in $host_xm_file; do
10342         count=${count}x
10343 done
10344 if test $count = a; then
10345         :
10346 elif test $count = ax; then
10347         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10348 else
10349         echo "Using the following host machine macro files:"
10350         for f in $host_xm_file; do
10351                 echo "  $srcdir/config/$f"
10352         done
10353 fi
10354 echo "Using ${out_host_hook_obj} for host machine hooks."
10355
10356 if test "$host_xm_file" != "$build_xm_file"; then
10357         count=a
10358         for f in $build_xm_file; do
10359                 count=${count}x
10360         done
10361         if test $count = a; then
10362                 :
10363         elif test $count = ax; then
10364                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10365         else
10366                 echo "Using the following build machine macro files:"
10367                 for f in $build_xm_file; do
10368                         echo "  $srcdir/config/$f"
10369                 done
10370         fi
10371 fi
10372
10373 case ${host} in
10374   powerpc*-*-darwin*)
10375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10376 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10377 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10378   $as_echo_n "(cached) " >&6
10379 else
10380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h.  */
10382
10383 #include <sys/cdefs.h>
10384 #include <sys/signal.h>
10385 #include <ucontext.h>
10386 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10387
10388 _ACEOF
10389 if ac_fn_c_try_compile "$LINENO"; then :
10390   gcc_cv_mcontext_underscores=no
10391 else
10392   gcc_cv_mcontext_underscores=yes
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395 fi
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10397 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10398       if test $gcc_cv_mcontext_underscores = yes; then
10399
10400 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10401
10402       fi
10403     ;;
10404 esac
10405
10406 # ---------
10407 # Threading
10408 # ---------
10409
10410 # Check if a valid thread package
10411 case ${enable_threads} in
10412   "" | no)
10413     # No threads
10414     target_thread_file='single'
10415     ;;
10416   yes)
10417     # default
10418     target_thread_file='single'
10419     ;;
10420   aix | dce | gnat | irix | posix | posix95 | rtems | \
10421   single | solaris | vxworks | win32 | mipssde)
10422     target_thread_file=${enable_threads}
10423     ;;
10424   *)
10425     echo "${enable_threads} is an unknown thread package" 1>&2
10426     exit 1
10427     ;;
10428 esac
10429
10430 if test x${thread_file} = x; then
10431   # No thread file set by target-specific clauses in config.gcc,
10432   # so use file chosen by default logic above
10433   thread_file=${target_thread_file}
10434 fi
10435
10436 # Make gthr-default.h if we have a thread file.
10437 gthread_flags=
10438 if test $thread_file != single; then
10439   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10440   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10441     rm -f gthr-default.h-t
10442   else
10443     mv -f gthr-default.h-t gthr-default.h
10444   fi
10445   gthread_flags=-DHAVE_GTHR_DEFAULT
10446 fi
10447
10448
10449 # --------
10450 # UNSORTED
10451 # --------
10452
10453 use_cxa_atexit=no
10454 if test x$enable___cxa_atexit = xyes || \
10455    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10456   if test x$host = x$target; then
10457     case $host in
10458       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10459       # keyed to flag_use_cxa_atexit
10460       *-*-mingw32*)
10461         use_cxa_atexit=yes
10462         ;;
10463       *)
10464         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10465 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10466   use_cxa_atexit=yes
10467 else
10468   echo "__cxa_atexit can't be enabled on this target"
10469 fi
10470
10471         ;;
10472     esac
10473   else
10474     # We can't check for __cxa_atexit when building a cross, so assume
10475     # it is available
10476     use_cxa_atexit=yes
10477   fi
10478   if test x$use_cxa_atexit = xyes; then
10479
10480 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10481
10482   fi
10483 fi
10484
10485 # Look for a file containing extra machine modes.
10486 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10487   extra_modes_file='$(srcdir)'/config/${extra_modes}
10488
10489
10490 cat >>confdefs.h <<_ACEOF
10491 #define EXTRA_MODES_FILE "config/$extra_modes"
10492 _ACEOF
10493
10494 fi
10495
10496 # Convert extra_options into a form suitable for Makefile use.
10497 extra_opt_files=
10498 for f in $extra_options; do
10499   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10500 done
10501
10502
10503 # auto-host.h is the file containing items generated by autoconf and is
10504 # the first file included by config.h.
10505 # If host=build, it is correct to have bconfig include auto-host.h
10506 # as well.  If host!=build, we are in error and need to do more
10507 # work to find out the build config parameters.
10508 if test x$host = x$build
10509 then
10510         build_auto=auto-host.h
10511 else
10512         # We create a subdir, then run autoconf in the subdir.
10513         # To prevent recursion we set host and build for the new
10514         # invocation of configure to the build for this invocation
10515         # of configure.
10516         tempdir=build.$$
10517         rm -rf $tempdir
10518         mkdir $tempdir
10519         cd $tempdir
10520         case ${srcdir} in
10521         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10522         *) realsrcdir=../${srcdir};;
10523         esac
10524         saved_CFLAGS="${CFLAGS}"
10525         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10526         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10527         ${realsrcdir}/configure \
10528                 --enable-languages=${enable_languages-all} \
10529                 --target=$target_alias --host=$build_alias --build=$build_alias
10530         CFLAGS="${saved_CFLAGS}"
10531
10532         # We just finished tests for the build machine, so rename
10533         # the file auto-build.h in the gcc directory.
10534         mv auto-host.h ../auto-build.h
10535         cd ..
10536         rm -rf $tempdir
10537         build_auto=auto-build.h
10538 fi
10539
10540
10541 tm_file="${tm_file} defaults.h"
10542 tm_p_file="${tm_p_file} tm-preds.h"
10543 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10544 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10545 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10546 # put this back in temporarily.
10547 xm_file="auto-host.h ansidecl.h ${xm_file}"
10548
10549 # --------
10550 # UNSORTED
10551 # --------
10552
10553 # Compile in configure arguments.
10554 if test -f configargs.h ; then
10555         # Being re-configured.
10556         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10557         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10558 else
10559         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10560 fi
10561
10562 # Double all backslashes and backslash all quotes to turn
10563 # gcc_config_arguments into a C string.
10564 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10565 $gcc_config_arguments
10566 EOF
10567 gcc_config_arguments_str=`cat conftest.out`
10568 rm -f conftest.out
10569
10570 cat > configargs.h <<EOF
10571 /* Generated automatically. */
10572 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10573 static const char thread_model[] = "$thread_file";
10574
10575 static const struct {
10576   const char *name, *value;
10577 } configure_default_options[] = $configure_default_options;
10578 EOF
10579
10580 gcc_BASEVER=`cat $srcdir/BASE-VER`
10581 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10582 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10583 if test -f $srcdir/REVISION ; then
10584         gcc_REVISION=`cat $srcdir/REVISION`
10585 else
10586         gcc_REVISION=""
10587 fi
10588 cat > plugin-version.h <<EOF
10589 #include "configargs.h"
10590
10591 static char basever[] = "$gcc_BASEVER";
10592 static char datestamp[] = "$gcc_DATESTAMP";
10593 static char devphase[] = "$gcc_DEVPHASE";
10594 static char revision[] = "$gcc_REVISION";
10595
10596 /* FIXME plugins: We should make the version information more precise.
10597    One way to do is to add a checksum. */
10598
10599 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10600                                                 devphase, revision,
10601                                                 configuration_arguments};
10602 EOF
10603
10604 # Internationalization
10605 # If we haven't got the data from the intl directory,
10606 # assume NLS is disabled.
10607 USE_NLS=no
10608 LIBINTL=
10609 LIBINTL_DEP=
10610 INCINTL=
10611 XGETTEXT=
10612 GMSGFMT=
10613 POSUB=
10614
10615 if test -f  ../intl/config.intl; then
10616   .  ../intl/config.intl
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10619 $as_echo_n "checking whether NLS is requested... " >&6; }
10620 if test x"$USE_NLS" != xyes; then
10621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10623 else
10624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10625 $as_echo "yes" >&6; }
10626
10627 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10628
10629
10630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10631 $as_echo_n "checking for catalogs to be installed... " >&6; }
10632   # Look for .po and .gmo files in the source directory.
10633   CATALOGS=
10634   XLINGUAS=
10635   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10636     # If there aren't any .gmo files the shell will give us the
10637     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10638     # weeded out.
10639     case "$cat" in *\**)
10640       continue;;
10641     esac
10642     # The quadruple backslash is collapsed to a double backslash
10643     # by the backticks, then collapsed again by the double quotes,
10644     # leaving us with one backslash in the sed expression (right
10645     # before the dot that mustn't act as a wildcard).
10646     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10647     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10648     # The user is allowed to set LINGUAS to a list of languages to
10649     # install catalogs for.  If it's empty that means "all of them."
10650     if test "x$LINGUAS" = x; then
10651       CATALOGS="$CATALOGS $cat"
10652       XLINGUAS="$XLINGUAS $lang"
10653     else
10654       case "$LINGUAS" in *$lang*)
10655         CATALOGS="$CATALOGS $cat"
10656         XLINGUAS="$XLINGUAS $lang"
10657         ;;
10658       esac
10659     fi
10660   done
10661   LINGUAS="$XLINGUAS"
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10663 $as_echo "$LINGUAS" >&6; }
10664
10665
10666     DATADIRNAME=share
10667
10668   INSTOBJEXT=.mo
10669
10670   GENCAT=gencat
10671
10672   CATOBJEXT=.gmo
10673
10674 fi
10675
10676 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10677 # -liconv on the link line twice.
10678 case "$LIBINTL" in *$LIBICONV*)
10679         LIBICONV= ;;
10680 esac
10681
10682 # Check whether --enable-secureplt was given.
10683 if test "${enable_secureplt+set}" = set; then :
10684   enableval=$enable_secureplt;
10685 fi
10686
10687
10688 # Check whether --enable-cld was given.
10689 if test "${enable_cld+set}" = set; then :
10690   enableval=$enable_cld;
10691 else
10692   enable_cld=no
10693 fi
10694
10695
10696 # Windows32 Registry support for specifying GCC installation paths.
10697 # Check whether --enable-win32-registry was given.
10698 if test "${enable_win32_registry+set}" = set; then :
10699   enableval=$enable_win32_registry;
10700 fi
10701
10702
10703 case $host_os in
10704   win32 | pe | cygwin* | mingw32* | uwin*)
10705     if test "x$enable_win32_registry" != xno; then
10706       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10707 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10708 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10709   $as_echo_n "(cached) " >&6
10710 else
10711   ac_func_search_save_LIBS=$LIBS
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h.  */
10714
10715 /* Override any GCC internal prototype to avoid an error.
10716    Use char because int might match the return type of a GCC
10717    builtin and then its argument prototype would still apply.  */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 char RegOpenKeyExA ();
10722 int
10723 main ()
10724 {
10725 return RegOpenKeyExA ();
10726   ;
10727   return 0;
10728 }
10729 _ACEOF
10730 for ac_lib in '' advapi32; do
10731   if test -z "$ac_lib"; then
10732     ac_res="none required"
10733   else
10734     ac_res=-l$ac_lib
10735     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10736   fi
10737   if ac_fn_c_try_link "$LINENO"; then :
10738   ac_cv_search_RegOpenKeyExA=$ac_res
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741     conftest$ac_exeext
10742   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10743   break
10744 fi
10745 done
10746 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10747
10748 else
10749   ac_cv_search_RegOpenKeyExA=no
10750 fi
10751 rm conftest.$ac_ext
10752 LIBS=$ac_func_search_save_LIBS
10753 fi
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10755 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10756 ac_res=$ac_cv_search_RegOpenKeyExA
10757 if test "$ac_res" != no; then :
10758   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10759
10760 else
10761   enable_win32_registry=no
10762 fi
10763
10764     fi
10765
10766     if test "x$enable_win32_registry" != xno; then
10767
10768 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10769
10770
10771       if test "x$enable_win32_registry" != xyes \
10772          && test "x$enable_win32_registry" != x; then
10773
10774 cat >>confdefs.h <<_ACEOF
10775 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10776 _ACEOF
10777
10778       fi
10779     fi
10780   ;;
10781 esac
10782
10783 # Get an absolute path to the GCC top-level source directory
10784 holddir=`${PWDCMD-pwd}`
10785 cd $srcdir
10786 topdir=`${PWDCMD-pwd}`
10787 cd $holddir
10788
10789 # Conditionalize the makefile for this host machine.
10790 xmake_file=
10791 for f in ${host_xmake_file}
10792 do
10793         if test -f ${srcdir}/config/$f
10794         then
10795                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10796         fi
10797 done
10798
10799 # Conditionalize the makefile for this target machine.
10800 tmake_file_=
10801 for f in ${tmake_file}
10802 do
10803         if test -f ${srcdir}/config/$f
10804         then
10805                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10806         fi
10807 done
10808 tmake_file="${tmake_file_}"
10809
10810 out_object_file=`basename $out_file .c`.o
10811
10812 tm_file_list="options.h"
10813 tm_include_list="options.h"
10814 for f in $tm_file; do
10815   case $f in
10816     ./* )
10817        f=`echo $f | sed 's/^..//'`
10818        tm_file_list="${tm_file_list} $f"
10819        tm_include_list="${tm_include_list} $f"
10820        ;;
10821     defaults.h )
10822        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10823        tm_include_list="${tm_include_list} $f"
10824        ;;
10825     * )
10826        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10827        tm_include_list="${tm_include_list} config/$f"
10828        ;;
10829   esac
10830 done
10831
10832 tm_p_file_list=
10833 tm_p_include_list=
10834 for f in $tm_p_file; do
10835   case $f in
10836     tm-preds.h )
10837        tm_p_file_list="${tm_p_file_list} $f"
10838        tm_p_include_list="${tm_p_include_list} $f"
10839        ;;
10840     * )
10841        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10842        tm_p_include_list="${tm_p_include_list} config/$f"
10843   esac
10844 done
10845
10846 xm_file_list=
10847 xm_include_list=
10848 for f in $xm_file; do
10849   case $f in
10850     ansidecl.h )
10851        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10852        xm_include_list="${xm_include_list} $f"
10853        ;;
10854     auto-host.h )
10855        xm_file_list="${xm_file_list} $f"
10856        xm_include_list="${xm_include_list} $f"
10857        ;;
10858     * )
10859        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10860        xm_include_list="${xm_include_list} config/$f"
10861        ;;
10862   esac
10863 done
10864
10865 host_xm_file_list=
10866 host_xm_include_list=
10867 for f in $host_xm_file; do
10868   case $f in
10869     ansidecl.h )
10870        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10871        host_xm_include_list="${host_xm_include_list} $f"
10872        ;;
10873     auto-host.h )
10874        host_xm_file_list="${host_xm_file_list} $f"
10875        host_xm_include_list="${host_xm_include_list} $f"
10876        ;;
10877     * )
10878        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10879        host_xm_include_list="${host_xm_include_list} config/$f"
10880        ;;
10881   esac
10882 done
10883
10884 build_xm_file_list=
10885 for f in $build_xm_file; do
10886   case $f in
10887     ansidecl.h )
10888        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10889        build_xm_include_list="${build_xm_include_list} $f"
10890        ;;
10891     auto-build.h | auto-host.h )
10892        build_xm_file_list="${build_xm_file_list} $f"
10893        build_xm_include_list="${build_xm_include_list} $f"
10894        ;;
10895     * )
10896        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10897        build_xm_include_list="${build_xm_include_list} config/$f"
10898        ;;
10899   esac
10900 done
10901
10902 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10903 # cross-compiler which does not use the native headers and libraries.
10904 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10905 CROSS=
10906 ALL=all.internal
10907 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10908
10909 if test "x$with_build_sysroot" != x; then
10910   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10911 else
10912   # This value is used, even on a native system, because
10913   # CROSS_SYSTEM_HEADER_DIR is just
10914   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10915   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10916 fi
10917
10918 if test x$host != x$target
10919 then
10920         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10921         ALL=all.cross
10922         SYSTEM_HEADER_DIR=$build_system_header_dir
10923         case "$host","$target" in
10924         # Darwin crosses can use the host system's libraries and headers,
10925         # because of the fat library support.  Of course, it must be the
10926         # same version of Darwin on both sides.  Allow the user to
10927         # just say --target=foo-darwin without a version number to mean
10928         # "the version on this system".
10929             *-*-darwin*,*-*-darwin*)
10930                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10931                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10932                 if test $hostos = $targetos -o $targetos = darwin ; then
10933                     CROSS=
10934                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10935                     with_headers=yes
10936                 fi
10937                 ;;
10938
10939             i?86-*-*,x86_64-*-* \
10940             | powerpc*-*-*,powerpc64*-*-*)
10941                 CROSS="$CROSS -DNATIVE_CROSS" ;;
10942         esac
10943 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10944         SYSTEM_HEADER_DIR=$build_system_header_dir
10945 fi
10946
10947 # If this is a cross-compiler that does not
10948 # have its own set of headers then define
10949 # inhibit_libc
10950
10951 # If this is using newlib, without having the headers available now,
10952 # then define inhibit_libc in LIBGCC2_CFLAGS.
10953 # This prevents libgcc2 from containing any code which requires libc
10954 # support.
10955 : ${inhibit_libc=false}
10956 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10957        test x$with_newlib = xyes ; } &&
10958      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10959        inhibit_libc=true
10960 fi
10961
10962
10963 # When building gcc with a cross-compiler, we need to adjust things so
10964 # that the generator programs are still built with the native compiler.
10965 # Also, we cannot run fixincludes.
10966
10967 # These are the normal (build=host) settings:
10968 CC_FOR_BUILD='$(CC)'
10969 BUILD_CFLAGS='$(ALL_CFLAGS)'
10970 BUILD_LDFLAGS='$(LDFLAGS)'
10971 STMP_FIXINC=stmp-fixinc
10972
10973 # And these apply if build != host, or we are generating coverage data
10974 if test x$build != x$host || test "x$coverage_flags" != x
10975 then
10976     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10977     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10978 fi
10979
10980 # Expand extra_headers to include complete path.
10981 # This substitutes for lots of t-* files.
10982 extra_headers_list=
10983 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10984 for file in ${extra_headers} ; do
10985   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10986 done
10987
10988 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10989 if test x"$use_gcc_tgmath" = xyes
10990 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10991 fi
10992
10993 # Define collect2 in Makefile.
10994 case $host_can_use_collect2 in
10995   no) collect2= ;;
10996   *) collect2='collect2$(exeext)' ;;
10997 esac
10998
10999
11000 # Add a definition of USE_COLLECT2 if system wants one.
11001 case $use_collect2 in
11002   no) use_collect2= ;;
11003   "") ;;
11004   *)
11005     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11006     xm_defines="${xm_defines} USE_COLLECT2"
11007     case $host_can_use_collect2 in
11008       no)
11009         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11010         ;;
11011     esac
11012     ;;
11013 esac
11014
11015 # ---------------------------
11016 # Assembler & linker features
11017 # ---------------------------
11018
11019 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11020 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11021 # However when ld-new is first executed from the build tree, libtool will
11022 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11023 # to the build tree.  While doing this we need to use the previous-stage
11024 # linker, or we have an infinite loop.  The presence of a shell script as
11025 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11026 # the gcc/collect-ld script.  So we need to know how libtool works, or
11027 # exec-tool will fail.
11028
11029
11030 case `pwd` in
11031   *\ * | *\     *)
11032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11033 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11034 esac
11035
11036
11037
11038 macro_version='2.2.7a'
11039 macro_revision='1.3134'
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053 ltmain="$ac_aux_dir/ltmain.sh"
11054
11055 # Backslashify metacharacters that are still active within
11056 # double-quoted strings.
11057 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11058
11059 # Same as above, but do not quote variable references.
11060 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11061
11062 # Sed substitution to delay expansion of an escaped shell variable in a
11063 # double_quote_subst'ed string.
11064 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11065
11066 # Sed substitution to delay expansion of an escaped single quote.
11067 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11068
11069 # Sed substitution to avoid accidental globbing in evaled expressions
11070 no_glob_subst='s/\*/\\\*/g'
11071
11072 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11075
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11077 $as_echo_n "checking how to print strings... " >&6; }
11078 # Test print first, because it will be a builtin if present.
11079 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11080    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11081   ECHO='print -r --'
11082 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11083   ECHO='printf %s\n'
11084 else
11085   # Use this function as a fallback that always works.
11086   func_fallback_echo ()
11087   {
11088     eval 'cat <<_LTECHO_EOF
11089 $1
11090 _LTECHO_EOF'
11091   }
11092   ECHO='func_fallback_echo'
11093 fi
11094
11095 # func_echo_all arg...
11096 # Invoke $ECHO with all args, space-separated.
11097 func_echo_all ()
11098 {
11099     $ECHO ""
11100 }
11101
11102 case "$ECHO" in
11103   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11104 $as_echo "printf" >&6; } ;;
11105   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11106 $as_echo "print -r" >&6; } ;;
11107   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11108 $as_echo "cat" >&6; } ;;
11109 esac
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11126 if test "${ac_cv_path_SED+set}" = set; then :
11127   $as_echo_n "(cached) " >&6
11128 else
11129             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11130      for ac_i in 1 2 3 4 5 6 7; do
11131        ac_script="$ac_script$as_nl$ac_script"
11132      done
11133      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11134      { ac_script=; unset ac_script;}
11135      if test -z "$SED"; then
11136   ac_path_SED_found=false
11137   # Loop through the user's path and test for each of PROGNAME-LIST
11138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11140 do
11141   IFS=$as_save_IFS
11142   test -z "$as_dir" && as_dir=.
11143     for ac_prog in sed gsed; do
11144     for ac_exec_ext in '' $ac_executable_extensions; do
11145       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11146       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11147 # Check for GNU ac_path_SED and select it if it is found.
11148   # Check for GNU $ac_path_SED
11149 case `"$ac_path_SED" --version 2>&1` in
11150 *GNU*)
11151   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11152 *)
11153   ac_count=0
11154   $as_echo_n 0123456789 >"conftest.in"
11155   while :
11156   do
11157     cat "conftest.in" "conftest.in" >"conftest.tmp"
11158     mv "conftest.tmp" "conftest.in"
11159     cp "conftest.in" "conftest.nl"
11160     $as_echo '' >> "conftest.nl"
11161     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11162     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11163     as_fn_arith $ac_count + 1 && ac_count=$as_val
11164     if test $ac_count -gt ${ac_path_SED_max-0}; then
11165       # Best one so far, save it but keep looking for a better one
11166       ac_cv_path_SED="$ac_path_SED"
11167       ac_path_SED_max=$ac_count
11168     fi
11169     # 10*(2^10) chars as input seems more than enough
11170     test $ac_count -gt 10 && break
11171   done
11172   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11173 esac
11174
11175       $ac_path_SED_found && break 3
11176     done
11177   done
11178   done
11179 IFS=$as_save_IFS
11180   if test -z "$ac_cv_path_SED"; then
11181     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11182   fi
11183 else
11184   ac_cv_path_SED=$SED
11185 fi
11186
11187 fi
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11189 $as_echo "$ac_cv_path_SED" >&6; }
11190  SED="$ac_cv_path_SED"
11191   rm -f conftest.sed
11192
11193 test -z "$SED" && SED=sed
11194 Xsed="$SED -e 1s/^X//"
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11207 $as_echo_n "checking for fgrep... " >&6; }
11208 if test "${ac_cv_path_FGREP+set}" = set; then :
11209   $as_echo_n "(cached) " >&6
11210 else
11211   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11212    then ac_cv_path_FGREP="$GREP -F"
11213    else
11214      if test -z "$FGREP"; then
11215   ac_path_FGREP_found=false
11216   # Loop through the user's path and test for each of PROGNAME-LIST
11217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11219 do
11220   IFS=$as_save_IFS
11221   test -z "$as_dir" && as_dir=.
11222     for ac_prog in fgrep; do
11223     for ac_exec_ext in '' $ac_executable_extensions; do
11224       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11225       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11226 # Check for GNU ac_path_FGREP and select it if it is found.
11227   # Check for GNU $ac_path_FGREP
11228 case `"$ac_path_FGREP" --version 2>&1` in
11229 *GNU*)
11230   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11231 *)
11232   ac_count=0
11233   $as_echo_n 0123456789 >"conftest.in"
11234   while :
11235   do
11236     cat "conftest.in" "conftest.in" >"conftest.tmp"
11237     mv "conftest.tmp" "conftest.in"
11238     cp "conftest.in" "conftest.nl"
11239     $as_echo 'FGREP' >> "conftest.nl"
11240     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11241     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11242     as_fn_arith $ac_count + 1 && ac_count=$as_val
11243     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11244       # Best one so far, save it but keep looking for a better one
11245       ac_cv_path_FGREP="$ac_path_FGREP"
11246       ac_path_FGREP_max=$ac_count
11247     fi
11248     # 10*(2^10) chars as input seems more than enough
11249     test $ac_count -gt 10 && break
11250   done
11251   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11252 esac
11253
11254       $ac_path_FGREP_found && break 3
11255     done
11256   done
11257   done
11258 IFS=$as_save_IFS
11259   if test -z "$ac_cv_path_FGREP"; then
11260     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11261   fi
11262 else
11263   ac_cv_path_FGREP=$FGREP
11264 fi
11265
11266    fi
11267 fi
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11269 $as_echo "$ac_cv_path_FGREP" >&6; }
11270  FGREP="$ac_cv_path_FGREP"
11271
11272
11273 test -z "$GREP" && GREP=grep
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293 # Check whether --with-gnu-ld was given.
11294 if test "${with_gnu_ld+set}" = set; then :
11295   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11296 else
11297   with_gnu_ld=no
11298 fi
11299
11300 ac_prog=ld
11301 if test "$GCC" = yes; then
11302   # Check if gcc -print-prog-name=ld gives a path.
11303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11304 $as_echo_n "checking for ld used by $CC... " >&6; }
11305   case $host in
11306   *-*-mingw*)
11307     # gcc leaves a trailing carriage return which upsets mingw
11308     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11309   *)
11310     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11311   esac
11312   case $ac_prog in
11313     # Accept absolute paths.
11314     [\\/]* | ?:[\\/]*)
11315       re_direlt='/[^/][^/]*/\.\./'
11316       # Canonicalize the pathname of ld
11317       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11318       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11319         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11320       done
11321       test -z "$LD" && LD="$ac_prog"
11322       ;;
11323   "")
11324     # If it fails, then pretend we aren't using GCC.
11325     ac_prog=ld
11326     ;;
11327   *)
11328     # If it is relative, then search for the first ld in PATH.
11329     with_gnu_ld=unknown
11330     ;;
11331   esac
11332 elif test "$with_gnu_ld" = yes; then
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11334 $as_echo_n "checking for GNU ld... " >&6; }
11335 else
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11337 $as_echo_n "checking for non-GNU ld... " >&6; }
11338 fi
11339 if test "${lt_cv_path_LD+set}" = set; then :
11340   $as_echo_n "(cached) " >&6
11341 else
11342   if test -z "$LD"; then
11343   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11344   for ac_dir in $PATH; do
11345     IFS="$lt_save_ifs"
11346     test -z "$ac_dir" && ac_dir=.
11347     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11348       lt_cv_path_LD="$ac_dir/$ac_prog"
11349       # Check to see if the program is GNU ld.  I'd rather use --version,
11350       # but apparently some variants of GNU ld only accept -v.
11351       # Break only if it was the GNU/non-GNU ld that we prefer.
11352       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11353       *GNU* | *'with BFD'*)
11354         test "$with_gnu_ld" != no && break
11355         ;;
11356       *)
11357         test "$with_gnu_ld" != yes && break
11358         ;;
11359       esac
11360     fi
11361   done
11362   IFS="$lt_save_ifs"
11363 else
11364   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11365 fi
11366 fi
11367
11368 LD="$lt_cv_path_LD"
11369 if test -n "$LD"; then
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11371 $as_echo "$LD" >&6; }
11372 else
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 fi
11376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11380   $as_echo_n "(cached) " >&6
11381 else
11382   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11383 case `$LD -v 2>&1 </dev/null` in
11384 *GNU* | *'with BFD'*)
11385   lt_cv_prog_gnu_ld=yes
11386   ;;
11387 *)
11388   lt_cv_prog_gnu_ld=no
11389   ;;
11390 esac
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11394 with_gnu_ld=$lt_cv_prog_gnu_ld
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11406 if test "${lt_cv_path_NM+set}" = set; then :
11407   $as_echo_n "(cached) " >&6
11408 else
11409   if test -n "$NM"; then
11410   # Let the user override the test.
11411   lt_cv_path_NM="$NM"
11412 else
11413   lt_nm_to_check="${ac_tool_prefix}nm"
11414   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11415     lt_nm_to_check="$lt_nm_to_check nm"
11416   fi
11417   for lt_tmp_nm in $lt_nm_to_check; do
11418     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11419     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11420       IFS="$lt_save_ifs"
11421       test -z "$ac_dir" && ac_dir=.
11422       tmp_nm="$ac_dir/$lt_tmp_nm"
11423       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11424         # Check to see if the nm accepts a BSD-compat flag.
11425         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11426         #   nm: unknown option "B" ignored
11427         # Tru64's nm complains that /dev/null is an invalid object file
11428         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11429         */dev/null* | *'Invalid file or object type'*)
11430           lt_cv_path_NM="$tmp_nm -B"
11431           break
11432           ;;
11433         *)
11434           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11435           */dev/null*)
11436             lt_cv_path_NM="$tmp_nm -p"
11437             break
11438             ;;
11439           *)
11440             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11441             continue # so that we can try to find one that supports BSD flags
11442             ;;
11443           esac
11444           ;;
11445         esac
11446       fi
11447     done
11448     IFS="$lt_save_ifs"
11449   done
11450   : ${lt_cv_path_NM=no}
11451 fi
11452 fi
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11454 $as_echo "$lt_cv_path_NM" >&6; }
11455 if test "$lt_cv_path_NM" != "no"; then
11456   NM="$lt_cv_path_NM"
11457 else
11458   # Didn't find any BSD compatible name lister, look for dumpbin.
11459   if test -n "$DUMPBIN"; then :
11460     # Let the user override the test.
11461   else
11462     if test -n "$ac_tool_prefix"; then
11463   for ac_prog in dumpbin "link -dump"
11464   do
11465     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468 $as_echo_n "checking for $ac_word... " >&6; }
11469 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11470   $as_echo_n "(cached) " >&6
11471 else
11472   if test -n "$DUMPBIN"; then
11473   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11474 else
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476 for as_dir in $PATH
11477 do
11478   IFS=$as_save_IFS
11479   test -z "$as_dir" && as_dir=.
11480     for ac_exec_ext in '' $ac_executable_extensions; do
11481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11482     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484     break 2
11485   fi
11486 done
11487   done
11488 IFS=$as_save_IFS
11489
11490 fi
11491 fi
11492 DUMPBIN=$ac_cv_prog_DUMPBIN
11493 if test -n "$DUMPBIN"; then
11494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11495 $as_echo "$DUMPBIN" >&6; }
11496 else
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11499 fi
11500
11501
11502     test -n "$DUMPBIN" && break
11503   done
11504 fi
11505 if test -z "$DUMPBIN"; then
11506   ac_ct_DUMPBIN=$DUMPBIN
11507   for ac_prog in dumpbin "link -dump"
11508 do
11509   # Extract the first word of "$ac_prog", so it can be a program name with args.
11510 set dummy $ac_prog; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11514   $as_echo_n "(cached) " >&6
11515 else
11516   if test -n "$ac_ct_DUMPBIN"; then
11517   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11518 else
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11521 do
11522   IFS=$as_save_IFS
11523   test -z "$as_dir" && as_dir=.
11524     for ac_exec_ext in '' $ac_executable_extensions; do
11525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11526     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528     break 2
11529   fi
11530 done
11531   done
11532 IFS=$as_save_IFS
11533
11534 fi
11535 fi
11536 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11537 if test -n "$ac_ct_DUMPBIN"; then
11538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11539 $as_echo "$ac_ct_DUMPBIN" >&6; }
11540 else
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11543 fi
11544
11545
11546   test -n "$ac_ct_DUMPBIN" && break
11547 done
11548
11549   if test "x$ac_ct_DUMPBIN" = x; then
11550     DUMPBIN=":"
11551   else
11552     case $cross_compiling:$ac_tool_warned in
11553 yes:)
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11556 ac_tool_warned=yes ;;
11557 esac
11558     DUMPBIN=$ac_ct_DUMPBIN
11559   fi
11560 fi
11561
11562     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11563     *COFF*)
11564       DUMPBIN="$DUMPBIN -symbols"
11565       ;;
11566     *)
11567       DUMPBIN=:
11568       ;;
11569     esac
11570   fi
11571
11572   if test "$DUMPBIN" != ":"; then
11573     NM="$DUMPBIN"
11574   fi
11575 fi
11576 test -z "$NM" && NM=nm
11577
11578
11579
11580
11581
11582
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11584 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11585 if test "${lt_cv_nm_interface+set}" = set; then :
11586   $as_echo_n "(cached) " >&6
11587 else
11588   lt_cv_nm_interface="BSD nm"
11589   echo "int some_variable = 0;" > conftest.$ac_ext
11590   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11591   (eval "$ac_compile" 2>conftest.err)
11592   cat conftest.err >&5
11593   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11594   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11595   cat conftest.err >&5
11596   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11597   cat conftest.out >&5
11598   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11599     lt_cv_nm_interface="MS dumpbin"
11600   fi
11601   rm -f conftest*
11602 fi
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11604 $as_echo "$lt_cv_nm_interface" >&6; }
11605
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11607 $as_echo_n "checking whether ln -s works... " >&6; }
11608 LN_S=$as_ln_s
11609 if test "$LN_S" = "ln -s"; then
11610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11611 $as_echo "yes" >&6; }
11612 else
11613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11614 $as_echo "no, using $LN_S" >&6; }
11615 fi
11616
11617 # find the maximum length of command line arguments
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11619 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11620 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623     i=0
11624   teststring="ABCD"
11625
11626   case $build_os in
11627   msdosdjgpp*)
11628     # On DJGPP, this test can blow up pretty badly due to problems in libc
11629     # (any single argument exceeding 2000 bytes causes a buffer overrun
11630     # during glob expansion).  Even if it were fixed, the result of this
11631     # check would be larger than it should be.
11632     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11633     ;;
11634
11635   gnu*)
11636     # Under GNU Hurd, this test is not required because there is
11637     # no limit to the length of command line arguments.
11638     # Libtool will interpret -1 as no limit whatsoever
11639     lt_cv_sys_max_cmd_len=-1;
11640     ;;
11641
11642   cygwin* | mingw* | cegcc*)
11643     # On Win9x/ME, this test blows up -- it succeeds, but takes
11644     # about 5 minutes as the teststring grows exponentially.
11645     # Worse, since 9x/ME are not pre-emptively multitasking,
11646     # you end up with a "frozen" computer, even though with patience
11647     # the test eventually succeeds (with a max line length of 256k).
11648     # Instead, let's just punt: use the minimum linelength reported by
11649     # all of the supported platforms: 8192 (on NT/2K/XP).
11650     lt_cv_sys_max_cmd_len=8192;
11651     ;;
11652
11653   mint*)
11654     # On MiNT this can take a long time and run out of memory.
11655     lt_cv_sys_max_cmd_len=8192;
11656     ;;
11657
11658   amigaos*)
11659     # On AmigaOS with pdksh, this test takes hours, literally.
11660     # So we just punt and use a minimum line length of 8192.
11661     lt_cv_sys_max_cmd_len=8192;
11662     ;;
11663
11664   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11665     # This has been around since 386BSD, at least.  Likely further.
11666     if test -x /sbin/sysctl; then
11667       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11668     elif test -x /usr/sbin/sysctl; then
11669       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11670     else
11671       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11672     fi
11673     # And add a safety zone
11674     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11675     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11676     ;;
11677
11678   interix*)
11679     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11680     lt_cv_sys_max_cmd_len=196608
11681     ;;
11682
11683   osf*)
11684     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11685     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11686     # nice to cause kernel panics so lets avoid the loop below.
11687     # First set a reasonable default.
11688     lt_cv_sys_max_cmd_len=16384
11689     #
11690     if test -x /sbin/sysconfig; then
11691       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11692         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11693       esac
11694     fi
11695     ;;
11696   sco3.2v5*)
11697     lt_cv_sys_max_cmd_len=102400
11698     ;;
11699   sysv5* | sco5v6* | sysv4.2uw2*)
11700     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11701     if test -n "$kargmax"; then
11702       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11703     else
11704       lt_cv_sys_max_cmd_len=32768
11705     fi
11706     ;;
11707   *)
11708     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11709     if test -n "$lt_cv_sys_max_cmd_len"; then
11710       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11711       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11712     else
11713       # Make teststring a little bigger before we do anything with it.
11714       # a 1K string should be a reasonable start.
11715       for i in 1 2 3 4 5 6 7 8 ; do
11716         teststring=$teststring$teststring
11717       done
11718       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11719       # If test is not a shell built-in, we'll probably end up computing a
11720       # maximum length that is only half of the actual maximum length, but
11721       # we can't tell.
11722       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11723                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11724               test $i != 17 # 1/2 MB should be enough
11725       do
11726         i=`expr $i + 1`
11727         teststring=$teststring$teststring
11728       done
11729       # Only check the string length outside the loop.
11730       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11731       teststring=
11732       # Add a significant safety factor because C++ compilers can tack on
11733       # massive amounts of additional arguments before passing them to the
11734       # linker.  It appears as though 1/2 is a usable value.
11735       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11736     fi
11737     ;;
11738   esac
11739
11740 fi
11741
11742 if test -n $lt_cv_sys_max_cmd_len ; then
11743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11745 else
11746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11747 $as_echo "none" >&6; }
11748 fi
11749 max_cmd_len=$lt_cv_sys_max_cmd_len
11750
11751
11752
11753
11754
11755
11756 : ${CP="cp -f"}
11757 : ${MV="mv -f"}
11758 : ${RM="rm -f"}
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11762 # Try some XSI features
11763 xsi_shell=no
11764 ( _lt_dummy="a/b/c"
11765   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11766       = c,a/b,, \
11767     && eval 'test $(( 1 + 1 )) -eq 2 \
11768     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11769   && xsi_shell=yes
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11771 $as_echo "$xsi_shell" >&6; }
11772
11773
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11775 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11776 lt_shell_append=no
11777 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11778     >/dev/null 2>&1 \
11779   && lt_shell_append=yes
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11781 $as_echo "$lt_shell_append" >&6; }
11782
11783
11784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11785   lt_unset=unset
11786 else
11787   lt_unset=false
11788 fi
11789
11790
11791
11792
11793
11794 # test EBCDIC or ASCII
11795 case `echo X|tr X '\101'` in
11796  A) # ASCII based system
11797     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11798   lt_SP2NL='tr \040 \012'
11799   lt_NL2SP='tr \015\012 \040\040'
11800   ;;
11801  *) # EBCDIC based system
11802   lt_SP2NL='tr \100 \n'
11803   lt_NL2SP='tr \r\n \100\100'
11804   ;;
11805 esac
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11816 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11817 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   lt_cv_ld_reload_flag='-r'
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11823 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11824 reload_flag=$lt_cv_ld_reload_flag
11825 case $reload_flag in
11826 "" | " "*) ;;
11827 *) reload_flag=" $reload_flag" ;;
11828 esac
11829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11830 case $host_os in
11831   darwin*)
11832     if test "$GCC" = yes; then
11833       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11834     else
11835       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11836     fi
11837     ;;
11838 esac
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848 if test -n "$ac_tool_prefix"; then
11849   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11850 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   if test -n "$OBJDUMP"; then
11857   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11858 else
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11861 do
11862   IFS=$as_save_IFS
11863   test -z "$as_dir" && as_dir=.
11864     for ac_exec_ext in '' $ac_executable_extensions; do
11865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11866     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868     break 2
11869   fi
11870 done
11871   done
11872 IFS=$as_save_IFS
11873
11874 fi
11875 fi
11876 OBJDUMP=$ac_cv_prog_OBJDUMP
11877 if test -n "$OBJDUMP"; then
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11879 $as_echo "$OBJDUMP" >&6; }
11880 else
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11883 fi
11884
11885
11886 fi
11887 if test -z "$ac_cv_prog_OBJDUMP"; then
11888   ac_ct_OBJDUMP=$OBJDUMP
11889   # Extract the first word of "objdump", so it can be a program name with args.
11890 set dummy objdump; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11894   $as_echo_n "(cached) " >&6
11895 else
11896   if test -n "$ac_ct_OBJDUMP"; then
11897   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11898 else
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11901 do
11902   IFS=$as_save_IFS
11903   test -z "$as_dir" && as_dir=.
11904     for ac_exec_ext in '' $ac_executable_extensions; do
11905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11906     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908     break 2
11909   fi
11910 done
11911   done
11912 IFS=$as_save_IFS
11913
11914 fi
11915 fi
11916 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11917 if test -n "$ac_ct_OBJDUMP"; then
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11919 $as_echo "$ac_ct_OBJDUMP" >&6; }
11920 else
11921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11923 fi
11924
11925   if test "x$ac_ct_OBJDUMP" = x; then
11926     OBJDUMP="false"
11927   else
11928     case $cross_compiling:$ac_tool_warned in
11929 yes:)
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11932 ac_tool_warned=yes ;;
11933 esac
11934     OBJDUMP=$ac_ct_OBJDUMP
11935   fi
11936 else
11937   OBJDUMP="$ac_cv_prog_OBJDUMP"
11938 fi
11939
11940 test -z "$OBJDUMP" && OBJDUMP=objdump
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11951 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11952 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955   lt_cv_file_magic_cmd='$MAGIC_CMD'
11956 lt_cv_file_magic_test_file=
11957 lt_cv_deplibs_check_method='unknown'
11958 # Need to set the preceding variable on all platforms that support
11959 # interlibrary dependencies.
11960 # 'none' -- dependencies not supported.
11961 # `unknown' -- same as none, but documents that we really don't know.
11962 # 'pass_all' -- all dependencies passed with no checks.
11963 # 'test_compile' -- check by making test program.
11964 # 'file_magic [[regex]]' -- check by looking for files in library path
11965 # which responds to the $file_magic_cmd with a given extended regex.
11966 # If you have `file' or equivalent on your system and you're not sure
11967 # whether `pass_all' will *always* work, you probably want this one.
11968
11969 case $host_os in
11970 aix[4-9]*)
11971   lt_cv_deplibs_check_method=pass_all
11972   ;;
11973
11974 beos*)
11975   lt_cv_deplibs_check_method=pass_all
11976   ;;
11977
11978 bsdi[45]*)
11979   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11980   lt_cv_file_magic_cmd='/usr/bin/file -L'
11981   lt_cv_file_magic_test_file=/shlib/libc.so
11982   ;;
11983
11984 cygwin*)
11985   # func_win32_libid is a shell function defined in ltmain.sh
11986   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11987   lt_cv_file_magic_cmd='func_win32_libid'
11988   ;;
11989
11990 mingw* | pw32*)
11991   # Base MSYS/MinGW do not provide the 'file' command needed by
11992   # func_win32_libid shell function, so use a weaker test based on 'objdump',
11993   # unless we find 'file', for example because we are cross-compiling.
11994   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11995   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11996     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11997     lt_cv_file_magic_cmd='func_win32_libid'
11998   else
11999     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12000     lt_cv_file_magic_cmd='$OBJDUMP -f'
12001   fi
12002   ;;
12003
12004 cegcc*)
12005   # use the weaker test based on 'objdump'. See mingw*.
12006   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12007   lt_cv_file_magic_cmd='$OBJDUMP -f'
12008   ;;
12009
12010 darwin* | rhapsody*)
12011   lt_cv_deplibs_check_method=pass_all
12012   ;;
12013
12014 freebsd* | dragonfly*)
12015   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12016     case $host_cpu in
12017     i*86 )
12018       # Not sure whether the presence of OpenBSD here was a mistake.
12019       # Let's accept both of them until this is cleared up.
12020       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12021       lt_cv_file_magic_cmd=/usr/bin/file
12022       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12023       ;;
12024     esac
12025   else
12026     lt_cv_deplibs_check_method=pass_all
12027   fi
12028   ;;
12029
12030 gnu*)
12031   lt_cv_deplibs_check_method=pass_all
12032   ;;
12033
12034 haiku*)
12035   lt_cv_deplibs_check_method=pass_all
12036   ;;
12037
12038 hpux10.20* | hpux11*)
12039   lt_cv_file_magic_cmd=/usr/bin/file
12040   case $host_cpu in
12041   ia64*)
12042     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12043     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12044     ;;
12045   hppa*64*)
12046     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]'
12047     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12048     ;;
12049   *)
12050     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12051     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12052     ;;
12053   esac
12054   ;;
12055
12056 interix[3-9]*)
12057   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12058   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12059   ;;
12060
12061 irix5* | irix6* | nonstopux*)
12062   case $LD in
12063   *-32|*"-32 ") libmagic=32-bit;;
12064   *-n32|*"-n32 ") libmagic=N32;;
12065   *-64|*"-64 ") libmagic=64-bit;;
12066   *) libmagic=never-match;;
12067   esac
12068   lt_cv_deplibs_check_method=pass_all
12069   ;;
12070
12071 # This must be Linux ELF.
12072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12073   lt_cv_deplibs_check_method=pass_all
12074   ;;
12075
12076 netbsd*)
12077   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12078     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12079   else
12080     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12081   fi
12082   ;;
12083
12084 newos6*)
12085   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12086   lt_cv_file_magic_cmd=/usr/bin/file
12087   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12088   ;;
12089
12090 *nto* | *qnx*)
12091   lt_cv_deplibs_check_method=pass_all
12092   ;;
12093
12094 openbsd*)
12095   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12096     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12097   else
12098     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12099   fi
12100   ;;
12101
12102 osf3* | osf4* | osf5*)
12103   lt_cv_deplibs_check_method=pass_all
12104   ;;
12105
12106 rdos*)
12107   lt_cv_deplibs_check_method=pass_all
12108   ;;
12109
12110 solaris*)
12111   lt_cv_deplibs_check_method=pass_all
12112   ;;
12113
12114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12115   lt_cv_deplibs_check_method=pass_all
12116   ;;
12117
12118 sysv4 | sysv4.3*)
12119   case $host_vendor in
12120   motorola)
12121     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]'
12122     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12123     ;;
12124   ncr)
12125     lt_cv_deplibs_check_method=pass_all
12126     ;;
12127   sequent)
12128     lt_cv_file_magic_cmd='/bin/file'
12129     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12130     ;;
12131   sni)
12132     lt_cv_file_magic_cmd='/bin/file'
12133     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12134     lt_cv_file_magic_test_file=/lib/libc.so
12135     ;;
12136   siemens)
12137     lt_cv_deplibs_check_method=pass_all
12138     ;;
12139   pc)
12140     lt_cv_deplibs_check_method=pass_all
12141     ;;
12142   esac
12143   ;;
12144
12145 tpf*)
12146   lt_cv_deplibs_check_method=pass_all
12147   ;;
12148 esac
12149
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12153 file_magic_cmd=$lt_cv_file_magic_cmd
12154 deplibs_check_method=$lt_cv_deplibs_check_method
12155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168 if test -n "$ac_tool_prefix"; then
12169   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12170 set dummy ${ac_tool_prefix}ar; ac_word=$2
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172 $as_echo_n "checking for $ac_word... " >&6; }
12173 if test "${ac_cv_prog_AR+set}" = set; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   if test -n "$AR"; then
12177   ac_cv_prog_AR="$AR" # Let the user override the test.
12178 else
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12181 do
12182   IFS=$as_save_IFS
12183   test -z "$as_dir" && as_dir=.
12184     for ac_exec_ext in '' $ac_executable_extensions; do
12185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186     ac_cv_prog_AR="${ac_tool_prefix}ar"
12187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188     break 2
12189   fi
12190 done
12191   done
12192 IFS=$as_save_IFS
12193
12194 fi
12195 fi
12196 AR=$ac_cv_prog_AR
12197 if test -n "$AR"; then
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12199 $as_echo "$AR" >&6; }
12200 else
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204
12205
12206 fi
12207 if test -z "$ac_cv_prog_AR"; then
12208   ac_ct_AR=$AR
12209   # Extract the first word of "ar", so it can be a program name with args.
12210 set dummy ar; ac_word=$2
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212 $as_echo_n "checking for $ac_word... " >&6; }
12213 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12214   $as_echo_n "(cached) " >&6
12215 else
12216   if test -n "$ac_ct_AR"; then
12217   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12218 else
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12221 do
12222   IFS=$as_save_IFS
12223   test -z "$as_dir" && as_dir=.
12224     for ac_exec_ext in '' $ac_executable_extensions; do
12225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12226     ac_cv_prog_ac_ct_AR="ar"
12227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228     break 2
12229   fi
12230 done
12231   done
12232 IFS=$as_save_IFS
12233
12234 fi
12235 fi
12236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12237 if test -n "$ac_ct_AR"; then
12238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12239 $as_echo "$ac_ct_AR" >&6; }
12240 else
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12243 fi
12244
12245   if test "x$ac_ct_AR" = x; then
12246     AR="false"
12247   else
12248     case $cross_compiling:$ac_tool_warned in
12249 yes:)
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12252 ac_tool_warned=yes ;;
12253 esac
12254     AR=$ac_ct_AR
12255   fi
12256 else
12257   AR="$ac_cv_prog_AR"
12258 fi
12259
12260 test -z "$AR" && AR=ar
12261 test -z "$AR_FLAGS" && AR_FLAGS=cru
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273 if test -n "$ac_tool_prefix"; then
12274   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12275 set dummy ${ac_tool_prefix}strip; ac_word=$2
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277 $as_echo_n "checking for $ac_word... " >&6; }
12278 if test "${ac_cv_prog_STRIP+set}" = set; then :
12279   $as_echo_n "(cached) " >&6
12280 else
12281   if test -n "$STRIP"; then
12282   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12283 else
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12286 do
12287   IFS=$as_save_IFS
12288   test -z "$as_dir" && as_dir=.
12289     for ac_exec_ext in '' $ac_executable_extensions; do
12290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12291     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293     break 2
12294   fi
12295 done
12296   done
12297 IFS=$as_save_IFS
12298
12299 fi
12300 fi
12301 STRIP=$ac_cv_prog_STRIP
12302 if test -n "$STRIP"; then
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12304 $as_echo "$STRIP" >&6; }
12305 else
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12308 fi
12309
12310
12311 fi
12312 if test -z "$ac_cv_prog_STRIP"; then
12313   ac_ct_STRIP=$STRIP
12314   # Extract the first word of "strip", so it can be a program name with args.
12315 set dummy strip; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12319   $as_echo_n "(cached) " >&6
12320 else
12321   if test -n "$ac_ct_STRIP"; then
12322   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327   IFS=$as_save_IFS
12328   test -z "$as_dir" && as_dir=.
12329     for ac_exec_ext in '' $ac_executable_extensions; do
12330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331     ac_cv_prog_ac_ct_STRIP="strip"
12332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333     break 2
12334   fi
12335 done
12336   done
12337 IFS=$as_save_IFS
12338
12339 fi
12340 fi
12341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12342 if test -n "$ac_ct_STRIP"; then
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12344 $as_echo "$ac_ct_STRIP" >&6; }
12345 else
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349
12350   if test "x$ac_ct_STRIP" = x; then
12351     STRIP=":"
12352   else
12353     case $cross_compiling:$ac_tool_warned in
12354 yes:)
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12357 ac_tool_warned=yes ;;
12358 esac
12359     STRIP=$ac_ct_STRIP
12360   fi
12361 else
12362   STRIP="$ac_cv_prog_STRIP"
12363 fi
12364
12365 test -z "$STRIP" && STRIP=:
12366
12367
12368
12369
12370
12371
12372 if test -n "$ac_tool_prefix"; then
12373   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12378   $as_echo_n "(cached) " >&6
12379 else
12380   if test -n "$RANLIB"; then
12381   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12382 else
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12385 do
12386   IFS=$as_save_IFS
12387   test -z "$as_dir" && as_dir=.
12388     for ac_exec_ext in '' $ac_executable_extensions; do
12389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12390     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392     break 2
12393   fi
12394 done
12395   done
12396 IFS=$as_save_IFS
12397
12398 fi
12399 fi
12400 RANLIB=$ac_cv_prog_RANLIB
12401 if test -n "$RANLIB"; then
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12403 $as_echo "$RANLIB" >&6; }
12404 else
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407 fi
12408
12409
12410 fi
12411 if test -z "$ac_cv_prog_RANLIB"; then
12412   ac_ct_RANLIB=$RANLIB
12413   # Extract the first word of "ranlib", so it can be a program name with args.
12414 set dummy ranlib; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12418   $as_echo_n "(cached) " >&6
12419 else
12420   if test -n "$ac_ct_RANLIB"; then
12421   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12422 else
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426   IFS=$as_save_IFS
12427   test -z "$as_dir" && as_dir=.
12428     for ac_exec_ext in '' $ac_executable_extensions; do
12429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430     ac_cv_prog_ac_ct_RANLIB="ranlib"
12431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432     break 2
12433   fi
12434 done
12435   done
12436 IFS=$as_save_IFS
12437
12438 fi
12439 fi
12440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12441 if test -n "$ac_ct_RANLIB"; then
12442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12443 $as_echo "$ac_ct_RANLIB" >&6; }
12444 else
12445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12447 fi
12448
12449   if test "x$ac_ct_RANLIB" = x; then
12450     RANLIB=":"
12451   else
12452     case $cross_compiling:$ac_tool_warned in
12453 yes:)
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12456 ac_tool_warned=yes ;;
12457 esac
12458     RANLIB=$ac_ct_RANLIB
12459   fi
12460 else
12461   RANLIB="$ac_cv_prog_RANLIB"
12462 fi
12463
12464 test -z "$RANLIB" && RANLIB=:
12465
12466
12467
12468
12469
12470
12471 # Determine commands to create old-style static archives.
12472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12473 old_postinstall_cmds='chmod 644 $oldlib'
12474 old_postuninstall_cmds=
12475
12476 if test -n "$RANLIB"; then
12477   case $host_os in
12478   openbsd*)
12479     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12480     ;;
12481   *)
12482     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12483     ;;
12484   esac
12485   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12486 fi
12487
12488 case $host_os in
12489   darwin*)
12490     lock_old_archive_extraction=yes ;;
12491   *)
12492     lock_old_archive_extraction=no ;;
12493 esac
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533 # If no C compiler was specified, use CC.
12534 LTCC=${LTCC-"$CC"}
12535
12536 # If no C compiler flags were specified, use CFLAGS.
12537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12538
12539 # Allow CC to be a program name with arguments.
12540 compiler=$CC
12541
12542
12543 # Check for command to grab the raw symbol name followed by C symbol from nm.
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549
12550 # These are sane defaults that work on at least a few old systems.
12551 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12552
12553 # Character class describing NM global symbol codes.
12554 symcode='[BCDEGRST]'
12555
12556 # Regexp to match symbols that can be accessed directly from C.
12557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12558
12559 # Define system-specific variables.
12560 case $host_os in
12561 aix*)
12562   symcode='[BCDT]'
12563   ;;
12564 cygwin* | mingw* | pw32* | cegcc*)
12565   symcode='[ABCDGISTW]'
12566   ;;
12567 hpux*)
12568   if test "$host_cpu" = ia64; then
12569     symcode='[ABCDEGRST]'
12570   fi
12571   ;;
12572 irix* | nonstopux*)
12573   symcode='[BCDEGRST]'
12574   ;;
12575 osf*)
12576   symcode='[BCDEGQRST]'
12577   ;;
12578 solaris*)
12579   symcode='[BDRT]'
12580   ;;
12581 sco3.2v5*)
12582   symcode='[DT]'
12583   ;;
12584 sysv4.2uw2*)
12585   symcode='[DT]'
12586   ;;
12587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12588   symcode='[ABDT]'
12589   ;;
12590 sysv4)
12591   symcode='[DFNSTU]'
12592   ;;
12593 esac
12594
12595 # If we're using GNU nm, then use its standard symbol codes.
12596 case `$NM -V 2>&1` in
12597 *GNU* | *'with BFD'*)
12598   symcode='[ABCDGIRSTW]' ;;
12599 esac
12600
12601 # Transform an extracted symbol line into a proper C declaration.
12602 # Some systems (esp. on ia64) link data and code symbols differently,
12603 # so use this general approach.
12604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12605
12606 # Transform an extracted symbol line into symbol name and symbol address
12607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12608 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'"
12609
12610 # Handle CRLF in mingw tool chain
12611 opt_cr=
12612 case $build_os in
12613 mingw*)
12614   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12615   ;;
12616 esac
12617
12618 # Try without a prefix underscore, then with it.
12619 for ac_symprfx in "" "_"; do
12620
12621   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12622   symxfrm="\\1 $ac_symprfx\\2 \\2"
12623
12624   # Write the raw and C identifiers.
12625   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12626     # Fake it for dumpbin and say T for any non-static function
12627     # and D for any global variable.
12628     # Also find C++ and __fastcall symbols from MSVC++,
12629     # which start with @ or ?.
12630     lt_cv_sys_global_symbol_pipe="$AWK '"\
12631 "     {last_section=section; section=\$ 3};"\
12632 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12633 "     \$ 0!~/External *\|/{next};"\
12634 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12635 "     {if(hide[section]) next};"\
12636 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12637 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12638 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12639 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12640 "     ' prfx=^$ac_symprfx"
12641   else
12642     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12643   fi
12644
12645   # Check to see that the pipe works correctly.
12646   pipe_works=no
12647
12648   rm -f conftest*
12649   cat > conftest.$ac_ext <<_LT_EOF
12650 #ifdef __cplusplus
12651 extern "C" {
12652 #endif
12653 char nm_test_var;
12654 void nm_test_func(void);
12655 void nm_test_func(void){}
12656 #ifdef __cplusplus
12657 }
12658 #endif
12659 int main(){nm_test_var='a';nm_test_func();return(0);}
12660 _LT_EOF
12661
12662   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12663   (eval $ac_compile) 2>&5
12664   ac_status=$?
12665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12666   test $ac_status = 0; }; then
12667     # Now try to grab the symbols.
12668     nlist=conftest.nm
12669     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12670   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12671   ac_status=$?
12672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12673   test $ac_status = 0; } && test -s "$nlist"; then
12674       # Try sorting and uniquifying the output.
12675       if sort "$nlist" | uniq > "$nlist"T; then
12676         mv -f "$nlist"T "$nlist"
12677       else
12678         rm -f "$nlist"T
12679       fi
12680
12681       # Make sure that we snagged all the symbols we need.
12682       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12683         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12684           cat <<_LT_EOF > conftest.$ac_ext
12685 #ifdef __cplusplus
12686 extern "C" {
12687 #endif
12688
12689 _LT_EOF
12690           # Now generate the symbol file.
12691           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12692
12693           cat <<_LT_EOF >> conftest.$ac_ext
12694
12695 /* The mapping between symbol names and symbols.  */
12696 const struct {
12697   const char *name;
12698   void       *address;
12699 }
12700 lt__PROGRAM__LTX_preloaded_symbols[] =
12701 {
12702   { "@PROGRAM@", (void *) 0 },
12703 _LT_EOF
12704           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12705           cat <<\_LT_EOF >> conftest.$ac_ext
12706   {0, (void *) 0}
12707 };
12708
12709 /* This works around a problem in FreeBSD linker */
12710 #ifdef FREEBSD_WORKAROUND
12711 static const void *lt_preloaded_setup() {
12712   return lt__PROGRAM__LTX_preloaded_symbols;
12713 }
12714 #endif
12715
12716 #ifdef __cplusplus
12717 }
12718 #endif
12719 _LT_EOF
12720           # Now try linking the two files.
12721           mv conftest.$ac_objext conftstm.$ac_objext
12722           lt_save_LIBS="$LIBS"
12723           lt_save_CFLAGS="$CFLAGS"
12724           LIBS="conftstm.$ac_objext"
12725           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12726           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12727   (eval $ac_link) 2>&5
12728   ac_status=$?
12729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12730   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12731             pipe_works=yes
12732           fi
12733           LIBS="$lt_save_LIBS"
12734           CFLAGS="$lt_save_CFLAGS"
12735         else
12736           echo "cannot find nm_test_func in $nlist" >&5
12737         fi
12738       else
12739         echo "cannot find nm_test_var in $nlist" >&5
12740       fi
12741     else
12742       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12743     fi
12744   else
12745     echo "$progname: failed program was:" >&5
12746     cat conftest.$ac_ext >&5
12747   fi
12748   rm -rf conftest* conftst*
12749
12750   # Do not use the global_symbol_pipe unless it works.
12751   if test "$pipe_works" = yes; then
12752     break
12753   else
12754     lt_cv_sys_global_symbol_pipe=
12755   fi
12756 done
12757
12758 fi
12759
12760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12761   lt_cv_sys_global_symbol_to_cdecl=
12762 fi
12763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12765 $as_echo "failed" >&6; }
12766 else
12767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12768 $as_echo "ok" >&6; }
12769 fi
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792 # Check whether --enable-libtool-lock was given.
12793 if test "${enable_libtool_lock+set}" = set; then :
12794   enableval=$enable_libtool_lock;
12795 fi
12796
12797 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12798
12799 # Some flags need to be propagated to the compiler or linker for good
12800 # libtool support.
12801 case $host in
12802 ia64-*-hpux*)
12803   # Find out which ABI we are using.
12804   echo 'int i;' > conftest.$ac_ext
12805   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12806   (eval $ac_compile) 2>&5
12807   ac_status=$?
12808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12809   test $ac_status = 0; }; then
12810     case `/usr/bin/file conftest.$ac_objext` in
12811       *ELF-32*)
12812         HPUX_IA64_MODE="32"
12813         ;;
12814       *ELF-64*)
12815         HPUX_IA64_MODE="64"
12816         ;;
12817     esac
12818   fi
12819   rm -rf conftest*
12820   ;;
12821 *-*-irix6*)
12822   # Find out which ABI we are using.
12823   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12824   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12825   (eval $ac_compile) 2>&5
12826   ac_status=$?
12827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828   test $ac_status = 0; }; then
12829     if test "$lt_cv_prog_gnu_ld" = yes; then
12830       case `/usr/bin/file conftest.$ac_objext` in
12831         *32-bit*)
12832           LD="${LD-ld} -melf32bsmip"
12833           ;;
12834         *N32*)
12835           LD="${LD-ld} -melf32bmipn32"
12836           ;;
12837         *64-bit*)
12838           LD="${LD-ld} -melf64bmip"
12839         ;;
12840       esac
12841     else
12842       case `/usr/bin/file conftest.$ac_objext` in
12843         *32-bit*)
12844           LD="${LD-ld} -32"
12845           ;;
12846         *N32*)
12847           LD="${LD-ld} -n32"
12848           ;;
12849         *64-bit*)
12850           LD="${LD-ld} -64"
12851           ;;
12852       esac
12853     fi
12854   fi
12855   rm -rf conftest*
12856   ;;
12857
12858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12860   # Find out which ABI we are using.
12861   echo 'int i;' > conftest.$ac_ext
12862   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12863   (eval $ac_compile) 2>&5
12864   ac_status=$?
12865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12866   test $ac_status = 0; }; then
12867     case `/usr/bin/file conftest.o` in
12868       *32-bit*)
12869         case $host in
12870           x86_64-*kfreebsd*-gnu)
12871             LD="${LD-ld} -m elf_i386_fbsd"
12872             ;;
12873           x86_64-*linux*)
12874             LD="${LD-ld} -m elf_i386"
12875             ;;
12876           ppc64-*linux*|powerpc64-*linux*)
12877             LD="${LD-ld} -m elf32ppclinux"
12878             ;;
12879           s390x-*linux*)
12880             LD="${LD-ld} -m elf_s390"
12881             ;;
12882           sparc64-*linux*)
12883             LD="${LD-ld} -m elf32_sparc"
12884             ;;
12885         esac
12886         ;;
12887       *64-bit*)
12888         case $host in
12889           x86_64-*kfreebsd*-gnu)
12890             LD="${LD-ld} -m elf_x86_64_fbsd"
12891             ;;
12892           x86_64-*linux*)
12893             LD="${LD-ld} -m elf_x86_64"
12894             ;;
12895           ppc*-*linux*|powerpc*-*linux*)
12896             LD="${LD-ld} -m elf64ppc"
12897             ;;
12898           s390*-*linux*|s390*-*tpf*)
12899             LD="${LD-ld} -m elf64_s390"
12900             ;;
12901           sparc*-*linux*)
12902             LD="${LD-ld} -m elf64_sparc"
12903             ;;
12904         esac
12905         ;;
12906     esac
12907   fi
12908   rm -rf conftest*
12909   ;;
12910
12911 *-*-sco3.2v5*)
12912   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12913   SAVE_CFLAGS="$CFLAGS"
12914   CFLAGS="$CFLAGS -belf"
12915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12916 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12917 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12918   $as_echo_n "(cached) " >&6
12919 else
12920   ac_ext=c
12921 ac_cpp='$CPP $CPPFLAGS'
12922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12925
12926      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h.  */
12928
12929 int
12930 main ()
12931 {
12932
12933   ;
12934   return 0;
12935 }
12936 _ACEOF
12937 if ac_fn_c_try_link "$LINENO"; then :
12938   lt_cv_cc_needs_belf=yes
12939 else
12940   lt_cv_cc_needs_belf=no
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext \
12943     conftest$ac_exeext conftest.$ac_ext
12944      ac_ext=c
12945 ac_cpp='$CPP $CPPFLAGS'
12946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12949
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12952 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12953   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12954     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12955     CFLAGS="$SAVE_CFLAGS"
12956   fi
12957   ;;
12958 sparc*-*solaris*)
12959   # Find out which ABI we are using.
12960   echo 'int i;' > conftest.$ac_ext
12961   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12962   (eval $ac_compile) 2>&5
12963   ac_status=$?
12964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12965   test $ac_status = 0; }; then
12966     case `/usr/bin/file conftest.o` in
12967     *64-bit*)
12968       case $lt_cv_prog_gnu_ld in
12969       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12970       *)
12971         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12972           LD="${LD-ld} -64"
12973         fi
12974         ;;
12975       esac
12976       ;;
12977     esac
12978   fi
12979   rm -rf conftest*
12980   ;;
12981 esac
12982
12983 need_locks="$enable_libtool_lock"
12984
12985
12986   case $host_os in
12987     rhapsody* | darwin*)
12988     if test -n "$ac_tool_prefix"; then
12989   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12990 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992 $as_echo_n "checking for $ac_word... " >&6; }
12993 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12994   $as_echo_n "(cached) " >&6
12995 else
12996   if test -n "$DSYMUTIL"; then
12997   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12998 else
12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000 for as_dir in $PATH
13001 do
13002   IFS=$as_save_IFS
13003   test -z "$as_dir" && as_dir=.
13004     for ac_exec_ext in '' $ac_executable_extensions; do
13005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13006     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13008     break 2
13009   fi
13010 done
13011   done
13012 IFS=$as_save_IFS
13013
13014 fi
13015 fi
13016 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13017 if test -n "$DSYMUTIL"; then
13018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13019 $as_echo "$DSYMUTIL" >&6; }
13020 else
13021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13023 fi
13024
13025
13026 fi
13027 if test -z "$ac_cv_prog_DSYMUTIL"; then
13028   ac_ct_DSYMUTIL=$DSYMUTIL
13029   # Extract the first word of "dsymutil", so it can be a program name with args.
13030 set dummy dsymutil; ac_word=$2
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13032 $as_echo_n "checking for $ac_word... " >&6; }
13033 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13034   $as_echo_n "(cached) " >&6
13035 else
13036   if test -n "$ac_ct_DSYMUTIL"; then
13037   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13038 else
13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040 for as_dir in $PATH
13041 do
13042   IFS=$as_save_IFS
13043   test -z "$as_dir" && as_dir=.
13044     for ac_exec_ext in '' $ac_executable_extensions; do
13045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13046     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13048     break 2
13049   fi
13050 done
13051   done
13052 IFS=$as_save_IFS
13053
13054 fi
13055 fi
13056 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13057 if test -n "$ac_ct_DSYMUTIL"; then
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13059 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13060 else
13061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062 $as_echo "no" >&6; }
13063 fi
13064
13065   if test "x$ac_ct_DSYMUTIL" = x; then
13066     DSYMUTIL=":"
13067   else
13068     case $cross_compiling:$ac_tool_warned in
13069 yes:)
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13072 ac_tool_warned=yes ;;
13073 esac
13074     DSYMUTIL=$ac_ct_DSYMUTIL
13075   fi
13076 else
13077   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13078 fi
13079
13080     if test -n "$ac_tool_prefix"; then
13081   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13082 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13086   $as_echo_n "(cached) " >&6
13087 else
13088   if test -n "$NMEDIT"; then
13089   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13090 else
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13093 do
13094   IFS=$as_save_IFS
13095   test -z "$as_dir" && as_dir=.
13096     for ac_exec_ext in '' $ac_executable_extensions; do
13097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100     break 2
13101   fi
13102 done
13103   done
13104 IFS=$as_save_IFS
13105
13106 fi
13107 fi
13108 NMEDIT=$ac_cv_prog_NMEDIT
13109 if test -n "$NMEDIT"; then
13110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13111 $as_echo "$NMEDIT" >&6; }
13112 else
13113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13115 fi
13116
13117
13118 fi
13119 if test -z "$ac_cv_prog_NMEDIT"; then
13120   ac_ct_NMEDIT=$NMEDIT
13121   # Extract the first word of "nmedit", so it can be a program name with args.
13122 set dummy nmedit; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   if test -n "$ac_ct_NMEDIT"; then
13129   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13130 else
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13133 do
13134   IFS=$as_save_IFS
13135   test -z "$as_dir" && as_dir=.
13136     for ac_exec_ext in '' $ac_executable_extensions; do
13137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140     break 2
13141   fi
13142 done
13143   done
13144 IFS=$as_save_IFS
13145
13146 fi
13147 fi
13148 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13149 if test -n "$ac_ct_NMEDIT"; then
13150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13151 $as_echo "$ac_ct_NMEDIT" >&6; }
13152 else
13153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156
13157   if test "x$ac_ct_NMEDIT" = x; then
13158     NMEDIT=":"
13159   else
13160     case $cross_compiling:$ac_tool_warned in
13161 yes:)
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13164 ac_tool_warned=yes ;;
13165 esac
13166     NMEDIT=$ac_ct_NMEDIT
13167   fi
13168 else
13169   NMEDIT="$ac_cv_prog_NMEDIT"
13170 fi
13171
13172     if test -n "$ac_tool_prefix"; then
13173   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13174 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if test "${ac_cv_prog_LIPO+set}" = set; then :
13178   $as_echo_n "(cached) " >&6
13179 else
13180   if test -n "$LIPO"; then
13181   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13182 else
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13185 do
13186   IFS=$as_save_IFS
13187   test -z "$as_dir" && as_dir=.
13188     for ac_exec_ext in '' $ac_executable_extensions; do
13189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13190     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192     break 2
13193   fi
13194 done
13195   done
13196 IFS=$as_save_IFS
13197
13198 fi
13199 fi
13200 LIPO=$ac_cv_prog_LIPO
13201 if test -n "$LIPO"; then
13202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13203 $as_echo "$LIPO" >&6; }
13204 else
13205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13207 fi
13208
13209
13210 fi
13211 if test -z "$ac_cv_prog_LIPO"; then
13212   ac_ct_LIPO=$LIPO
13213   # Extract the first word of "lipo", so it can be a program name with args.
13214 set dummy lipo; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13218   $as_echo_n "(cached) " >&6
13219 else
13220   if test -n "$ac_ct_LIPO"; then
13221   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13222 else
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13225 do
13226   IFS=$as_save_IFS
13227   test -z "$as_dir" && as_dir=.
13228     for ac_exec_ext in '' $ac_executable_extensions; do
13229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13230     ac_cv_prog_ac_ct_LIPO="lipo"
13231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232     break 2
13233   fi
13234 done
13235   done
13236 IFS=$as_save_IFS
13237
13238 fi
13239 fi
13240 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13241 if test -n "$ac_ct_LIPO"; then
13242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13243 $as_echo "$ac_ct_LIPO" >&6; }
13244 else
13245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13247 fi
13248
13249   if test "x$ac_ct_LIPO" = x; then
13250     LIPO=":"
13251   else
13252     case $cross_compiling:$ac_tool_warned in
13253 yes:)
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13256 ac_tool_warned=yes ;;
13257 esac
13258     LIPO=$ac_ct_LIPO
13259   fi
13260 else
13261   LIPO="$ac_cv_prog_LIPO"
13262 fi
13263
13264     if test -n "$ac_tool_prefix"; then
13265   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13266 set dummy ${ac_tool_prefix}otool; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13270   $as_echo_n "(cached) " >&6
13271 else
13272   if test -n "$OTOOL"; then
13273   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13274 else
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13277 do
13278   IFS=$as_save_IFS
13279   test -z "$as_dir" && as_dir=.
13280     for ac_exec_ext in '' $ac_executable_extensions; do
13281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13282     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284     break 2
13285   fi
13286 done
13287   done
13288 IFS=$as_save_IFS
13289
13290 fi
13291 fi
13292 OTOOL=$ac_cv_prog_OTOOL
13293 if test -n "$OTOOL"; then
13294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13295 $as_echo "$OTOOL" >&6; }
13296 else
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13299 fi
13300
13301
13302 fi
13303 if test -z "$ac_cv_prog_OTOOL"; then
13304   ac_ct_OTOOL=$OTOOL
13305   # Extract the first word of "otool", so it can be a program name with args.
13306 set dummy otool; ac_word=$2
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13310   $as_echo_n "(cached) " >&6
13311 else
13312   if test -n "$ac_ct_OTOOL"; then
13313   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13314 else
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13317 do
13318   IFS=$as_save_IFS
13319   test -z "$as_dir" && as_dir=.
13320     for ac_exec_ext in '' $ac_executable_extensions; do
13321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13322     ac_cv_prog_ac_ct_OTOOL="otool"
13323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324     break 2
13325   fi
13326 done
13327   done
13328 IFS=$as_save_IFS
13329
13330 fi
13331 fi
13332 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13333 if test -n "$ac_ct_OTOOL"; then
13334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13335 $as_echo "$ac_ct_OTOOL" >&6; }
13336 else
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13339 fi
13340
13341   if test "x$ac_ct_OTOOL" = x; then
13342     OTOOL=":"
13343   else
13344     case $cross_compiling:$ac_tool_warned in
13345 yes:)
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13348 ac_tool_warned=yes ;;
13349 esac
13350     OTOOL=$ac_ct_OTOOL
13351   fi
13352 else
13353   OTOOL="$ac_cv_prog_OTOOL"
13354 fi
13355
13356     if test -n "$ac_tool_prefix"; then
13357   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13358 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360 $as_echo_n "checking for $ac_word... " >&6; }
13361 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13362   $as_echo_n "(cached) " >&6
13363 else
13364   if test -n "$OTOOL64"; then
13365   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13366 else
13367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368 for as_dir in $PATH
13369 do
13370   IFS=$as_save_IFS
13371   test -z "$as_dir" && as_dir=.
13372     for ac_exec_ext in '' $ac_executable_extensions; do
13373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13374     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13376     break 2
13377   fi
13378 done
13379   done
13380 IFS=$as_save_IFS
13381
13382 fi
13383 fi
13384 OTOOL64=$ac_cv_prog_OTOOL64
13385 if test -n "$OTOOL64"; then
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13387 $as_echo "$OTOOL64" >&6; }
13388 else
13389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13391 fi
13392
13393
13394 fi
13395 if test -z "$ac_cv_prog_OTOOL64"; then
13396   ac_ct_OTOOL64=$OTOOL64
13397   # Extract the first word of "otool64", so it can be a program name with args.
13398 set dummy otool64; ac_word=$2
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400 $as_echo_n "checking for $ac_word... " >&6; }
13401 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13402   $as_echo_n "(cached) " >&6
13403 else
13404   if test -n "$ac_ct_OTOOL64"; then
13405   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13406 else
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $PATH
13409 do
13410   IFS=$as_save_IFS
13411   test -z "$as_dir" && as_dir=.
13412     for ac_exec_ext in '' $ac_executable_extensions; do
13413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13414     ac_cv_prog_ac_ct_OTOOL64="otool64"
13415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416     break 2
13417   fi
13418 done
13419   done
13420 IFS=$as_save_IFS
13421
13422 fi
13423 fi
13424 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13425 if test -n "$ac_ct_OTOOL64"; then
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13427 $as_echo "$ac_ct_OTOOL64" >&6; }
13428 else
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13431 fi
13432
13433   if test "x$ac_ct_OTOOL64" = x; then
13434     OTOOL64=":"
13435   else
13436     case $cross_compiling:$ac_tool_warned in
13437 yes:)
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13440 ac_tool_warned=yes ;;
13441 esac
13442     OTOOL64=$ac_ct_OTOOL64
13443   fi
13444 else
13445   OTOOL64="$ac_cv_prog_OTOOL64"
13446 fi
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13475 $as_echo_n "checking for -single_module linker flag... " >&6; }
13476 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13477   $as_echo_n "(cached) " >&6
13478 else
13479   lt_cv_apple_cc_single_mod=no
13480       if test -z "${LT_MULTI_MODULE}"; then
13481         # By default we will add the -single_module flag. You can override
13482         # by either setting the environment variable LT_MULTI_MODULE
13483         # non-empty at configure time, or by adding -multi_module to the
13484         # link flags.
13485         rm -rf libconftest.dylib*
13486         echo "int foo(void){return 1;}" > conftest.c
13487         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13488 -dynamiclib -Wl,-single_module conftest.c" >&5
13489         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13490           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13491         _lt_result=$?
13492         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13493           lt_cv_apple_cc_single_mod=yes
13494         else
13495           cat conftest.err >&5
13496         fi
13497         rm -rf libconftest.dylib*
13498         rm -f conftest.*
13499       fi
13500 fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13502 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13504 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13505 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13506   $as_echo_n "(cached) " >&6
13507 else
13508   lt_cv_ld_exported_symbols_list=no
13509       save_LDFLAGS=$LDFLAGS
13510       echo "_main" > conftest.sym
13511       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13512       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h.  */
13514
13515 int
13516 main ()
13517 {
13518
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 if ac_fn_c_try_link "$LINENO"; then :
13524   lt_cv_ld_exported_symbols_list=yes
13525 else
13526   lt_cv_ld_exported_symbols_list=no
13527 fi
13528 rm -f core conftest.err conftest.$ac_objext \
13529     conftest$ac_exeext conftest.$ac_ext
13530         LDFLAGS="$save_LDFLAGS"
13531
13532 fi
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13534 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13536 $as_echo_n "checking for -force_load linker flag... " >&6; }
13537 if test "${lt_cv_ld_force_load+set}" = set; then :
13538   $as_echo_n "(cached) " >&6
13539 else
13540   lt_cv_ld_force_load=no
13541       cat > conftest.c << _LT_EOF
13542 int forced_loaded() { return 2;}
13543 _LT_EOF
13544       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13545       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13546       echo "$AR cru libconftest.a conftest.o" >&5
13547       $AR cru libconftest.a conftest.o 2>&5
13548       cat > conftest.c << _LT_EOF
13549 int main() { return 0;}
13550 _LT_EOF
13551       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13552       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13553       _lt_result=$?
13554       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13555         lt_cv_ld_force_load=yes
13556       else
13557         cat conftest.err >&5
13558       fi
13559         rm -f conftest.err libconftest.a conftest conftest.c
13560         rm -rf conftest.dSYM
13561
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13564 $as_echo "$lt_cv_ld_force_load" >&6; }
13565     case $host_os in
13566     rhapsody* | darwin1.[012])
13567       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13568     darwin1.*)
13569       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13570     darwin*) # darwin 5.x on
13571       # if running on 10.5 or later, the deployment target defaults
13572       # to the OS version, if on x86, and 10.4, the deployment
13573       # target defaults to 10.4. Don't you love it?
13574       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13575         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13576           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13577         10.[012]*)
13578           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13579         10.*)
13580           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13581       esac
13582     ;;
13583   esac
13584     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13585       _lt_dar_single_mod='$single_module'
13586     fi
13587     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13588       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13589     else
13590       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13591     fi
13592     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13593       _lt_dsymutil='~$DSYMUTIL $lib || :'
13594     else
13595       _lt_dsymutil=
13596     fi
13597     ;;
13598   esac
13599
13600 for ac_header in dlfcn.h
13601 do :
13602   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13603 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13604   cat >>confdefs.h <<_ACEOF
13605 #define HAVE_DLFCN_H 1
13606 _ACEOF
13607
13608 fi
13609 done
13610
13611
13612
13613
13614
13615
13616 # Set options
13617
13618
13619
13620         enable_dlopen=no
13621
13622
13623   enable_win32_dll=no
13624
13625
13626             # Check whether --enable-shared was given.
13627 if test "${enable_shared+set}" = set; then :
13628   enableval=$enable_shared; p=${PACKAGE-default}
13629     case $enableval in
13630     yes) enable_shared=yes ;;
13631     no) enable_shared=no ;;
13632     *)
13633       enable_shared=no
13634       # Look at the argument we got.  We use all the common list separators.
13635       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13636       for pkg in $enableval; do
13637         IFS="$lt_save_ifs"
13638         if test "X$pkg" = "X$p"; then
13639           enable_shared=yes
13640         fi
13641       done
13642       IFS="$lt_save_ifs"
13643       ;;
13644     esac
13645 else
13646   enable_shared=yes
13647 fi
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657   # Check whether --enable-static was given.
13658 if test "${enable_static+set}" = set; then :
13659   enableval=$enable_static; p=${PACKAGE-default}
13660     case $enableval in
13661     yes) enable_static=yes ;;
13662     no) enable_static=no ;;
13663     *)
13664      enable_static=no
13665       # Look at the argument we got.  We use all the common list separators.
13666       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13667       for pkg in $enableval; do
13668         IFS="$lt_save_ifs"
13669         if test "X$pkg" = "X$p"; then
13670           enable_static=yes
13671         fi
13672       done
13673       IFS="$lt_save_ifs"
13674       ;;
13675     esac
13676 else
13677   enable_static=yes
13678 fi
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689 # Check whether --with-pic was given.
13690 if test "${with_pic+set}" = set; then :
13691   withval=$with_pic; pic_mode="$withval"
13692 else
13693   pic_mode=default
13694 fi
13695
13696
13697 test -z "$pic_mode" && pic_mode=default
13698
13699
13700
13701
13702
13703
13704
13705   # Check whether --enable-fast-install was given.
13706 if test "${enable_fast_install+set}" = set; then :
13707   enableval=$enable_fast_install; p=${PACKAGE-default}
13708     case $enableval in
13709     yes) enable_fast_install=yes ;;
13710     no) enable_fast_install=no ;;
13711     *)
13712       enable_fast_install=no
13713       # Look at the argument we got.  We use all the common list separators.
13714       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13715       for pkg in $enableval; do
13716         IFS="$lt_save_ifs"
13717         if test "X$pkg" = "X$p"; then
13718           enable_fast_install=yes
13719         fi
13720       done
13721       IFS="$lt_save_ifs"
13722       ;;
13723     esac
13724 else
13725   enable_fast_install=yes
13726 fi
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738 # This can be used to rebuild libtool when needed
13739 LIBTOOL_DEPS="$ltmain"
13740
13741 # Always use our own libtool.
13742 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769 test -z "$LN_S" && LN_S="ln -s"
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784 if test -n "${ZSH_VERSION+set}" ; then
13785    setopt NO_GLOB_SUBST
13786 fi
13787
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13789 $as_echo_n "checking for objdir... " >&6; }
13790 if test "${lt_cv_objdir+set}" = set; then :
13791   $as_echo_n "(cached) " >&6
13792 else
13793   rm -f .libs 2>/dev/null
13794 mkdir .libs 2>/dev/null
13795 if test -d .libs; then
13796   lt_cv_objdir=.libs
13797 else
13798   # MS-DOS does not allow filenames that begin with a dot.
13799   lt_cv_objdir=_libs
13800 fi
13801 rmdir .libs 2>/dev/null
13802 fi
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13804 $as_echo "$lt_cv_objdir" >&6; }
13805 objdir=$lt_cv_objdir
13806
13807
13808
13809
13810
13811 cat >>confdefs.h <<_ACEOF
13812 #define LT_OBJDIR "$lt_cv_objdir/"
13813 _ACEOF
13814
13815
13816
13817
13818 case $host_os in
13819 aix3*)
13820   # AIX sometimes has problems with the GCC collect2 program.  For some
13821   # reason, if we set the COLLECT_NAMES environment variable, the problems
13822   # vanish in a puff of smoke.
13823   if test "X${COLLECT_NAMES+set}" != Xset; then
13824     COLLECT_NAMES=
13825     export COLLECT_NAMES
13826   fi
13827   ;;
13828 esac
13829
13830 # Global variables:
13831 ofile=libtool
13832 can_build_shared=yes
13833
13834 # All known linkers require a `.a' archive for static linking (except MSVC,
13835 # which needs '.lib').
13836 libext=a
13837
13838 with_gnu_ld="$lt_cv_prog_gnu_ld"
13839
13840 old_CC="$CC"
13841 old_CFLAGS="$CFLAGS"
13842
13843 # Set sane defaults for various variables
13844 test -z "$CC" && CC=cc
13845 test -z "$LTCC" && LTCC=$CC
13846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13847 test -z "$LD" && LD=ld
13848 test -z "$ac_objext" && ac_objext=o
13849
13850 for cc_temp in $compiler""; do
13851   case $cc_temp in
13852     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13853     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13854     \-*) ;;
13855     *) break;;
13856   esac
13857 done
13858 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13859
13860
13861 # Only perform the check for file, if the check method requires it
13862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13863 case $deplibs_check_method in
13864 file_magic*)
13865   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13867 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13869   $as_echo_n "(cached) " >&6
13870 else
13871   case $MAGIC_CMD in
13872 [\\/*] |  ?:[\\/]*)
13873   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13874   ;;
13875 *)
13876   lt_save_MAGIC_CMD="$MAGIC_CMD"
13877   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13878   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13879   for ac_dir in $ac_dummy; do
13880     IFS="$lt_save_ifs"
13881     test -z "$ac_dir" && ac_dir=.
13882     if test -f $ac_dir/${ac_tool_prefix}file; then
13883       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13884       if test -n "$file_magic_test_file"; then
13885         case $deplibs_check_method in
13886         "file_magic "*)
13887           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13888           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13889           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13890             $EGREP "$file_magic_regex" > /dev/null; then
13891             :
13892           else
13893             cat <<_LT_EOF 1>&2
13894
13895 *** Warning: the command libtool uses to detect shared libraries,
13896 *** $file_magic_cmd, produces output that libtool cannot recognize.
13897 *** The result is that libtool may fail to recognize shared libraries
13898 *** as such.  This will affect the creation of libtool libraries that
13899 *** depend on shared libraries, but programs linked with such libtool
13900 *** libraries will work regardless of this problem.  Nevertheless, you
13901 *** may want to report the problem to your system manager and/or to
13902 *** bug-libtool@gnu.org
13903
13904 _LT_EOF
13905           fi ;;
13906         esac
13907       fi
13908       break
13909     fi
13910   done
13911   IFS="$lt_save_ifs"
13912   MAGIC_CMD="$lt_save_MAGIC_CMD"
13913   ;;
13914 esac
13915 fi
13916
13917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13918 if test -n "$MAGIC_CMD"; then
13919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13920 $as_echo "$MAGIC_CMD" >&6; }
13921 else
13922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923 $as_echo "no" >&6; }
13924 fi
13925
13926
13927
13928
13929
13930 if test -z "$lt_cv_path_MAGIC_CMD"; then
13931   if test -n "$ac_tool_prefix"; then
13932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13933 $as_echo_n "checking for file... " >&6; }
13934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13935   $as_echo_n "(cached) " >&6
13936 else
13937   case $MAGIC_CMD in
13938 [\\/*] |  ?:[\\/]*)
13939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13940   ;;
13941 *)
13942   lt_save_MAGIC_CMD="$MAGIC_CMD"
13943   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13944   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13945   for ac_dir in $ac_dummy; do
13946     IFS="$lt_save_ifs"
13947     test -z "$ac_dir" && ac_dir=.
13948     if test -f $ac_dir/file; then
13949       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13950       if test -n "$file_magic_test_file"; then
13951         case $deplibs_check_method in
13952         "file_magic "*)
13953           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13954           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13955           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13956             $EGREP "$file_magic_regex" > /dev/null; then
13957             :
13958           else
13959             cat <<_LT_EOF 1>&2
13960
13961 *** Warning: the command libtool uses to detect shared libraries,
13962 *** $file_magic_cmd, produces output that libtool cannot recognize.
13963 *** The result is that libtool may fail to recognize shared libraries
13964 *** as such.  This will affect the creation of libtool libraries that
13965 *** depend on shared libraries, but programs linked with such libtool
13966 *** libraries will work regardless of this problem.  Nevertheless, you
13967 *** may want to report the problem to your system manager and/or to
13968 *** bug-libtool@gnu.org
13969
13970 _LT_EOF
13971           fi ;;
13972         esac
13973       fi
13974       break
13975     fi
13976   done
13977   IFS="$lt_save_ifs"
13978   MAGIC_CMD="$lt_save_MAGIC_CMD"
13979   ;;
13980 esac
13981 fi
13982
13983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13984 if test -n "$MAGIC_CMD"; then
13985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13986 $as_echo "$MAGIC_CMD" >&6; }
13987 else
13988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13990 fi
13991
13992
13993   else
13994     MAGIC_CMD=:
13995   fi
13996 fi
13997
13998   fi
13999   ;;
14000 esac
14001
14002 # Use C for the default configuration in the libtool script
14003
14004 lt_save_CC="$CC"
14005 ac_ext=c
14006 ac_cpp='$CPP $CPPFLAGS'
14007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14010
14011
14012 # Source file extension for C test sources.
14013 ac_ext=c
14014
14015 # Object file extension for compiled C test sources.
14016 objext=o
14017 objext=$objext
14018
14019 # Code to be used in simple compile tests
14020 lt_simple_compile_test_code="int some_variable = 0;"
14021
14022 # Code to be used in simple link tests
14023 lt_simple_link_test_code='int main(){return(0);}'
14024
14025
14026
14027
14028
14029
14030
14031 # If no C compiler was specified, use CC.
14032 LTCC=${LTCC-"$CC"}
14033
14034 # If no C compiler flags were specified, use CFLAGS.
14035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14036
14037 # Allow CC to be a program name with arguments.
14038 compiler=$CC
14039
14040 # Save the default compiler, since it gets overwritten when the other
14041 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14042 compiler_DEFAULT=$CC
14043
14044 # save warnings/boilerplate of simple test code
14045 ac_outfile=conftest.$ac_objext
14046 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14047 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14048 _lt_compiler_boilerplate=`cat conftest.err`
14049 $RM conftest*
14050
14051 ac_outfile=conftest.$ac_objext
14052 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14053 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14054 _lt_linker_boilerplate=`cat conftest.err`
14055 $RM -r conftest*
14056
14057
14058 ## CAVEAT EMPTOR:
14059 ## There is no encapsulation within the following macros, do not change
14060 ## the running order or otherwise move them around unless you know exactly
14061 ## what you are doing...
14062 if test -n "$compiler"; then
14063
14064 lt_prog_compiler_no_builtin_flag=
14065
14066 if test "$GCC" = yes; then
14067   case $cc_basename in
14068   nvcc*)
14069     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14070   *)
14071     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14072   esac
14073
14074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14075 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14076 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14077   $as_echo_n "(cached) " >&6
14078 else
14079   lt_cv_prog_compiler_rtti_exceptions=no
14080    ac_outfile=conftest.$ac_objext
14081    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14082    lt_compiler_flag="-fno-rtti -fno-exceptions"
14083    # Insert the option either (1) after the last *FLAGS variable, or
14084    # (2) before a word containing "conftest.", or (3) at the end.
14085    # Note that $ac_compile itself does not contain backslashes and begins
14086    # with a dollar sign (not a hyphen), so the echo should work correctly.
14087    # The option is referenced via a variable to avoid confusing sed.
14088    lt_compile=`echo "$ac_compile" | $SED \
14089    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14090    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14091    -e 's:$: $lt_compiler_flag:'`
14092    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14093    (eval "$lt_compile" 2>conftest.err)
14094    ac_status=$?
14095    cat conftest.err >&5
14096    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097    if (exit $ac_status) && test -s "$ac_outfile"; then
14098      # The compiler can only warn and ignore the option if not recognized
14099      # So say no if there are warnings other than the usual output.
14100      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14101      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14102      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14103        lt_cv_prog_compiler_rtti_exceptions=yes
14104      fi
14105    fi
14106    $RM conftest*
14107
14108 fi
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14110 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14111
14112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14113     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14114 else
14115     :
14116 fi
14117
14118 fi
14119
14120
14121
14122
14123
14124
14125   lt_prog_compiler_wl=
14126 lt_prog_compiler_pic=
14127 lt_prog_compiler_static=
14128
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14130 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14131
14132   if test "$GCC" = yes; then
14133     lt_prog_compiler_wl='-Wl,'
14134     lt_prog_compiler_static='-static'
14135
14136     case $host_os in
14137       aix*)
14138       # All AIX code is PIC.
14139       if test "$host_cpu" = ia64; then
14140         # AIX 5 now supports IA64 processor
14141         lt_prog_compiler_static='-Bstatic'
14142       fi
14143       ;;
14144
14145     amigaos*)
14146       case $host_cpu in
14147       powerpc)
14148             # see comment about AmigaOS4 .so support
14149             lt_prog_compiler_pic='-fPIC'
14150         ;;
14151       m68k)
14152             # FIXME: we need at least 68020 code to build shared libraries, but
14153             # adding the `-m68020' flag to GCC prevents building anything better,
14154             # like `-m68040'.
14155             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14156         ;;
14157       esac
14158       ;;
14159
14160     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14161       # PIC is the default for these OSes.
14162       ;;
14163
14164     mingw* | cygwin* | pw32* | os2* | cegcc*)
14165       # This hack is so that the source file can tell whether it is being
14166       # built for inclusion in a dll (and should export symbols for example).
14167       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14168       # (--disable-auto-import) libraries
14169       lt_prog_compiler_pic='-DDLL_EXPORT'
14170       ;;
14171
14172     darwin* | rhapsody*)
14173       # PIC is the default on this platform
14174       # Common symbols not allowed in MH_DYLIB files
14175       lt_prog_compiler_pic='-fno-common'
14176       ;;
14177
14178     haiku*)
14179       # PIC is the default for Haiku.
14180       # The "-static" flag exists, but is broken.
14181       lt_prog_compiler_static=
14182       ;;
14183
14184     hpux*)
14185       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14186       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14187       # sets the default TLS model and affects inlining.
14188       case $host_cpu in
14189       hppa*64*)
14190         # +Z the default
14191         ;;
14192       *)
14193         lt_prog_compiler_pic='-fPIC'
14194         ;;
14195       esac
14196       ;;
14197
14198     interix[3-9]*)
14199       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14200       # Instead, we relocate shared libraries at runtime.
14201       ;;
14202
14203     msdosdjgpp*)
14204       # Just because we use GCC doesn't mean we suddenly get shared libraries
14205       # on systems that don't support them.
14206       lt_prog_compiler_can_build_shared=no
14207       enable_shared=no
14208       ;;
14209
14210     *nto* | *qnx*)
14211       # QNX uses GNU C++, but need to define -shared option too, otherwise
14212       # it will coredump.
14213       lt_prog_compiler_pic='-fPIC -shared'
14214       ;;
14215
14216     sysv4*MP*)
14217       if test -d /usr/nec; then
14218         lt_prog_compiler_pic=-Kconform_pic
14219       fi
14220       ;;
14221
14222     *)
14223       lt_prog_compiler_pic='-fPIC'
14224       ;;
14225     esac
14226
14227     case $cc_basename in
14228     nvcc*) # Cuda Compiler Driver 2.2
14229       lt_prog_compiler_wl='-Xlinker '
14230       lt_prog_compiler_pic='-Xcompiler -fPIC'
14231       ;;
14232     esac
14233   else
14234     # PORTME Check for flag to pass linker flags through the system compiler.
14235     case $host_os in
14236     aix*)
14237       lt_prog_compiler_wl='-Wl,'
14238       if test "$host_cpu" = ia64; then
14239         # AIX 5 now supports IA64 processor
14240         lt_prog_compiler_static='-Bstatic'
14241       else
14242         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14243       fi
14244       ;;
14245
14246     mingw* | cygwin* | pw32* | os2* | cegcc*)
14247       # This hack is so that the source file can tell whether it is being
14248       # built for inclusion in a dll (and should export symbols for example).
14249       lt_prog_compiler_pic='-DDLL_EXPORT'
14250       ;;
14251
14252     hpux9* | hpux10* | hpux11*)
14253       lt_prog_compiler_wl='-Wl,'
14254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14255       # not for PA HP-UX.
14256       case $host_cpu in
14257       hppa*64*|ia64*)
14258         # +Z the default
14259         ;;
14260       *)
14261         lt_prog_compiler_pic='+Z'
14262         ;;
14263       esac
14264       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14265       lt_prog_compiler_static='${wl}-a ${wl}archive'
14266       ;;
14267
14268     irix5* | irix6* | nonstopux*)
14269       lt_prog_compiler_wl='-Wl,'
14270       # PIC (with -KPIC) is the default.
14271       lt_prog_compiler_static='-non_shared'
14272       ;;
14273
14274     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14275       case $cc_basename in
14276       # old Intel for x86_64 which still supported -KPIC.
14277       ecc*)
14278         lt_prog_compiler_wl='-Wl,'
14279         lt_prog_compiler_pic='-KPIC'
14280         lt_prog_compiler_static='-static'
14281         ;;
14282       # icc used to be incompatible with GCC.
14283       # ICC 10 doesn't accept -KPIC any more.
14284       icc* | ifort*)
14285         lt_prog_compiler_wl='-Wl,'
14286         lt_prog_compiler_pic='-fPIC'
14287         lt_prog_compiler_static='-static'
14288         ;;
14289       # Lahey Fortran 8.1.
14290       lf95*)
14291         lt_prog_compiler_wl='-Wl,'
14292         lt_prog_compiler_pic='--shared'
14293         lt_prog_compiler_static='--static'
14294         ;;
14295       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14296         # Portland Group compilers (*not* the Pentium gcc compiler,
14297         # which looks to be a dead project)
14298         lt_prog_compiler_wl='-Wl,'
14299         lt_prog_compiler_pic='-fpic'
14300         lt_prog_compiler_static='-Bstatic'
14301         ;;
14302       ccc*)
14303         lt_prog_compiler_wl='-Wl,'
14304         # All Alpha code is PIC.
14305         lt_prog_compiler_static='-non_shared'
14306         ;;
14307       xl* | bgxl* | bgf* | mpixl*)
14308         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14309         lt_prog_compiler_wl='-Wl,'
14310         lt_prog_compiler_pic='-qpic'
14311         lt_prog_compiler_static='-qstaticlink'
14312         ;;
14313       *)
14314         case `$CC -V 2>&1 | sed 5q` in
14315         *Sun\ F* | *Sun*Fortran*)
14316           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14317           lt_prog_compiler_pic='-KPIC'
14318           lt_prog_compiler_static='-Bstatic'
14319           lt_prog_compiler_wl=''
14320           ;;
14321         *Sun\ C*)
14322           # Sun C 5.9
14323           lt_prog_compiler_pic='-KPIC'
14324           lt_prog_compiler_static='-Bstatic'
14325           lt_prog_compiler_wl='-Wl,'
14326           ;;
14327         esac
14328         ;;
14329       esac
14330       ;;
14331
14332     newsos6)
14333       lt_prog_compiler_pic='-KPIC'
14334       lt_prog_compiler_static='-Bstatic'
14335       ;;
14336
14337     *nto* | *qnx*)
14338       # QNX uses GNU C++, but need to define -shared option too, otherwise
14339       # it will coredump.
14340       lt_prog_compiler_pic='-fPIC -shared'
14341       ;;
14342
14343     osf3* | osf4* | osf5*)
14344       lt_prog_compiler_wl='-Wl,'
14345       # All OSF/1 code is PIC.
14346       lt_prog_compiler_static='-non_shared'
14347       ;;
14348
14349     rdos*)
14350       lt_prog_compiler_static='-non_shared'
14351       ;;
14352
14353     solaris*)
14354       lt_prog_compiler_pic='-KPIC'
14355       lt_prog_compiler_static='-Bstatic'
14356       case $cc_basename in
14357       f77* | f90* | f95*)
14358         lt_prog_compiler_wl='-Qoption ld ';;
14359       *)
14360         lt_prog_compiler_wl='-Wl,';;
14361       esac
14362       ;;
14363
14364     sunos4*)
14365       lt_prog_compiler_wl='-Qoption ld '
14366       lt_prog_compiler_pic='-PIC'
14367       lt_prog_compiler_static='-Bstatic'
14368       ;;
14369
14370     sysv4 | sysv4.2uw2* | sysv4.3*)
14371       lt_prog_compiler_wl='-Wl,'
14372       lt_prog_compiler_pic='-KPIC'
14373       lt_prog_compiler_static='-Bstatic'
14374       ;;
14375
14376     sysv4*MP*)
14377       if test -d /usr/nec ;then
14378         lt_prog_compiler_pic='-Kconform_pic'
14379         lt_prog_compiler_static='-Bstatic'
14380       fi
14381       ;;
14382
14383     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14384       lt_prog_compiler_wl='-Wl,'
14385       lt_prog_compiler_pic='-KPIC'
14386       lt_prog_compiler_static='-Bstatic'
14387       ;;
14388
14389     unicos*)
14390       lt_prog_compiler_wl='-Wl,'
14391       lt_prog_compiler_can_build_shared=no
14392       ;;
14393
14394     uts4*)
14395       lt_prog_compiler_pic='-pic'
14396       lt_prog_compiler_static='-Bstatic'
14397       ;;
14398
14399     *)
14400       lt_prog_compiler_can_build_shared=no
14401       ;;
14402     esac
14403   fi
14404
14405 case $host_os in
14406   # For platforms which do not support PIC, -DPIC is meaningless:
14407   *djgpp*)
14408     lt_prog_compiler_pic=
14409     ;;
14410   *)
14411     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14412     ;;
14413 esac
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14415 $as_echo "$lt_prog_compiler_pic" >&6; }
14416
14417
14418
14419
14420
14421
14422 #
14423 # Check to make sure the PIC flag actually works.
14424 #
14425 if test -n "$lt_prog_compiler_pic"; then
14426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14427 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14428 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14429   $as_echo_n "(cached) " >&6
14430 else
14431   lt_cv_prog_compiler_pic_works=no
14432    ac_outfile=conftest.$ac_objext
14433    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14434    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14435    # Insert the option either (1) after the last *FLAGS variable, or
14436    # (2) before a word containing "conftest.", or (3) at the end.
14437    # Note that $ac_compile itself does not contain backslashes and begins
14438    # with a dollar sign (not a hyphen), so the echo should work correctly.
14439    # The option is referenced via a variable to avoid confusing sed.
14440    lt_compile=`echo "$ac_compile" | $SED \
14441    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14443    -e 's:$: $lt_compiler_flag:'`
14444    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14445    (eval "$lt_compile" 2>conftest.err)
14446    ac_status=$?
14447    cat conftest.err >&5
14448    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449    if (exit $ac_status) && test -s "$ac_outfile"; then
14450      # The compiler can only warn and ignore the option if not recognized
14451      # So say no if there are warnings other than the usual output.
14452      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14453      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14454      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14455        lt_cv_prog_compiler_pic_works=yes
14456      fi
14457    fi
14458    $RM conftest*
14459
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14462 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14463
14464 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14465     case $lt_prog_compiler_pic in
14466      "" | " "*) ;;
14467      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14468      esac
14469 else
14470     lt_prog_compiler_pic=
14471      lt_prog_compiler_can_build_shared=no
14472 fi
14473
14474 fi
14475
14476
14477
14478
14479
14480
14481 #
14482 # Check to make sure the static flag actually works.
14483 #
14484 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14486 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14487 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14488   $as_echo_n "(cached) " >&6
14489 else
14490   lt_cv_prog_compiler_static_works=no
14491    save_LDFLAGS="$LDFLAGS"
14492    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14493    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14494    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14495      # The linker can only warn and ignore the option if not recognized
14496      # So say no if there are warnings
14497      if test -s conftest.err; then
14498        # Append any errors to the config.log.
14499        cat conftest.err 1>&5
14500        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14501        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14502        if diff conftest.exp conftest.er2 >/dev/null; then
14503          lt_cv_prog_compiler_static_works=yes
14504        fi
14505      else
14506        lt_cv_prog_compiler_static_works=yes
14507      fi
14508    fi
14509    $RM -r conftest*
14510    LDFLAGS="$save_LDFLAGS"
14511
14512 fi
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14514 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14515
14516 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14517     :
14518 else
14519     lt_prog_compiler_static=
14520 fi
14521
14522
14523
14524
14525
14526
14527
14528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14529 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14530 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14531   $as_echo_n "(cached) " >&6
14532 else
14533   lt_cv_prog_compiler_c_o=no
14534    $RM -r conftest 2>/dev/null
14535    mkdir conftest
14536    cd conftest
14537    mkdir out
14538    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14539
14540    lt_compiler_flag="-o out/conftest2.$ac_objext"
14541    # Insert the option either (1) after the last *FLAGS variable, or
14542    # (2) before a word containing "conftest.", or (3) at the end.
14543    # Note that $ac_compile itself does not contain backslashes and begins
14544    # with a dollar sign (not a hyphen), so the echo should work correctly.
14545    lt_compile=`echo "$ac_compile" | $SED \
14546    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14547    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14548    -e 's:$: $lt_compiler_flag:'`
14549    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14550    (eval "$lt_compile" 2>out/conftest.err)
14551    ac_status=$?
14552    cat out/conftest.err >&5
14553    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14555    then
14556      # The compiler can only warn and ignore the option if not recognized
14557      # So say no if there are warnings
14558      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14559      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14560      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14561        lt_cv_prog_compiler_c_o=yes
14562      fi
14563    fi
14564    chmod u+w . 2>&5
14565    $RM conftest*
14566    # SGI C++ compiler will create directory out/ii_files/ for
14567    # template instantiation
14568    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14569    $RM out/* && rmdir out
14570    cd ..
14571    $RM -r conftest
14572    $RM conftest*
14573
14574 fi
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14576 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14577
14578
14579
14580
14581
14582
14583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14584 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14585 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14586   $as_echo_n "(cached) " >&6
14587 else
14588   lt_cv_prog_compiler_c_o=no
14589    $RM -r conftest 2>/dev/null
14590    mkdir conftest
14591    cd conftest
14592    mkdir out
14593    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14594
14595    lt_compiler_flag="-o out/conftest2.$ac_objext"
14596    # Insert the option either (1) after the last *FLAGS variable, or
14597    # (2) before a word containing "conftest.", or (3) at the end.
14598    # Note that $ac_compile itself does not contain backslashes and begins
14599    # with a dollar sign (not a hyphen), so the echo should work correctly.
14600    lt_compile=`echo "$ac_compile" | $SED \
14601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14603    -e 's:$: $lt_compiler_flag:'`
14604    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14605    (eval "$lt_compile" 2>out/conftest.err)
14606    ac_status=$?
14607    cat out/conftest.err >&5
14608    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14610    then
14611      # The compiler can only warn and ignore the option if not recognized
14612      # So say no if there are warnings
14613      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14614      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14615      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14616        lt_cv_prog_compiler_c_o=yes
14617      fi
14618    fi
14619    chmod u+w . 2>&5
14620    $RM conftest*
14621    # SGI C++ compiler will create directory out/ii_files/ for
14622    # template instantiation
14623    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14624    $RM out/* && rmdir out
14625    cd ..
14626    $RM -r conftest
14627    $RM conftest*
14628
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14631 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14632
14633
14634
14635
14636 hard_links="nottested"
14637 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14638   # do not overwrite the value of need_locks provided by the user
14639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14640 $as_echo_n "checking if we can lock with hard links... " >&6; }
14641   hard_links=yes
14642   $RM conftest*
14643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14644   touch conftest.a
14645   ln conftest.a conftest.b 2>&5 || hard_links=no
14646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14648 $as_echo "$hard_links" >&6; }
14649   if test "$hard_links" = no; then
14650     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14651 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14652     need_locks=warn
14653   fi
14654 else
14655   need_locks=no
14656 fi
14657
14658
14659
14660
14661
14662
14663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14664 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14665
14666   runpath_var=
14667   allow_undefined_flag=
14668   always_export_symbols=no
14669   archive_cmds=
14670   archive_expsym_cmds=
14671   compiler_needs_object=no
14672   enable_shared_with_static_runtimes=no
14673   export_dynamic_flag_spec=
14674   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14675   hardcode_automatic=no
14676   hardcode_direct=no
14677   hardcode_direct_absolute=no
14678   hardcode_libdir_flag_spec=
14679   hardcode_libdir_flag_spec_ld=
14680   hardcode_libdir_separator=
14681   hardcode_minus_L=no
14682   hardcode_shlibpath_var=unsupported
14683   inherit_rpath=no
14684   link_all_deplibs=unknown
14685   module_cmds=
14686   module_expsym_cmds=
14687   old_archive_from_new_cmds=
14688   old_archive_from_expsyms_cmds=
14689   thread_safe_flag_spec=
14690   whole_archive_flag_spec=
14691   # include_expsyms should be a list of space-separated symbols to be *always*
14692   # included in the symbol list
14693   include_expsyms=
14694   # exclude_expsyms can be an extended regexp of symbols to exclude
14695   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14696   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14697   # as well as any symbol that contains `d'.
14698   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14699   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14700   # platforms (ab)use it in PIC code, but their linkers get confused if
14701   # the symbol is explicitly referenced.  Since portable code cannot
14702   # rely on this symbol name, it's probably fine to never include it in
14703   # preloaded symbol tables.
14704   # Exclude shared library initialization/finalization symbols.
14705   extract_expsyms_cmds=
14706
14707   case $host_os in
14708   cygwin* | mingw* | pw32* | cegcc*)
14709     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14710     # When not using gcc, we currently assume that we are using
14711     # Microsoft Visual C++.
14712     if test "$GCC" != yes; then
14713       with_gnu_ld=no
14714     fi
14715     ;;
14716   interix*)
14717     # we just hope/assume this is gcc and not c89 (= MSVC++)
14718     with_gnu_ld=yes
14719     ;;
14720   openbsd*)
14721     with_gnu_ld=no
14722     ;;
14723   esac
14724
14725   ld_shlibs=yes
14726
14727   # On some targets, GNU ld is compatible enough with the native linker
14728   # that we're better off using the native interface for both.
14729   lt_use_gnu_ld_interface=no
14730   if test "$with_gnu_ld" = yes; then
14731     case $host_os in
14732       aix*)
14733         # The AIX port of GNU ld has always aspired to compatibility
14734         # with the native linker.  However, as the warning in the GNU ld
14735         # block says, versions before 2.19.5* couldn't really create working
14736         # shared libraries, regardless of the interface used.
14737         case `$LD -v 2>&1` in
14738           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14739           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14740           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14741           *)
14742             lt_use_gnu_ld_interface=yes
14743             ;;
14744         esac
14745         ;;
14746       *)
14747         lt_use_gnu_ld_interface=yes
14748         ;;
14749     esac
14750   fi
14751
14752   if test "$lt_use_gnu_ld_interface" = yes; then
14753     # If archive_cmds runs LD, not CC, wlarc should be empty
14754     wlarc='${wl}'
14755
14756     # Set some defaults for GNU ld with shared library support. These
14757     # are reset later if shared libraries are not supported. Putting them
14758     # here allows them to be overridden if necessary.
14759     runpath_var=LD_RUN_PATH
14760     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14761     export_dynamic_flag_spec='${wl}--export-dynamic'
14762     # ancient GNU ld didn't support --whole-archive et. al.
14763     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14764       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14765     else
14766       whole_archive_flag_spec=
14767     fi
14768     supports_anon_versioning=no
14769     case `$LD -v 2>&1` in
14770       *GNU\ gold*) supports_anon_versioning=yes ;;
14771       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14772       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14773       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14774       *\ 2.11.*) ;; # other 2.11 versions
14775       *) supports_anon_versioning=yes ;;
14776     esac
14777
14778     # See if GNU ld supports shared libraries.
14779     case $host_os in
14780     aix[3-9]*)
14781       # On AIX/PPC, the GNU linker is very broken
14782       if test "$host_cpu" != ia64; then
14783         ld_shlibs=no
14784         cat <<_LT_EOF 1>&2
14785
14786 *** Warning: the GNU linker, at least up to release 2.19, is reported
14787 *** to be unable to reliably create shared libraries on AIX.
14788 *** Therefore, libtool is disabling shared libraries support.  If you
14789 *** really care for shared libraries, you may want to install binutils
14790 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14791 *** You will then need to restart the configuration process.
14792
14793 _LT_EOF
14794       fi
14795       ;;
14796
14797     amigaos*)
14798       case $host_cpu in
14799       powerpc)
14800             # see comment about AmigaOS4 .so support
14801             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14802             archive_expsym_cmds=''
14803         ;;
14804       m68k)
14805             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)'
14806             hardcode_libdir_flag_spec='-L$libdir'
14807             hardcode_minus_L=yes
14808         ;;
14809       esac
14810       ;;
14811
14812     beos*)
14813       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14814         allow_undefined_flag=unsupported
14815         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14816         # support --undefined.  This deserves some investigation.  FIXME
14817         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14818       else
14819         ld_shlibs=no
14820       fi
14821       ;;
14822
14823     cygwin* | mingw* | pw32* | cegcc*)
14824       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14825       # as there is no search path for DLLs.
14826       hardcode_libdir_flag_spec='-L$libdir'
14827       export_dynamic_flag_spec='${wl}--export-all-symbols'
14828       allow_undefined_flag=unsupported
14829       always_export_symbols=no
14830       enable_shared_with_static_runtimes=yes
14831       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14832
14833       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14834         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14835         # If the export-symbols file already is a .def file (1st line
14836         # is EXPORTS), use it as is; otherwise, prepend...
14837         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14838           cp $export_symbols $output_objdir/$soname.def;
14839         else
14840           echo EXPORTS > $output_objdir/$soname.def;
14841           cat $export_symbols >> $output_objdir/$soname.def;
14842         fi~
14843         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14844       else
14845         ld_shlibs=no
14846       fi
14847       ;;
14848
14849     haiku*)
14850       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14851       link_all_deplibs=yes
14852       ;;
14853
14854     interix[3-9]*)
14855       hardcode_direct=no
14856       hardcode_shlibpath_var=no
14857       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14858       export_dynamic_flag_spec='${wl}-E'
14859       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14860       # Instead, shared libraries are loaded at an image base (0x10000000 by
14861       # default) and relocated if they conflict, which is a slow very memory
14862       # consuming and fragmenting process.  To avoid this, we pick a random,
14863       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14864       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14865       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14866       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'
14867       ;;
14868
14869     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14870       tmp_diet=no
14871       if test "$host_os" = linux-dietlibc; then
14872         case $cc_basename in
14873           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14874         esac
14875       fi
14876       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14877          && test "$tmp_diet" = no
14878       then
14879         tmp_addflag=
14880         tmp_sharedflag='-shared'
14881         case $cc_basename,$host_cpu in
14882         pgcc*)                          # Portland Group C compiler
14883           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'
14884           tmp_addflag=' $pic_flag'
14885           ;;
14886         pgf77* | pgf90* | pgf95* | pgfortran*)
14887                                         # Portland Group f77 and f90 compilers
14888           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'
14889           tmp_addflag=' $pic_flag -Mnomain' ;;
14890         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14891           tmp_addflag=' -i_dynamic' ;;
14892         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14893           tmp_addflag=' -i_dynamic -nofor_main' ;;
14894         ifc* | ifort*)                  # Intel Fortran compiler
14895           tmp_addflag=' -nofor_main' ;;
14896         lf95*)                          # Lahey Fortran 8.1
14897           whole_archive_flag_spec=
14898           tmp_sharedflag='--shared' ;;
14899         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14900           tmp_sharedflag='-qmkshrobj'
14901           tmp_addflag= ;;
14902         nvcc*)  # Cuda Compiler Driver 2.2
14903           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'
14904           compiler_needs_object=yes
14905           ;;
14906         esac
14907         case `$CC -V 2>&1 | sed 5q` in
14908         *Sun\ C*)                       # Sun C 5.9
14909           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'
14910           compiler_needs_object=yes
14911           tmp_sharedflag='-G' ;;
14912         *Sun\ F*)                       # Sun Fortran 8.3
14913           tmp_sharedflag='-G' ;;
14914         esac
14915         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14916
14917         if test "x$supports_anon_versioning" = xyes; then
14918           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14919             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14920             echo "local: *; };" >> $output_objdir/$libname.ver~
14921             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14922         fi
14923
14924         case $cc_basename in
14925         xlf* | bgf* | bgxlf* | mpixlf*)
14926           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14927           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14928           hardcode_libdir_flag_spec=
14929           hardcode_libdir_flag_spec_ld='-rpath $libdir'
14930           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14931           if test "x$supports_anon_versioning" = xyes; then
14932             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14933               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14934               echo "local: *; };" >> $output_objdir/$libname.ver~
14935               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14936           fi
14937           ;;
14938         esac
14939       else
14940         ld_shlibs=no
14941       fi
14942       ;;
14943
14944     netbsd*)
14945       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14946         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14947         wlarc=
14948       else
14949         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14951       fi
14952       ;;
14953
14954     solaris*)
14955       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14956         ld_shlibs=no
14957         cat <<_LT_EOF 1>&2
14958
14959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14960 *** create shared libraries on Solaris systems.  Therefore, libtool
14961 *** is disabling shared libraries support.  We urge you to upgrade GNU
14962 *** binutils to release 2.9.1 or newer.  Another option is to modify
14963 *** your PATH or compiler configuration so that the native linker is
14964 *** used, and then restart.
14965
14966 _LT_EOF
14967       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14968         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14970       else
14971         ld_shlibs=no
14972       fi
14973       ;;
14974
14975     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14976       case `$LD -v 2>&1` in
14977         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14978         ld_shlibs=no
14979         cat <<_LT_EOF 1>&2
14980
14981 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14982 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14983 *** is disabling shared libraries support.  We urge you to upgrade GNU
14984 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14985 *** your PATH or compiler configuration so that the native linker is
14986 *** used, and then restart.
14987
14988 _LT_EOF
14989         ;;
14990         *)
14991           # For security reasons, it is highly recommended that you always
14992           # use absolute paths for naming shared libraries, and exclude the
14993           # DT_RUNPATH tag from executables and libraries.  But doing so
14994           # requires that you compile everything twice, which is a pain.
14995           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14996             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14997             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14998             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14999           else
15000             ld_shlibs=no
15001           fi
15002         ;;
15003       esac
15004       ;;
15005
15006     sunos4*)
15007       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15008       wlarc=
15009       hardcode_direct=yes
15010       hardcode_shlibpath_var=no
15011       ;;
15012
15013     *)
15014       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15015         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15017       else
15018         ld_shlibs=no
15019       fi
15020       ;;
15021     esac
15022
15023     if test "$ld_shlibs" = no; then
15024       runpath_var=
15025       hardcode_libdir_flag_spec=
15026       export_dynamic_flag_spec=
15027       whole_archive_flag_spec=
15028     fi
15029   else
15030     # PORTME fill in a description of your system's linker (not GNU ld)
15031     case $host_os in
15032     aix3*)
15033       allow_undefined_flag=unsupported
15034       always_export_symbols=yes
15035       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'
15036       # Note: this linker hardcodes the directories in LIBPATH if there
15037       # are no directories specified by -L.
15038       hardcode_minus_L=yes
15039       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15040         # Neither direct hardcoding nor static linking is supported with a
15041         # broken collect2.
15042         hardcode_direct=unsupported
15043       fi
15044       ;;
15045
15046     aix[4-9]*)
15047       if test "$host_cpu" = ia64; then
15048         # On IA64, the linker does run time linking by default, so we don't
15049         # have to do anything special.
15050         aix_use_runtimelinking=no
15051         exp_sym_flag='-Bexport'
15052         no_entry_flag=""
15053       else
15054         # If we're using GNU nm, then we don't want the "-C" option.
15055         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15056         # Also, AIX nm treats weak defined symbols like other global
15057         # defined symbols, whereas GNU nm marks them as "W".
15058         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15059           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'
15060         else
15061           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'
15062         fi
15063         aix_use_runtimelinking=no
15064
15065         # Test if we are trying to use run time linking or normal
15066         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15067         # need to do runtime linking.
15068         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15069           for ld_flag in $LDFLAGS; do
15070           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15071             aix_use_runtimelinking=yes
15072             break
15073           fi
15074           done
15075           ;;
15076         esac
15077
15078         exp_sym_flag='-bexport'
15079         no_entry_flag='-bnoentry'
15080       fi
15081
15082       # When large executables or shared objects are built, AIX ld can
15083       # have problems creating the table of contents.  If linking a library
15084       # or program results in "error TOC overflow" add -mminimal-toc to
15085       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15086       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15087
15088       archive_cmds=''
15089       hardcode_direct=yes
15090       hardcode_direct_absolute=yes
15091       hardcode_libdir_separator=':'
15092       link_all_deplibs=yes
15093       file_list_spec='${wl}-f,'
15094
15095       if test "$GCC" = yes; then
15096         case $host_os in aix4.[012]|aix4.[012].*)
15097         # We only want to do this on AIX 4.2 and lower, the check
15098         # below for broken collect2 doesn't work under 4.3+
15099           collect2name=`${CC} -print-prog-name=collect2`
15100           if test -f "$collect2name" &&
15101            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15102           then
15103           # We have reworked collect2
15104           :
15105           else
15106           # We have old collect2
15107           hardcode_direct=unsupported
15108           # It fails to find uninstalled libraries when the uninstalled
15109           # path is not listed in the libpath.  Setting hardcode_minus_L
15110           # to unsupported forces relinking
15111           hardcode_minus_L=yes
15112           hardcode_libdir_flag_spec='-L$libdir'
15113           hardcode_libdir_separator=
15114           fi
15115           ;;
15116         esac
15117         shared_flag='-shared'
15118         if test "$aix_use_runtimelinking" = yes; then
15119           shared_flag="$shared_flag "'${wl}-G'
15120         fi
15121       else
15122         # not using gcc
15123         if test "$host_cpu" = ia64; then
15124         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15125         # chokes on -Wl,-G. The following line is correct:
15126           shared_flag='-G'
15127         else
15128           if test "$aix_use_runtimelinking" = yes; then
15129             shared_flag='${wl}-G'
15130           else
15131             shared_flag='${wl}-bM:SRE'
15132           fi
15133         fi
15134       fi
15135
15136       export_dynamic_flag_spec='${wl}-bexpall'
15137       # It seems that -bexpall does not export symbols beginning with
15138       # underscore (_), so it is better to generate a list of symbols to export.
15139       always_export_symbols=yes
15140       if test "$aix_use_runtimelinking" = yes; then
15141         # Warning - without using the other runtime loading flags (-brtl),
15142         # -berok will link without error, but may produce a broken library.
15143         allow_undefined_flag='-berok'
15144         # Determine the default libpath from the value encoded in an
15145         # empty executable.
15146         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h.  */
15148
15149 int
15150 main ()
15151 {
15152
15153   ;
15154   return 0;
15155 }
15156 _ACEOF
15157 if ac_fn_c_try_link "$LINENO"; then :
15158
15159 lt_aix_libpath_sed='
15160     /Import File Strings/,/^$/ {
15161         /^0/ {
15162             s/^0  *\(.*\)$/\1/
15163             p
15164         }
15165     }'
15166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15167 # Check for a 64-bit object if we didn't find anything.
15168 if test -z "$aix_libpath"; then
15169   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15170 fi
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext \
15173     conftest$ac_exeext conftest.$ac_ext
15174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15175
15176         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15177         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"
15178       else
15179         if test "$host_cpu" = ia64; then
15180           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15181           allow_undefined_flag="-z nodefs"
15182           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"
15183         else
15184          # Determine the default libpath from the value encoded in an
15185          # empty executable.
15186          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h.  */
15188
15189 int
15190 main ()
15191 {
15192
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"; then :
15198
15199 lt_aix_libpath_sed='
15200     /Import File Strings/,/^$/ {
15201         /^0/ {
15202             s/^0  *\(.*\)$/\1/
15203             p
15204         }
15205     }'
15206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15207 # Check for a 64-bit object if we didn't find anything.
15208 if test -z "$aix_libpath"; then
15209   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15210 fi
15211 fi
15212 rm -f core conftest.err conftest.$ac_objext \
15213     conftest$ac_exeext conftest.$ac_ext
15214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15215
15216          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15217           # Warning - without using the other run time loading flags,
15218           # -berok will link without error, but may produce a broken library.
15219           no_undefined_flag=' ${wl}-bernotok'
15220           allow_undefined_flag=' ${wl}-berok'
15221           if test "$with_gnu_ld" = yes; then
15222             # We only use this code for GNU lds that support --whole-archive.
15223             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15224           else
15225             # Exported symbols can be pulled into shared objects from archives
15226             whole_archive_flag_spec='$convenience'
15227           fi
15228           archive_cmds_need_lc=yes
15229           # This is similar to how AIX traditionally builds its shared libraries.
15230           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'
15231         fi
15232       fi
15233       ;;
15234
15235     amigaos*)
15236       case $host_cpu in
15237       powerpc)
15238             # see comment about AmigaOS4 .so support
15239             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15240             archive_expsym_cmds=''
15241         ;;
15242       m68k)
15243             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)'
15244             hardcode_libdir_flag_spec='-L$libdir'
15245             hardcode_minus_L=yes
15246         ;;
15247       esac
15248       ;;
15249
15250     bsdi[45]*)
15251       export_dynamic_flag_spec=-rdynamic
15252       ;;
15253
15254     cygwin* | mingw* | pw32* | cegcc*)
15255       # When not using gcc, we currently assume that we are using
15256       # Microsoft Visual C++.
15257       # hardcode_libdir_flag_spec is actually meaningless, as there is
15258       # no search path for DLLs.
15259       hardcode_libdir_flag_spec=' '
15260       allow_undefined_flag=unsupported
15261       # Tell ltmain to make .lib files, not .a files.
15262       libext=lib
15263       # Tell ltmain to make .dll files, not .so files.
15264       shrext_cmds=".dll"
15265       # FIXME: Setting linknames here is a bad hack.
15266       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15267       # The linker will automatically build a .lib file if we build a DLL.
15268       old_archive_from_new_cmds='true'
15269       # FIXME: Should let the user specify the lib program.
15270       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15271       fix_srcfile_path='`cygpath -w "$srcfile"`'
15272       enable_shared_with_static_runtimes=yes
15273       ;;
15274
15275     darwin* | rhapsody*)
15276
15277
15278   archive_cmds_need_lc=no
15279   hardcode_direct=no
15280   hardcode_automatic=yes
15281   hardcode_shlibpath_var=unsupported
15282   if test "$lt_cv_ld_force_load" = "yes"; then
15283     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\"`'
15284   else
15285     whole_archive_flag_spec=''
15286   fi
15287   link_all_deplibs=yes
15288   allow_undefined_flag="$_lt_dar_allow_undefined"
15289   case $cc_basename in
15290      ifort*) _lt_dar_can_shared=yes ;;
15291      *) _lt_dar_can_shared=$GCC ;;
15292   esac
15293   if test "$_lt_dar_can_shared" = "yes"; then
15294     output_verbose_link_cmd=func_echo_all
15295     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15296     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15297     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}"
15298     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}"
15299
15300   else
15301   ld_shlibs=no
15302   fi
15303
15304       ;;
15305
15306     dgux*)
15307       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15308       hardcode_libdir_flag_spec='-L$libdir'
15309       hardcode_shlibpath_var=no
15310       ;;
15311
15312     freebsd1*)
15313       ld_shlibs=no
15314       ;;
15315
15316     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15317     # support.  Future versions do this automatically, but an explicit c++rt0.o
15318     # does not break anything, and helps significantly (at the cost of a little
15319     # extra space).
15320     freebsd2.2*)
15321       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15322       hardcode_libdir_flag_spec='-R$libdir'
15323       hardcode_direct=yes
15324       hardcode_shlibpath_var=no
15325       ;;
15326
15327     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15328     freebsd2*)
15329       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15330       hardcode_direct=yes
15331       hardcode_minus_L=yes
15332       hardcode_shlibpath_var=no
15333       ;;
15334
15335     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15336     freebsd* | dragonfly*)
15337       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15338       hardcode_libdir_flag_spec='-R$libdir'
15339       hardcode_direct=yes
15340       hardcode_shlibpath_var=no
15341       ;;
15342
15343     hpux9*)
15344       if test "$GCC" = yes; then
15345         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'
15346       else
15347         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'
15348       fi
15349       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15350       hardcode_libdir_separator=:
15351       hardcode_direct=yes
15352
15353       # hardcode_minus_L: Not really in the search PATH,
15354       # but as the default location of the library.
15355       hardcode_minus_L=yes
15356       export_dynamic_flag_spec='${wl}-E'
15357       ;;
15358
15359     hpux10*)
15360       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15361         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15362       else
15363         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15364       fi
15365       if test "$with_gnu_ld" = no; then
15366         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15367         hardcode_libdir_flag_spec_ld='+b $libdir'
15368         hardcode_libdir_separator=:
15369         hardcode_direct=yes
15370         hardcode_direct_absolute=yes
15371         export_dynamic_flag_spec='${wl}-E'
15372         # hardcode_minus_L: Not really in the search PATH,
15373         # but as the default location of the library.
15374         hardcode_minus_L=yes
15375       fi
15376       ;;
15377
15378     hpux11*)
15379       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15380         case $host_cpu in
15381         hppa*64*)
15382           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15383           ;;
15384         ia64*)
15385           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15386           ;;
15387         *)
15388           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15389           ;;
15390         esac
15391       else
15392         case $host_cpu in
15393         hppa*64*)
15394           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15395           ;;
15396         ia64*)
15397           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15398           ;;
15399         *)
15400
15401           # Older versions of the 11.00 compiler do not understand -b yet
15402           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15403           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15404 $as_echo_n "checking if $CC understands -b... " >&6; }
15405 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15406   $as_echo_n "(cached) " >&6
15407 else
15408   lt_cv_prog_compiler__b=no
15409    save_LDFLAGS="$LDFLAGS"
15410    LDFLAGS="$LDFLAGS -b"
15411    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15412    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15413      # The linker can only warn and ignore the option if not recognized
15414      # So say no if there are warnings
15415      if test -s conftest.err; then
15416        # Append any errors to the config.log.
15417        cat conftest.err 1>&5
15418        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15419        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15420        if diff conftest.exp conftest.er2 >/dev/null; then
15421          lt_cv_prog_compiler__b=yes
15422        fi
15423      else
15424        lt_cv_prog_compiler__b=yes
15425      fi
15426    fi
15427    $RM -r conftest*
15428    LDFLAGS="$save_LDFLAGS"
15429
15430 fi
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15432 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15433
15434 if test x"$lt_cv_prog_compiler__b" = xyes; then
15435     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15436 else
15437     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15438 fi
15439
15440           ;;
15441         esac
15442       fi
15443       if test "$with_gnu_ld" = no; then
15444         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15445         hardcode_libdir_separator=:
15446
15447         case $host_cpu in
15448         hppa*64*|ia64*)
15449           hardcode_direct=no
15450           hardcode_shlibpath_var=no
15451           ;;
15452         *)
15453           hardcode_direct=yes
15454           hardcode_direct_absolute=yes
15455           export_dynamic_flag_spec='${wl}-E'
15456
15457           # hardcode_minus_L: Not really in the search PATH,
15458           # but as the default location of the library.
15459           hardcode_minus_L=yes
15460           ;;
15461         esac
15462       fi
15463       ;;
15464
15465     irix5* | irix6* | nonstopux*)
15466       if test "$GCC" = yes; then
15467         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'
15468         # Try to use the -exported_symbol ld option, if it does not
15469         # work, assume that -exports_file does not work either and
15470         # implicitly export all symbols.
15471         save_LDFLAGS="$LDFLAGS"
15472         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15473         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h.  */
15475 int foo(void) {}
15476 _ACEOF
15477 if ac_fn_c_try_link "$LINENO"; then :
15478   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'
15479
15480 fi
15481 rm -f core conftest.err conftest.$ac_objext \
15482     conftest$ac_exeext conftest.$ac_ext
15483         LDFLAGS="$save_LDFLAGS"
15484       else
15485         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'
15486         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'
15487       fi
15488       archive_cmds_need_lc='no'
15489       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15490       hardcode_libdir_separator=:
15491       inherit_rpath=yes
15492       link_all_deplibs=yes
15493       ;;
15494
15495     netbsd*)
15496       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15497         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15498       else
15499         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15500       fi
15501       hardcode_libdir_flag_spec='-R$libdir'
15502       hardcode_direct=yes
15503       hardcode_shlibpath_var=no
15504       ;;
15505
15506     newsos6)
15507       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15508       hardcode_direct=yes
15509       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15510       hardcode_libdir_separator=:
15511       hardcode_shlibpath_var=no
15512       ;;
15513
15514     *nto* | *qnx*)
15515       ;;
15516
15517     openbsd*)
15518       if test -f /usr/libexec/ld.so; then
15519         hardcode_direct=yes
15520         hardcode_shlibpath_var=no
15521         hardcode_direct_absolute=yes
15522         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15523           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15524           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15525           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15526           export_dynamic_flag_spec='${wl}-E'
15527         else
15528           case $host_os in
15529            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15530              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15531              hardcode_libdir_flag_spec='-R$libdir'
15532              ;;
15533            *)
15534              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15535              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15536              ;;
15537           esac
15538         fi
15539       else
15540         ld_shlibs=no
15541       fi
15542       ;;
15543
15544     os2*)
15545       hardcode_libdir_flag_spec='-L$libdir'
15546       hardcode_minus_L=yes
15547       allow_undefined_flag=unsupported
15548       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'
15549       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15550       ;;
15551
15552     osf3*)
15553       if test "$GCC" = yes; then
15554         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15555         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'
15556       else
15557         allow_undefined_flag=' -expect_unresolved \*'
15558         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'
15559       fi
15560       archive_cmds_need_lc='no'
15561       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15562       hardcode_libdir_separator=:
15563       ;;
15564
15565     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15566       if test "$GCC" = yes; then
15567         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15568         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'
15569         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15570       else
15571         allow_undefined_flag=' -expect_unresolved \*'
15572         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'
15573         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~
15574         $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'
15575
15576         # Both c and cxx compiler support -rpath directly
15577         hardcode_libdir_flag_spec='-rpath $libdir'
15578       fi
15579       archive_cmds_need_lc='no'
15580       hardcode_libdir_separator=:
15581       ;;
15582
15583     solaris*)
15584       no_undefined_flag=' -z defs'
15585       if test "$GCC" = yes; then
15586         wlarc='${wl}'
15587         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15588         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15589           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15590       else
15591         case `$CC -V 2>&1` in
15592         *"Compilers 5.0"*)
15593           wlarc=''
15594           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15596           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15597           ;;
15598         *)
15599           wlarc='${wl}'
15600           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15601           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15602           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15603           ;;
15604         esac
15605       fi
15606       hardcode_libdir_flag_spec='-R$libdir'
15607       hardcode_shlibpath_var=no
15608       case $host_os in
15609       solaris2.[0-5] | solaris2.[0-5].*) ;;
15610       *)
15611         # The compiler driver will combine and reorder linker options,
15612         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15613         # but is careful enough not to reorder.
15614         # Supported since Solaris 2.6 (maybe 2.5.1?)
15615         if test "$GCC" = yes; then
15616           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15617         else
15618           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15619         fi
15620         ;;
15621       esac
15622       link_all_deplibs=yes
15623       ;;
15624
15625     sunos4*)
15626       if test "x$host_vendor" = xsequent; then
15627         # Use $CC to link under sequent, because it throws in some extra .o
15628         # files that make .init and .fini sections work.
15629         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15630       else
15631         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15632       fi
15633       hardcode_libdir_flag_spec='-L$libdir'
15634       hardcode_direct=yes
15635       hardcode_minus_L=yes
15636       hardcode_shlibpath_var=no
15637       ;;
15638
15639     sysv4)
15640       case $host_vendor in
15641         sni)
15642           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15643           hardcode_direct=yes # is this really true???
15644         ;;
15645         siemens)
15646           ## LD is ld it makes a PLAMLIB
15647           ## CC just makes a GrossModule.
15648           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15649           reload_cmds='$CC -r -o $output$reload_objs'
15650           hardcode_direct=no
15651         ;;
15652         motorola)
15653           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15654           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15655         ;;
15656       esac
15657       runpath_var='LD_RUN_PATH'
15658       hardcode_shlibpath_var=no
15659       ;;
15660
15661     sysv4.3*)
15662       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15663       hardcode_shlibpath_var=no
15664       export_dynamic_flag_spec='-Bexport'
15665       ;;
15666
15667     sysv4*MP*)
15668       if test -d /usr/nec; then
15669         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15670         hardcode_shlibpath_var=no
15671         runpath_var=LD_RUN_PATH
15672         hardcode_runpath_var=yes
15673         ld_shlibs=yes
15674       fi
15675       ;;
15676
15677     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15678       no_undefined_flag='${wl}-z,text'
15679       archive_cmds_need_lc=no
15680       hardcode_shlibpath_var=no
15681       runpath_var='LD_RUN_PATH'
15682
15683       if test "$GCC" = yes; then
15684         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15685         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15686       else
15687         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15688         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15689       fi
15690       ;;
15691
15692     sysv5* | sco3.2v5* | sco5v6*)
15693       # Note: We can NOT use -z defs as we might desire, because we do not
15694       # link with -lc, and that would cause any symbols used from libc to
15695       # always be unresolved, which means just about no library would
15696       # ever link correctly.  If we're not using GNU ld we use -z text
15697       # though, which does catch some bad symbols but isn't as heavy-handed
15698       # as -z defs.
15699       no_undefined_flag='${wl}-z,text'
15700       allow_undefined_flag='${wl}-z,nodefs'
15701       archive_cmds_need_lc=no
15702       hardcode_shlibpath_var=no
15703       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15704       hardcode_libdir_separator=':'
15705       link_all_deplibs=yes
15706       export_dynamic_flag_spec='${wl}-Bexport'
15707       runpath_var='LD_RUN_PATH'
15708
15709       if test "$GCC" = yes; then
15710         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15711         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15712       else
15713         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15714         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15715       fi
15716       ;;
15717
15718     uts4*)
15719       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15720       hardcode_libdir_flag_spec='-L$libdir'
15721       hardcode_shlibpath_var=no
15722       ;;
15723
15724     *)
15725       ld_shlibs=no
15726       ;;
15727     esac
15728
15729     if test x$host_vendor = xsni; then
15730       case $host in
15731       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15732         export_dynamic_flag_spec='${wl}-Blargedynsym'
15733         ;;
15734       esac
15735     fi
15736   fi
15737
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15739 $as_echo "$ld_shlibs" >&6; }
15740 test "$ld_shlibs" = no && can_build_shared=no
15741
15742 with_gnu_ld=$with_gnu_ld
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758 #
15759 # Do we need to explicitly link libc?
15760 #
15761 case "x$archive_cmds_need_lc" in
15762 x|xyes)
15763   # Assume -lc should be added
15764   archive_cmds_need_lc=yes
15765
15766   if test "$enable_shared" = yes && test "$GCC" = yes; then
15767     case $archive_cmds in
15768     *'~'*)
15769       # FIXME: we may have to deal with multi-command sequences.
15770       ;;
15771     '$CC '*)
15772       # Test whether the compiler implicitly links with -lc since on some
15773       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15774       # to ld, don't add -lc before -lgcc.
15775       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15776 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15777 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15778   $as_echo_n "(cached) " >&6
15779 else
15780   $RM conftest*
15781         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15782
15783         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15784   (eval $ac_compile) 2>&5
15785   ac_status=$?
15786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15787   test $ac_status = 0; } 2>conftest.err; then
15788           soname=conftest
15789           lib=conftest
15790           libobjs=conftest.$ac_objext
15791           deplibs=
15792           wl=$lt_prog_compiler_wl
15793           pic_flag=$lt_prog_compiler_pic
15794           compiler_flags=-v
15795           linker_flags=-v
15796           verstring=
15797           output_objdir=.
15798           libname=conftest
15799           lt_save_allow_undefined_flag=$allow_undefined_flag
15800           allow_undefined_flag=
15801           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15802   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15803   ac_status=$?
15804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15805   test $ac_status = 0; }
15806           then
15807             lt_cv_archive_cmds_need_lc=no
15808           else
15809             lt_cv_archive_cmds_need_lc=yes
15810           fi
15811           allow_undefined_flag=$lt_save_allow_undefined_flag
15812         else
15813           cat conftest.err 1>&5
15814         fi
15815         $RM conftest*
15816
15817 fi
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15819 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15820       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15821       ;;
15822     esac
15823   fi
15824   ;;
15825 esac
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15984 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15985
15986 if test "$GCC" = yes; then
15987   case $host_os in
15988     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15989     *) lt_awk_arg="/^libraries:/" ;;
15990   esac
15991   case $host_os in
15992     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15993     *) lt_sed_strip_eq="s,=/,/,g" ;;
15994   esac
15995   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15996   case $lt_search_path_spec in
15997   *\;*)
15998     # if the path contains ";" then we assume it to be the separator
15999     # otherwise default to the standard path separator (i.e. ":") - it is
16000     # assumed that no part of a normal pathname contains ";" but that should
16001     # okay in the real world where ";" in dirpaths is itself problematic.
16002     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16003     ;;
16004   *)
16005     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16006     ;;
16007   esac
16008   # Ok, now we have the path, separated by spaces, we can step through it
16009   # and add multilib dir if necessary.
16010   lt_tmp_lt_search_path_spec=
16011   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16012   for lt_sys_path in $lt_search_path_spec; do
16013     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16014       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16015     else
16016       test -d "$lt_sys_path" && \
16017         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16018     fi
16019   done
16020   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16021 BEGIN {RS=" "; FS="/|\n";} {
16022   lt_foo="";
16023   lt_count=0;
16024   for (lt_i = NF; lt_i > 0; lt_i--) {
16025     if ($lt_i != "" && $lt_i != ".") {
16026       if ($lt_i == "..") {
16027         lt_count++;
16028       } else {
16029         if (lt_count == 0) {
16030           lt_foo="/" $lt_i lt_foo;
16031         } else {
16032           lt_count--;
16033         }
16034       }
16035     }
16036   }
16037   if (lt_foo != "") { lt_freq[lt_foo]++; }
16038   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16039 }'`
16040   # AWK program above erroneously prepends '/' to C:/dos/paths
16041   # for these hosts.
16042   case $host_os in
16043     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16044       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16045   esac
16046   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16047 else
16048   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16049 fi
16050 library_names_spec=
16051 libname_spec='lib$name'
16052 soname_spec=
16053 shrext_cmds=".so"
16054 postinstall_cmds=
16055 postuninstall_cmds=
16056 finish_cmds=
16057 finish_eval=
16058 shlibpath_var=
16059 shlibpath_overrides_runpath=unknown
16060 version_type=none
16061 dynamic_linker="$host_os ld.so"
16062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16063 need_lib_prefix=unknown
16064 hardcode_into_libs=no
16065
16066 # when you set need_version to no, make sure it does not cause -set_version
16067 # flags to be left without arguments
16068 need_version=unknown
16069
16070 case $host_os in
16071 aix3*)
16072   version_type=linux
16073   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16074   shlibpath_var=LIBPATH
16075
16076   # AIX 3 has no versioning support, so we append a major version to the name.
16077   soname_spec='${libname}${release}${shared_ext}$major'
16078   ;;
16079
16080 aix[4-9]*)
16081   version_type=linux
16082   need_lib_prefix=no
16083   need_version=no
16084   hardcode_into_libs=yes
16085   if test "$host_cpu" = ia64; then
16086     # AIX 5 supports IA64
16087     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16088     shlibpath_var=LD_LIBRARY_PATH
16089   else
16090     # With GCC up to 2.95.x, collect2 would create an import file
16091     # for dependence libraries.  The import file would start with
16092     # the line `#! .'.  This would cause the generated library to
16093     # depend on `.', always an invalid library.  This was fixed in
16094     # development snapshots of GCC prior to 3.0.
16095     case $host_os in
16096       aix4 | aix4.[01] | aix4.[01].*)
16097       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16098            echo ' yes '
16099            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16100         :
16101       else
16102         can_build_shared=no
16103       fi
16104       ;;
16105     esac
16106     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16107     # soname into executable. Probably we can add versioning support to
16108     # collect2, so additional links can be useful in future.
16109     if test "$aix_use_runtimelinking" = yes; then
16110       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16111       # instead of lib<name>.a to let people know that these are not
16112       # typical AIX shared libraries.
16113       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114     else
16115       # We preserve .a as extension for shared libraries through AIX4.2
16116       # and later when we are not doing run time linking.
16117       library_names_spec='${libname}${release}.a $libname.a'
16118       soname_spec='${libname}${release}${shared_ext}$major'
16119     fi
16120     shlibpath_var=LIBPATH
16121   fi
16122   ;;
16123
16124 amigaos*)
16125   case $host_cpu in
16126   powerpc)
16127     # Since July 2007 AmigaOS4 officially supports .so libraries.
16128     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130     ;;
16131   m68k)
16132     library_names_spec='$libname.ixlibrary $libname.a'
16133     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16134     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'
16135     ;;
16136   esac
16137   ;;
16138
16139 beos*)
16140   library_names_spec='${libname}${shared_ext}'
16141   dynamic_linker="$host_os ld.so"
16142   shlibpath_var=LIBRARY_PATH
16143   ;;
16144
16145 bsdi[45]*)
16146   version_type=linux
16147   need_version=no
16148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16149   soname_spec='${libname}${release}${shared_ext}$major'
16150   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16151   shlibpath_var=LD_LIBRARY_PATH
16152   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16153   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16154   # the default ld.so.conf also contains /usr/contrib/lib and
16155   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16156   # libtool to hard-code these into programs
16157   ;;
16158
16159 cygwin* | mingw* | pw32* | cegcc*)
16160   version_type=windows
16161   shrext_cmds=".dll"
16162   need_version=no
16163   need_lib_prefix=no
16164
16165   case $GCC,$host_os in
16166   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16167     library_names_spec='$libname.dll.a'
16168     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16169     postinstall_cmds='base_file=`basename \${file}`~
16170       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16171       dldir=$destdir/`dirname \$dlpath`~
16172       test -d \$dldir || mkdir -p \$dldir~
16173       $install_prog $dir/$dlname \$dldir/$dlname~
16174       chmod a+x \$dldir/$dlname~
16175       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16176         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16177       fi'
16178     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16179       dlpath=$dir/\$dldll~
16180        $RM \$dlpath'
16181     shlibpath_overrides_runpath=yes
16182
16183     case $host_os in
16184     cygwin*)
16185       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16186       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16187
16188       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16189       ;;
16190     mingw* | cegcc*)
16191       # MinGW DLLs use traditional 'lib' prefix
16192       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16193       ;;
16194     pw32*)
16195       # pw32 DLLs use 'pw' prefix rather than 'lib'
16196       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16197       ;;
16198     esac
16199     ;;
16200
16201   *)
16202     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16203     ;;
16204   esac
16205   dynamic_linker='Win32 ld.exe'
16206   # FIXME: first we should search . and the directory the executable is in
16207   shlibpath_var=PATH
16208   ;;
16209
16210 darwin* | rhapsody*)
16211   dynamic_linker="$host_os dyld"
16212   version_type=darwin
16213   need_lib_prefix=no
16214   need_version=no
16215   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16216   soname_spec='${libname}${release}${major}$shared_ext'
16217   shlibpath_overrides_runpath=yes
16218   shlibpath_var=DYLD_LIBRARY_PATH
16219   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16220
16221   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16222   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16223   ;;
16224
16225 dgux*)
16226   version_type=linux
16227   need_lib_prefix=no
16228   need_version=no
16229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16230   soname_spec='${libname}${release}${shared_ext}$major'
16231   shlibpath_var=LD_LIBRARY_PATH
16232   ;;
16233
16234 freebsd1*)
16235   dynamic_linker=no
16236   ;;
16237
16238 freebsd* | dragonfly*)
16239   # DragonFly does not have aout.  When/if they implement a new
16240   # versioning mechanism, adjust this.
16241   if test -x /usr/bin/objformat; then
16242     objformat=`/usr/bin/objformat`
16243   else
16244     case $host_os in
16245     freebsd[123]*) objformat=aout ;;
16246     *) objformat=elf ;;
16247     esac
16248   fi
16249   version_type=freebsd-$objformat
16250   case $version_type in
16251     freebsd-elf*)
16252       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16253       need_version=no
16254       need_lib_prefix=no
16255       ;;
16256     freebsd-*)
16257       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16258       need_version=yes
16259       ;;
16260   esac
16261   shlibpath_var=LD_LIBRARY_PATH
16262   case $host_os in
16263   freebsd2*)
16264     shlibpath_overrides_runpath=yes
16265     ;;
16266   freebsd3.[01]* | freebsdelf3.[01]*)
16267     shlibpath_overrides_runpath=yes
16268     hardcode_into_libs=yes
16269     ;;
16270   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16271   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16272     shlibpath_overrides_runpath=no
16273     hardcode_into_libs=yes
16274     ;;
16275   *) # from 4.6 on, and DragonFly
16276     shlibpath_overrides_runpath=yes
16277     hardcode_into_libs=yes
16278     ;;
16279   esac
16280   ;;
16281
16282 gnu*)
16283   version_type=linux
16284   need_lib_prefix=no
16285   need_version=no
16286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16287   soname_spec='${libname}${release}${shared_ext}$major'
16288   shlibpath_var=LD_LIBRARY_PATH
16289   hardcode_into_libs=yes
16290   ;;
16291
16292 haiku*)
16293   version_type=linux
16294   need_lib_prefix=no
16295   need_version=no
16296   dynamic_linker="$host_os runtime_loader"
16297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16298   soname_spec='${libname}${release}${shared_ext}$major'
16299   shlibpath_var=LIBRARY_PATH
16300   shlibpath_overrides_runpath=yes
16301   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16302   hardcode_into_libs=yes
16303   ;;
16304
16305 hpux9* | hpux10* | hpux11*)
16306   # Give a soname corresponding to the major version so that dld.sl refuses to
16307   # link against other versions.
16308   version_type=sunos
16309   need_lib_prefix=no
16310   need_version=no
16311   case $host_cpu in
16312   ia64*)
16313     shrext_cmds='.so'
16314     hardcode_into_libs=yes
16315     dynamic_linker="$host_os dld.so"
16316     shlibpath_var=LD_LIBRARY_PATH
16317     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319     soname_spec='${libname}${release}${shared_ext}$major'
16320     if test "X$HPUX_IA64_MODE" = X32; then
16321       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16322     else
16323       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16324     fi
16325     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16326     ;;
16327   hppa*64*)
16328     shrext_cmds='.sl'
16329     hardcode_into_libs=yes
16330     dynamic_linker="$host_os dld.sl"
16331     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16332     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334     soname_spec='${libname}${release}${shared_ext}$major'
16335     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16336     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16337     ;;
16338   *)
16339     shrext_cmds='.sl'
16340     dynamic_linker="$host_os dld.sl"
16341     shlibpath_var=SHLIB_PATH
16342     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344     soname_spec='${libname}${release}${shared_ext}$major'
16345     ;;
16346   esac
16347   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16348   postinstall_cmds='chmod 555 $lib'
16349   # or fails outright, so override atomically:
16350   install_override_mode=555
16351   ;;
16352
16353 interix[3-9]*)
16354   version_type=linux
16355   need_lib_prefix=no
16356   need_version=no
16357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16358   soname_spec='${libname}${release}${shared_ext}$major'
16359   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16360   shlibpath_var=LD_LIBRARY_PATH
16361   shlibpath_overrides_runpath=no
16362   hardcode_into_libs=yes
16363   ;;
16364
16365 irix5* | irix6* | nonstopux*)
16366   case $host_os in
16367     nonstopux*) version_type=nonstopux ;;
16368     *)
16369         if test "$lt_cv_prog_gnu_ld" = yes; then
16370                 version_type=linux
16371         else
16372                 version_type=irix
16373         fi ;;
16374   esac
16375   need_lib_prefix=no
16376   need_version=no
16377   soname_spec='${libname}${release}${shared_ext}$major'
16378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16379   case $host_os in
16380   irix5* | nonstopux*)
16381     libsuff= shlibsuff=
16382     ;;
16383   *)
16384     case $LD in # libtool.m4 will add one of these switches to LD
16385     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16386       libsuff= shlibsuff= libmagic=32-bit;;
16387     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16388       libsuff=32 shlibsuff=N32 libmagic=N32;;
16389     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16390       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16391     *) libsuff= shlibsuff= libmagic=never-match;;
16392     esac
16393     ;;
16394   esac
16395   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16396   shlibpath_overrides_runpath=no
16397   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16398   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16399   hardcode_into_libs=yes
16400   ;;
16401
16402 # No shared lib support for Linux oldld, aout, or coff.
16403 linux*oldld* | linux*aout* | linux*coff*)
16404   dynamic_linker=no
16405   ;;
16406
16407 # This must be Linux ELF.
16408 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16409   version_type=linux
16410   need_lib_prefix=no
16411   need_version=no
16412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413   soname_spec='${libname}${release}${shared_ext}$major'
16414   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16415   shlibpath_var=LD_LIBRARY_PATH
16416   shlibpath_overrides_runpath=no
16417
16418   # Some binutils ld are patched to set DT_RUNPATH
16419   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16420   $as_echo_n "(cached) " >&6
16421 else
16422   lt_cv_shlibpath_overrides_runpath=no
16423     save_LDFLAGS=$LDFLAGS
16424     save_libdir=$libdir
16425     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16426          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h.  */
16429
16430 int
16431 main ()
16432 {
16433
16434   ;
16435   return 0;
16436 }
16437 _ACEOF
16438 if ac_fn_c_try_link "$LINENO"; then :
16439   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16440   lt_cv_shlibpath_overrides_runpath=yes
16441 fi
16442 fi
16443 rm -f core conftest.err conftest.$ac_objext \
16444     conftest$ac_exeext conftest.$ac_ext
16445     LDFLAGS=$save_LDFLAGS
16446     libdir=$save_libdir
16447
16448 fi
16449
16450   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16451
16452   # This implies no fast_install, which is unacceptable.
16453   # Some rework will be needed to allow for fast_install
16454   # before this can be enabled.
16455   hardcode_into_libs=yes
16456
16457   # Append ld.so.conf contents to the search path
16458   if test -f /etc/ld.so.conf; then
16459     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' ' '`
16460     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16461   fi
16462
16463   # We used to test for /lib/ld.so.1 and disable shared libraries on
16464   # powerpc, because MkLinux only supported shared libraries with the
16465   # GNU dynamic linker.  Since this was broken with cross compilers,
16466   # most powerpc-linux boxes support dynamic linking these days and
16467   # people can always --disable-shared, the test was removed, and we
16468   # assume the GNU/Linux dynamic linker is in use.
16469   dynamic_linker='GNU/Linux ld.so'
16470   ;;
16471
16472 netbsd*)
16473   version_type=sunos
16474   need_lib_prefix=no
16475   need_version=no
16476   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16478     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16479     dynamic_linker='NetBSD (a.out) ld.so'
16480   else
16481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16482     soname_spec='${libname}${release}${shared_ext}$major'
16483     dynamic_linker='NetBSD ld.elf_so'
16484   fi
16485   shlibpath_var=LD_LIBRARY_PATH
16486   shlibpath_overrides_runpath=yes
16487   hardcode_into_libs=yes
16488   ;;
16489
16490 newsos6)
16491   version_type=linux
16492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493   shlibpath_var=LD_LIBRARY_PATH
16494   shlibpath_overrides_runpath=yes
16495   ;;
16496
16497 *nto* | *qnx*)
16498   version_type=qnx
16499   need_lib_prefix=no
16500   need_version=no
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   shlibpath_var=LD_LIBRARY_PATH
16504   shlibpath_overrides_runpath=no
16505   hardcode_into_libs=yes
16506   dynamic_linker='ldqnx.so'
16507   ;;
16508
16509 openbsd*)
16510   version_type=sunos
16511   sys_lib_dlsearch_path_spec="/usr/lib"
16512   need_lib_prefix=no
16513   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16514   case $host_os in
16515     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16516     *)                          need_version=no  ;;
16517   esac
16518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16519   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16520   shlibpath_var=LD_LIBRARY_PATH
16521   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16522     case $host_os in
16523       openbsd2.[89] | openbsd2.[89].*)
16524         shlibpath_overrides_runpath=no
16525         ;;
16526       *)
16527         shlibpath_overrides_runpath=yes
16528         ;;
16529       esac
16530   else
16531     shlibpath_overrides_runpath=yes
16532   fi
16533   ;;
16534
16535 os2*)
16536   libname_spec='$name'
16537   shrext_cmds=".dll"
16538   need_lib_prefix=no
16539   library_names_spec='$libname${shared_ext} $libname.a'
16540   dynamic_linker='OS/2 ld.exe'
16541   shlibpath_var=LIBPATH
16542   ;;
16543
16544 osf3* | osf4* | osf5*)
16545   version_type=osf
16546   need_lib_prefix=no
16547   need_version=no
16548   soname_spec='${libname}${release}${shared_ext}$major'
16549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550   shlibpath_var=LD_LIBRARY_PATH
16551   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16552   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16553   ;;
16554
16555 rdos*)
16556   dynamic_linker=no
16557   ;;
16558
16559 solaris*)
16560   version_type=linux
16561   need_lib_prefix=no
16562   need_version=no
16563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564   soname_spec='${libname}${release}${shared_ext}$major'
16565   shlibpath_var=LD_LIBRARY_PATH
16566   shlibpath_overrides_runpath=yes
16567   hardcode_into_libs=yes
16568   # ldd complains unless libraries are executable
16569   postinstall_cmds='chmod +x $lib'
16570   ;;
16571
16572 sunos4*)
16573   version_type=sunos
16574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16575   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16576   shlibpath_var=LD_LIBRARY_PATH
16577   shlibpath_overrides_runpath=yes
16578   if test "$with_gnu_ld" = yes; then
16579     need_lib_prefix=no
16580   fi
16581   need_version=yes
16582   ;;
16583
16584 sysv4 | sysv4.3*)
16585   version_type=linux
16586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587   soname_spec='${libname}${release}${shared_ext}$major'
16588   shlibpath_var=LD_LIBRARY_PATH
16589   case $host_vendor in
16590     sni)
16591       shlibpath_overrides_runpath=no
16592       need_lib_prefix=no
16593       runpath_var=LD_RUN_PATH
16594       ;;
16595     siemens)
16596       need_lib_prefix=no
16597       ;;
16598     motorola)
16599       need_lib_prefix=no
16600       need_version=no
16601       shlibpath_overrides_runpath=no
16602       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16603       ;;
16604   esac
16605   ;;
16606
16607 sysv4*MP*)
16608   if test -d /usr/nec ;then
16609     version_type=linux
16610     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16611     soname_spec='$libname${shared_ext}.$major'
16612     shlibpath_var=LD_LIBRARY_PATH
16613   fi
16614   ;;
16615
16616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16617   version_type=freebsd-elf
16618   need_lib_prefix=no
16619   need_version=no
16620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16621   soname_spec='${libname}${release}${shared_ext}$major'
16622   shlibpath_var=LD_LIBRARY_PATH
16623   shlibpath_overrides_runpath=yes
16624   hardcode_into_libs=yes
16625   if test "$with_gnu_ld" = yes; then
16626     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16627   else
16628     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16629     case $host_os in
16630       sco3.2v5*)
16631         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16632         ;;
16633     esac
16634   fi
16635   sys_lib_dlsearch_path_spec='/usr/lib'
16636   ;;
16637
16638 tpf*)
16639   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16640   version_type=linux
16641   need_lib_prefix=no
16642   need_version=no
16643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644   shlibpath_var=LD_LIBRARY_PATH
16645   shlibpath_overrides_runpath=no
16646   hardcode_into_libs=yes
16647   ;;
16648
16649 uts4*)
16650   version_type=linux
16651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652   soname_spec='${libname}${release}${shared_ext}$major'
16653   shlibpath_var=LD_LIBRARY_PATH
16654   ;;
16655
16656 *)
16657   dynamic_linker=no
16658   ;;
16659 esac
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16661 $as_echo "$dynamic_linker" >&6; }
16662 test "$dynamic_linker" = no && can_build_shared=no
16663
16664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16665 if test "$GCC" = yes; then
16666   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16667 fi
16668
16669 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16670   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16671 fi
16672 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16673   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16674 fi
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16768 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16769 hardcode_action=
16770 if test -n "$hardcode_libdir_flag_spec" ||
16771    test -n "$runpath_var" ||
16772    test "X$hardcode_automatic" = "Xyes" ; then
16773
16774   # We can hardcode non-existent directories.
16775   if test "$hardcode_direct" != no &&
16776      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16777      # have to relink, otherwise we might link with an installed library
16778      # when we should be linking with a yet-to-be-installed one
16779      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16780      test "$hardcode_minus_L" != no; then
16781     # Linking always hardcodes the temporary library directory.
16782     hardcode_action=relink
16783   else
16784     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16785     hardcode_action=immediate
16786   fi
16787 else
16788   # We cannot hardcode anything, or else we can only hardcode existing
16789   # directories.
16790   hardcode_action=unsupported
16791 fi
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16793 $as_echo "$hardcode_action" >&6; }
16794
16795 if test "$hardcode_action" = relink ||
16796    test "$inherit_rpath" = yes; then
16797   # Fast installation is not supported
16798   enable_fast_install=no
16799 elif test "$shlibpath_overrides_runpath" = yes ||
16800      test "$enable_shared" = no; then
16801   # Fast installation is not necessary
16802   enable_fast_install=needless
16803 fi
16804
16805
16806
16807
16808
16809
16810   if test "x$enable_dlopen" != xyes; then
16811   enable_dlopen=unknown
16812   enable_dlopen_self=unknown
16813   enable_dlopen_self_static=unknown
16814 else
16815   lt_cv_dlopen=no
16816   lt_cv_dlopen_libs=
16817
16818   case $host_os in
16819   beos*)
16820     lt_cv_dlopen="load_add_on"
16821     lt_cv_dlopen_libs=
16822     lt_cv_dlopen_self=yes
16823     ;;
16824
16825   mingw* | pw32* | cegcc*)
16826     lt_cv_dlopen="LoadLibrary"
16827     lt_cv_dlopen_libs=
16828     ;;
16829
16830   cygwin*)
16831     lt_cv_dlopen="dlopen"
16832     lt_cv_dlopen_libs=
16833     ;;
16834
16835   darwin*)
16836   # if libdl is installed we need to link against it
16837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16838 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16840   $as_echo_n "(cached) " >&6
16841 else
16842   ac_check_lib_save_LIBS=$LIBS
16843 LIBS="-ldl  $LIBS"
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h.  */
16846
16847 /* Override any GCC internal prototype to avoid an error.
16848    Use char because int might match the return type of a GCC
16849    builtin and then its argument prototype would still apply.  */
16850 #ifdef __cplusplus
16851 extern "C"
16852 #endif
16853 char dlopen ();
16854 int
16855 main ()
16856 {
16857 return dlopen ();
16858   ;
16859   return 0;
16860 }
16861 _ACEOF
16862 if ac_fn_c_try_link "$LINENO"; then :
16863   ac_cv_lib_dl_dlopen=yes
16864 else
16865   ac_cv_lib_dl_dlopen=no
16866 fi
16867 rm -f core conftest.err conftest.$ac_objext \
16868     conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16870 fi
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16872 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16873 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16874   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16875 else
16876
16877     lt_cv_dlopen="dyld"
16878     lt_cv_dlopen_libs=
16879     lt_cv_dlopen_self=yes
16880
16881 fi
16882
16883     ;;
16884
16885   *)
16886     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16887 if test "x$ac_cv_func_shl_load" = x""yes; then :
16888   lt_cv_dlopen="shl_load"
16889 else
16890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16891 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16892 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16893   $as_echo_n "(cached) " >&6
16894 else
16895   ac_check_lib_save_LIBS=$LIBS
16896 LIBS="-ldld  $LIBS"
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h.  */
16899
16900 /* Override any GCC internal prototype to avoid an error.
16901    Use char because int might match the return type of a GCC
16902    builtin and then its argument prototype would still apply.  */
16903 #ifdef __cplusplus
16904 extern "C"
16905 #endif
16906 char shl_load ();
16907 int
16908 main ()
16909 {
16910 return shl_load ();
16911   ;
16912   return 0;
16913 }
16914 _ACEOF
16915 if ac_fn_c_try_link "$LINENO"; then :
16916   ac_cv_lib_dld_shl_load=yes
16917 else
16918   ac_cv_lib_dld_shl_load=no
16919 fi
16920 rm -f core conftest.err conftest.$ac_objext \
16921     conftest$ac_exeext conftest.$ac_ext
16922 LIBS=$ac_check_lib_save_LIBS
16923 fi
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16925 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16926 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16927   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16928 else
16929   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16930 if test "x$ac_cv_func_dlopen" = x""yes; then :
16931   lt_cv_dlopen="dlopen"
16932 else
16933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16934 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16936   $as_echo_n "(cached) " >&6
16937 else
16938   ac_check_lib_save_LIBS=$LIBS
16939 LIBS="-ldl  $LIBS"
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h.  */
16942
16943 /* Override any GCC internal prototype to avoid an error.
16944    Use char because int might match the return type of a GCC
16945    builtin and then its argument prototype would still apply.  */
16946 #ifdef __cplusplus
16947 extern "C"
16948 #endif
16949 char dlopen ();
16950 int
16951 main ()
16952 {
16953 return dlopen ();
16954   ;
16955   return 0;
16956 }
16957 _ACEOF
16958 if ac_fn_c_try_link "$LINENO"; then :
16959   ac_cv_lib_dl_dlopen=yes
16960 else
16961   ac_cv_lib_dl_dlopen=no
16962 fi
16963 rm -f core conftest.err conftest.$ac_objext \
16964     conftest$ac_exeext conftest.$ac_ext
16965 LIBS=$ac_check_lib_save_LIBS
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16969 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16970   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16971 else
16972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16973 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16974 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16975   $as_echo_n "(cached) " >&6
16976 else
16977   ac_check_lib_save_LIBS=$LIBS
16978 LIBS="-lsvld  $LIBS"
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h.  */
16981
16982 /* Override any GCC internal prototype to avoid an error.
16983    Use char because int might match the return type of a GCC
16984    builtin and then its argument prototype would still apply.  */
16985 #ifdef __cplusplus
16986 extern "C"
16987 #endif
16988 char dlopen ();
16989 int
16990 main ()
16991 {
16992 return dlopen ();
16993   ;
16994   return 0;
16995 }
16996 _ACEOF
16997 if ac_fn_c_try_link "$LINENO"; then :
16998   ac_cv_lib_svld_dlopen=yes
16999 else
17000   ac_cv_lib_svld_dlopen=no
17001 fi
17002 rm -f core conftest.err conftest.$ac_objext \
17003     conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17005 fi
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17007 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17008 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17009   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17010 else
17011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17012 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17014   $as_echo_n "(cached) " >&6
17015 else
17016   ac_check_lib_save_LIBS=$LIBS
17017 LIBS="-ldld  $LIBS"
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h.  */
17020
17021 /* Override any GCC internal prototype to avoid an error.
17022    Use char because int might match the return type of a GCC
17023    builtin and then its argument prototype would still apply.  */
17024 #ifdef __cplusplus
17025 extern "C"
17026 #endif
17027 char dld_link ();
17028 int
17029 main ()
17030 {
17031 return dld_link ();
17032   ;
17033   return 0;
17034 }
17035 _ACEOF
17036 if ac_fn_c_try_link "$LINENO"; then :
17037   ac_cv_lib_dld_dld_link=yes
17038 else
17039   ac_cv_lib_dld_dld_link=no
17040 fi
17041 rm -f core conftest.err conftest.$ac_objext \
17042     conftest$ac_exeext conftest.$ac_ext
17043 LIBS=$ac_check_lib_save_LIBS
17044 fi
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17046 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17047 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17048   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17049 fi
17050
17051
17052 fi
17053
17054
17055 fi
17056
17057
17058 fi
17059
17060
17061 fi
17062
17063
17064 fi
17065
17066     ;;
17067   esac
17068
17069   if test "x$lt_cv_dlopen" != xno; then
17070     enable_dlopen=yes
17071   else
17072     enable_dlopen=no
17073   fi
17074
17075   case $lt_cv_dlopen in
17076   dlopen)
17077     save_CPPFLAGS="$CPPFLAGS"
17078     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17079
17080     save_LDFLAGS="$LDFLAGS"
17081     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17082
17083     save_LIBS="$LIBS"
17084     LIBS="$lt_cv_dlopen_libs $LIBS"
17085
17086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17087 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17088 if test "${lt_cv_dlopen_self+set}" = set; then :
17089   $as_echo_n "(cached) " >&6
17090 else
17091           if test "$cross_compiling" = yes; then :
17092   lt_cv_dlopen_self=cross
17093 else
17094   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17095   lt_status=$lt_dlunknown
17096   cat > conftest.$ac_ext <<_LT_EOF
17097 #line 17097 "configure"
17098 #include "confdefs.h"
17099
17100 #if HAVE_DLFCN_H
17101 #include <dlfcn.h>
17102 #endif
17103
17104 #include <stdio.h>
17105
17106 #ifdef RTLD_GLOBAL
17107 #  define LT_DLGLOBAL           RTLD_GLOBAL
17108 #else
17109 #  ifdef DL_GLOBAL
17110 #    define LT_DLGLOBAL         DL_GLOBAL
17111 #  else
17112 #    define LT_DLGLOBAL         0
17113 #  endif
17114 #endif
17115
17116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17117    find out it does not work in some platform. */
17118 #ifndef LT_DLLAZY_OR_NOW
17119 #  ifdef RTLD_LAZY
17120 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17121 #  else
17122 #    ifdef DL_LAZY
17123 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17124 #    else
17125 #      ifdef RTLD_NOW
17126 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17127 #      else
17128 #        ifdef DL_NOW
17129 #          define LT_DLLAZY_OR_NOW      DL_NOW
17130 #        else
17131 #          define LT_DLLAZY_OR_NOW      0
17132 #        endif
17133 #      endif
17134 #    endif
17135 #  endif
17136 #endif
17137
17138 /* When -fvisbility=hidden is used, assume the code has been annotated
17139    correspondingly for the symbols needed.  */
17140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17141 void fnord () __attribute__((visibility("default")));
17142 #endif
17143
17144 void fnord () { int i=42; }
17145 int main ()
17146 {
17147   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17148   int status = $lt_dlunknown;
17149
17150   if (self)
17151     {
17152       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17153       else
17154         {
17155           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17156           else puts (dlerror ());
17157         }
17158       /* dlclose (self); */
17159     }
17160   else
17161     puts (dlerror ());
17162
17163   return status;
17164 }
17165 _LT_EOF
17166   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17167   (eval $ac_link) 2>&5
17168   ac_status=$?
17169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17170   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17171     (./conftest; exit; ) >&5 2>/dev/null
17172     lt_status=$?
17173     case x$lt_status in
17174       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17175       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17176       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17177     esac
17178   else :
17179     # compilation failed
17180     lt_cv_dlopen_self=no
17181   fi
17182 fi
17183 rm -fr conftest*
17184
17185
17186 fi
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17188 $as_echo "$lt_cv_dlopen_self" >&6; }
17189
17190     if test "x$lt_cv_dlopen_self" = xyes; then
17191       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17192       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17193 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17194 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17195   $as_echo_n "(cached) " >&6
17196 else
17197           if test "$cross_compiling" = yes; then :
17198   lt_cv_dlopen_self_static=cross
17199 else
17200   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17201   lt_status=$lt_dlunknown
17202   cat > conftest.$ac_ext <<_LT_EOF
17203 #line 17203 "configure"
17204 #include "confdefs.h"
17205
17206 #if HAVE_DLFCN_H
17207 #include <dlfcn.h>
17208 #endif
17209
17210 #include <stdio.h>
17211
17212 #ifdef RTLD_GLOBAL
17213 #  define LT_DLGLOBAL           RTLD_GLOBAL
17214 #else
17215 #  ifdef DL_GLOBAL
17216 #    define LT_DLGLOBAL         DL_GLOBAL
17217 #  else
17218 #    define LT_DLGLOBAL         0
17219 #  endif
17220 #endif
17221
17222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17223    find out it does not work in some platform. */
17224 #ifndef LT_DLLAZY_OR_NOW
17225 #  ifdef RTLD_LAZY
17226 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17227 #  else
17228 #    ifdef DL_LAZY
17229 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17230 #    else
17231 #      ifdef RTLD_NOW
17232 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17233 #      else
17234 #        ifdef DL_NOW
17235 #          define LT_DLLAZY_OR_NOW      DL_NOW
17236 #        else
17237 #          define LT_DLLAZY_OR_NOW      0
17238 #        endif
17239 #      endif
17240 #    endif
17241 #  endif
17242 #endif
17243
17244 /* When -fvisbility=hidden is used, assume the code has been annotated
17245    correspondingly for the symbols needed.  */
17246 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17247 void fnord () __attribute__((visibility("default")));
17248 #endif
17249
17250 void fnord () { int i=42; }
17251 int main ()
17252 {
17253   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17254   int status = $lt_dlunknown;
17255
17256   if (self)
17257     {
17258       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17259       else
17260         {
17261           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17262           else puts (dlerror ());
17263         }
17264       /* dlclose (self); */
17265     }
17266   else
17267     puts (dlerror ());
17268
17269   return status;
17270 }
17271 _LT_EOF
17272   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17273   (eval $ac_link) 2>&5
17274   ac_status=$?
17275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17276   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17277     (./conftest; exit; ) >&5 2>/dev/null
17278     lt_status=$?
17279     case x$lt_status in
17280       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17281       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17282       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17283     esac
17284   else :
17285     # compilation failed
17286     lt_cv_dlopen_self_static=no
17287   fi
17288 fi
17289 rm -fr conftest*
17290
17291
17292 fi
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17294 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17295     fi
17296
17297     CPPFLAGS="$save_CPPFLAGS"
17298     LDFLAGS="$save_LDFLAGS"
17299     LIBS="$save_LIBS"
17300     ;;
17301   esac
17302
17303   case $lt_cv_dlopen_self in
17304   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17305   *) enable_dlopen_self=unknown ;;
17306   esac
17307
17308   case $lt_cv_dlopen_self_static in
17309   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17310   *) enable_dlopen_self_static=unknown ;;
17311   esac
17312 fi
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330 striplib=
17331 old_striplib=
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17333 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17334 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17335   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17336   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17338 $as_echo "yes" >&6; }
17339 else
17340 # FIXME - insert some real tests, host_os isn't really good enough
17341   case $host_os in
17342   darwin*)
17343     if test -n "$STRIP" ; then
17344       striplib="$STRIP -x"
17345       old_striplib="$STRIP -S"
17346       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17347 $as_echo "yes" >&6; }
17348     else
17349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17350 $as_echo "no" >&6; }
17351     fi
17352     ;;
17353   *)
17354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17355 $as_echo "no" >&6; }
17356     ;;
17357   esac
17358 fi
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371   # Report which library types will actually be built
17372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17373 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17375 $as_echo "$can_build_shared" >&6; }
17376
17377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17378 $as_echo_n "checking whether to build shared libraries... " >&6; }
17379   test "$can_build_shared" = "no" && enable_shared=no
17380
17381   # On AIX, shared libraries and static libraries use the same namespace, and
17382   # are all built from PIC.
17383   case $host_os in
17384   aix3*)
17385     test "$enable_shared" = yes && enable_static=no
17386     if test -n "$RANLIB"; then
17387       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17388       postinstall_cmds='$RANLIB $lib'
17389     fi
17390     ;;
17391
17392   aix[4-9]*)
17393     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17394       test "$enable_shared" = yes && enable_static=no
17395     fi
17396     ;;
17397   esac
17398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17399 $as_echo "$enable_shared" >&6; }
17400
17401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17402 $as_echo_n "checking whether to build static libraries... " >&6; }
17403   # Make sure either enable_shared or enable_static is yes.
17404   test "$enable_shared" = yes || enable_static=yes
17405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17406 $as_echo "$enable_static" >&6; }
17407
17408
17409
17410
17411 fi
17412 ac_ext=c
17413 ac_cpp='$CPP $CPPFLAGS'
17414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17417
17418 CC="$lt_save_CC"
17419
17420       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17421     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17422     (test "X$CXX" != "Xg++"))) ; then
17423   ac_ext=cpp
17424 ac_cpp='$CXXCPP $CPPFLAGS'
17425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17429 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17430 if test -z "$CXXCPP"; then
17431   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17432   $as_echo_n "(cached) " >&6
17433 else
17434       # Double quotes because CXXCPP needs to be expanded
17435     for CXXCPP in "$CXX -E" "/lib/cpp"
17436     do
17437       ac_preproc_ok=false
17438 for ac_cxx_preproc_warn_flag in '' yes
17439 do
17440   # Use a header file that comes with gcc, so configuring glibc
17441   # with a fresh cross-compiler works.
17442   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443   # <limits.h> exists even on freestanding compilers.
17444   # On the NeXT, cc -E runs the code through the compiler's parser,
17445   # not just through cpp. "Syntax error" is here to catch this case.
17446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h.  */
17448 #ifdef __STDC__
17449 # include <limits.h>
17450 #else
17451 # include <assert.h>
17452 #endif
17453                      Syntax error
17454 _ACEOF
17455 if ac_fn_cxx_try_cpp "$LINENO"; then :
17456
17457 else
17458   # Broken: fails on valid input.
17459 continue
17460 fi
17461 rm -f conftest.err conftest.$ac_ext
17462
17463   # OK, works on sane cases.  Now check whether nonexistent headers
17464   # can be detected and how.
17465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h.  */
17467 #include <ac_nonexistent.h>
17468 _ACEOF
17469 if ac_fn_cxx_try_cpp "$LINENO"; then :
17470   # Broken: success on invalid input.
17471 continue
17472 else
17473   # Passes both tests.
17474 ac_preproc_ok=:
17475 break
17476 fi
17477 rm -f conftest.err conftest.$ac_ext
17478
17479 done
17480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17481 rm -f conftest.err conftest.$ac_ext
17482 if $ac_preproc_ok; then :
17483   break
17484 fi
17485
17486     done
17487     ac_cv_prog_CXXCPP=$CXXCPP
17488
17489 fi
17490   CXXCPP=$ac_cv_prog_CXXCPP
17491 else
17492   ac_cv_prog_CXXCPP=$CXXCPP
17493 fi
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17495 $as_echo "$CXXCPP" >&6; }
17496 ac_preproc_ok=false
17497 for ac_cxx_preproc_warn_flag in '' yes
17498 do
17499   # Use a header file that comes with gcc, so configuring glibc
17500   # with a fresh cross-compiler works.
17501   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17502   # <limits.h> exists even on freestanding compilers.
17503   # On the NeXT, cc -E runs the code through the compiler's parser,
17504   # not just through cpp. "Syntax error" is here to catch this case.
17505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h.  */
17507 #ifdef __STDC__
17508 # include <limits.h>
17509 #else
17510 # include <assert.h>
17511 #endif
17512                      Syntax error
17513 _ACEOF
17514 if ac_fn_cxx_try_cpp "$LINENO"; then :
17515
17516 else
17517   # Broken: fails on valid input.
17518 continue
17519 fi
17520 rm -f conftest.err conftest.$ac_ext
17521
17522   # OK, works on sane cases.  Now check whether nonexistent headers
17523   # can be detected and how.
17524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h.  */
17526 #include <ac_nonexistent.h>
17527 _ACEOF
17528 if ac_fn_cxx_try_cpp "$LINENO"; then :
17529   # Broken: success on invalid input.
17530 continue
17531 else
17532   # Passes both tests.
17533 ac_preproc_ok=:
17534 break
17535 fi
17536 rm -f conftest.err conftest.$ac_ext
17537
17538 done
17539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17540 rm -f conftest.err conftest.$ac_ext
17541 if $ac_preproc_ok; then :
17542
17543 else
17544   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17546 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17547 See \`config.log' for more details." "$LINENO" 5; }
17548 fi
17549
17550 ac_ext=c
17551 ac_cpp='$CPP $CPPFLAGS'
17552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17555
17556 else
17557   _lt_caught_CXX_error=yes
17558 fi
17559
17560 ac_ext=cpp
17561 ac_cpp='$CXXCPP $CPPFLAGS'
17562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17565
17566 archive_cmds_need_lc_CXX=no
17567 allow_undefined_flag_CXX=
17568 always_export_symbols_CXX=no
17569 archive_expsym_cmds_CXX=
17570 compiler_needs_object_CXX=no
17571 export_dynamic_flag_spec_CXX=
17572 hardcode_direct_CXX=no
17573 hardcode_direct_absolute_CXX=no
17574 hardcode_libdir_flag_spec_CXX=
17575 hardcode_libdir_flag_spec_ld_CXX=
17576 hardcode_libdir_separator_CXX=
17577 hardcode_minus_L_CXX=no
17578 hardcode_shlibpath_var_CXX=unsupported
17579 hardcode_automatic_CXX=no
17580 inherit_rpath_CXX=no
17581 module_cmds_CXX=
17582 module_expsym_cmds_CXX=
17583 link_all_deplibs_CXX=unknown
17584 old_archive_cmds_CXX=$old_archive_cmds
17585 reload_flag_CXX=$reload_flag
17586 reload_cmds_CXX=$reload_cmds
17587 no_undefined_flag_CXX=
17588 whole_archive_flag_spec_CXX=
17589 enable_shared_with_static_runtimes_CXX=no
17590
17591 # Source file extension for C++ test sources.
17592 ac_ext=cpp
17593
17594 # Object file extension for compiled C++ test sources.
17595 objext=o
17596 objext_CXX=$objext
17597
17598 # No sense in running all these tests if we already determined that
17599 # the CXX compiler isn't working.  Some variables (like enable_shared)
17600 # are currently assumed to apply to all compilers on this platform,
17601 # and will be corrupted by setting them based on a non-working compiler.
17602 if test "$_lt_caught_CXX_error" != yes; then
17603   # Code to be used in simple compile tests
17604   lt_simple_compile_test_code="int some_variable = 0;"
17605
17606   # Code to be used in simple link tests
17607   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17608
17609   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17610
17611
17612
17613
17614
17615
17616 # If no C compiler was specified, use CC.
17617 LTCC=${LTCC-"$CC"}
17618
17619 # If no C compiler flags were specified, use CFLAGS.
17620 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17621
17622 # Allow CC to be a program name with arguments.
17623 compiler=$CC
17624
17625
17626   # save warnings/boilerplate of simple test code
17627   ac_outfile=conftest.$ac_objext
17628 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17630 _lt_compiler_boilerplate=`cat conftest.err`
17631 $RM conftest*
17632
17633   ac_outfile=conftest.$ac_objext
17634 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17636 _lt_linker_boilerplate=`cat conftest.err`
17637 $RM -r conftest*
17638
17639
17640   # Allow CC to be a program name with arguments.
17641   lt_save_CC=$CC
17642   lt_save_LD=$LD
17643   lt_save_GCC=$GCC
17644   GCC=$GXX
17645   lt_save_with_gnu_ld=$with_gnu_ld
17646   lt_save_path_LD=$lt_cv_path_LD
17647   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17648     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17649   else
17650     $as_unset lt_cv_prog_gnu_ld
17651   fi
17652   if test -n "${lt_cv_path_LDCXX+set}"; then
17653     lt_cv_path_LD=$lt_cv_path_LDCXX
17654   else
17655     $as_unset lt_cv_path_LD
17656   fi
17657   test -z "${LDCXX+set}" || LD=$LDCXX
17658   CC=${CXX-"c++"}
17659   compiler=$CC
17660   compiler_CXX=$CC
17661   for cc_temp in $compiler""; do
17662   case $cc_temp in
17663     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17664     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17665     \-*) ;;
17666     *) break;;
17667   esac
17668 done
17669 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17670
17671
17672   if test -n "$compiler"; then
17673     # We don't want -fno-exception when compiling C++ code, so set the
17674     # no_builtin_flag separately
17675     if test "$GXX" = yes; then
17676       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17677     else
17678       lt_prog_compiler_no_builtin_flag_CXX=
17679     fi
17680
17681     if test "$GXX" = yes; then
17682       # Set up default GNU C++ configuration
17683
17684
17685
17686 # Check whether --with-gnu-ld was given.
17687 if test "${with_gnu_ld+set}" = set; then :
17688   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17689 else
17690   with_gnu_ld=no
17691 fi
17692
17693 ac_prog=ld
17694 if test "$GCC" = yes; then
17695   # Check if gcc -print-prog-name=ld gives a path.
17696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17697 $as_echo_n "checking for ld used by $CC... " >&6; }
17698   case $host in
17699   *-*-mingw*)
17700     # gcc leaves a trailing carriage return which upsets mingw
17701     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17702   *)
17703     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17704   esac
17705   case $ac_prog in
17706     # Accept absolute paths.
17707     [\\/]* | ?:[\\/]*)
17708       re_direlt='/[^/][^/]*/\.\./'
17709       # Canonicalize the pathname of ld
17710       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17711       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17712         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17713       done
17714       test -z "$LD" && LD="$ac_prog"
17715       ;;
17716   "")
17717     # If it fails, then pretend we aren't using GCC.
17718     ac_prog=ld
17719     ;;
17720   *)
17721     # If it is relative, then search for the first ld in PATH.
17722     with_gnu_ld=unknown
17723     ;;
17724   esac
17725 elif test "$with_gnu_ld" = yes; then
17726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17727 $as_echo_n "checking for GNU ld... " >&6; }
17728 else
17729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17730 $as_echo_n "checking for non-GNU ld... " >&6; }
17731 fi
17732 if test "${lt_cv_path_LD+set}" = set; then :
17733   $as_echo_n "(cached) " >&6
17734 else
17735   if test -z "$LD"; then
17736   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17737   for ac_dir in $PATH; do
17738     IFS="$lt_save_ifs"
17739     test -z "$ac_dir" && ac_dir=.
17740     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17741       lt_cv_path_LD="$ac_dir/$ac_prog"
17742       # Check to see if the program is GNU ld.  I'd rather use --version,
17743       # but apparently some variants of GNU ld only accept -v.
17744       # Break only if it was the GNU/non-GNU ld that we prefer.
17745       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17746       *GNU* | *'with BFD'*)
17747         test "$with_gnu_ld" != no && break
17748         ;;
17749       *)
17750         test "$with_gnu_ld" != yes && break
17751         ;;
17752       esac
17753     fi
17754   done
17755   IFS="$lt_save_ifs"
17756 else
17757   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17758 fi
17759 fi
17760
17761 LD="$lt_cv_path_LD"
17762 if test -n "$LD"; then
17763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17764 $as_echo "$LD" >&6; }
17765 else
17766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17767 $as_echo "no" >&6; }
17768 fi
17769 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17772 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17773   $as_echo_n "(cached) " >&6
17774 else
17775   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17776 case `$LD -v 2>&1 </dev/null` in
17777 *GNU* | *'with BFD'*)
17778   lt_cv_prog_gnu_ld=yes
17779   ;;
17780 *)
17781   lt_cv_prog_gnu_ld=no
17782   ;;
17783 esac
17784 fi
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17787 with_gnu_ld=$lt_cv_prog_gnu_ld
17788
17789
17790
17791
17792
17793
17794
17795       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17796       # archiving commands below assume that GNU ld is being used.
17797       if test "$with_gnu_ld" = yes; then
17798         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17799         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'
17800
17801         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17802         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17803
17804         # If archive_cmds runs LD, not CC, wlarc should be empty
17805         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17806         #     investigate it a little bit more. (MM)
17807         wlarc='${wl}'
17808
17809         # ancient GNU ld didn't support --whole-archive et. al.
17810         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17811           $GREP 'no-whole-archive' > /dev/null; then
17812           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17813         else
17814           whole_archive_flag_spec_CXX=
17815         fi
17816       else
17817         with_gnu_ld=no
17818         wlarc=
17819
17820         # A generic and very simple default shared library creation
17821         # command for GNU C++ for the case where it uses the native
17822         # linker, instead of GNU ld.  If possible, this setting should
17823         # overridden to take advantage of the native linker features on
17824         # the platform it is being used on.
17825         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17826       fi
17827
17828       # Commands to make compiler produce verbose output that lists
17829       # what "hidden" libraries, object files and flags are used when
17830       # linking a shared library.
17831       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17832
17833     else
17834       GXX=no
17835       with_gnu_ld=no
17836       wlarc=
17837     fi
17838
17839     # PORTME: fill in a description of your system's C++ link characteristics
17840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17841 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17842     ld_shlibs_CXX=yes
17843     case $host_os in
17844       aix3*)
17845         # FIXME: insert proper C++ library support
17846         ld_shlibs_CXX=no
17847         ;;
17848       aix[4-9]*)
17849         if test "$host_cpu" = ia64; then
17850           # On IA64, the linker does run time linking by default, so we don't
17851           # have to do anything special.
17852           aix_use_runtimelinking=no
17853           exp_sym_flag='-Bexport'
17854           no_entry_flag=""
17855         else
17856           aix_use_runtimelinking=no
17857
17858           # Test if we are trying to use run time linking or normal
17859           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17860           # need to do runtime linking.
17861           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17862             for ld_flag in $LDFLAGS; do
17863               case $ld_flag in
17864               *-brtl*)
17865                 aix_use_runtimelinking=yes
17866                 break
17867                 ;;
17868               esac
17869             done
17870             ;;
17871           esac
17872
17873           exp_sym_flag='-bexport'
17874           no_entry_flag='-bnoentry'
17875         fi
17876
17877         # When large executables or shared objects are built, AIX ld can
17878         # have problems creating the table of contents.  If linking a library
17879         # or program results in "error TOC overflow" add -mminimal-toc to
17880         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17881         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17882
17883         archive_cmds_CXX=''
17884         hardcode_direct_CXX=yes
17885         hardcode_direct_absolute_CXX=yes
17886         hardcode_libdir_separator_CXX=':'
17887         link_all_deplibs_CXX=yes
17888         file_list_spec_CXX='${wl}-f,'
17889
17890         if test "$GXX" = yes; then
17891           case $host_os in aix4.[012]|aix4.[012].*)
17892           # We only want to do this on AIX 4.2 and lower, the check
17893           # below for broken collect2 doesn't work under 4.3+
17894           collect2name=`${CC} -print-prog-name=collect2`
17895           if test -f "$collect2name" &&
17896              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17897           then
17898             # We have reworked collect2
17899             :
17900           else
17901             # We have old collect2
17902             hardcode_direct_CXX=unsupported
17903             # It fails to find uninstalled libraries when the uninstalled
17904             # path is not listed in the libpath.  Setting hardcode_minus_L
17905             # to unsupported forces relinking
17906             hardcode_minus_L_CXX=yes
17907             hardcode_libdir_flag_spec_CXX='-L$libdir'
17908             hardcode_libdir_separator_CXX=
17909           fi
17910           esac
17911           shared_flag='-shared'
17912           if test "$aix_use_runtimelinking" = yes; then
17913             shared_flag="$shared_flag "'${wl}-G'
17914           fi
17915         else
17916           # not using gcc
17917           if test "$host_cpu" = ia64; then
17918           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17919           # chokes on -Wl,-G. The following line is correct:
17920           shared_flag='-G'
17921           else
17922             if test "$aix_use_runtimelinking" = yes; then
17923               shared_flag='${wl}-G'
17924             else
17925               shared_flag='${wl}-bM:SRE'
17926             fi
17927           fi
17928         fi
17929
17930         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17931         # It seems that -bexpall does not export symbols beginning with
17932         # underscore (_), so it is better to generate a list of symbols to
17933         # export.
17934         always_export_symbols_CXX=yes
17935         if test "$aix_use_runtimelinking" = yes; then
17936           # Warning - without using the other runtime loading flags (-brtl),
17937           # -berok will link without error, but may produce a broken library.
17938           allow_undefined_flag_CXX='-berok'
17939           # Determine the default libpath from the value encoded in an empty
17940           # executable.
17941           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h.  */
17943
17944 int
17945 main ()
17946 {
17947
17948   ;
17949   return 0;
17950 }
17951 _ACEOF
17952 if ac_fn_cxx_try_link "$LINENO"; then :
17953
17954 lt_aix_libpath_sed='
17955     /Import File Strings/,/^$/ {
17956         /^0/ {
17957             s/^0  *\(.*\)$/\1/
17958             p
17959         }
17960     }'
17961 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17962 # Check for a 64-bit object if we didn't find anything.
17963 if test -z "$aix_libpath"; then
17964   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17965 fi
17966 fi
17967 rm -f core conftest.err conftest.$ac_objext \
17968     conftest$ac_exeext conftest.$ac_ext
17969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17970
17971           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17972
17973           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"
17974         else
17975           if test "$host_cpu" = ia64; then
17976             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17977             allow_undefined_flag_CXX="-z nodefs"
17978             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"
17979           else
17980             # Determine the default libpath from the value encoded in an
17981             # empty executable.
17982             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h.  */
17984
17985 int
17986 main ()
17987 {
17988
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 if ac_fn_cxx_try_link "$LINENO"; then :
17994
17995 lt_aix_libpath_sed='
17996     /Import File Strings/,/^$/ {
17997         /^0/ {
17998             s/^0  *\(.*\)$/\1/
17999             p
18000         }
18001     }'
18002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18003 # Check for a 64-bit object if we didn't find anything.
18004 if test -z "$aix_libpath"; then
18005   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18006 fi
18007 fi
18008 rm -f core conftest.err conftest.$ac_objext \
18009     conftest$ac_exeext conftest.$ac_ext
18010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18011
18012             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18013             # Warning - without using the other run time loading flags,
18014             # -berok will link without error, but may produce a broken library.
18015             no_undefined_flag_CXX=' ${wl}-bernotok'
18016             allow_undefined_flag_CXX=' ${wl}-berok'
18017             if test "$with_gnu_ld" = yes; then
18018               # We only use this code for GNU lds that support --whole-archive.
18019               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18020             else
18021               # Exported symbols can be pulled into shared objects from archives
18022               whole_archive_flag_spec_CXX='$convenience'
18023             fi
18024             archive_cmds_need_lc_CXX=yes
18025             # This is similar to how AIX traditionally builds its shared
18026             # libraries.
18027             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'
18028           fi
18029         fi
18030         ;;
18031
18032       beos*)
18033         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18034           allow_undefined_flag_CXX=unsupported
18035           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18036           # support --undefined.  This deserves some investigation.  FIXME
18037           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18038         else
18039           ld_shlibs_CXX=no
18040         fi
18041         ;;
18042
18043       chorus*)
18044         case $cc_basename in
18045           *)
18046           # FIXME: insert proper C++ library support
18047           ld_shlibs_CXX=no
18048           ;;
18049         esac
18050         ;;
18051
18052       cygwin* | mingw* | pw32* | cegcc*)
18053         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18054         # as there is no search path for DLLs.
18055         hardcode_libdir_flag_spec_CXX='-L$libdir'
18056         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18057         allow_undefined_flag_CXX=unsupported
18058         always_export_symbols_CXX=no
18059         enable_shared_with_static_runtimes_CXX=yes
18060
18061         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18062           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'
18063           # If the export-symbols file already is a .def file (1st line
18064           # is EXPORTS), use it as is; otherwise, prepend...
18065           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18066             cp $export_symbols $output_objdir/$soname.def;
18067           else
18068             echo EXPORTS > $output_objdir/$soname.def;
18069             cat $export_symbols >> $output_objdir/$soname.def;
18070           fi~
18071           $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'
18072         else
18073           ld_shlibs_CXX=no
18074         fi
18075         ;;
18076       darwin* | rhapsody*)
18077
18078
18079   archive_cmds_need_lc_CXX=no
18080   hardcode_direct_CXX=no
18081   hardcode_automatic_CXX=yes
18082   hardcode_shlibpath_var_CXX=unsupported
18083   if test "$lt_cv_ld_force_load" = "yes"; then
18084     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\"`'
18085   else
18086     whole_archive_flag_spec_CXX=''
18087   fi
18088   link_all_deplibs_CXX=yes
18089   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18090   case $cc_basename in
18091      ifort*) _lt_dar_can_shared=yes ;;
18092      *) _lt_dar_can_shared=$GCC ;;
18093   esac
18094   if test "$_lt_dar_can_shared" = "yes"; then
18095     output_verbose_link_cmd=func_echo_all
18096     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}"
18097     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18098     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}"
18099     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}"
18100        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18101       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}"
18102       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}"
18103     fi
18104
18105   else
18106   ld_shlibs_CXX=no
18107   fi
18108
18109         ;;
18110
18111       dgux*)
18112         case $cc_basename in
18113           ec++*)
18114             # FIXME: insert proper C++ library support
18115             ld_shlibs_CXX=no
18116             ;;
18117           ghcx*)
18118             # Green Hills C++ Compiler
18119             # FIXME: insert proper C++ library support
18120             ld_shlibs_CXX=no
18121             ;;
18122           *)
18123             # FIXME: insert proper C++ library support
18124             ld_shlibs_CXX=no
18125             ;;
18126         esac
18127         ;;
18128
18129       freebsd[12]*)
18130         # C++ shared libraries reported to be fairly broken before
18131         # switch to ELF
18132         ld_shlibs_CXX=no
18133         ;;
18134
18135       freebsd-elf*)
18136         archive_cmds_need_lc_CXX=no
18137         ;;
18138
18139       freebsd* | dragonfly*)
18140         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18141         # conventions
18142         ld_shlibs_CXX=yes
18143         ;;
18144
18145       gnu*)
18146         ;;
18147
18148       haiku*)
18149         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18150         link_all_deplibs_CXX=yes
18151         ;;
18152
18153       hpux9*)
18154         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18155         hardcode_libdir_separator_CXX=:
18156         export_dynamic_flag_spec_CXX='${wl}-E'
18157         hardcode_direct_CXX=yes
18158         hardcode_minus_L_CXX=yes # Not in the search PATH,
18159                                              # but as the default
18160                                              # location of the library.
18161
18162         case $cc_basename in
18163           CC*)
18164             # FIXME: insert proper C++ library support
18165             ld_shlibs_CXX=no
18166             ;;
18167           aCC*)
18168             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'
18169             # Commands to make compiler produce verbose output that lists
18170             # what "hidden" libraries, object files and flags are used when
18171             # linking a shared library.
18172             #
18173             # There doesn't appear to be a way to prevent this compiler from
18174             # explicitly linking system object files so we need to strip them
18175             # from the output so that they don't get included in the library
18176             # dependencies.
18177             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"'
18178             ;;
18179           *)
18180             if test "$GXX" = yes; then
18181               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'
18182             else
18183               # FIXME: insert proper C++ library support
18184               ld_shlibs_CXX=no
18185             fi
18186             ;;
18187         esac
18188         ;;
18189
18190       hpux10*|hpux11*)
18191         if test $with_gnu_ld = no; then
18192           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18193           hardcode_libdir_separator_CXX=:
18194
18195           case $host_cpu in
18196             hppa*64*|ia64*)
18197               ;;
18198             *)
18199               export_dynamic_flag_spec_CXX='${wl}-E'
18200               ;;
18201           esac
18202         fi
18203         case $host_cpu in
18204           hppa*64*|ia64*)
18205             hardcode_direct_CXX=no
18206             hardcode_shlibpath_var_CXX=no
18207             ;;
18208           *)
18209             hardcode_direct_CXX=yes
18210             hardcode_direct_absolute_CXX=yes
18211             hardcode_minus_L_CXX=yes # Not in the search PATH,
18212                                                  # but as the default
18213                                                  # location of the library.
18214             ;;
18215         esac
18216
18217         case $cc_basename in
18218           CC*)
18219             # FIXME: insert proper C++ library support
18220             ld_shlibs_CXX=no
18221             ;;
18222           aCC*)
18223             case $host_cpu in
18224               hppa*64*)
18225                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18226                 ;;
18227               ia64*)
18228                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18229                 ;;
18230               *)
18231                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18232                 ;;
18233             esac
18234             # Commands to make compiler produce verbose output that lists
18235             # what "hidden" libraries, object files and flags are used when
18236             # linking a shared library.
18237             #
18238             # There doesn't appear to be a way to prevent this compiler from
18239             # explicitly linking system object files so we need to strip them
18240             # from the output so that they don't get included in the library
18241             # dependencies.
18242             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"'
18243             ;;
18244           *)
18245             if test "$GXX" = yes; then
18246               if test $with_gnu_ld = no; then
18247                 case $host_cpu in
18248                   hppa*64*)
18249                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18250                     ;;
18251                   ia64*)
18252                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18253                     ;;
18254                   *)
18255                     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'
18256                     ;;
18257                 esac
18258               fi
18259             else
18260               # FIXME: insert proper C++ library support
18261               ld_shlibs_CXX=no
18262             fi
18263             ;;
18264         esac
18265         ;;
18266
18267       interix[3-9]*)
18268         hardcode_direct_CXX=no
18269         hardcode_shlibpath_var_CXX=no
18270         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18271         export_dynamic_flag_spec_CXX='${wl}-E'
18272         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18273         # Instead, shared libraries are loaded at an image base (0x10000000 by
18274         # default) and relocated if they conflict, which is a slow very memory
18275         # consuming and fragmenting process.  To avoid this, we pick a random,
18276         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18277         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18278         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'
18279         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'
18280         ;;
18281       irix5* | irix6*)
18282         case $cc_basename in
18283           CC*)
18284             # SGI C++
18285             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'
18286
18287             # Archives containing C++ object files must be created using
18288             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18289             # necessary to make sure instantiated templates are included
18290             # in the archive.
18291             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18292             ;;
18293           *)
18294             if test "$GXX" = yes; then
18295               if test "$with_gnu_ld" = no; then
18296                 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'
18297               else
18298                 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'
18299               fi
18300             fi
18301             link_all_deplibs_CXX=yes
18302             ;;
18303         esac
18304         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18305         hardcode_libdir_separator_CXX=:
18306         inherit_rpath_CXX=yes
18307         ;;
18308
18309       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18310         case $cc_basename in
18311           KCC*)
18312             # Kuck and Associates, Inc. (KAI) C++ Compiler
18313
18314             # KCC will only create a shared library if the output file
18315             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18316             # to its proper name (with version) after linking.
18317             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'
18318             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'
18319             # Commands to make compiler produce verbose output that lists
18320             # what "hidden" libraries, object files and flags are used when
18321             # linking a shared library.
18322             #
18323             # There doesn't appear to be a way to prevent this compiler from
18324             # explicitly linking system object files so we need to strip them
18325             # from the output so that they don't get included in the library
18326             # dependencies.
18327             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"'
18328
18329             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18330             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18331
18332             # Archives containing C++ object files must be created using
18333             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18334             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18335             ;;
18336           icpc* | ecpc* )
18337             # Intel C++
18338             with_gnu_ld=yes
18339             # version 8.0 and above of icpc choke on multiply defined symbols
18340             # if we add $predep_objects and $postdep_objects, however 7.1 and
18341             # earlier do not add the objects themselves.
18342             case `$CC -V 2>&1` in
18343               *"Version 7."*)
18344                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18345                 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'
18346                 ;;
18347               *)  # Version 8.0 or newer
18348                 tmp_idyn=
18349                 case $host_cpu in
18350                   ia64*) tmp_idyn=' -i_dynamic';;
18351                 esac
18352                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18353                 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'
18354                 ;;
18355             esac
18356             archive_cmds_need_lc_CXX=no
18357             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18358             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18359             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18360             ;;
18361           pgCC* | pgcpp*)
18362             # Portland Group C++ compiler
18363             case `$CC -V` in
18364             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18365               prelink_cmds_CXX='tpldir=Template.dir~
18366                 rm -rf $tpldir~
18367                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18368                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18369               old_archive_cmds_CXX='tpldir=Template.dir~
18370                 rm -rf $tpldir~
18371                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18372                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18373                 $RANLIB $oldlib'
18374               archive_cmds_CXX='tpldir=Template.dir~
18375                 rm -rf $tpldir~
18376                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18377                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18378               archive_expsym_cmds_CXX='tpldir=Template.dir~
18379                 rm -rf $tpldir~
18380                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18381                 $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'
18382               ;;
18383             *) # Version 6 and above use weak symbols
18384               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18385               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'
18386               ;;
18387             esac
18388
18389             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18390             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18391             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'
18392             ;;
18393           cxx*)
18394             # Compaq C++
18395             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18396             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'
18397
18398             runpath_var=LD_RUN_PATH
18399             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18400             hardcode_libdir_separator_CXX=:
18401
18402             # Commands to make compiler produce verbose output that lists
18403             # what "hidden" libraries, object files and flags are used when
18404             # linking a shared library.
18405             #
18406             # There doesn't appear to be a way to prevent this compiler from
18407             # explicitly linking system object files so we need to strip them
18408             # from the output so that they don't get included in the library
18409             # dependencies.
18410             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'
18411             ;;
18412           xl* | mpixl* | bgxl*)
18413             # IBM XL 8.0 on PPC, with GNU ld
18414             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18415             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18416             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18417             if test "x$supports_anon_versioning" = xyes; then
18418               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18419                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18420                 echo "local: *; };" >> $output_objdir/$libname.ver~
18421                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18422             fi
18423             ;;
18424           *)
18425             case `$CC -V 2>&1 | sed 5q` in
18426             *Sun\ C*)
18427               # Sun C++ 5.9
18428               no_undefined_flag_CXX=' -zdefs'
18429               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18430               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'
18431               hardcode_libdir_flag_spec_CXX='-R$libdir'
18432               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'
18433               compiler_needs_object_CXX=yes
18434
18435               # Not sure whether something based on
18436               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18437               # would be better.
18438               output_verbose_link_cmd='func_echo_all'
18439
18440               # Archives containing C++ object files must be created using
18441               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18442               # necessary to make sure instantiated templates are included
18443               # in the archive.
18444               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18445               ;;
18446             esac
18447             ;;
18448         esac
18449         ;;
18450
18451       lynxos*)
18452         # FIXME: insert proper C++ library support
18453         ld_shlibs_CXX=no
18454         ;;
18455
18456       m88k*)
18457         # FIXME: insert proper C++ library support
18458         ld_shlibs_CXX=no
18459         ;;
18460
18461       mvs*)
18462         case $cc_basename in
18463           cxx*)
18464             # FIXME: insert proper C++ library support
18465             ld_shlibs_CXX=no
18466             ;;
18467           *)
18468             # FIXME: insert proper C++ library support
18469             ld_shlibs_CXX=no
18470             ;;
18471         esac
18472         ;;
18473
18474       netbsd*)
18475         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18476           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18477           wlarc=
18478           hardcode_libdir_flag_spec_CXX='-R$libdir'
18479           hardcode_direct_CXX=yes
18480           hardcode_shlibpath_var_CXX=no
18481         fi
18482         # Workaround some broken pre-1.5 toolchains
18483         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18484         ;;
18485
18486       *nto* | *qnx*)
18487         ld_shlibs_CXX=yes
18488         ;;
18489
18490       openbsd2*)
18491         # C++ shared libraries are fairly broken
18492         ld_shlibs_CXX=no
18493         ;;
18494
18495       openbsd*)
18496         if test -f /usr/libexec/ld.so; then
18497           hardcode_direct_CXX=yes
18498           hardcode_shlibpath_var_CXX=no
18499           hardcode_direct_absolute_CXX=yes
18500           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18501           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18502           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18503             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18504             export_dynamic_flag_spec_CXX='${wl}-E'
18505             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18506           fi
18507           output_verbose_link_cmd=func_echo_all
18508         else
18509           ld_shlibs_CXX=no
18510         fi
18511         ;;
18512
18513       osf3* | osf4* | osf5*)
18514         case $cc_basename in
18515           KCC*)
18516             # Kuck and Associates, Inc. (KAI) C++ Compiler
18517
18518             # KCC will only create a shared library if the output file
18519             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18520             # to its proper name (with version) after linking.
18521             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'
18522
18523             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18524             hardcode_libdir_separator_CXX=:
18525
18526             # Archives containing C++ object files must be created using
18527             # the KAI C++ compiler.
18528             case $host in
18529               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18530               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18531             esac
18532             ;;
18533           RCC*)
18534             # Rational C++ 2.4.1
18535             # FIXME: insert proper C++ library support
18536             ld_shlibs_CXX=no
18537             ;;
18538           cxx*)
18539             case $host in
18540               osf3*)
18541                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18542                 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'
18543                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18544                 ;;
18545               *)
18546                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18547                 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'
18548                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18549                   echo "-hidden">> $lib.exp~
18550                   $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~
18551                   $RM $lib.exp'
18552                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18553                 ;;
18554             esac
18555
18556             hardcode_libdir_separator_CXX=:
18557
18558             # Commands to make compiler produce verbose output that lists
18559             # what "hidden" libraries, object files and flags are used when
18560             # linking a shared library.
18561             #
18562             # There doesn't appear to be a way to prevent this compiler from
18563             # explicitly linking system object files so we need to strip them
18564             # from the output so that they don't get included in the library
18565             # dependencies.
18566             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"'
18567             ;;
18568           *)
18569             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18570               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18571               case $host in
18572                 osf3*)
18573                   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'
18574                   ;;
18575                 *)
18576                   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'
18577                   ;;
18578               esac
18579
18580               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18581               hardcode_libdir_separator_CXX=:
18582
18583               # Commands to make compiler produce verbose output that lists
18584               # what "hidden" libraries, object files and flags are used when
18585               # linking a shared library.
18586               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18587
18588             else
18589               # FIXME: insert proper C++ library support
18590               ld_shlibs_CXX=no
18591             fi
18592             ;;
18593         esac
18594         ;;
18595
18596       psos*)
18597         # FIXME: insert proper C++ library support
18598         ld_shlibs_CXX=no
18599         ;;
18600
18601       sunos4*)
18602         case $cc_basename in
18603           CC*)
18604             # Sun C++ 4.x
18605             # FIXME: insert proper C++ library support
18606             ld_shlibs_CXX=no
18607             ;;
18608           lcc*)
18609             # Lucid
18610             # FIXME: insert proper C++ library support
18611             ld_shlibs_CXX=no
18612             ;;
18613           *)
18614             # FIXME: insert proper C++ library support
18615             ld_shlibs_CXX=no
18616             ;;
18617         esac
18618         ;;
18619
18620       solaris*)
18621         case $cc_basename in
18622           CC*)
18623             # Sun C++ 4.2, 5.x and Centerline C++
18624             archive_cmds_need_lc_CXX=yes
18625             no_undefined_flag_CXX=' -zdefs'
18626             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18627             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18628               $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'
18629
18630             hardcode_libdir_flag_spec_CXX='-R$libdir'
18631             hardcode_shlibpath_var_CXX=no
18632             case $host_os in
18633               solaris2.[0-5] | solaris2.[0-5].*) ;;
18634               *)
18635                 # The compiler driver will combine and reorder linker options,
18636                 # but understands `-z linker_flag'.
18637                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18638                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18639                 ;;
18640             esac
18641             link_all_deplibs_CXX=yes
18642
18643             output_verbose_link_cmd='func_echo_all'
18644
18645             # Archives containing C++ object files must be created using
18646             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18647             # necessary to make sure instantiated templates are included
18648             # in the archive.
18649             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18650             ;;
18651           gcx*)
18652             # Green Hills C++ Compiler
18653             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18654
18655             # The C++ compiler must be used to create the archive.
18656             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18657             ;;
18658           *)
18659             # GNU C++ compiler with Solaris linker
18660             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18661               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18662               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18663                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18664                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18665                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18666
18667                 # Commands to make compiler produce verbose output that lists
18668                 # what "hidden" libraries, object files and flags are used when
18669                 # linking a shared library.
18670                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18671               else
18672                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18673                 # platform.
18674                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18675                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18676                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18677
18678                 # Commands to make compiler produce verbose output that lists
18679                 # what "hidden" libraries, object files and flags are used when
18680                 # linking a shared library.
18681                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18682               fi
18683
18684               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18685               case $host_os in
18686                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18687                 *)
18688                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18689                   ;;
18690               esac
18691             fi
18692             ;;
18693         esac
18694         ;;
18695
18696     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18697       no_undefined_flag_CXX='${wl}-z,text'
18698       archive_cmds_need_lc_CXX=no
18699       hardcode_shlibpath_var_CXX=no
18700       runpath_var='LD_RUN_PATH'
18701
18702       case $cc_basename in
18703         CC*)
18704           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18705           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18706           ;;
18707         *)
18708           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18709           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18710           ;;
18711       esac
18712       ;;
18713
18714       sysv5* | sco3.2v5* | sco5v6*)
18715         # Note: We can NOT use -z defs as we might desire, because we do not
18716         # link with -lc, and that would cause any symbols used from libc to
18717         # always be unresolved, which means just about no library would
18718         # ever link correctly.  If we're not using GNU ld we use -z text
18719         # though, which does catch some bad symbols but isn't as heavy-handed
18720         # as -z defs.
18721         no_undefined_flag_CXX='${wl}-z,text'
18722         allow_undefined_flag_CXX='${wl}-z,nodefs'
18723         archive_cmds_need_lc_CXX=no
18724         hardcode_shlibpath_var_CXX=no
18725         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18726         hardcode_libdir_separator_CXX=':'
18727         link_all_deplibs_CXX=yes
18728         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18729         runpath_var='LD_RUN_PATH'
18730
18731         case $cc_basename in
18732           CC*)
18733             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18734             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18735             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18736               '"$old_archive_cmds_CXX"
18737             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18738               '"$reload_cmds_CXX"
18739             ;;
18740           *)
18741             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18742             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18743             ;;
18744         esac
18745       ;;
18746
18747       tandem*)
18748         case $cc_basename in
18749           NCC*)
18750             # NonStop-UX NCC 3.20
18751             # FIXME: insert proper C++ library support
18752             ld_shlibs_CXX=no
18753             ;;
18754           *)
18755             # FIXME: insert proper C++ library support
18756             ld_shlibs_CXX=no
18757             ;;
18758         esac
18759         ;;
18760
18761       vxworks*)
18762         # FIXME: insert proper C++ library support
18763         ld_shlibs_CXX=no
18764         ;;
18765
18766       *)
18767         # FIXME: insert proper C++ library support
18768         ld_shlibs_CXX=no
18769         ;;
18770     esac
18771
18772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18773 $as_echo "$ld_shlibs_CXX" >&6; }
18774     test "$ld_shlibs_CXX" = no && can_build_shared=no
18775
18776     GCC_CXX="$GXX"
18777     LD_CXX="$LD"
18778
18779     ## CAVEAT EMPTOR:
18780     ## There is no encapsulation within the following macros, do not change
18781     ## the running order or otherwise move them around unless you know exactly
18782     ## what you are doing...
18783     # Dependencies to place before and after the object being linked:
18784 predep_objects_CXX=
18785 postdep_objects_CXX=
18786 predeps_CXX=
18787 postdeps_CXX=
18788 compiler_lib_search_path_CXX=
18789
18790 cat > conftest.$ac_ext <<_LT_EOF
18791 class Foo
18792 {
18793 public:
18794   Foo (void) { a = 0; }
18795 private:
18796   int a;
18797 };
18798 _LT_EOF
18799
18800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18801   (eval $ac_compile) 2>&5
18802   ac_status=$?
18803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18804   test $ac_status = 0; }; then
18805   # Parse the compiler output and extract the necessary
18806   # objects, libraries and library flags.
18807
18808   # Sentinel used to keep track of whether or not we are before
18809   # the conftest object file.
18810   pre_test_object_deps_done=no
18811
18812   for p in `eval "$output_verbose_link_cmd"`; do
18813     case $p in
18814
18815     -L* | -R* | -l*)
18816        # Some compilers place space between "-{L,R}" and the path.
18817        # Remove the space.
18818        if test $p = "-L" ||
18819           test $p = "-R"; then
18820          prev=$p
18821          continue
18822        else
18823          prev=
18824        fi
18825
18826        if test "$pre_test_object_deps_done" = no; then
18827          case $p in
18828          -L* | -R*)
18829            # Internal compiler library paths should come after those
18830            # provided the user.  The postdeps already come after the
18831            # user supplied libs so there is no need to process them.
18832            if test -z "$compiler_lib_search_path_CXX"; then
18833              compiler_lib_search_path_CXX="${prev}${p}"
18834            else
18835              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18836            fi
18837            ;;
18838          # The "-l" case would never come before the object being
18839          # linked, so don't bother handling this case.
18840          esac
18841        else
18842          if test -z "$postdeps_CXX"; then
18843            postdeps_CXX="${prev}${p}"
18844          else
18845            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18846          fi
18847        fi
18848        ;;
18849
18850     *.$objext)
18851        # This assumes that the test object file only shows up
18852        # once in the compiler output.
18853        if test "$p" = "conftest.$objext"; then
18854          pre_test_object_deps_done=yes
18855          continue
18856        fi
18857
18858        if test "$pre_test_object_deps_done" = no; then
18859          if test -z "$predep_objects_CXX"; then
18860            predep_objects_CXX="$p"
18861          else
18862            predep_objects_CXX="$predep_objects_CXX $p"
18863          fi
18864        else
18865          if test -z "$postdep_objects_CXX"; then
18866            postdep_objects_CXX="$p"
18867          else
18868            postdep_objects_CXX="$postdep_objects_CXX $p"
18869          fi
18870        fi
18871        ;;
18872
18873     *) ;; # Ignore the rest.
18874
18875     esac
18876   done
18877
18878   # Clean up.
18879   rm -f a.out a.exe
18880 else
18881   echo "libtool.m4: error: problem compiling CXX test program"
18882 fi
18883
18884 $RM -f confest.$objext
18885
18886 # PORTME: override above test on systems where it is broken
18887 case $host_os in
18888 interix[3-9]*)
18889   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18890   # hack all around it, let's just trust "g++" to DTRT.
18891   predep_objects_CXX=
18892   postdep_objects_CXX=
18893   postdeps_CXX=
18894   ;;
18895
18896 linux*)
18897   case `$CC -V 2>&1 | sed 5q` in
18898   *Sun\ C*)
18899     # Sun C++ 5.9
18900
18901     # The more standards-conforming stlport4 library is
18902     # incompatible with the Cstd library. Avoid specifying
18903     # it if it's in CXXFLAGS. Ignore libCrun as
18904     # -library=stlport4 depends on it.
18905     case " $CXX $CXXFLAGS " in
18906     *" -library=stlport4 "*)
18907       solaris_use_stlport4=yes
18908       ;;
18909     esac
18910
18911     if test "$solaris_use_stlport4" != yes; then
18912       postdeps_CXX='-library=Cstd -library=Crun'
18913     fi
18914     ;;
18915   esac
18916   ;;
18917
18918 solaris*)
18919   case $cc_basename in
18920   CC*)
18921     # The more standards-conforming stlport4 library is
18922     # incompatible with the Cstd library. Avoid specifying
18923     # it if it's in CXXFLAGS. Ignore libCrun as
18924     # -library=stlport4 depends on it.
18925     case " $CXX $CXXFLAGS " in
18926     *" -library=stlport4 "*)
18927       solaris_use_stlport4=yes
18928       ;;
18929     esac
18930
18931     # Adding this requires a known-good setup of shared libraries for
18932     # Sun compiler versions before 5.6, else PIC objects from an old
18933     # archive will be linked into the output, leading to subtle bugs.
18934     if test "$solaris_use_stlport4" != yes; then
18935       postdeps_CXX='-library=Cstd -library=Crun'
18936     fi
18937     ;;
18938   esac
18939   ;;
18940 esac
18941
18942
18943 case " $postdeps_CXX " in
18944 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18945 esac
18946  compiler_lib_search_dirs_CXX=
18947 if test -n "${compiler_lib_search_path_CXX}"; then
18948  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18949 fi
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981     lt_prog_compiler_wl_CXX=
18982 lt_prog_compiler_pic_CXX=
18983 lt_prog_compiler_static_CXX=
18984
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18986 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18987
18988   # C++ specific cases for pic, static, wl, etc.
18989   if test "$GXX" = yes; then
18990     lt_prog_compiler_wl_CXX='-Wl,'
18991     lt_prog_compiler_static_CXX='-static'
18992
18993     case $host_os in
18994     aix*)
18995       # All AIX code is PIC.
18996       if test "$host_cpu" = ia64; then
18997         # AIX 5 now supports IA64 processor
18998         lt_prog_compiler_static_CXX='-Bstatic'
18999       fi
19000       ;;
19001
19002     amigaos*)
19003       case $host_cpu in
19004       powerpc)
19005             # see comment about AmigaOS4 .so support
19006             lt_prog_compiler_pic_CXX='-fPIC'
19007         ;;
19008       m68k)
19009             # FIXME: we need at least 68020 code to build shared libraries, but
19010             # adding the `-m68020' flag to GCC prevents building anything better,
19011             # like `-m68040'.
19012             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19013         ;;
19014       esac
19015       ;;
19016
19017     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19018       # PIC is the default for these OSes.
19019       ;;
19020     mingw* | cygwin* | os2* | pw32* | cegcc*)
19021       # This hack is so that the source file can tell whether it is being
19022       # built for inclusion in a dll (and should export symbols for example).
19023       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19024       # (--disable-auto-import) libraries
19025       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19026       ;;
19027     darwin* | rhapsody*)
19028       # PIC is the default on this platform
19029       # Common symbols not allowed in MH_DYLIB files
19030       lt_prog_compiler_pic_CXX='-fno-common'
19031       ;;
19032     *djgpp*)
19033       # DJGPP does not support shared libraries at all
19034       lt_prog_compiler_pic_CXX=
19035       ;;
19036     haiku*)
19037       # PIC is the default for Haiku.
19038       # The "-static" flag exists, but is broken.
19039       lt_prog_compiler_static_CXX=
19040       ;;
19041     interix[3-9]*)
19042       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19043       # Instead, we relocate shared libraries at runtime.
19044       ;;
19045     sysv4*MP*)
19046       if test -d /usr/nec; then
19047         lt_prog_compiler_pic_CXX=-Kconform_pic
19048       fi
19049       ;;
19050     hpux*)
19051       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19052       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19053       # sets the default TLS model and affects inlining.
19054       case $host_cpu in
19055       hppa*64*)
19056         ;;
19057       *)
19058         lt_prog_compiler_pic_CXX='-fPIC'
19059         ;;
19060       esac
19061       ;;
19062     *qnx* | *nto*)
19063       # QNX uses GNU C++, but need to define -shared option too, otherwise
19064       # it will coredump.
19065       lt_prog_compiler_pic_CXX='-fPIC -shared'
19066       ;;
19067     *)
19068       lt_prog_compiler_pic_CXX='-fPIC'
19069       ;;
19070     esac
19071   else
19072     case $host_os in
19073       aix[4-9]*)
19074         # All AIX code is PIC.
19075         if test "$host_cpu" = ia64; then
19076           # AIX 5 now supports IA64 processor
19077           lt_prog_compiler_static_CXX='-Bstatic'
19078         else
19079           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19080         fi
19081         ;;
19082       chorus*)
19083         case $cc_basename in
19084         cxch68*)
19085           # Green Hills C++ Compiler
19086           # _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"
19087           ;;
19088         esac
19089         ;;
19090       dgux*)
19091         case $cc_basename in
19092           ec++*)
19093             lt_prog_compiler_pic_CXX='-KPIC'
19094             ;;
19095           ghcx*)
19096             # Green Hills C++ Compiler
19097             lt_prog_compiler_pic_CXX='-pic'
19098             ;;
19099           *)
19100             ;;
19101         esac
19102         ;;
19103       freebsd* | dragonfly*)
19104         # FreeBSD uses GNU C++
19105         ;;
19106       hpux9* | hpux10* | hpux11*)
19107         case $cc_basename in
19108           CC*)
19109             lt_prog_compiler_wl_CXX='-Wl,'
19110             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19111             if test "$host_cpu" != ia64; then
19112               lt_prog_compiler_pic_CXX='+Z'
19113             fi
19114             ;;
19115           aCC*)
19116             lt_prog_compiler_wl_CXX='-Wl,'
19117             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19118             case $host_cpu in
19119             hppa*64*|ia64*)
19120               # +Z the default
19121               ;;
19122             *)
19123               lt_prog_compiler_pic_CXX='+Z'
19124               ;;
19125             esac
19126             ;;
19127           *)
19128             ;;
19129         esac
19130         ;;
19131       interix*)
19132         # This is c89, which is MS Visual C++ (no shared libs)
19133         # Anyone wants to do a port?
19134         ;;
19135       irix5* | irix6* | nonstopux*)
19136         case $cc_basename in
19137           CC*)
19138             lt_prog_compiler_wl_CXX='-Wl,'
19139             lt_prog_compiler_static_CXX='-non_shared'
19140             # CC pic flag -KPIC is the default.
19141             ;;
19142           *)
19143             ;;
19144         esac
19145         ;;
19146       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19147         case $cc_basename in
19148           KCC*)
19149             # KAI C++ Compiler
19150             lt_prog_compiler_wl_CXX='--backend -Wl,'
19151             lt_prog_compiler_pic_CXX='-fPIC'
19152             ;;
19153           ecpc* )
19154             # old Intel C++ for x86_64 which still supported -KPIC.
19155             lt_prog_compiler_wl_CXX='-Wl,'
19156             lt_prog_compiler_pic_CXX='-KPIC'
19157             lt_prog_compiler_static_CXX='-static'
19158             ;;
19159           icpc* )
19160             # Intel C++, used to be incompatible with GCC.
19161             # ICC 10 doesn't accept -KPIC any more.
19162             lt_prog_compiler_wl_CXX='-Wl,'
19163             lt_prog_compiler_pic_CXX='-fPIC'
19164             lt_prog_compiler_static_CXX='-static'
19165             ;;
19166           pgCC* | pgcpp*)
19167             # Portland Group C++ compiler
19168             lt_prog_compiler_wl_CXX='-Wl,'
19169             lt_prog_compiler_pic_CXX='-fpic'
19170             lt_prog_compiler_static_CXX='-Bstatic'
19171             ;;
19172           cxx*)
19173             # Compaq C++
19174             # Make sure the PIC flag is empty.  It appears that all Alpha
19175             # Linux and Compaq Tru64 Unix objects are PIC.
19176             lt_prog_compiler_pic_CXX=
19177             lt_prog_compiler_static_CXX='-non_shared'
19178             ;;
19179           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19180             # IBM XL 8.0, 9.0 on PPC and BlueGene
19181             lt_prog_compiler_wl_CXX='-Wl,'
19182             lt_prog_compiler_pic_CXX='-qpic'
19183             lt_prog_compiler_static_CXX='-qstaticlink'
19184             ;;
19185           *)
19186             case `$CC -V 2>&1 | sed 5q` in
19187             *Sun\ C*)
19188               # Sun C++ 5.9
19189               lt_prog_compiler_pic_CXX='-KPIC'
19190               lt_prog_compiler_static_CXX='-Bstatic'
19191               lt_prog_compiler_wl_CXX='-Qoption ld '
19192               ;;
19193             esac
19194             ;;
19195         esac
19196         ;;
19197       lynxos*)
19198         ;;
19199       m88k*)
19200         ;;
19201       mvs*)
19202         case $cc_basename in
19203           cxx*)
19204             lt_prog_compiler_pic_CXX='-W c,exportall'
19205             ;;
19206           *)
19207             ;;
19208         esac
19209         ;;
19210       netbsd*)
19211         ;;
19212       *qnx* | *nto*)
19213         # QNX uses GNU C++, but need to define -shared option too, otherwise
19214         # it will coredump.
19215         lt_prog_compiler_pic_CXX='-fPIC -shared'
19216         ;;
19217       osf3* | osf4* | osf5*)
19218         case $cc_basename in
19219           KCC*)
19220             lt_prog_compiler_wl_CXX='--backend -Wl,'
19221             ;;
19222           RCC*)
19223             # Rational C++ 2.4.1
19224             lt_prog_compiler_pic_CXX='-pic'
19225             ;;
19226           cxx*)
19227             # Digital/Compaq C++
19228             lt_prog_compiler_wl_CXX='-Wl,'
19229             # Make sure the PIC flag is empty.  It appears that all Alpha
19230             # Linux and Compaq Tru64 Unix objects are PIC.
19231             lt_prog_compiler_pic_CXX=
19232             lt_prog_compiler_static_CXX='-non_shared'
19233             ;;
19234           *)
19235             ;;
19236         esac
19237         ;;
19238       psos*)
19239         ;;
19240       solaris*)
19241         case $cc_basename in
19242           CC*)
19243             # Sun C++ 4.2, 5.x and Centerline C++
19244             lt_prog_compiler_pic_CXX='-KPIC'
19245             lt_prog_compiler_static_CXX='-Bstatic'
19246             lt_prog_compiler_wl_CXX='-Qoption ld '
19247             ;;
19248           gcx*)
19249             # Green Hills C++ Compiler
19250             lt_prog_compiler_pic_CXX='-PIC'
19251             ;;
19252           *)
19253             ;;
19254         esac
19255         ;;
19256       sunos4*)
19257         case $cc_basename in
19258           CC*)
19259             # Sun C++ 4.x
19260             lt_prog_compiler_pic_CXX='-pic'
19261             lt_prog_compiler_static_CXX='-Bstatic'
19262             ;;
19263           lcc*)
19264             # Lucid
19265             lt_prog_compiler_pic_CXX='-pic'
19266             ;;
19267           *)
19268             ;;
19269         esac
19270         ;;
19271       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19272         case $cc_basename in
19273           CC*)
19274             lt_prog_compiler_wl_CXX='-Wl,'
19275             lt_prog_compiler_pic_CXX='-KPIC'
19276             lt_prog_compiler_static_CXX='-Bstatic'
19277             ;;
19278         esac
19279         ;;
19280       tandem*)
19281         case $cc_basename in
19282           NCC*)
19283             # NonStop-UX NCC 3.20
19284             lt_prog_compiler_pic_CXX='-KPIC'
19285             ;;
19286           *)
19287             ;;
19288         esac
19289         ;;
19290       vxworks*)
19291         ;;
19292       *)
19293         lt_prog_compiler_can_build_shared_CXX=no
19294         ;;
19295     esac
19296   fi
19297
19298 case $host_os in
19299   # For platforms which do not support PIC, -DPIC is meaningless:
19300   *djgpp*)
19301     lt_prog_compiler_pic_CXX=
19302     ;;
19303   *)
19304     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19305     ;;
19306 esac
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19308 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19309
19310
19311
19312 #
19313 # Check to make sure the PIC flag actually works.
19314 #
19315 if test -n "$lt_prog_compiler_pic_CXX"; then
19316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19317 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19318 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19319   $as_echo_n "(cached) " >&6
19320 else
19321   lt_cv_prog_compiler_pic_works_CXX=no
19322    ac_outfile=conftest.$ac_objext
19323    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19324    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19325    # Insert the option either (1) after the last *FLAGS variable, or
19326    # (2) before a word containing "conftest.", or (3) at the end.
19327    # Note that $ac_compile itself does not contain backslashes and begins
19328    # with a dollar sign (not a hyphen), so the echo should work correctly.
19329    # The option is referenced via a variable to avoid confusing sed.
19330    lt_compile=`echo "$ac_compile" | $SED \
19331    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19332    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19333    -e 's:$: $lt_compiler_flag:'`
19334    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19335    (eval "$lt_compile" 2>conftest.err)
19336    ac_status=$?
19337    cat conftest.err >&5
19338    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339    if (exit $ac_status) && test -s "$ac_outfile"; then
19340      # The compiler can only warn and ignore the option if not recognized
19341      # So say no if there are warnings other than the usual output.
19342      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19343      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19344      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19345        lt_cv_prog_compiler_pic_works_CXX=yes
19346      fi
19347    fi
19348    $RM conftest*
19349
19350 fi
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19352 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19353
19354 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19355     case $lt_prog_compiler_pic_CXX in
19356      "" | " "*) ;;
19357      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19358      esac
19359 else
19360     lt_prog_compiler_pic_CXX=
19361      lt_prog_compiler_can_build_shared_CXX=no
19362 fi
19363
19364 fi
19365
19366
19367
19368 #
19369 # Check to make sure the static flag actually works.
19370 #
19371 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19373 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19374 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19375   $as_echo_n "(cached) " >&6
19376 else
19377   lt_cv_prog_compiler_static_works_CXX=no
19378    save_LDFLAGS="$LDFLAGS"
19379    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19380    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19381    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19382      # The linker can only warn and ignore the option if not recognized
19383      # So say no if there are warnings
19384      if test -s conftest.err; then
19385        # Append any errors to the config.log.
19386        cat conftest.err 1>&5
19387        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19388        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19389        if diff conftest.exp conftest.er2 >/dev/null; then
19390          lt_cv_prog_compiler_static_works_CXX=yes
19391        fi
19392      else
19393        lt_cv_prog_compiler_static_works_CXX=yes
19394      fi
19395    fi
19396    $RM -r conftest*
19397    LDFLAGS="$save_LDFLAGS"
19398
19399 fi
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19401 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19402
19403 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19404     :
19405 else
19406     lt_prog_compiler_static_CXX=
19407 fi
19408
19409
19410
19411
19412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19414 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19415   $as_echo_n "(cached) " >&6
19416 else
19417   lt_cv_prog_compiler_c_o_CXX=no
19418    $RM -r conftest 2>/dev/null
19419    mkdir conftest
19420    cd conftest
19421    mkdir out
19422    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19423
19424    lt_compiler_flag="-o out/conftest2.$ac_objext"
19425    # Insert the option either (1) after the last *FLAGS variable, or
19426    # (2) before a word containing "conftest.", or (3) at the end.
19427    # Note that $ac_compile itself does not contain backslashes and begins
19428    # with a dollar sign (not a hyphen), so the echo should work correctly.
19429    lt_compile=`echo "$ac_compile" | $SED \
19430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19432    -e 's:$: $lt_compiler_flag:'`
19433    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19434    (eval "$lt_compile" 2>out/conftest.err)
19435    ac_status=$?
19436    cat out/conftest.err >&5
19437    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19439    then
19440      # The compiler can only warn and ignore the option if not recognized
19441      # So say no if there are warnings
19442      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19443      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19444      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19445        lt_cv_prog_compiler_c_o_CXX=yes
19446      fi
19447    fi
19448    chmod u+w . 2>&5
19449    $RM conftest*
19450    # SGI C++ compiler will create directory out/ii_files/ for
19451    # template instantiation
19452    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19453    $RM out/* && rmdir out
19454    cd ..
19455    $RM -r conftest
19456    $RM conftest*
19457
19458 fi
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19460 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19461
19462
19463
19464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19467   $as_echo_n "(cached) " >&6
19468 else
19469   lt_cv_prog_compiler_c_o_CXX=no
19470    $RM -r conftest 2>/dev/null
19471    mkdir conftest
19472    cd conftest
19473    mkdir out
19474    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19475
19476    lt_compiler_flag="-o out/conftest2.$ac_objext"
19477    # Insert the option either (1) after the last *FLAGS variable, or
19478    # (2) before a word containing "conftest.", or (3) at the end.
19479    # Note that $ac_compile itself does not contain backslashes and begins
19480    # with a dollar sign (not a hyphen), so the echo should work correctly.
19481    lt_compile=`echo "$ac_compile" | $SED \
19482    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19484    -e 's:$: $lt_compiler_flag:'`
19485    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19486    (eval "$lt_compile" 2>out/conftest.err)
19487    ac_status=$?
19488    cat out/conftest.err >&5
19489    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19491    then
19492      # The compiler can only warn and ignore the option if not recognized
19493      # So say no if there are warnings
19494      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19495      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19496      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19497        lt_cv_prog_compiler_c_o_CXX=yes
19498      fi
19499    fi
19500    chmod u+w . 2>&5
19501    $RM conftest*
19502    # SGI C++ compiler will create directory out/ii_files/ for
19503    # template instantiation
19504    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19505    $RM out/* && rmdir out
19506    cd ..
19507    $RM -r conftest
19508    $RM conftest*
19509
19510 fi
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19512 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19513
19514
19515
19516
19517 hard_links="nottested"
19518 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19519   # do not overwrite the value of need_locks provided by the user
19520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19521 $as_echo_n "checking if we can lock with hard links... " >&6; }
19522   hard_links=yes
19523   $RM conftest*
19524   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19525   touch conftest.a
19526   ln conftest.a conftest.b 2>&5 || hard_links=no
19527   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19529 $as_echo "$hard_links" >&6; }
19530   if test "$hard_links" = no; then
19531     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19532 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19533     need_locks=warn
19534   fi
19535 else
19536   need_locks=no
19537 fi
19538
19539
19540
19541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19542 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19543
19544   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19545   case $host_os in
19546   aix[4-9]*)
19547     # If we're using GNU nm, then we don't want the "-C" option.
19548     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19549     # Also, AIX nm treats weak defined symbols like other global defined
19550     # symbols, whereas GNU nm marks them as "W".
19551     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19552       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'
19553     else
19554       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'
19555     fi
19556     ;;
19557   pw32*)
19558     export_symbols_cmds_CXX="$ltdll_cmds"
19559   ;;
19560   cygwin* | mingw* | cegcc*)
19561     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'
19562   ;;
19563   *)
19564     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19565   ;;
19566   esac
19567   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19568
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19570 $as_echo "$ld_shlibs_CXX" >&6; }
19571 test "$ld_shlibs_CXX" = no && can_build_shared=no
19572
19573 with_gnu_ld_CXX=$with_gnu_ld
19574
19575
19576
19577
19578
19579
19580 #
19581 # Do we need to explicitly link libc?
19582 #
19583 case "x$archive_cmds_need_lc_CXX" in
19584 x|xyes)
19585   # Assume -lc should be added
19586   archive_cmds_need_lc_CXX=yes
19587
19588   if test "$enable_shared" = yes && test "$GCC" = yes; then
19589     case $archive_cmds_CXX in
19590     *'~'*)
19591       # FIXME: we may have to deal with multi-command sequences.
19592       ;;
19593     '$CC '*)
19594       # Test whether the compiler implicitly links with -lc since on some
19595       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19596       # to ld, don't add -lc before -lgcc.
19597       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19599 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19600   $as_echo_n "(cached) " >&6
19601 else
19602   $RM conftest*
19603         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19604
19605         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19606   (eval $ac_compile) 2>&5
19607   ac_status=$?
19608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19609   test $ac_status = 0; } 2>conftest.err; then
19610           soname=conftest
19611           lib=conftest
19612           libobjs=conftest.$ac_objext
19613           deplibs=
19614           wl=$lt_prog_compiler_wl_CXX
19615           pic_flag=$lt_prog_compiler_pic_CXX
19616           compiler_flags=-v
19617           linker_flags=-v
19618           verstring=
19619           output_objdir=.
19620           libname=conftest
19621           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19622           allow_undefined_flag_CXX=
19623           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19624   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19625   ac_status=$?
19626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19627   test $ac_status = 0; }
19628           then
19629             lt_cv_archive_cmds_need_lc_CXX=no
19630           else
19631             lt_cv_archive_cmds_need_lc_CXX=yes
19632           fi
19633           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19634         else
19635           cat conftest.err 1>&5
19636         fi
19637         $RM conftest*
19638
19639 fi
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19641 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19642       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19643       ;;
19644     esac
19645   fi
19646   ;;
19647 esac
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19714
19715 library_names_spec=
19716 libname_spec='lib$name'
19717 soname_spec=
19718 shrext_cmds=".so"
19719 postinstall_cmds=
19720 postuninstall_cmds=
19721 finish_cmds=
19722 finish_eval=
19723 shlibpath_var=
19724 shlibpath_overrides_runpath=unknown
19725 version_type=none
19726 dynamic_linker="$host_os ld.so"
19727 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19728 need_lib_prefix=unknown
19729 hardcode_into_libs=no
19730
19731 # when you set need_version to no, make sure it does not cause -set_version
19732 # flags to be left without arguments
19733 need_version=unknown
19734
19735 case $host_os in
19736 aix3*)
19737   version_type=linux
19738   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19739   shlibpath_var=LIBPATH
19740
19741   # AIX 3 has no versioning support, so we append a major version to the name.
19742   soname_spec='${libname}${release}${shared_ext}$major'
19743   ;;
19744
19745 aix[4-9]*)
19746   version_type=linux
19747   need_lib_prefix=no
19748   need_version=no
19749   hardcode_into_libs=yes
19750   if test "$host_cpu" = ia64; then
19751     # AIX 5 supports IA64
19752     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19753     shlibpath_var=LD_LIBRARY_PATH
19754   else
19755     # With GCC up to 2.95.x, collect2 would create an import file
19756     # for dependence libraries.  The import file would start with
19757     # the line `#! .'.  This would cause the generated library to
19758     # depend on `.', always an invalid library.  This was fixed in
19759     # development snapshots of GCC prior to 3.0.
19760     case $host_os in
19761       aix4 | aix4.[01] | aix4.[01].*)
19762       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19763            echo ' yes '
19764            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19765         :
19766       else
19767         can_build_shared=no
19768       fi
19769       ;;
19770     esac
19771     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19772     # soname into executable. Probably we can add versioning support to
19773     # collect2, so additional links can be useful in future.
19774     if test "$aix_use_runtimelinking" = yes; then
19775       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19776       # instead of lib<name>.a to let people know that these are not
19777       # typical AIX shared libraries.
19778       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19779     else
19780       # We preserve .a as extension for shared libraries through AIX4.2
19781       # and later when we are not doing run time linking.
19782       library_names_spec='${libname}${release}.a $libname.a'
19783       soname_spec='${libname}${release}${shared_ext}$major'
19784     fi
19785     shlibpath_var=LIBPATH
19786   fi
19787   ;;
19788
19789 amigaos*)
19790   case $host_cpu in
19791   powerpc)
19792     # Since July 2007 AmigaOS4 officially supports .so libraries.
19793     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19795     ;;
19796   m68k)
19797     library_names_spec='$libname.ixlibrary $libname.a'
19798     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19799     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'
19800     ;;
19801   esac
19802   ;;
19803
19804 beos*)
19805   library_names_spec='${libname}${shared_ext}'
19806   dynamic_linker="$host_os ld.so"
19807   shlibpath_var=LIBRARY_PATH
19808   ;;
19809
19810 bsdi[45]*)
19811   version_type=linux
19812   need_version=no
19813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19814   soname_spec='${libname}${release}${shared_ext}$major'
19815   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19816   shlibpath_var=LD_LIBRARY_PATH
19817   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19818   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19819   # the default ld.so.conf also contains /usr/contrib/lib and
19820   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19821   # libtool to hard-code these into programs
19822   ;;
19823
19824 cygwin* | mingw* | pw32* | cegcc*)
19825   version_type=windows
19826   shrext_cmds=".dll"
19827   need_version=no
19828   need_lib_prefix=no
19829
19830   case $GCC,$host_os in
19831   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19832     library_names_spec='$libname.dll.a'
19833     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19834     postinstall_cmds='base_file=`basename \${file}`~
19835       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19836       dldir=$destdir/`dirname \$dlpath`~
19837       test -d \$dldir || mkdir -p \$dldir~
19838       $install_prog $dir/$dlname \$dldir/$dlname~
19839       chmod a+x \$dldir/$dlname~
19840       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19841         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19842       fi'
19843     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19844       dlpath=$dir/\$dldll~
19845        $RM \$dlpath'
19846     shlibpath_overrides_runpath=yes
19847
19848     case $host_os in
19849     cygwin*)
19850       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19851       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19852
19853       ;;
19854     mingw* | cegcc*)
19855       # MinGW DLLs use traditional 'lib' prefix
19856       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19857       ;;
19858     pw32*)
19859       # pw32 DLLs use 'pw' prefix rather than 'lib'
19860       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19861       ;;
19862     esac
19863     ;;
19864
19865   *)
19866     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19867     ;;
19868   esac
19869   dynamic_linker='Win32 ld.exe'
19870   # FIXME: first we should search . and the directory the executable is in
19871   shlibpath_var=PATH
19872   ;;
19873
19874 darwin* | rhapsody*)
19875   dynamic_linker="$host_os dyld"
19876   version_type=darwin
19877   need_lib_prefix=no
19878   need_version=no
19879   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19880   soname_spec='${libname}${release}${major}$shared_ext'
19881   shlibpath_overrides_runpath=yes
19882   shlibpath_var=DYLD_LIBRARY_PATH
19883   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19884
19885   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19886   ;;
19887
19888 dgux*)
19889   version_type=linux
19890   need_lib_prefix=no
19891   need_version=no
19892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19893   soname_spec='${libname}${release}${shared_ext}$major'
19894   shlibpath_var=LD_LIBRARY_PATH
19895   ;;
19896
19897 freebsd1*)
19898   dynamic_linker=no
19899   ;;
19900
19901 freebsd* | dragonfly*)
19902   # DragonFly does not have aout.  When/if they implement a new
19903   # versioning mechanism, adjust this.
19904   if test -x /usr/bin/objformat; then
19905     objformat=`/usr/bin/objformat`
19906   else
19907     case $host_os in
19908     freebsd[123]*) objformat=aout ;;
19909     *) objformat=elf ;;
19910     esac
19911   fi
19912   version_type=freebsd-$objformat
19913   case $version_type in
19914     freebsd-elf*)
19915       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19916       need_version=no
19917       need_lib_prefix=no
19918       ;;
19919     freebsd-*)
19920       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19921       need_version=yes
19922       ;;
19923   esac
19924   shlibpath_var=LD_LIBRARY_PATH
19925   case $host_os in
19926   freebsd2*)
19927     shlibpath_overrides_runpath=yes
19928     ;;
19929   freebsd3.[01]* | freebsdelf3.[01]*)
19930     shlibpath_overrides_runpath=yes
19931     hardcode_into_libs=yes
19932     ;;
19933   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19934   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19935     shlibpath_overrides_runpath=no
19936     hardcode_into_libs=yes
19937     ;;
19938   *) # from 4.6 on, and DragonFly
19939     shlibpath_overrides_runpath=yes
19940     hardcode_into_libs=yes
19941     ;;
19942   esac
19943   ;;
19944
19945 gnu*)
19946   version_type=linux
19947   need_lib_prefix=no
19948   need_version=no
19949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19950   soname_spec='${libname}${release}${shared_ext}$major'
19951   shlibpath_var=LD_LIBRARY_PATH
19952   hardcode_into_libs=yes
19953   ;;
19954
19955 haiku*)
19956   version_type=linux
19957   need_lib_prefix=no
19958   need_version=no
19959   dynamic_linker="$host_os runtime_loader"
19960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19961   soname_spec='${libname}${release}${shared_ext}$major'
19962   shlibpath_var=LIBRARY_PATH
19963   shlibpath_overrides_runpath=yes
19964   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19965   hardcode_into_libs=yes
19966   ;;
19967
19968 hpux9* | hpux10* | hpux11*)
19969   # Give a soname corresponding to the major version so that dld.sl refuses to
19970   # link against other versions.
19971   version_type=sunos
19972   need_lib_prefix=no
19973   need_version=no
19974   case $host_cpu in
19975   ia64*)
19976     shrext_cmds='.so'
19977     hardcode_into_libs=yes
19978     dynamic_linker="$host_os dld.so"
19979     shlibpath_var=LD_LIBRARY_PATH
19980     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19982     soname_spec='${libname}${release}${shared_ext}$major'
19983     if test "X$HPUX_IA64_MODE" = X32; then
19984       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19985     else
19986       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19987     fi
19988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19989     ;;
19990   hppa*64*)
19991     shrext_cmds='.sl'
19992     hardcode_into_libs=yes
19993     dynamic_linker="$host_os dld.sl"
19994     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19995     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19997     soname_spec='${libname}${release}${shared_ext}$major'
19998     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19999     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20000     ;;
20001   *)
20002     shrext_cmds='.sl'
20003     dynamic_linker="$host_os dld.sl"
20004     shlibpath_var=SHLIB_PATH
20005     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20007     soname_spec='${libname}${release}${shared_ext}$major'
20008     ;;
20009   esac
20010   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20011   postinstall_cmds='chmod 555 $lib'
20012   # or fails outright, so override atomically:
20013   install_override_mode=555
20014   ;;
20015
20016 interix[3-9]*)
20017   version_type=linux
20018   need_lib_prefix=no
20019   need_version=no
20020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20021   soname_spec='${libname}${release}${shared_ext}$major'
20022   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20023   shlibpath_var=LD_LIBRARY_PATH
20024   shlibpath_overrides_runpath=no
20025   hardcode_into_libs=yes
20026   ;;
20027
20028 irix5* | irix6* | nonstopux*)
20029   case $host_os in
20030     nonstopux*) version_type=nonstopux ;;
20031     *)
20032         if test "$lt_cv_prog_gnu_ld" = yes; then
20033                 version_type=linux
20034         else
20035                 version_type=irix
20036         fi ;;
20037   esac
20038   need_lib_prefix=no
20039   need_version=no
20040   soname_spec='${libname}${release}${shared_ext}$major'
20041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20042   case $host_os in
20043   irix5* | nonstopux*)
20044     libsuff= shlibsuff=
20045     ;;
20046   *)
20047     case $LD in # libtool.m4 will add one of these switches to LD
20048     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20049       libsuff= shlibsuff= libmagic=32-bit;;
20050     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20051       libsuff=32 shlibsuff=N32 libmagic=N32;;
20052     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20053       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20054     *) libsuff= shlibsuff= libmagic=never-match;;
20055     esac
20056     ;;
20057   esac
20058   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20059   shlibpath_overrides_runpath=no
20060   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20061   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20062   hardcode_into_libs=yes
20063   ;;
20064
20065 # No shared lib support for Linux oldld, aout, or coff.
20066 linux*oldld* | linux*aout* | linux*coff*)
20067   dynamic_linker=no
20068   ;;
20069
20070 # This must be Linux ELF.
20071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20072   version_type=linux
20073   need_lib_prefix=no
20074   need_version=no
20075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20076   soname_spec='${libname}${release}${shared_ext}$major'
20077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20078   shlibpath_var=LD_LIBRARY_PATH
20079   shlibpath_overrides_runpath=no
20080
20081   # Some binutils ld are patched to set DT_RUNPATH
20082   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20083   $as_echo_n "(cached) " >&6
20084 else
20085   lt_cv_shlibpath_overrides_runpath=no
20086     save_LDFLAGS=$LDFLAGS
20087     save_libdir=$libdir
20088     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20089          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091 /* end confdefs.h.  */
20092
20093 int
20094 main ()
20095 {
20096
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 if ac_fn_cxx_try_link "$LINENO"; then :
20102   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20103   lt_cv_shlibpath_overrides_runpath=yes
20104 fi
20105 fi
20106 rm -f core conftest.err conftest.$ac_objext \
20107     conftest$ac_exeext conftest.$ac_ext
20108     LDFLAGS=$save_LDFLAGS
20109     libdir=$save_libdir
20110
20111 fi
20112
20113   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20114
20115   # This implies no fast_install, which is unacceptable.
20116   # Some rework will be needed to allow for fast_install
20117   # before this can be enabled.
20118   hardcode_into_libs=yes
20119
20120   # Append ld.so.conf contents to the search path
20121   if test -f /etc/ld.so.conf; then
20122     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' ' '`
20123     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20124   fi
20125
20126   # We used to test for /lib/ld.so.1 and disable shared libraries on
20127   # powerpc, because MkLinux only supported shared libraries with the
20128   # GNU dynamic linker.  Since this was broken with cross compilers,
20129   # most powerpc-linux boxes support dynamic linking these days and
20130   # people can always --disable-shared, the test was removed, and we
20131   # assume the GNU/Linux dynamic linker is in use.
20132   dynamic_linker='GNU/Linux ld.so'
20133   ;;
20134
20135 netbsd*)
20136   version_type=sunos
20137   need_lib_prefix=no
20138   need_version=no
20139   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20141     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20142     dynamic_linker='NetBSD (a.out) ld.so'
20143   else
20144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20145     soname_spec='${libname}${release}${shared_ext}$major'
20146     dynamic_linker='NetBSD ld.elf_so'
20147   fi
20148   shlibpath_var=LD_LIBRARY_PATH
20149   shlibpath_overrides_runpath=yes
20150   hardcode_into_libs=yes
20151   ;;
20152
20153 newsos6)
20154   version_type=linux
20155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20156   shlibpath_var=LD_LIBRARY_PATH
20157   shlibpath_overrides_runpath=yes
20158   ;;
20159
20160 *nto* | *qnx*)
20161   version_type=qnx
20162   need_lib_prefix=no
20163   need_version=no
20164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165   soname_spec='${libname}${release}${shared_ext}$major'
20166   shlibpath_var=LD_LIBRARY_PATH
20167   shlibpath_overrides_runpath=no
20168   hardcode_into_libs=yes
20169   dynamic_linker='ldqnx.so'
20170   ;;
20171
20172 openbsd*)
20173   version_type=sunos
20174   sys_lib_dlsearch_path_spec="/usr/lib"
20175   need_lib_prefix=no
20176   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20177   case $host_os in
20178     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20179     *)                          need_version=no  ;;
20180   esac
20181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20182   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20183   shlibpath_var=LD_LIBRARY_PATH
20184   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20185     case $host_os in
20186       openbsd2.[89] | openbsd2.[89].*)
20187         shlibpath_overrides_runpath=no
20188         ;;
20189       *)
20190         shlibpath_overrides_runpath=yes
20191         ;;
20192       esac
20193   else
20194     shlibpath_overrides_runpath=yes
20195   fi
20196   ;;
20197
20198 os2*)
20199   libname_spec='$name'
20200   shrext_cmds=".dll"
20201   need_lib_prefix=no
20202   library_names_spec='$libname${shared_ext} $libname.a'
20203   dynamic_linker='OS/2 ld.exe'
20204   shlibpath_var=LIBPATH
20205   ;;
20206
20207 osf3* | osf4* | osf5*)
20208   version_type=osf
20209   need_lib_prefix=no
20210   need_version=no
20211   soname_spec='${libname}${release}${shared_ext}$major'
20212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20213   shlibpath_var=LD_LIBRARY_PATH
20214   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20215   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20216   ;;
20217
20218 rdos*)
20219   dynamic_linker=no
20220   ;;
20221
20222 solaris*)
20223   version_type=linux
20224   need_lib_prefix=no
20225   need_version=no
20226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20227   soname_spec='${libname}${release}${shared_ext}$major'
20228   shlibpath_var=LD_LIBRARY_PATH
20229   shlibpath_overrides_runpath=yes
20230   hardcode_into_libs=yes
20231   # ldd complains unless libraries are executable
20232   postinstall_cmds='chmod +x $lib'
20233   ;;
20234
20235 sunos4*)
20236   version_type=sunos
20237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20238   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20239   shlibpath_var=LD_LIBRARY_PATH
20240   shlibpath_overrides_runpath=yes
20241   if test "$with_gnu_ld" = yes; then
20242     need_lib_prefix=no
20243   fi
20244   need_version=yes
20245   ;;
20246
20247 sysv4 | sysv4.3*)
20248   version_type=linux
20249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250   soname_spec='${libname}${release}${shared_ext}$major'
20251   shlibpath_var=LD_LIBRARY_PATH
20252   case $host_vendor in
20253     sni)
20254       shlibpath_overrides_runpath=no
20255       need_lib_prefix=no
20256       runpath_var=LD_RUN_PATH
20257       ;;
20258     siemens)
20259       need_lib_prefix=no
20260       ;;
20261     motorola)
20262       need_lib_prefix=no
20263       need_version=no
20264       shlibpath_overrides_runpath=no
20265       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20266       ;;
20267   esac
20268   ;;
20269
20270 sysv4*MP*)
20271   if test -d /usr/nec ;then
20272     version_type=linux
20273     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20274     soname_spec='$libname${shared_ext}.$major'
20275     shlibpath_var=LD_LIBRARY_PATH
20276   fi
20277   ;;
20278
20279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20280   version_type=freebsd-elf
20281   need_lib_prefix=no
20282   need_version=no
20283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20284   soname_spec='${libname}${release}${shared_ext}$major'
20285   shlibpath_var=LD_LIBRARY_PATH
20286   shlibpath_overrides_runpath=yes
20287   hardcode_into_libs=yes
20288   if test "$with_gnu_ld" = yes; then
20289     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20290   else
20291     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20292     case $host_os in
20293       sco3.2v5*)
20294         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20295         ;;
20296     esac
20297   fi
20298   sys_lib_dlsearch_path_spec='/usr/lib'
20299   ;;
20300
20301 tpf*)
20302   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20303   version_type=linux
20304   need_lib_prefix=no
20305   need_version=no
20306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307   shlibpath_var=LD_LIBRARY_PATH
20308   shlibpath_overrides_runpath=no
20309   hardcode_into_libs=yes
20310   ;;
20311
20312 uts4*)
20313   version_type=linux
20314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20315   soname_spec='${libname}${release}${shared_ext}$major'
20316   shlibpath_var=LD_LIBRARY_PATH
20317   ;;
20318
20319 *)
20320   dynamic_linker=no
20321   ;;
20322 esac
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20324 $as_echo "$dynamic_linker" >&6; }
20325 test "$dynamic_linker" = no && can_build_shared=no
20326
20327 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20328 if test "$GCC" = yes; then
20329   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20330 fi
20331
20332 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20333   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20334 fi
20335 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20336   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20337 fi
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20377 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20378 hardcode_action_CXX=
20379 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20380    test -n "$runpath_var_CXX" ||
20381    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20382
20383   # We can hardcode non-existent directories.
20384   if test "$hardcode_direct_CXX" != no &&
20385      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20386      # have to relink, otherwise we might link with an installed library
20387      # when we should be linking with a yet-to-be-installed one
20388      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20389      test "$hardcode_minus_L_CXX" != no; then
20390     # Linking always hardcodes the temporary library directory.
20391     hardcode_action_CXX=relink
20392   else
20393     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20394     hardcode_action_CXX=immediate
20395   fi
20396 else
20397   # We cannot hardcode anything, or else we can only hardcode existing
20398   # directories.
20399   hardcode_action_CXX=unsupported
20400 fi
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20402 $as_echo "$hardcode_action_CXX" >&6; }
20403
20404 if test "$hardcode_action_CXX" = relink ||
20405    test "$inherit_rpath_CXX" = yes; then
20406   # Fast installation is not supported
20407   enable_fast_install=no
20408 elif test "$shlibpath_overrides_runpath" = yes ||
20409      test "$enable_shared" = no; then
20410   # Fast installation is not necessary
20411   enable_fast_install=needless
20412 fi
20413
20414
20415
20416
20417
20418
20419
20420   fi # test -n "$compiler"
20421
20422   CC=$lt_save_CC
20423   LDCXX=$LD
20424   LD=$lt_save_LD
20425   GCC=$lt_save_GCC
20426   with_gnu_ld=$lt_save_with_gnu_ld
20427   lt_cv_path_LDCXX=$lt_cv_path_LD
20428   lt_cv_path_LD=$lt_save_path_LD
20429   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20430   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20431 fi # test "$_lt_caught_CXX_error" != yes
20432
20433 ac_ext=c
20434 ac_cpp='$CPP $CPPFLAGS'
20435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454 # Only expand once:
20455
20456
20457
20458
20459
20460 # Identify the assembler which will work hand-in-glove with the newly
20461 # built GCC, so that we can examine its features.  This is the assembler
20462 # which will be driven by the driver program.
20463 #
20464 # If build != host, and we aren't building gas in-tree, we identify a
20465 # build->target assembler and hope that it will have the same features
20466 # as the host->target assembler we'll be using.
20467 gcc_cv_gas_major_version=
20468 gcc_cv_gas_minor_version=
20469 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20470
20471 if test "${gcc_cv_as+set}" = set; then :
20472
20473 else
20474
20475 if test -x "$DEFAULT_ASSEMBLER"; then
20476         gcc_cv_as="$DEFAULT_ASSEMBLER"
20477 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20478      && test -f ../gas/Makefile \
20479      && test x$build = x$host; then
20480         gcc_cv_as=../gas/as-new$build_exeext
20481 elif test -x as$build_exeext; then
20482         # Build using assembler in the current directory.
20483         gcc_cv_as=./as$build_exeext
20484 elif test -x $AS_FOR_TARGET; then
20485         gcc_cv_as="$AS_FOR_TARGET"
20486 else
20487         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20488 set dummy $AS_FOR_TARGET; ac_word=$2
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20490 $as_echo_n "checking for $ac_word... " >&6; }
20491 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20492   $as_echo_n "(cached) " >&6
20493 else
20494   case $gcc_cv_as in
20495   [\\/]* | ?:[\\/]*)
20496   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20497   ;;
20498   *)
20499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20500 for as_dir in $PATH
20501 do
20502   IFS=$as_save_IFS
20503   test -z "$as_dir" && as_dir=.
20504     for ac_exec_ext in '' $ac_executable_extensions; do
20505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20506     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20508     break 2
20509   fi
20510 done
20511   done
20512 IFS=$as_save_IFS
20513
20514   ;;
20515 esac
20516 fi
20517 gcc_cv_as=$ac_cv_path_gcc_cv_as
20518 if test -n "$gcc_cv_as"; then
20519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20520 $as_echo "$gcc_cv_as" >&6; }
20521 else
20522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523 $as_echo "no" >&6; }
20524 fi
20525
20526
20527 fi
20528 fi
20529
20530 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20531
20532 case "$ORIGINAL_AS_FOR_TARGET" in
20533   ./as | ./as$build_exeext) ;;
20534   *) ac_config_files="$ac_config_files as:exec-tool.in"
20535  ;;
20536 esac
20537
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20539 $as_echo_n "checking what assembler to use... " >&6; }
20540 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20541   # Single tree build which includes gas.  We want to prefer it
20542   # over whatever linker top-level may have detected, since
20543   # we'll use what we're building after installation anyway.
20544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20545 $as_echo "newly built gas" >&6; }
20546   in_tree_gas=yes
20547   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20548 for f in $gcc_cv_as_bfd_srcdir/configure \
20549          $gcc_cv_as_gas_srcdir/configure \
20550          $gcc_cv_as_gas_srcdir/configure.in \
20551          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20552   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20553   if test x$gcc_cv_gas_version != x; then
20554     break
20555   fi
20556 done
20557 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20558 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20559 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20560 case $gcc_cv_gas_patch_version in
20561   "") gcc_cv_gas_patch_version="0" ;;
20562 esac
20563 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20564                             + $gcc_cv_gas_minor_version \) \* 1000 \
20565                             + $gcc_cv_gas_patch_version`
20566
20567   in_tree_gas_is_elf=no
20568   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20569      || (grep 'obj_format = multi' ../gas/Makefile \
20570          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20571   then
20572     in_tree_gas_is_elf=yes
20573   fi
20574 else
20575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20576 $as_echo "$gcc_cv_as" >&6; }
20577   in_tree_gas=no
20578 fi
20579
20580 # Identify the linker which will work hand-in-glove with the newly
20581 # built GCC, so that we can examine its features.  This is the linker
20582 # which will be driven by the driver program.
20583 #
20584 # If build != host, and we aren't building gas in-tree, we identify a
20585 # build->target linker and hope that it will have the same features
20586 # as the host->target linker we'll be using.
20587 gcc_cv_gld_major_version=
20588 gcc_cv_gld_minor_version=
20589 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20590 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20591
20592 if test "${gcc_cv_ld+set}" = set; then :
20593
20594 else
20595
20596 if test -x "$DEFAULT_LINKER"; then
20597         gcc_cv_ld="$DEFAULT_LINKER"
20598 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20599      && test -f ../ld/Makefile \
20600      && test x$build = x$host; then
20601         gcc_cv_ld=../ld/ld-new$build_exeext
20602 elif test -x collect-ld$build_exeext; then
20603         # Build using linker in the current directory.
20604         gcc_cv_ld=./collect-ld$build_exeext
20605 elif test -x $LD_FOR_TARGET; then
20606         gcc_cv_ld="$LD_FOR_TARGET"
20607 else
20608         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20609 set dummy $LD_FOR_TARGET; ac_word=$2
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20611 $as_echo_n "checking for $ac_word... " >&6; }
20612 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20613   $as_echo_n "(cached) " >&6
20614 else
20615   case $gcc_cv_ld in
20616   [\\/]* | ?:[\\/]*)
20617   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20618   ;;
20619   *)
20620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20621 for as_dir in $PATH
20622 do
20623   IFS=$as_save_IFS
20624   test -z "$as_dir" && as_dir=.
20625     for ac_exec_ext in '' $ac_executable_extensions; do
20626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20627     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20629     break 2
20630   fi
20631 done
20632   done
20633 IFS=$as_save_IFS
20634
20635   ;;
20636 esac
20637 fi
20638 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20639 if test -n "$gcc_cv_ld"; then
20640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20641 $as_echo "$gcc_cv_ld" >&6; }
20642 else
20643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20644 $as_echo "no" >&6; }
20645 fi
20646
20647
20648 fi
20649 fi
20650
20651 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20652 PLUGIN_LD=`basename $gcc_cv_ld`
20653
20654 # Check whether --with-plugin-ld was given.
20655 if test "${with_plugin_ld+set}" = set; then :
20656   withval=$with_plugin_ld; if test x"$withval" != x; then
20657    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20658    PLUGIN_LD="$withval"
20659  fi
20660 fi
20661
20662
20663
20664 cat >>confdefs.h <<_ACEOF
20665 #define PLUGIN_LD "$PLUGIN_LD"
20666 _ACEOF
20667
20668
20669 # Check to see if we are using gold instead of ld
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20671 $as_echo_n "checking whether we are using gold... " >&6; }
20672 ld_is_gold=no
20673 if test x$gcc_cv_ld != x; then
20674   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20675      | grep "GNU gold" > /dev/null; then
20676     ld_is_gold=yes
20677   fi
20678 fi
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20680 $as_echo "$ld_is_gold" >&6; }
20681
20682 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20683
20684 case "$ORIGINAL_LD_FOR_TARGET" in
20685   ./collect-ld | ./collect-ld$build_exeext) ;;
20686   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20687  ;;
20688 esac
20689
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20691 $as_echo_n "checking what linker to use... " >&6; }
20692 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20693         # Single tree build which includes ld.  We want to prefer it
20694         # over whatever linker top-level may have detected, since
20695         # we'll use what we're building after installation anyway.
20696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20697 $as_echo "newly built ld" >&6; }
20698         in_tree_ld=yes
20699         in_tree_ld_is_elf=no
20700         if (grep 'EMUL = .*elf' ../ld/Makefile \
20701             || grep 'EMUL = .*linux' ../ld/Makefile \
20702             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20703           in_tree_ld_is_elf=yes
20704         fi
20705         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
20706         do
20707                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20708                 if test x$gcc_cv_gld_version != x; then
20709                         break
20710                 fi
20711         done
20712         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20713         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20714 else
20715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20716 $as_echo "$gcc_cv_ld" >&6; }
20717         in_tree_ld=no
20718 fi
20719
20720 # Figure out what nm we will be using.
20721 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20722 if test "${gcc_cv_nm+set}" = set; then :
20723
20724 else
20725
20726 if test -f $gcc_cv_binutils_srcdir/configure.in \
20727      && test -f ../binutils/Makefile \
20728      && test x$build = x$host; then
20729         gcc_cv_nm=../binutils/nm-new$build_exeext
20730 elif test -x nm$build_exeext; then
20731         gcc_cv_nm=./nm$build_exeext
20732 elif test -x $NM_FOR_TARGET; then
20733         gcc_cv_nm="$NM_FOR_TARGET"
20734 else
20735         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20736 set dummy $NM_FOR_TARGET; ac_word=$2
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20738 $as_echo_n "checking for $ac_word... " >&6; }
20739 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20740   $as_echo_n "(cached) " >&6
20741 else
20742   case $gcc_cv_nm in
20743   [\\/]* | ?:[\\/]*)
20744   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20745   ;;
20746   *)
20747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20748 for as_dir in $PATH
20749 do
20750   IFS=$as_save_IFS
20751   test -z "$as_dir" && as_dir=.
20752     for ac_exec_ext in '' $ac_executable_extensions; do
20753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20754     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20756     break 2
20757   fi
20758 done
20759   done
20760 IFS=$as_save_IFS
20761
20762   ;;
20763 esac
20764 fi
20765 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20766 if test -n "$gcc_cv_nm"; then
20767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20768 $as_echo "$gcc_cv_nm" >&6; }
20769 else
20770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20771 $as_echo "no" >&6; }
20772 fi
20773
20774
20775 fi
20776 fi
20777
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20779 $as_echo_n "checking what nm to use... " >&6; }
20780 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20781         # Single tree build which includes binutils.
20782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20783 $as_echo "newly built nm" >&6; }
20784         in_tree_nm=yes
20785 else
20786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20787 $as_echo "$gcc_cv_nm" >&6; }
20788         in_tree_nm=no
20789 fi
20790
20791 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20792
20793 case "$ORIGINAL_NM_FOR_TARGET" in
20794   ./nm | ./nm$build_exeext) ;;
20795   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20796  ;;
20797 esac
20798
20799
20800 # Figure out what objdump we will be using.
20801 if test "${gcc_cv_objdump+set}" = set; then :
20802
20803 else
20804
20805 if test -f $gcc_cv_binutils_srcdir/configure.in \
20806      && test -f ../binutils/Makefile \
20807      && test x$build = x$host; then
20808         # Single tree build which includes binutils.
20809         gcc_cv_objdump=../binutils/objdump$build_exeext
20810 elif test -x objdump$build_exeext; then
20811         gcc_cv_objdump=./objdump$build_exeext
20812 elif test -x $OBJDUMP_FOR_TARGET; then
20813         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20814 else
20815         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20816 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20818 $as_echo_n "checking for $ac_word... " >&6; }
20819 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20820   $as_echo_n "(cached) " >&6
20821 else
20822   case $gcc_cv_objdump in
20823   [\\/]* | ?:[\\/]*)
20824   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20825   ;;
20826   *)
20827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20828 for as_dir in $PATH
20829 do
20830   IFS=$as_save_IFS
20831   test -z "$as_dir" && as_dir=.
20832     for ac_exec_ext in '' $ac_executable_extensions; do
20833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20834     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20836     break 2
20837   fi
20838 done
20839   done
20840 IFS=$as_save_IFS
20841
20842   ;;
20843 esac
20844 fi
20845 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20846 if test -n "$gcc_cv_objdump"; then
20847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20848 $as_echo "$gcc_cv_objdump" >&6; }
20849 else
20850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20851 $as_echo "no" >&6; }
20852 fi
20853
20854
20855 fi
20856 fi
20857
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20859 $as_echo_n "checking what objdump to use... " >&6; }
20860 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20861         # Single tree build which includes binutils.
20862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20863 $as_echo "newly built objdump" >&6; }
20864 elif test x$gcc_cv_objdump = x; then
20865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20866 $as_echo "not found" >&6; }
20867 else
20868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20869 $as_echo "$gcc_cv_objdump" >&6; }
20870 fi
20871
20872 # Figure out what readelf we will be using.
20873 if test "${gcc_cv_readelf+set}" = set; then :
20874
20875 else
20876
20877 if test -f $gcc_cv_binutils_srcdir/configure.in \
20878      && test -f ../binutils/Makefile \
20879      && test x$build = x$host; then
20880         # Single tree build which includes binutils.
20881         gcc_cv_readelf=../binutils/readelf$build_exeext
20882 elif test -x readelf$build_exeext; then
20883         gcc_cv_readelf=./readelf$build_exeext
20884 else
20885         # Extract the first word of "readelf", so it can be a program name with args.
20886 set dummy readelf; ac_word=$2
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20888 $as_echo_n "checking for $ac_word... " >&6; }
20889 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20890   $as_echo_n "(cached) " >&6
20891 else
20892   case $gcc_cv_readelf in
20893   [\\/]* | ?:[\\/]*)
20894   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20895   ;;
20896   *)
20897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20898 for as_dir in $PATH
20899 do
20900   IFS=$as_save_IFS
20901   test -z "$as_dir" && as_dir=.
20902     for ac_exec_ext in '' $ac_executable_extensions; do
20903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20904     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20906     break 2
20907   fi
20908 done
20909   done
20910 IFS=$as_save_IFS
20911
20912   ;;
20913 esac
20914 fi
20915 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20916 if test -n "$gcc_cv_readelf"; then
20917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20918 $as_echo "$gcc_cv_readelf" >&6; }
20919 else
20920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20921 $as_echo "no" >&6; }
20922 fi
20923
20924
20925 fi
20926 fi
20927
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20929 $as_echo_n "checking what readelf to use... " >&6; }
20930 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20931         # Single tree build which includes binutils.
20932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20933 $as_echo "newly built readelf" >&6; }
20934 elif test x$gcc_cv_readelf = x; then
20935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20936 $as_echo "not found" >&6; }
20937 else
20938         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20939 $as_echo "$gcc_cv_readelf" >&6; }
20940 fi
20941
20942 # Figure out what assembler alignment features are present.
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20944 $as_echo_n "checking assembler flags... " >&6; }
20945 if test "${gcc_cv_as_flags+set}" = set; then :
20946   $as_echo_n "(cached) " >&6
20947 else
20948    case "$target" in
20949   i[34567]86-*-linux*)
20950         gcc_cv_as_flags="--32"
20951     ;;
20952   *)
20953     gcc_cv_as_flags=" "
20954     ;;
20955   esac
20956 fi
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20958 $as_echo "$gcc_cv_as_flags" >&6; }
20959
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20961 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20962 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20963   $as_echo_n "(cached) " >&6
20964 else
20965   gcc_cv_as_balign_and_p2align=no
20966     if test $in_tree_gas = yes; then
20967     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20968   then gcc_cv_as_balign_and_p2align=yes
20969 fi
20970   elif test x$gcc_cv_as != x; then
20971     echo '.balign 4
20972 .p2align 2' > conftest.s
20973     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
20974   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20975   (eval $ac_try) 2>&5
20976   ac_status=$?
20977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20978   test $ac_status = 0; }; }
20979     then
20980         gcc_cv_as_balign_and_p2align=yes
20981     else
20982       echo "configure: failed program was" >&5
20983       cat conftest.s >&5
20984     fi
20985     rm -f conftest.o conftest.s
20986   fi
20987 fi
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20989 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20990 if test $gcc_cv_as_balign_and_p2align = yes; then
20991
20992 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20993
20994 fi
20995
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20997 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20998 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20999   $as_echo_n "(cached) " >&6
21000 else
21001   gcc_cv_as_max_skip_p2align=no
21002     if test $in_tree_gas = yes; then
21003     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21004   then gcc_cv_as_max_skip_p2align=yes
21005 fi
21006   elif test x$gcc_cv_as != x; then
21007     echo '.p2align 4,,7' > conftest.s
21008     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21009   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21013   test $ac_status = 0; }; }
21014     then
21015         gcc_cv_as_max_skip_p2align=yes
21016     else
21017       echo "configure: failed program was" >&5
21018       cat conftest.s >&5
21019     fi
21020     rm -f conftest.o conftest.s
21021   fi
21022 fi
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21024 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21025 if test $gcc_cv_as_max_skip_p2align = yes; then
21026
21027 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21028
21029 fi
21030
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21032 $as_echo_n "checking assembler for .literal16... " >&6; }
21033 if test "${gcc_cv_as_literal16+set}" = set; then :
21034   $as_echo_n "(cached) " >&6
21035 else
21036   gcc_cv_as_literal16=no
21037     if test $in_tree_gas = yes; then
21038     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21039   then gcc_cv_as_literal16=yes
21040 fi
21041   elif test x$gcc_cv_as != x; then
21042     echo '.literal16' > conftest.s
21043     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21044   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21045   (eval $ac_try) 2>&5
21046   ac_status=$?
21047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21048   test $ac_status = 0; }; }
21049     then
21050         gcc_cv_as_literal16=yes
21051     else
21052       echo "configure: failed program was" >&5
21053       cat conftest.s >&5
21054     fi
21055     rm -f conftest.o conftest.s
21056   fi
21057 fi
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21059 $as_echo "$gcc_cv_as_literal16" >&6; }
21060 if test $gcc_cv_as_literal16 = yes; then
21061
21062 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21063
21064 fi
21065
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21067 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21068 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21069   $as_echo_n "(cached) " >&6
21070 else
21071   gcc_cv_as_subsection_m1=no
21072     if test $in_tree_gas = yes; then
21073     if test $in_tree_gas_is_elf = yes \
21074   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21075   then gcc_cv_as_subsection_m1=yes
21076 fi
21077   elif test x$gcc_cv_as != x; then
21078     echo 'conftest_label1: .word 0
21079 .subsection -1
21080 conftest_label2: .word 0
21081 .previous' > conftest.s
21082     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21083   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21084   (eval $ac_try) 2>&5
21085   ac_status=$?
21086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21087   test $ac_status = 0; }; }
21088     then
21089         if test x$gcc_cv_nm != x; then
21090     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21091     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21092     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21093     then :
21094     else gcc_cv_as_subsection_m1=yes
21095     fi
21096     rm -f conftest.nm1 conftest.nm2
21097   fi
21098     else
21099       echo "configure: failed program was" >&5
21100       cat conftest.s >&5
21101     fi
21102     rm -f conftest.o conftest.s
21103   fi
21104 fi
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21106 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21107 if test $gcc_cv_as_subsection_m1 = yes; then
21108
21109 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21110
21111 fi
21112
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21114 $as_echo_n "checking assembler for .weak... " >&6; }
21115 if test "${gcc_cv_as_weak+set}" = set; then :
21116   $as_echo_n "(cached) " >&6
21117 else
21118   gcc_cv_as_weak=no
21119     if test $in_tree_gas = yes; then
21120     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21121   then gcc_cv_as_weak=yes
21122 fi
21123   elif test x$gcc_cv_as != x; then
21124     echo '      .weak foobar' > conftest.s
21125     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21126   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21127   (eval $ac_try) 2>&5
21128   ac_status=$?
21129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21130   test $ac_status = 0; }; }
21131     then
21132         gcc_cv_as_weak=yes
21133     else
21134       echo "configure: failed program was" >&5
21135       cat conftest.s >&5
21136     fi
21137     rm -f conftest.o conftest.s
21138   fi
21139 fi
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21141 $as_echo "$gcc_cv_as_weak" >&6; }
21142 if test $gcc_cv_as_weak = yes; then
21143
21144 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21145
21146 fi
21147
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21149 $as_echo_n "checking assembler for .weakref... " >&6; }
21150 if test "${gcc_cv_as_weakref+set}" = set; then :
21151   $as_echo_n "(cached) " >&6
21152 else
21153   gcc_cv_as_weakref=no
21154     if test $in_tree_gas = yes; then
21155     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21156   then gcc_cv_as_weakref=yes
21157 fi
21158   elif test x$gcc_cv_as != x; then
21159     echo '      .weakref foobar, barfnot' > conftest.s
21160     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21161   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21165   test $ac_status = 0; }; }
21166     then
21167         gcc_cv_as_weakref=yes
21168     else
21169       echo "configure: failed program was" >&5
21170       cat conftest.s >&5
21171     fi
21172     rm -f conftest.o conftest.s
21173   fi
21174 fi
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21176 $as_echo "$gcc_cv_as_weakref" >&6; }
21177 if test $gcc_cv_as_weakref = yes; then
21178
21179 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21180
21181 fi
21182
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21184 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21185 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21186   $as_echo_n "(cached) " >&6
21187 else
21188   gcc_cv_as_nsubspa_comdat=no
21189     if test $in_tree_gas = yes; then
21190     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21191   then gcc_cv_as_nsubspa_comdat=yes
21192 fi
21193   elif test x$gcc_cv_as != x; then
21194     echo '      .SPACE $TEXT$
21195         .NSUBSPA $CODE$,COMDAT' > conftest.s
21196     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21197   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21198   (eval $ac_try) 2>&5
21199   ac_status=$?
21200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21201   test $ac_status = 0; }; }
21202     then
21203         gcc_cv_as_nsubspa_comdat=yes
21204     else
21205       echo "configure: failed program was" >&5
21206       cat conftest.s >&5
21207     fi
21208     rm -f conftest.o conftest.s
21209   fi
21210 fi
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21212 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21213 if test $gcc_cv_as_nsubspa_comdat = yes; then
21214
21215 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21216
21217 fi
21218
21219 # .hidden needs to be supported in both the assembler and the linker,
21220 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21221 # This is irritatingly difficult to feature test for; we have to check the
21222 # date string after the version number.  If we've got an in-tree
21223 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21224 # to be safe.
21225 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21227 $as_echo_n "checking assembler for .hidden... " >&6; }
21228 if test "${gcc_cv_as_hidden+set}" = set; then :
21229   $as_echo_n "(cached) " >&6
21230 else
21231   gcc_cv_as_hidden=no
21232     if test $in_tree_gas = yes; then
21233     if test $in_tree_gas_is_elf = yes \
21234   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21235   then gcc_cv_as_hidden=yes
21236 fi
21237   elif test x$gcc_cv_as != x; then
21238     echo '      .hidden foobar
21239 foobar:' > conftest.s
21240     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21241   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21242   (eval $ac_try) 2>&5
21243   ac_status=$?
21244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21245   test $ac_status = 0; }; }
21246     then
21247         gcc_cv_as_hidden=yes
21248     else
21249       echo "configure: failed program was" >&5
21250       cat conftest.s >&5
21251     fi
21252     rm -f conftest.o conftest.s
21253   fi
21254 fi
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21256 $as_echo "$gcc_cv_as_hidden" >&6; }
21257
21258
21259 if test $in_tree_ld != yes ; then
21260   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21261   if test x"$ld_is_gold" = xyes; then
21262     gcc_cv_ld_hidden=yes
21263   elif echo "$ld_ver" | grep GNU > /dev/null; then
21264     ld_vers=`echo $ld_ver | sed -n \
21265         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21266     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'`
21267     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21268     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21269     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21270   else
21271     case "${target}" in
21272       *-*-solaris2*)
21273         #
21274         # Solaris 2 ld -V output looks like this for a regular version:
21275         #
21276         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21277         #
21278         # but test versions add stuff at the end:
21279         #
21280         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21281         #
21282         ld_ver=`$gcc_cv_ld -V 2>&1`
21283         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21284           ld_vers=`echo $ld_ver | sed -n \
21285             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21286           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21287           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21288         fi
21289         ;;
21290     esac
21291   fi
21292 fi
21293
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21295 $as_echo_n "checking linker for .hidden support... " >&6; }
21296 if test "${gcc_cv_ld_hidden+set}" = set; then :
21297   $as_echo_n "(cached) " >&6
21298 else
21299   if test $in_tree_ld = yes ; then
21300   gcc_cv_ld_hidden=no
21301   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 \
21302      && test $in_tree_ld_is_elf = yes; then
21303      gcc_cv_ld_hidden=yes
21304   fi
21305 else
21306   gcc_cv_ld_hidden=yes
21307   if echo "$ld_ver" | grep GNU > /dev/null; then
21308     if test 0"$ld_date" -lt 20020404; then
21309       if test -n "$ld_date"; then
21310         # If there was date string, but was earlier than 2002-04-04, fail
21311         gcc_cv_ld_hidden=no
21312       elif test -z "$ld_vers"; then
21313         # If there was no date string nor ld version number, something is wrong
21314         gcc_cv_ld_hidden=no
21315       else
21316         test -z "$ld_vers_patch" && ld_vers_patch=0
21317         if test "$ld_vers_major" -lt 2; then
21318           gcc_cv_ld_hidden=no
21319         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21320           gcc_cv_ld_hidden="no"
21321         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21322           gcc_cv_ld_hidden=no
21323         fi
21324       fi
21325     fi
21326   else
21327     case "${target}" in
21328       hppa64*-*-hpux* | ia64*-*-hpux*)
21329         gcc_cv_ld_hidden=yes
21330         ;;
21331       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21332         gcc_cv_ld_hidden=yes
21333         ;;
21334       *)
21335         gcc_cv_ld_hidden=no
21336         ;;
21337     esac
21338   fi
21339 fi
21340 fi
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21342 $as_echo "$gcc_cv_ld_hidden" >&6; }
21343 libgcc_visibility=no
21344
21345
21346 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21347   libgcc_visibility=yes
21348
21349 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21350
21351 fi
21352
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21354 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21355 gcc_cv_ld_ro_rw_mix=unknown
21356 if test $in_tree_ld = yes ; then
21357   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 \
21358      && test $in_tree_ld_is_elf = yes; then
21359     gcc_cv_ld_ro_rw_mix=read-write
21360   fi
21361 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21362   echo '.section myfoosect, "a"' > conftest1.s
21363   echo '.section myfoosect, "aw"' > conftest2.s
21364   echo '.byte 1' >> conftest2.s
21365   echo '.section myfoosect, "a"' > conftest3.s
21366   echo '.byte 0' >> conftest3.s
21367   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21368      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21369      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21370      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21371         conftest2.o conftest3.o > /dev/null 2>&1; then
21372     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21373                          | sed -e '/myfoosect/!d' -e N`
21374     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21375       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21376         gcc_cv_ld_ro_rw_mix=read-only
21377       else
21378         gcc_cv_ld_ro_rw_mix=read-write
21379       fi
21380     fi
21381   fi
21382   rm -f conftest.* conftest[123].*
21383 fi
21384 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21385
21386 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21387
21388 fi
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21390 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21391
21392 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21394 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21395 if test "${gcc_cv_as_leb128+set}" = set; then :
21396   $as_echo_n "(cached) " >&6
21397 else
21398   gcc_cv_as_leb128=no
21399     if test $in_tree_gas = yes; then
21400     if test $in_tree_gas_is_elf = yes \
21401   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21402   then gcc_cv_as_leb128=yes
21403 fi
21404   elif test x$gcc_cv_as != x; then
21405     echo '      .data
21406         .uleb128 L2 - L1
21407 L1:
21408         .uleb128 1280
21409         .sleb128 -1010
21410 L2:' > conftest.s
21411     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21412   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21413   (eval $ac_try) 2>&5
21414   ac_status=$?
21415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21416   test $ac_status = 0; }; }
21417     then
21418         # GAS versions before 2.11 do not support uleb128,
21419   # despite appearing to.
21420   # ??? There exists an elf-specific test that will crash
21421   # the assembler.  Perhaps it's better to figure out whether
21422   # arbitrary sections are supported and try the test.
21423   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21424   if echo "$as_ver" | grep GNU > /dev/null; then
21425     as_vers=`echo $as_ver | sed -n \
21426         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21427     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21428     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21429     if test $as_major -eq 2 && test $as_minor -lt 11
21430     then :
21431     else gcc_cv_as_leb128=yes
21432     fi
21433   fi
21434     else
21435       echo "configure: failed program was" >&5
21436       cat conftest.s >&5
21437     fi
21438     rm -f conftest.o conftest.s
21439   fi
21440 fi
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21442 $as_echo "$gcc_cv_as_leb128" >&6; }
21443 if test $gcc_cv_as_leb128 = yes; then
21444
21445 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21446
21447 fi
21448
21449 # Check if we have assembler support for unwind directives.
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21451 $as_echo_n "checking assembler for cfi directives... " >&6; }
21452 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21453   $as_echo_n "(cached) " >&6
21454 else
21455   gcc_cv_as_cfi_directive=no
21456   if test x$gcc_cv_as != x; then
21457     echo '      .text
21458         .cfi_startproc
21459         .cfi_offset 0, 0
21460         .cfi_same_value 1
21461         .cfi_def_cfa 1, 2
21462         .cfi_escape 1, 2, 3, 4, 5
21463         .cfi_endproc' > conftest.s
21464     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21465   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21466   (eval $ac_try) 2>&5
21467   ac_status=$?
21468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21469   test $ac_status = 0; }; }
21470     then
21471         case "$target" in
21472   *-*-solaris*)
21473     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21474     # read-only and read-write sections, we need to make sure that the
21475     # assembler used emits read-write .eh_frame sections.
21476     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21477       if test "x$gcc_cv_objdump" != x; then
21478         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21479                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21480           gcc_cv_as_cfi_directive=no
21481         else
21482           case "$target" in
21483             i?86-*-solaris2.1[0-9]*)
21484               # On Solaris/x86, make sure that GCC and gas agree on using
21485               # read-only .eh_frame sections for 64-bit.
21486               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21487                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21488                         sed -e /.eh_frame/!d -e N | \
21489                         grep READONLY > /dev/null; then
21490                 gcc_cv_as_cfi_directive=yes
21491               else
21492                 gcc_cv_as_cfi_directive=no
21493               fi
21494               ;;
21495             *)
21496               gcc_cv_as_cfi_directive=yes
21497               ;;
21498           esac
21499         fi
21500       else
21501         # no objdump, err on the side of caution
21502         gcc_cv_as_cfi_directive=no
21503       fi
21504     else
21505       gcc_cv_as_cfi_directive=yes
21506     fi
21507     ;;
21508   *-*-*)
21509     gcc_cv_as_cfi_directive=yes
21510     ;;
21511 esac
21512     else
21513       echo "configure: failed program was" >&5
21514       cat conftest.s >&5
21515     fi
21516     rm -f conftest.o conftest.s
21517   fi
21518 fi
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21520 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21521
21522 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21524 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21525 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21526   $as_echo_n "(cached) " >&6
21527 else
21528   gcc_cv_as_cfi_advance_working=no
21529   if test x$gcc_cv_as != x; then
21530     echo '      .text
21531         .cfi_startproc
21532         .cfi_adjust_cfa_offset 64
21533         .skip 75040, 0
21534         .cfi_adjust_cfa_offset 128
21535         .cfi_endproc' > conftest.s
21536     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21537   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21538   (eval $ac_try) 2>&5
21539   ac_status=$?
21540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21541   test $ac_status = 0; }; }
21542     then
21543
21544 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21545     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
21546    gcc_cv_as_cfi_advance_working=yes
21547 fi
21548
21549     else
21550       echo "configure: failed program was" >&5
21551       cat conftest.s >&5
21552     fi
21553     rm -f conftest.o conftest.s
21554   fi
21555 fi
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21557 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21558
21559 else
21560   # no readelf, err on the side of caution
21561   gcc_cv_as_cfi_advance_working=no
21562 fi
21563
21564 cat >>confdefs.h <<_ACEOF
21565 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21566        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21567 _ACEOF
21568
21569
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21571 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21572 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21573   $as_echo_n "(cached) " >&6
21574 else
21575   gcc_cv_as_cfi_personality_directive=no
21576   if test x$gcc_cv_as != x; then
21577     echo '      .text
21578         .cfi_startproc
21579         .cfi_personality 0, symbol
21580         .cfi_endproc' > conftest.s
21581     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21582   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21583   (eval $ac_try) 2>&5
21584   ac_status=$?
21585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21586   test $ac_status = 0; }; }
21587     then
21588         gcc_cv_as_cfi_personality_directive=yes
21589     else
21590       echo "configure: failed program was" >&5
21591       cat conftest.s >&5
21592     fi
21593     rm -f conftest.o conftest.s
21594   fi
21595 fi
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21597 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21598
21599
21600 cat >>confdefs.h <<_ACEOF
21601 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21602     then echo 1; else echo 0; fi`
21603 _ACEOF
21604
21605
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21607 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21608 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21609   $as_echo_n "(cached) " >&6
21610 else
21611   gcc_cv_as_cfi_sections_directive=no
21612   if test x$gcc_cv_as != x; then
21613     echo '      .text
21614         .cfi_sections .debug_frame, .eh_frame
21615         .cfi_startproc
21616         .cfi_endproc' > conftest.s
21617     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21618   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21619   (eval $ac_try) 2>&5
21620   ac_status=$?
21621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21622   test $ac_status = 0; }; }
21623     then
21624         gcc_cv_as_cfi_sections_directive=yes
21625     else
21626       echo "configure: failed program was" >&5
21627       cat conftest.s >&5
21628     fi
21629     rm -f conftest.o conftest.s
21630   fi
21631 fi
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21633 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21634
21635
21636 cat >>confdefs.h <<_ACEOF
21637 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21638     then echo 1; else echo 0; fi`
21639 _ACEOF
21640
21641
21642 # GAS versions up to and including 2.11.0 may mis-optimize
21643 # .eh_frame data.
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21645 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21646 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21647   $as_echo_n "(cached) " >&6
21648 else
21649   gcc_cv_as_eh_frame=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 \) + 12 \) \* 1000 + 0`
21653   then gcc_cv_as_eh_frame=yes
21654 fi
21655   elif test x$gcc_cv_as != x; then
21656     echo '      .text
21657 .LFB1:
21658         .4byte  0
21659 .L1:
21660         .4byte  0
21661 .LFE1:
21662         .section        .eh_frame,"aw",@progbits
21663 __FRAME_BEGIN__:
21664         .4byte  .LECIE1-.LSCIE1
21665 .LSCIE1:
21666         .4byte  0x0
21667         .byte   0x1
21668         .ascii "z\0"
21669         .byte   0x1
21670         .byte   0x78
21671         .byte   0x1a
21672         .byte   0x0
21673         .byte   0x4
21674         .4byte  1
21675         .p2align 1
21676 .LECIE1:
21677 .LSFDE1:
21678         .4byte  .LEFDE1-.LASFDE1
21679 .LASFDE1:
21680         .4byte  .LASFDE1-__FRAME_BEGIN__
21681         .4byte  .LFB1
21682         .4byte  .LFE1-.LFB1
21683         .byte   0x4
21684         .4byte  .LFE1-.LFB1
21685         .byte   0x4
21686         .4byte  .L1-.LFB1
21687 .LEFDE1:' > conftest.s
21688     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21689   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21690   (eval $ac_try) 2>&5
21691   ac_status=$?
21692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21693   test $ac_status = 0; }; }
21694     then
21695           cat > conftest.lit <<EOF
21696  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21697  0010 01000000 12000000 18000000 00000000  ................
21698  0020 08000000 04080000 0044               .........D      
21699 EOF
21700 cat > conftest.big <<EOF
21701  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21702  0010 00000001 00000012 00000018 00000000  ................
21703  0020 00000008 04000000 0844               .........D      
21704 EOF
21705   # If the assembler didn't choke, and we can objdump,
21706   # and we got the correct data, then succeed.
21707   # The text in the here-document typically retains its unix-style line
21708   # endings, while the output of objdump will use host line endings.
21709   # Therefore, use diff -b for the comparisons.
21710   if test x$gcc_cv_objdump != x \
21711   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21712      | tail -3 > conftest.got \
21713   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21714     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21715   then
21716     gcc_cv_as_eh_frame=yes
21717   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21718   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21722   test $ac_status = 0; }; }; then
21723     gcc_cv_as_eh_frame=buggy
21724   else
21725     # Uh oh, what do we do now?
21726     gcc_cv_as_eh_frame=no
21727   fi
21728     else
21729       echo "configure: failed program was" >&5
21730       cat conftest.s >&5
21731     fi
21732     rm -f conftest.o conftest.s
21733   fi
21734 fi
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21736 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21737
21738
21739 if test $gcc_cv_as_eh_frame = buggy; then
21740
21741 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21742
21743 fi
21744
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21746 $as_echo_n "checking assembler for section merging support... " >&6; }
21747 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21748   $as_echo_n "(cached) " >&6
21749 else
21750   gcc_cv_as_shf_merge=no
21751     if test $in_tree_gas = yes; then
21752     if test $in_tree_gas_is_elf = yes \
21753   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21754   then gcc_cv_as_shf_merge=yes
21755 fi
21756   elif test x$gcc_cv_as != x; then
21757     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21758     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21759   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21760   (eval $ac_try) 2>&5
21761   ac_status=$?
21762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21763   test $ac_status = 0; }; }
21764     then
21765         gcc_cv_as_shf_merge=yes
21766     else
21767       echo "configure: failed program was" >&5
21768       cat conftest.s >&5
21769     fi
21770     rm -f conftest.o conftest.s
21771   fi
21772 fi
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21774 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21775
21776 if test $gcc_cv_as_shf_merge = no; then
21777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21778 $as_echo_n "checking assembler for section merging support... " >&6; }
21779 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21780   $as_echo_n "(cached) " >&6
21781 else
21782   gcc_cv_as_shf_merge=no
21783     if test $in_tree_gas = yes; then
21784     if test $in_tree_gas_is_elf = yes \
21785   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21786   then gcc_cv_as_shf_merge=yes
21787 fi
21788   elif test x$gcc_cv_as != x; then
21789     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21790     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21791   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21792   (eval $ac_try) 2>&5
21793   ac_status=$?
21794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795   test $ac_status = 0; }; }
21796     then
21797         gcc_cv_as_shf_merge=yes
21798     else
21799       echo "configure: failed program was" >&5
21800       cat conftest.s >&5
21801     fi
21802     rm -f conftest.o conftest.s
21803   fi
21804 fi
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21806 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21807
21808 fi
21809
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21812 _ACEOF
21813
21814
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21816 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21817 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21818   $as_echo_n "(cached) " >&6
21819 else
21820   gcc_cv_as_comdat_group=no
21821     if test $in_tree_gas = yes; then
21822     if test $in_tree_gas_is_elf = yes \
21823   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21824   then gcc_cv_as_comdat_group=yes
21825 fi
21826   elif test x$gcc_cv_as != x; then
21827     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21828     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21829   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21830   (eval $ac_try) 2>&5
21831   ac_status=$?
21832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21833   test $ac_status = 0; }; }
21834     then
21835         gcc_cv_as_comdat_group=yes
21836     else
21837       echo "configure: failed program was" >&5
21838       cat conftest.s >&5
21839     fi
21840     rm -f conftest.o conftest.s
21841   fi
21842 fi
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21844 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21845
21846 if test $gcc_cv_as_comdat_group = yes; then
21847   gcc_cv_as_comdat_group_percent=no
21848 else
21849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21850 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21851 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21852   $as_echo_n "(cached) " >&6
21853 else
21854   gcc_cv_as_comdat_group_percent=no
21855     if test $in_tree_gas = yes; then
21856     if test $in_tree_gas_is_elf = yes \
21857   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21858   then gcc_cv_as_comdat_group_percent=yes
21859 fi
21860   elif test x$gcc_cv_as != x; then
21861     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21862     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21863   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21864   (eval $ac_try) 2>&5
21865   ac_status=$?
21866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21867   test $ac_status = 0; }; }
21868     then
21869         gcc_cv_as_comdat_group_percent=yes
21870     else
21871       echo "configure: failed program was" >&5
21872       cat conftest.s >&5
21873     fi
21874     rm -f conftest.o conftest.s
21875   fi
21876 fi
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21878 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21879
21880 fi
21881 if test x"$ld_is_gold" = xyes; then
21882   comdat_group=yes
21883 elif test $in_tree_ld = yes ; then
21884   comdat_group=no
21885   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 \
21886      && test $in_tree_ld_is_elf = yes; then
21887      comdat_group=yes
21888   fi
21889 elif echo "$ld_ver" | grep GNU > /dev/null; then
21890   comdat_group=yes
21891   if test 0"$ld_date" -lt 20050308; then
21892     if test -n "$ld_date"; then
21893       # If there was date string, but was earlier than 2005-03-08, fail
21894       comdat_group=no
21895     elif test "$ld_vers_major" -lt 2; then
21896       comdat_group=no
21897     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21898       comdat_group=no
21899     fi
21900   fi
21901 else
21902   case "${target}" in
21903     *-*-solaris2.1[1-9]*)
21904       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21905       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21906       # version 1.688.
21907       #
21908       # FIXME: Maybe need to refine later when COMDAT group support with
21909       # Sun as is implemented.
21910       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21911         comdat_group=yes
21912       else
21913         comdat_group=no
21914       fi
21915       ;;
21916     *)
21917       # Assume linkers other than GNU ld don't support COMDAT group.
21918       comdat_group=no
21919       ;;
21920   esac
21921 fi
21922 # Allow overriding the automatic COMDAT group tests above.
21923 # Check whether --enable-comdat was given.
21924 if test "${enable_comdat+set}" = set; then :
21925   enableval=$enable_comdat; comdat_group="$enable_comdat"
21926 fi
21927
21928 if test $comdat_group = no; then
21929   gcc_cv_as_comdat_group=no
21930   gcc_cv_as_comdat_group_percent=no
21931 fi
21932
21933 cat >>confdefs.h <<_ACEOF
21934 #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`
21935 _ACEOF
21936
21937
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21939 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21940 if test "${gcc_cv_as_discriminator+set}" = set; then :
21941   $as_echo_n "(cached) " >&6
21942 else
21943   gcc_cv_as_discriminator=no
21944     if test $in_tree_gas = yes; then
21945     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21946   then gcc_cv_as_discriminator=yes
21947 fi
21948   elif test x$gcc_cv_as != x; then
21949     echo '      .text
21950         .file 1 "conf.c"
21951         .loc 1 1 0 discriminator 1' > conftest.s
21952     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21953   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21954   (eval $ac_try) 2>&5
21955   ac_status=$?
21956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21957   test $ac_status = 0; }; }
21958     then
21959         gcc_cv_as_discriminator=yes
21960     else
21961       echo "configure: failed program was" >&5
21962       cat conftest.s >&5
21963     fi
21964     rm -f conftest.o conftest.s
21965   fi
21966 fi
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21968 $as_echo "$gcc_cv_as_discriminator" >&6; }
21969 if test $gcc_cv_as_discriminator = yes; then
21970
21971 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21972
21973 fi
21974
21975 # Thread-local storage - the check is heavily parameterized.
21976 conftest_s=
21977 tls_first_major=
21978 tls_first_minor=
21979 tls_as_opt=
21980 case "$target" in
21981   alpha*-*-*)
21982     conftest_s='
21983         .section ".tdata","awT",@progbits
21984 foo:    .long   25
21985         .text
21986         ldq     $27,__tls_get_addr($29)         !literal!1
21987         lda     $16,foo($29)                    !tlsgd!1
21988         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21989         ldq     $27,__tls_get_addr($29)         !literal!2
21990         lda     $16,foo($29)                    !tlsldm!2
21991         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21992         ldq     $1,foo($29)                     !gotdtprel
21993         ldah    $2,foo($29)                     !dtprelhi
21994         lda     $3,foo($2)                      !dtprello
21995         lda     $4,foo($29)                     !dtprel
21996         ldq     $1,foo($29)                     !gottprel
21997         ldah    $2,foo($29)                     !tprelhi
21998         lda     $3,foo($2)                      !tprello
21999         lda     $4,foo($29)                     !tprel'
22000         tls_first_major=2
22001         tls_first_minor=13
22002         tls_as_opt=--fatal-warnings
22003         ;;
22004   cris-*-*|crisv32-*-*)
22005     conftest_s='
22006         .section ".tdata","awT",@progbits
22007 x:      .long   25
22008         .text
22009         move.d x:IE,$r10
22010         nop'
22011         tls_first_major=2
22012         tls_first_minor=20
22013         tls_as_opt=--fatal-warnings
22014         ;;
22015   frv*-*-*)
22016     conftest_s='
22017         .section ".tdata","awT",@progbits
22018 x:      .long   25
22019         .text
22020         call    #gettlsoff(x)'
22021         tls_first_major=2
22022         tls_first_minor=14
22023         ;;
22024   hppa*-*-linux*)
22025     conftest_s='
22026 t1:     .reg    %r20
22027 t2:     .reg    %r21
22028 gp:     .reg    %r19
22029         .section ".tdata","awT",@progbits
22030 foo:    .long   25
22031         .text
22032         .align  4
22033         addil LT%foo-$tls_gdidx$,gp
22034         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22035         b __tls_get_addr
22036         nop
22037         addil LT%foo-$tls_ldidx$,gp
22038         b __tls_get_addr
22039         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22040         addil LR%foo-$tls_dtpoff$,%ret0
22041         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22042         mfctl %cr27,%t1
22043         addil LT%foo-$tls_ieoff$,gp
22044         ldw RT%foo-$tls_ieoff$(%r1),%t2
22045         add %t1,%t2,%t3
22046         mfctl %cr27,%t1
22047         addil LR%foo-$tls_leoff$,%t1
22048         ldo RR%foo-$tls_leoff$(%r1),%t2'
22049         tls_first_major=2
22050         tls_first_minor=15
22051         tls_as_opt=--fatal-warnings
22052         ;;
22053   arm*-*-*)
22054     conftest_s='
22055         .section ".tdata","awT",%progbits
22056 foo:    .long   25
22057         .text
22058 .word foo(gottpoff)
22059 .word foo(tpoff)
22060 .word foo(tlsgd)
22061 .word foo(tlsldm)
22062 .word foo(tlsldo)'
22063         tls_first_major=2
22064         tls_first_minor=17
22065         ;;
22066   i[34567]86-*-*)
22067     case "$target" in
22068       i[34567]86-*-solaris2.[89]*)
22069         # TLS was introduced in the Solaris 9 4/04 release but
22070         # we do not enable it by default on Solaris 9 either.
22071         if test "x$enable_tls" = xyes ; then
22072           on_solaris=yes
22073         else
22074           enable_tls=no;
22075         fi
22076         ;;
22077       i[34567]86-*-solaris2.*)
22078         on_solaris=yes
22079         ;;
22080       *)
22081         on_solaris=no
22082         ;;
22083     esac
22084     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22085       conftest_s='
22086         .section .tdata,"awt",@progbits'
22087       tls_first_major=0
22088       tls_first_minor=0
22089
22090 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22091
22092     else
22093       conftest_s='
22094         .section ".tdata","awT",@progbits'
22095       tls_first_major=2
22096       tls_first_minor=14
22097       tls_as_opt="--fatal-warnings"
22098     fi
22099     conftest_s="$conftest_s
22100 foo:    .long   25
22101         .text
22102         movl    %gs:0, %eax
22103         leal    foo@tlsgd(,%ebx,1), %eax
22104         leal    foo@tlsldm(%ebx), %eax
22105         leal    foo@dtpoff(%eax), %edx
22106         movl    foo@gottpoff(%ebx), %eax
22107         subl    foo@gottpoff(%ebx), %eax
22108         addl    foo@gotntpoff(%ebx), %eax
22109         movl    foo@indntpoff, %eax
22110         movl    \$foo@tpoff, %eax
22111         subl    \$foo@tpoff, %eax
22112         leal    foo@ntpoff(%ecx), %eax"
22113     ;;
22114   x86_64-*-*)
22115     conftest_s='
22116         .section ".tdata","awT",@progbits
22117 foo:    .long   25
22118         .text
22119         movq    %fs:0, %rax
22120         leaq    foo@TLSGD(%rip), %rdi
22121         leaq    foo@TLSLD(%rip), %rdi
22122         leaq    foo@DTPOFF(%rax), %rdx
22123         movq    foo@GOTTPOFF(%rip), %rax
22124         movq    $foo@TPOFF, %rax'
22125         tls_first_major=2
22126         tls_first_minor=14
22127         tls_as_opt=--fatal-warnings
22128         ;;
22129   ia64-*-*)
22130     conftest_s='
22131         .section ".tdata","awT",@progbits
22132 foo:    data8   25
22133         .text
22134         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22135         addl    r17 = @ltoff(@dtprel(foo#)), gp
22136         addl    r18 = @ltoff(@tprel(foo#)), gp
22137         addl    r19 = @dtprel(foo#), gp
22138         adds    r21 = @dtprel(foo#), r13
22139         movl    r23 = @dtprel(foo#)
22140         addl    r20 = @tprel(foo#), gp
22141         adds    r22 = @tprel(foo#), r13
22142         movl    r24 = @tprel(foo#)'
22143         tls_first_major=2
22144         tls_first_minor=13
22145         tls_as_opt=--fatal-warnings
22146         ;;
22147   mips*-*-*)
22148     conftest_s='
22149         .section .tdata,"awT",@progbits
22150 x:
22151         .word 2
22152         .text
22153         addiu $4, $28, %tlsgd(x)
22154         addiu $4, $28, %tlsldm(x)
22155         lui $4, %dtprel_hi(x)
22156         addiu $4, $4, %dtprel_lo(x)
22157         lw $4, %gottprel(x)($28)
22158         lui $4, %tprel_hi(x)
22159         addiu $4, $4, %tprel_lo(x)'
22160         tls_first_major=2
22161         tls_first_minor=16
22162         tls_as_opt='-32 --fatal-warnings'
22163         ;;
22164   m68k-*-*)
22165     conftest_s='
22166         .section .tdata,"awT",@progbits
22167 x:
22168         .word 2
22169         .text
22170 foo:
22171         move.l x@TLSGD(%a5),%a0
22172         move.l x@TLSLDM(%a5),%a0
22173         move.l x@TLSLDO(%a5),%a0
22174         move.l x@TLSIE(%a5),%a0
22175         move.l x@TLSLE(%a5),%a0'
22176         tls_first_major=2
22177         tls_first_minor=19
22178         tls_as_opt='--fatal-warnings'
22179         ;;
22180   powerpc-*-*)
22181     conftest_s='
22182         .section ".tdata","awT",@progbits
22183         .align 2
22184 ld0:    .space 4
22185 ld1:    .space 4
22186 x1:     .space 4
22187 x2:     .space 4
22188 x3:     .space 4
22189         .text
22190         addi 3,31,ld0@got@tlsgd
22191         bl __tls_get_addr
22192         addi 3,31,x1@got@tlsld
22193         bl __tls_get_addr
22194         addi 9,3,x1@dtprel
22195         addis 9,3,x2@dtprel@ha
22196         addi 9,9,x2@dtprel@l
22197         lwz 9,x3@got@tprel(31)
22198         add 9,9,x@tls
22199         addi 9,2,x1@tprel
22200         addis 9,2,x2@tprel@ha
22201         addi 9,9,x2@tprel@l'
22202         tls_first_major=2
22203         tls_first_minor=14
22204         tls_as_opt="-a32 --fatal-warnings"
22205         ;;
22206   powerpc64-*-*)
22207     conftest_s='
22208         .section ".tdata","awT",@progbits
22209         .align 3
22210 ld0:    .space 8
22211 ld1:    .space 8
22212 x1:     .space 8
22213 x2:     .space 8
22214 x3:     .space 8
22215         .text
22216         addi 3,2,ld0@got@tlsgd
22217         bl .__tls_get_addr
22218         nop
22219         addi 3,2,ld1@toc
22220         bl .__tls_get_addr
22221         nop
22222         addi 3,2,x1@got@tlsld
22223         bl .__tls_get_addr
22224         nop
22225         addi 9,3,x1@dtprel
22226         bl .__tls_get_addr
22227         nop
22228         addis 9,3,x2@dtprel@ha
22229         addi 9,9,x2@dtprel@l
22230         bl .__tls_get_addr
22231         nop
22232         ld 9,x3@got@dtprel(2)
22233         add 9,9,3
22234         bl .__tls_get_addr
22235         nop'
22236         tls_first_major=2
22237         tls_first_minor=14
22238         tls_as_opt="-a64 --fatal-warnings"
22239         ;;
22240   s390-*-*)
22241     conftest_s='
22242         .section ".tdata","awT",@progbits
22243 foo:    .long   25
22244         .text
22245         .long   foo@TLSGD
22246         .long   foo@TLSLDM
22247         .long   foo@DTPOFF
22248         .long   foo@NTPOFF
22249         .long   foo@GOTNTPOFF
22250         .long   foo@INDNTPOFF
22251         l       %r1,foo@GOTNTPOFF(%r12)
22252         l       %r1,0(%r1):tls_load:foo
22253         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22254         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22255         tls_first_major=2
22256         tls_first_minor=14
22257         tls_as_opt="-m31 --fatal-warnings"
22258         ;;
22259   s390x-*-*)
22260     conftest_s='
22261         .section ".tdata","awT",@progbits
22262 foo:    .long   25
22263         .text
22264         .quad   foo@TLSGD
22265         .quad   foo@TLSLDM
22266         .quad   foo@DTPOFF
22267         .quad   foo@NTPOFF
22268         .quad   foo@GOTNTPOFF
22269         lg      %r1,foo@GOTNTPOFF(%r12)
22270         larl    %r1,foo@INDNTPOFF
22271         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22272         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22273         tls_first_major=2
22274         tls_first_minor=14
22275         tls_as_opt="-m64 -Aesame --fatal-warnings"
22276         ;;
22277   sh-*-* | sh[34]-*-*)
22278     conftest_s='
22279         .section ".tdata","awT",@progbits
22280 foo:    .long   25
22281         .text
22282         .long   foo@TLSGD
22283         .long   foo@TLSLDM
22284         .long   foo@DTPOFF
22285         .long   foo@GOTTPOFF
22286         .long   foo@TPOFF'
22287         tls_first_major=2
22288         tls_first_minor=13
22289         tls_as_opt=--fatal-warnings
22290         ;;
22291   sparc*-*-*)
22292     case "$target" in
22293       sparc*-sun-solaris2.[89]*)
22294         # TLS was introduced in the Solaris 9 4/04 release but
22295         # we do not enable it by default on Solaris 9 either.
22296         if test "x$enable_tls" = xyes ; then
22297           on_solaris=yes
22298         else
22299           enable_tls=no;
22300         fi
22301         ;;
22302       sparc*-sun-solaris2.*)
22303         on_solaris=yes
22304         ;;
22305       *)
22306         on_solaris=no
22307         ;;
22308     esac
22309     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22310       conftest_s='
22311         .section ".tdata",#alloc,#write,#tls
22312 foo:    .long   25
22313         .text
22314         sethi   %tgd_hi22(foo), %o0
22315         add     %o0, %tgd_lo10(foo), %o1
22316         add     %l7, %o1, %o0, %tgd_add(foo)
22317         call    __tls_get_addr, %tgd_call(foo)
22318         sethi   %tldm_hi22(foo), %l1
22319         add     %l1, %tldm_lo10(foo), %l2
22320         add     %l7, %l2, %o0, %tldm_add(foo)
22321         call    __tls_get_addr, %tldm_call(foo)
22322         sethi   %tldo_hix22(foo), %l3
22323         xor     %l3, %tldo_lox10(foo), %l4
22324         add     %o0, %l4, %l5, %tldo_add(foo)
22325         sethi   %tie_hi22(foo), %o3
22326         add     %o3, %tie_lo10(foo), %o3
22327         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22328         add     %g7, %o2, %o4, %tie_add(foo)
22329         sethi   %tle_hix22(foo), %l1
22330         xor     %l1, %tle_lox10(foo), %o5
22331         ld      [%g7 + %o5], %o1'
22332         tls_first_major=0
22333         tls_first_minor=0
22334     else
22335       conftest_s='
22336         .section ".tdata","awT",@progbits
22337 foo:    .long   25
22338         .text
22339         sethi   %tgd_hi22(foo), %o0
22340         add     %o0, %tgd_lo10(foo), %o1
22341         add     %l7, %o1, %o0, %tgd_add(foo)
22342         call    __tls_get_addr, %tgd_call(foo)
22343         sethi   %tldm_hi22(foo), %l1
22344         add     %l1, %tldm_lo10(foo), %l2
22345         add     %l7, %l2, %o0, %tldm_add(foo)
22346         call    __tls_get_addr, %tldm_call(foo)
22347         sethi   %tldo_hix22(foo), %l3
22348         xor     %l3, %tldo_lox10(foo), %l4
22349         add     %o0, %l4, %l5, %tldo_add(foo)
22350         sethi   %tie_hi22(foo), %o3
22351         add     %o3, %tie_lo10(foo), %o3
22352         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22353         add     %g7, %o2, %o4, %tie_add(foo)
22354         sethi   %tle_hix22(foo), %l1
22355         xor     %l1, %tle_lox10(foo), %o5
22356         ld      [%g7 + %o5], %o1'
22357         tls_first_major=2
22358         tls_first_minor=14
22359         tls_as_opt="-32 --fatal-warnings"
22360       fi
22361         ;;
22362   xtensa*-*-*)
22363     conftest_s='
22364         .section ".tdata","awT",@progbits
22365 foo:    .long   25
22366         .text
22367         movi    a8, foo@TLSFUNC
22368         movi    a10, foo@TLSARG
22369         callx8.tls a8, foo@TLSCALL'
22370         tls_first_major=2
22371         tls_first_minor=19
22372         ;;
22373 esac
22374 set_have_as_tls=no
22375 if test "x$enable_tls" = xno ; then
22376   : # TLS explicitly disabled.
22377 elif test "x$enable_tls" = xyes ; then
22378   set_have_as_tls=yes # TLS explicitly enabled.
22379 elif test -z "$tls_first_major"; then
22380   : # If we don't have a check, assume no support.
22381 else
22382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22383 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22384 if test "${gcc_cv_as_tls+set}" = set; then :
22385   $as_echo_n "(cached) " >&6
22386 else
22387   gcc_cv_as_tls=no
22388     if test $in_tree_gas = yes; then
22389     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22390   then gcc_cv_as_tls=yes
22391 fi
22392   elif test x$gcc_cv_as != x; then
22393     echo "$conftest_s" > conftest.s
22394     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22395   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22396   (eval $ac_try) 2>&5
22397   ac_status=$?
22398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22399   test $ac_status = 0; }; }
22400     then
22401         gcc_cv_as_tls=yes
22402     else
22403       echo "configure: failed program was" >&5
22404       cat conftest.s >&5
22405     fi
22406     rm -f conftest.o conftest.s
22407   fi
22408 fi
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22410 $as_echo "$gcc_cv_as_tls" >&6; }
22411 if test $gcc_cv_as_tls = yes; then
22412   set_have_as_tls=yes
22413 fi
22414 fi
22415 if test $set_have_as_tls = yes ; then
22416
22417 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22418
22419 fi
22420
22421 # Target-specific assembler checks.
22422
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22424 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22425 gcc_cv_ld_static_dynamic=no
22426 if test $in_tree_ld = yes ; then
22427   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
22428     gcc_cv_ld_static_dynamic=yes
22429   fi
22430 elif test x$gcc_cv_ld != x; then
22431         # Check if linker supports -Bstatic/-Bdynamic option
22432         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22433           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22434                 gcc_cv_ld_static_dynamic=yes
22435         fi
22436 fi
22437 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22438
22439 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22440
22441 fi
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22443 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22444
22445 if test x"$demangler_in_ld" = xyes; then
22446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22447 $as_echo_n "checking linker --demangle support... " >&6; }
22448   gcc_cv_ld_demangle=no
22449   if test $in_tree_ld = yes; then
22450     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 \
22451       gcc_cv_ld_demangle=yes
22452     fi
22453   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22454     # Check if the GNU linker supports --demangle option
22455     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22456       gcc_cv_ld_demangle=yes
22457     fi
22458   fi
22459   if test x"$gcc_cv_ld_demangle" = xyes; then
22460
22461 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22462
22463   fi
22464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22465 $as_echo "$gcc_cv_ld_demangle" >&6; }
22466 fi
22467
22468 case "$target" in
22469   # All TARGET_ABI_OSF targets.
22470   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22472 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22473 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22474   $as_echo_n "(cached) " >&6
22475 else
22476   gcc_cv_as_alpha_explicit_relocs=no
22477     if test $in_tree_gas = yes; then
22478     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22479   then gcc_cv_as_alpha_explicit_relocs=yes
22480 fi
22481   elif test x$gcc_cv_as != x; then
22482     echo '      .set nomacro
22483         .text
22484         extbl   $3, $2, $3      !lituse_bytoff!1
22485         ldq     $2, a($29)      !literal!1
22486         ldq     $4, b($29)      !literal!2
22487         ldq_u   $3, 0($2)       !lituse_base!1
22488         ldq     $27, f($29)     !literal!5
22489         jsr     $26, ($27), f   !lituse_jsr!5
22490         ldah    $29, 0($26)     !gpdisp!3
22491         lda     $0, c($29)      !gprel
22492         ldah    $1, d($29)      !gprelhigh
22493         lda     $1, d($1)       !gprellow
22494         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22495     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22496   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22497   (eval $ac_try) 2>&5
22498   ac_status=$?
22499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22500   test $ac_status = 0; }; }
22501     then
22502         gcc_cv_as_alpha_explicit_relocs=yes
22503     else
22504       echo "configure: failed program was" >&5
22505       cat conftest.s >&5
22506     fi
22507     rm -f conftest.o conftest.s
22508   fi
22509 fi
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22511 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22512 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22513
22514 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22515
22516 fi
22517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22518 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22519 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22520   $as_echo_n "(cached) " >&6
22521 else
22522   gcc_cv_as_alpha_jsrdirect_relocs=no
22523     if test $in_tree_gas = yes; then
22524     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22525   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22526 fi
22527   elif test x$gcc_cv_as != x; then
22528     echo '      .set nomacro
22529         .text
22530         ldq     $27, a($29)     !literal!1
22531         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22532     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22533   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22537   test $ac_status = 0; }; }
22538     then
22539         gcc_cv_as_alpha_jsrdirect_relocs=yes
22540     else
22541       echo "configure: failed program was" >&5
22542       cat conftest.s >&5
22543     fi
22544     rm -f conftest.o conftest.s
22545   fi
22546 fi
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22548 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22549 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22550
22551 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22552
22553 fi
22554     ;;
22555
22556   cris-*-*)
22557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22558 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22559 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22560   $as_echo_n "(cached) " >&6
22561 else
22562   gcc_cv_as_cris_no_mul_bug=no
22563     if test $in_tree_gas = yes; then
22564     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22565   then gcc_cv_as_cris_no_mul_bug=yes
22566 fi
22567   elif test x$gcc_cv_as != x; then
22568     echo '.text' > conftest.s
22569     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22570   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22571   (eval $ac_try) 2>&5
22572   ac_status=$?
22573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22574   test $ac_status = 0; }; }
22575     then
22576         gcc_cv_as_cris_no_mul_bug=yes
22577     else
22578       echo "configure: failed program was" >&5
22579       cat conftest.s >&5
22580     fi
22581     rm -f conftest.o conftest.s
22582   fi
22583 fi
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22585 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22586 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22587
22588 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22589
22590 fi
22591     ;;
22592
22593   sparc*-*-*)
22594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22595 $as_echo_n "checking assembler for .register... " >&6; }
22596 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22597   $as_echo_n "(cached) " >&6
22598 else
22599   gcc_cv_as_sparc_register_op=no
22600   if test x$gcc_cv_as != x; then
22601     echo '.register %g2, #scratch' > conftest.s
22602     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22603   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22604   (eval $ac_try) 2>&5
22605   ac_status=$?
22606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22607   test $ac_status = 0; }; }
22608     then
22609         gcc_cv_as_sparc_register_op=yes
22610     else
22611       echo "configure: failed program was" >&5
22612       cat conftest.s >&5
22613     fi
22614     rm -f conftest.o conftest.s
22615   fi
22616 fi
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22618 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22619 if test $gcc_cv_as_sparc_register_op = yes; then
22620
22621 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22622
22623 fi
22624
22625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22626 $as_echo_n "checking assembler for -relax option... " >&6; }
22627 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22628   $as_echo_n "(cached) " >&6
22629 else
22630   gcc_cv_as_sparc_relax=no
22631   if test x$gcc_cv_as != x; then
22632     echo '.text' > conftest.s
22633     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22634   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22635   (eval $ac_try) 2>&5
22636   ac_status=$?
22637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22638   test $ac_status = 0; }; }
22639     then
22640         gcc_cv_as_sparc_relax=yes
22641     else
22642       echo "configure: failed program was" >&5
22643       cat conftest.s >&5
22644     fi
22645     rm -f conftest.o conftest.s
22646   fi
22647 fi
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22649 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22650 if test $gcc_cv_as_sparc_relax = yes; then
22651
22652 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22653
22654 fi
22655
22656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22657 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22658 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22659   $as_echo_n "(cached) " >&6
22660 else
22661   gcc_cv_as_sparc_gotdata_op=no
22662   if test x$gcc_cv_as != x; then
22663     echo '.text
22664 foo:
22665         nop
22666 bar:
22667         sethi %gdop_hix22(foo), %g1
22668         xor    %g1, %gdop_lox10(foo), %g1
22669         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22670     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22671   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22672   (eval $ac_try) 2>&5
22673   ac_status=$?
22674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22675   test $ac_status = 0; }; }
22676     then
22677         if test x$gcc_cv_ld != x \
22678        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22679          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22680            if test x$gcc_cv_objdump != x; then
22681              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22682                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22683                gcc_cv_as_sparc_gotdata_op=no
22684              else
22685                gcc_cv_as_sparc_gotdata_op=yes
22686              fi
22687            fi
22688          else
22689            gcc_cv_as_sparc_gotdata_op=yes
22690          fi
22691        fi
22692        rm -f conftest
22693     else
22694       echo "configure: failed program was" >&5
22695       cat conftest.s >&5
22696     fi
22697     rm -f conftest.o conftest.s
22698   fi
22699 fi
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22701 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22702 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22703
22704 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22705
22706 fi
22707
22708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22709 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22710 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22711   $as_echo_n "(cached) " >&6
22712 else
22713   gcc_cv_as_sparc_ua_pcrel=no
22714   if test x$gcc_cv_as != x; then
22715     echo '.text
22716 foo:
22717         nop
22718 .data
22719 .align 4
22720 .byte 0
22721 .uaword %r_disp32(foo)' > conftest.s
22722     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22723   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22724   (eval $ac_try) 2>&5
22725   ac_status=$?
22726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22727   test $ac_status = 0; }; }
22728     then
22729         if test x$gcc_cv_ld != x \
22730        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22731          gcc_cv_as_sparc_ua_pcrel=yes
22732        fi
22733        rm -f conftest
22734     else
22735       echo "configure: failed program was" >&5
22736       cat conftest.s >&5
22737     fi
22738     rm -f conftest.o conftest.s
22739   fi
22740 fi
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22742 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22743 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22744
22745 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22746
22747
22748       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22749 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22750 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22751   $as_echo_n "(cached) " >&6
22752 else
22753   gcc_cv_as_sparc_ua_pcrel_hidden=no
22754   if test x$gcc_cv_as != x; then
22755     echo '.data
22756 .align 4
22757 .byte 0x31
22758 .uaword %r_disp32(foo)
22759 .byte 0x32, 0x33, 0x34
22760 .global foo
22761 .hidden foo
22762 foo:
22763 .skip 4' > conftest.s
22764     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22765   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22766   (eval $ac_try) 2>&5
22767   ac_status=$?
22768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22769   test $ac_status = 0; }; }
22770     then
22771         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22772          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22773          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22774             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22775             if $gcc_cv_objdump -R conftest 2> /dev/null \
22776                | grep 'DISP32' > /dev/null 2>&1; then
22777                 :
22778             else
22779                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22780             fi
22781          fi
22782          rm -f conftest
22783     else
22784       echo "configure: failed program was" >&5
22785       cat conftest.s >&5
22786     fi
22787     rm -f conftest.o conftest.s
22788   fi
22789 fi
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22791 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22792 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22793
22794 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22795
22796 fi
22797
22798 fi # unaligned pcrel relocs
22799
22800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22801 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22802 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22803   $as_echo_n "(cached) " >&6
22804 else
22805   gcc_cv_as_sparc_offsetable_lo10=no
22806   if test x$gcc_cv_as != x; then
22807     echo '.text
22808         or %g1, %lo(ab) + 12, %g1
22809         or %g1, %lo(ab + 12), %g1' > conftest.s
22810     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22811   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22812   (eval $ac_try) 2>&5
22813   ac_status=$?
22814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22815   test $ac_status = 0; }; }
22816     then
22817         if test x$gcc_cv_objdump != x \
22818        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22819           | grep ' 82106000 82106000' > /dev/null 2>&1; then
22820          gcc_cv_as_sparc_offsetable_lo10=yes
22821        fi
22822     else
22823       echo "configure: failed program was" >&5
22824       cat conftest.s >&5
22825     fi
22826     rm -f conftest.o conftest.s
22827   fi
22828 fi
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22830 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22831 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22832
22833 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22834
22835 fi
22836     ;;
22837
22838   i[34567]86-*-* | x86_64-*-*)
22839     case $target_os in
22840       cygwin*)
22841         # Full C++ conformance when using a shared libstdc++-v3 requires some
22842         # support from the Cygwin DLL, which in more recent versions exports
22843         # wrappers to aid in interposing and redirecting operators new, delete,
22844         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
22845         # are configuring for a version of Cygwin that exports the wrappers.
22846         if test x$host = x$target; then
22847           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22848 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22849   gcc_ac_cygwin_dll_wrappers=yes
22850 else
22851   gcc_ac_cygwin_dll_wrappers=no
22852 fi
22853
22854         else
22855           # Can't check presence of libc functions during cross-compile, so
22856           # we just have to assume we're building for an up-to-date target.
22857           gcc_ac_cygwin_dll_wrappers=yes
22858         fi
22859
22860 cat >>confdefs.h <<_ACEOF
22861 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22862 _ACEOF
22863
22864     esac
22865     case $target_os in
22866       cygwin* | pe | mingw32*)
22867         # Recent binutils allows the three-operand form of ".comm" on PE.  This
22868         # definition is used unconditionally to initialise the default state of
22869         # the target option variable that governs usage of the feature.
22870         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22871 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22872 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22873   $as_echo_n "(cached) " >&6
22874 else
22875   gcc_cv_as_comm_has_align=no
22876     if test $in_tree_gas = yes; then
22877     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22878   then gcc_cv_as_comm_has_align=yes
22879 fi
22880   elif test x$gcc_cv_as != x; then
22881     echo '.comm foo,1,32' > conftest.s
22882     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22883   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22884   (eval $ac_try) 2>&5
22885   ac_status=$?
22886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22887   test $ac_status = 0; }; }
22888     then
22889         gcc_cv_as_comm_has_align=yes
22890     else
22891       echo "configure: failed program was" >&5
22892       cat conftest.s >&5
22893     fi
22894     rm -f conftest.o conftest.s
22895   fi
22896 fi
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22898 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22899
22900
22901 cat >>confdefs.h <<_ACEOF
22902 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22903 _ACEOF
22904
22905         # Used for DWARF 2 in PE
22906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22907 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22908 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22909   $as_echo_n "(cached) " >&6
22910 else
22911   gcc_cv_as_ix86_pe_secrel32=no
22912     if test $in_tree_gas = yes; then
22913     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22914   then gcc_cv_as_ix86_pe_secrel32=yes
22915 fi
22916   elif test x$gcc_cv_as != x; then
22917     echo '.text
22918 foo:    nop
22919 .data
22920         .secrel32 foo' > conftest.s
22921     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22922   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22923   (eval $ac_try) 2>&5
22924   ac_status=$?
22925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926   test $ac_status = 0; }; }
22927     then
22928         if test x$gcc_cv_ld != x \
22929            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22930              gcc_cv_as_ix86_pe_secrel32=yes
22931            fi
22932            rm -f conftest
22933     else
22934       echo "configure: failed program was" >&5
22935       cat conftest.s >&5
22936     fi
22937     rm -f conftest.o conftest.s
22938   fi
22939 fi
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22941 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22942 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22943
22944 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22945
22946 fi
22947         # Test if the assembler supports the extended form of the .section
22948         # directive that specifies section alignment.  LTO support uses this,
22949         # but normally only after installation, so we warn but don't fail the
22950         # configure if LTO is enabled but the assembler does not support it.
22951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
22952 $as_echo_n "checking assembler for .section with alignment... " >&6; }
22953 if test "${gcc_cv_as_section_has_align+set}" = set; then :
22954   $as_echo_n "(cached) " >&6
22955 else
22956   gcc_cv_as_section_has_align=no
22957     if test $in_tree_gas = yes; then
22958     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
22959   then gcc_cv_as_section_has_align=yes
22960 fi
22961   elif test x$gcc_cv_as != x; then
22962     echo '.section lto_test,"dr0"' > conftest.s
22963     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
22964   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22965   (eval $ac_try) 2>&5
22966   ac_status=$?
22967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22968   test $ac_status = 0; }; }
22969     then
22970         gcc_cv_as_section_has_align=yes
22971     else
22972       echo "configure: failed program was" >&5
22973       cat conftest.s >&5
22974     fi
22975     rm -f conftest.o conftest.s
22976   fi
22977 fi
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
22979 $as_echo "$gcc_cv_as_section_has_align" >&6; }
22980
22981         if test x$gcc_cv_as_section_has_align != xyes; then
22982           case ",$enable_languages," in
22983             *,lto,*)
22984               { $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
22985 $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;}
22986               ;;
22987           esac
22988         fi
22989         ;;
22990     esac
22991
22992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22993 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22994 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22995   $as_echo_n "(cached) " >&6
22996 else
22997   gcc_cv_as_ix86_filds=no
22998   if test x$gcc_cv_as != x; then
22999     echo 'filds mem; fists mem' > conftest.s
23000     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23001   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23002   (eval $ac_try) 2>&5
23003   ac_status=$?
23004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23005   test $ac_status = 0; }; }
23006     then
23007         gcc_cv_as_ix86_filds=yes
23008     else
23009       echo "configure: failed program was" >&5
23010       cat conftest.s >&5
23011     fi
23012     rm -f conftest.o conftest.s
23013   fi
23014 fi
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23016 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23017 if test $gcc_cv_as_ix86_filds = yes; then
23018
23019 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23020
23021 fi
23022
23023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23024 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23025 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23026   $as_echo_n "(cached) " >&6
23027 else
23028   gcc_cv_as_ix86_fildq=no
23029   if test x$gcc_cv_as != x; then
23030     echo 'fildq mem; fistpq mem' > conftest.s
23031     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23032   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23033   (eval $ac_try) 2>&5
23034   ac_status=$?
23035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23036   test $ac_status = 0; }; }
23037     then
23038         gcc_cv_as_ix86_fildq=yes
23039     else
23040       echo "configure: failed program was" >&5
23041       cat conftest.s >&5
23042     fi
23043     rm -f conftest.o conftest.s
23044   fi
23045 fi
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23047 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23048 if test $gcc_cv_as_ix86_fildq = yes; then
23049
23050 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23051
23052 fi
23053
23054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23055 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23056 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23057   $as_echo_n "(cached) " >&6
23058 else
23059   gcc_cv_as_ix86_cmov_sun_syntax=no
23060   if test x$gcc_cv_as != x; then
23061     echo 'cmovl.l %edx, %eax' > conftest.s
23062     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23063   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23064   (eval $ac_try) 2>&5
23065   ac_status=$?
23066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23067   test $ac_status = 0; }; }
23068     then
23069         gcc_cv_as_ix86_cmov_sun_syntax=yes
23070     else
23071       echo "configure: failed program was" >&5
23072       cat conftest.s >&5
23073     fi
23074     rm -f conftest.o conftest.s
23075   fi
23076 fi
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23078 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23079 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23080
23081 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23082
23083 fi
23084
23085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23086 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23087 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23088   $as_echo_n "(cached) " >&6
23089 else
23090   gcc_cv_as_ix86_ffreep=no
23091   if test x$gcc_cv_as != x; then
23092     echo 'ffreep %st(1)' > conftest.s
23093     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23094   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23095   (eval $ac_try) 2>&5
23096   ac_status=$?
23097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23098   test $ac_status = 0; }; }
23099     then
23100         gcc_cv_as_ix86_ffreep=yes
23101     else
23102       echo "configure: failed program was" >&5
23103       cat conftest.s >&5
23104     fi
23105     rm -f conftest.o conftest.s
23106   fi
23107 fi
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23109 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23110 if test $gcc_cv_as_ix86_ffreep = yes; then
23111
23112 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23113
23114 fi
23115
23116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23117 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23118 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23119   $as_echo_n "(cached) " >&6
23120 else
23121   gcc_cv_as_ix86_sahf=no
23122   if test x$gcc_cv_as != x; then
23123     echo 'sahf' > conftest.s
23124     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23125   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23126   (eval $ac_try) 2>&5
23127   ac_status=$?
23128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23129   test $ac_status = 0; }; }
23130     then
23131         gcc_cv_as_ix86_sahf=yes
23132     else
23133       echo "configure: failed program was" >&5
23134       cat conftest.s >&5
23135     fi
23136     rm -f conftest.o conftest.s
23137   fi
23138 fi
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23140 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23141 if test $gcc_cv_as_ix86_sahf = yes; then
23142
23143 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23144
23145 fi
23146
23147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23148 $as_echo_n "checking assembler for swap suffix... " >&6; }
23149 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23150   $as_echo_n "(cached) " >&6
23151 else
23152   gcc_cv_as_ix86_swap=no
23153   if test x$gcc_cv_as != x; then
23154     echo 'movl.s %esp, %ebp' > conftest.s
23155     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23156   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23157   (eval $ac_try) 2>&5
23158   ac_status=$?
23159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23160   test $ac_status = 0; }; }
23161     then
23162         gcc_cv_as_ix86_swap=yes
23163     else
23164       echo "configure: failed program was" >&5
23165       cat conftest.s >&5
23166     fi
23167     rm -f conftest.o conftest.s
23168   fi
23169 fi
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23171 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23172 if test $gcc_cv_as_ix86_swap = yes; then
23173
23174 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23175
23176 fi
23177
23178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23179 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23180 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23181   $as_echo_n "(cached) " >&6
23182 else
23183   gcc_cv_as_ix86_diff_sect_delta=no
23184   if test x$gcc_cv_as != x; then
23185     echo '.section .rodata
23186 .L1:
23187         .long .L2-.L1
23188         .long .L3-.L1
23189         .text
23190 .L3:    nop
23191 .L2:    nop' > conftest.s
23192     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23193   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23194   (eval $ac_try) 2>&5
23195   ac_status=$?
23196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23197   test $ac_status = 0; }; }
23198     then
23199         gcc_cv_as_ix86_diff_sect_delta=yes
23200     else
23201       echo "configure: failed program was" >&5
23202       cat conftest.s >&5
23203     fi
23204     rm -f conftest.o conftest.s
23205   fi
23206 fi
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23208 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23209 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23210
23211 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23212
23213 fi
23214
23215     # This one is used unconditionally by i386.[ch]; it is to be defined
23216     # to 1 if the feature is present, 0 otherwise.
23217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23218 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23219 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23220   $as_echo_n "(cached) " >&6
23221 else
23222   gcc_cv_as_ix86_gotoff_in_data=no
23223     if test $in_tree_gas = yes; then
23224     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23225   then gcc_cv_as_ix86_gotoff_in_data=yes
23226 fi
23227   elif test x$gcc_cv_as != x; then
23228     echo '      .text
23229 .L0:
23230         nop
23231         .data
23232         .long .L0@GOTOFF' > conftest.s
23233     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23234   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23235   (eval $ac_try) 2>&5
23236   ac_status=$?
23237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23238   test $ac_status = 0; }; }
23239     then
23240         gcc_cv_as_ix86_gotoff_in_data=yes
23241     else
23242       echo "configure: failed program was" >&5
23243       cat conftest.s >&5
23244     fi
23245     rm -f conftest.o conftest.s
23246   fi
23247 fi
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23249 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23250
23251
23252 cat >>confdefs.h <<_ACEOF
23253 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23254 _ACEOF
23255
23256     ;;
23257
23258   ia64*-*-*)
23259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23260 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23261 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23262   $as_echo_n "(cached) " >&6
23263 else
23264   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23265     if test $in_tree_gas = yes; then
23266     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23267   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23268 fi
23269   elif test x$gcc_cv_as != x; then
23270     echo '      .text
23271         addl r15 = @ltoffx(x#), gp
23272         ;;
23273         ld8.mov r16 = [r15], x#' > conftest.s
23274     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23275   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23279   test $ac_status = 0; }; }
23280     then
23281         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23282     else
23283       echo "configure: failed program was" >&5
23284       cat conftest.s >&5
23285     fi
23286     rm -f conftest.o conftest.s
23287   fi
23288 fi
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23290 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23291 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23292
23293 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23294
23295 fi
23296
23297     ;;
23298
23299   powerpc*-*-*)
23300     case $target in
23301       *-*-aix*) conftest_s='    .machine "pwr5"
23302         .csect .text[PR]
23303         mfcr 3,128';;
23304       *-*-darwin*)
23305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23306 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23307 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23308   $as_echo_n "(cached) " >&6
23309 else
23310   gcc_cv_as_machine_directive=no
23311   if test x$gcc_cv_as != x; then
23312     echo '      .machine ppc7400' > conftest.s
23313     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23314   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23315   (eval $ac_try) 2>&5
23316   ac_status=$?
23317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318   test $ac_status = 0; }; }
23319     then
23320         gcc_cv_as_machine_directive=yes
23321     else
23322       echo "configure: failed program was" >&5
23323       cat conftest.s >&5
23324     fi
23325     rm -f conftest.o conftest.s
23326   fi
23327 fi
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23329 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23330
23331         if test x$gcc_cv_as_machine_directive != xyes; then
23332           echo "*** This target requires an assembler supporting \".machine\"" >&2
23333           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23334           test x$build = x$target && exit 1
23335         fi
23336         conftest_s='    .text
23337         mfcr r3,128';;
23338       *) conftest_s='   .machine power4
23339         .text
23340         mfcr 3,128';;
23341     esac
23342
23343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23344 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23345 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23346   $as_echo_n "(cached) " >&6
23347 else
23348   gcc_cv_as_powerpc_mfcrf=no
23349     if test $in_tree_gas = yes; then
23350     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23351   then gcc_cv_as_powerpc_mfcrf=yes
23352 fi
23353   elif test x$gcc_cv_as != x; then
23354     echo "$conftest_s" > conftest.s
23355     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23356   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23357   (eval $ac_try) 2>&5
23358   ac_status=$?
23359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23360   test $ac_status = 0; }; }
23361     then
23362         gcc_cv_as_powerpc_mfcrf=yes
23363     else
23364       echo "configure: failed program was" >&5
23365       cat conftest.s >&5
23366     fi
23367     rm -f conftest.o conftest.s
23368   fi
23369 fi
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23371 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23372 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23373
23374 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23375
23376 fi
23377
23378     case $target in
23379       *-*-aix*) conftest_s='    .machine "pwr5"
23380         .csect .text[PR]
23381         popcntb 3,3';;
23382       *) conftest_s='   .machine power5
23383         .text
23384         popcntb 3,3';;
23385     esac
23386
23387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23388 $as_echo_n "checking assembler for popcntb support... " >&6; }
23389 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23390   $as_echo_n "(cached) " >&6
23391 else
23392   gcc_cv_as_powerpc_popcntb=no
23393     if test $in_tree_gas = yes; then
23394     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23395   then gcc_cv_as_powerpc_popcntb=yes
23396 fi
23397   elif test x$gcc_cv_as != x; then
23398     echo "$conftest_s" > conftest.s
23399     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23400   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23401   (eval $ac_try) 2>&5
23402   ac_status=$?
23403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23404   test $ac_status = 0; }; }
23405     then
23406         gcc_cv_as_powerpc_popcntb=yes
23407     else
23408       echo "configure: failed program was" >&5
23409       cat conftest.s >&5
23410     fi
23411     rm -f conftest.o conftest.s
23412   fi
23413 fi
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23415 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23416 if test $gcc_cv_as_powerpc_popcntb = yes; then
23417
23418 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23419
23420 fi
23421
23422     case $target in
23423       *-*-aix*) conftest_s='    .machine "pwr5x"
23424         .csect .text[PR]
23425         frin 1,1';;
23426       *) conftest_s='   .machine power5
23427         .text
23428         frin 1,1';;
23429     esac
23430
23431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23432 $as_echo_n "checking assembler for fp round support... " >&6; }
23433 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23434   $as_echo_n "(cached) " >&6
23435 else
23436   gcc_cv_as_powerpc_fprnd=no
23437     if test $in_tree_gas = yes; then
23438     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23439   then gcc_cv_as_powerpc_fprnd=yes
23440 fi
23441   elif test x$gcc_cv_as != x; then
23442     echo "$conftest_s" > conftest.s
23443     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23444   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23445   (eval $ac_try) 2>&5
23446   ac_status=$?
23447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23448   test $ac_status = 0; }; }
23449     then
23450         gcc_cv_as_powerpc_fprnd=yes
23451     else
23452       echo "configure: failed program was" >&5
23453       cat conftest.s >&5
23454     fi
23455     rm -f conftest.o conftest.s
23456   fi
23457 fi
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23459 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23460 if test $gcc_cv_as_powerpc_fprnd = yes; then
23461
23462 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23463
23464 fi
23465
23466     case $target in
23467       *-*-aix*) conftest_s='    .machine "pwr6"
23468         .csect .text[PR]
23469         mffgpr 1,3';;
23470       *) conftest_s='   .machine power6
23471         .text
23472         mffgpr 1,3';;
23473     esac
23474
23475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23476 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23477 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23478   $as_echo_n "(cached) " >&6
23479 else
23480   gcc_cv_as_powerpc_mfpgpr=no
23481     if test $in_tree_gas = yes; then
23482     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23483   then gcc_cv_as_powerpc_mfpgpr=yes
23484 fi
23485   elif test x$gcc_cv_as != x; then
23486     echo "$conftest_s" > conftest.s
23487     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23488   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23489   (eval $ac_try) 2>&5
23490   ac_status=$?
23491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23492   test $ac_status = 0; }; }
23493     then
23494         gcc_cv_as_powerpc_mfpgpr=yes
23495     else
23496       echo "configure: failed program was" >&5
23497       cat conftest.s >&5
23498     fi
23499     rm -f conftest.o conftest.s
23500   fi
23501 fi
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23503 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23504 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23505
23506 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23507
23508 fi
23509
23510     case $target in
23511       *-*-aix*) conftest_s='    .csect .text[PR]
23512 LCF..0:
23513         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23514       *-*-darwin*)
23515         conftest_s='    .text
23516 LCF0:
23517         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23518       *) conftest_s='   .text
23519 .LCF0:
23520         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23521     esac
23522
23523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23524 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23525 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23526   $as_echo_n "(cached) " >&6
23527 else
23528   gcc_cv_as_powerpc_rel16=no
23529     if test $in_tree_gas = yes; then
23530     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23531   then gcc_cv_as_powerpc_rel16=yes
23532 fi
23533   elif test x$gcc_cv_as != x; then
23534     echo "$conftest_s" > conftest.s
23535     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23536   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537   (eval $ac_try) 2>&5
23538   ac_status=$?
23539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540   test $ac_status = 0; }; }
23541     then
23542         gcc_cv_as_powerpc_rel16=yes
23543     else
23544       echo "configure: failed program was" >&5
23545       cat conftest.s >&5
23546     fi
23547     rm -f conftest.o conftest.s
23548   fi
23549 fi
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23551 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23552 if test $gcc_cv_as_powerpc_rel16 = yes; then
23553
23554 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23555
23556 fi
23557
23558     case $target in
23559       *-*-aix*) conftest_s='    .machine "pwr6"
23560         .csect .text[PR]
23561         cmpb 3,4,5';;
23562       *) conftest_s='   .machine power6
23563         .text
23564         cmpb 3,4,5';;
23565     esac
23566
23567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23568 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23569 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23570   $as_echo_n "(cached) " >&6
23571 else
23572   gcc_cv_as_powerpc_cmpb=no
23573     if test $in_tree_gas = yes; then
23574     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23575   then gcc_cv_as_powerpc_cmpb=yes
23576 fi
23577   elif test x$gcc_cv_as != x; then
23578     echo "$conftest_s" > conftest.s
23579     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23580   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23581   (eval $ac_try) 2>&5
23582   ac_status=$?
23583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23584   test $ac_status = 0; }; }
23585     then
23586         gcc_cv_as_powerpc_cmpb=yes
23587     else
23588       echo "configure: failed program was" >&5
23589       cat conftest.s >&5
23590     fi
23591     rm -f conftest.o conftest.s
23592   fi
23593 fi
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23595 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23596 if test $gcc_cv_as_powerpc_cmpb = yes; then
23597
23598 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23599
23600 fi
23601
23602     case $target in
23603       *-*-aix*) conftest_s='    .machine "pwr6"
23604         .csect .text[PR]
23605         dadd 1,2,3';;
23606       *) conftest_s='   .machine power6
23607         .text
23608         dadd 1,2,3';;
23609     esac
23610
23611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23612 $as_echo_n "checking assembler for decimal float support... " >&6; }
23613 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23614   $as_echo_n "(cached) " >&6
23615 else
23616   gcc_cv_as_powerpc_dfp=no
23617     if test $in_tree_gas = yes; then
23618     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23619   then gcc_cv_as_powerpc_dfp=yes
23620 fi
23621   elif test x$gcc_cv_as != x; then
23622     echo "$conftest_s" > conftest.s
23623     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23624   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23625   (eval $ac_try) 2>&5
23626   ac_status=$?
23627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23628   test $ac_status = 0; }; }
23629     then
23630         gcc_cv_as_powerpc_dfp=yes
23631     else
23632       echo "configure: failed program was" >&5
23633       cat conftest.s >&5
23634     fi
23635     rm -f conftest.o conftest.s
23636   fi
23637 fi
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23639 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23640 if test $gcc_cv_as_powerpc_dfp = yes; then
23641
23642 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23643
23644 fi
23645
23646     case $target in
23647       *-*-aix*) conftest_s='    .machine "pwr7"
23648         .csect .text[PR]
23649         lxvd2x 1,2,3';;
23650       *) conftest_s='   .machine power7
23651         .text
23652         lxvd2x 1,2,3';;
23653     esac
23654
23655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23656 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23657 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23658   $as_echo_n "(cached) " >&6
23659 else
23660   gcc_cv_as_powerpc_vsx=no
23661     if test $in_tree_gas = yes; then
23662     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23663   then gcc_cv_as_powerpc_vsx=yes
23664 fi
23665   elif test x$gcc_cv_as != x; then
23666     echo "$conftest_s" > conftest.s
23667     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23668   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23669   (eval $ac_try) 2>&5
23670   ac_status=$?
23671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23672   test $ac_status = 0; }; }
23673     then
23674         gcc_cv_as_powerpc_vsx=yes
23675     else
23676       echo "configure: failed program was" >&5
23677       cat conftest.s >&5
23678     fi
23679     rm -f conftest.o conftest.s
23680   fi
23681 fi
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23683 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23684 if test $gcc_cv_as_powerpc_vsx = yes; then
23685
23686 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23687
23688 fi
23689
23690     case $target in
23691       *-*-aix*) conftest_s='    .machine "pwr7"
23692         .csect .text[PR]
23693         popcntd 3,3';;
23694       *) conftest_s='   .machine power7
23695         .text
23696         popcntd 3,3';;
23697     esac
23698
23699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23700 $as_echo_n "checking assembler for popcntd support... " >&6; }
23701 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23702   $as_echo_n "(cached) " >&6
23703 else
23704   gcc_cv_as_powerpc_popcntd=no
23705     if test $in_tree_gas = yes; then
23706     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23707   then gcc_cv_as_powerpc_popcntd=yes
23708 fi
23709   elif test x$gcc_cv_as != x; then
23710     echo "$conftest_s" > conftest.s
23711     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23712   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23713   (eval $ac_try) 2>&5
23714   ac_status=$?
23715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23716   test $ac_status = 0; }; }
23717     then
23718         gcc_cv_as_powerpc_popcntd=yes
23719     else
23720       echo "configure: failed program was" >&5
23721       cat conftest.s >&5
23722     fi
23723     rm -f conftest.o conftest.s
23724   fi
23725 fi
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23727 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23728 if test $gcc_cv_as_powerpc_popcntd = yes; then
23729
23730 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23731
23732 fi
23733
23734     case $target in
23735       *-*-aix*) conftest_s='    .csect .text[PR]
23736         lwsync';;
23737       *) conftest_s='   .text
23738         lwsync';;
23739     esac
23740
23741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23742 $as_echo_n "checking assembler for lwsync support... " >&6; }
23743 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23744   $as_echo_n "(cached) " >&6
23745 else
23746   gcc_cv_as_powerpc_lwsync=no
23747     if test $in_tree_gas = yes; then
23748     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23749   then gcc_cv_as_powerpc_lwsync=yes
23750 fi
23751   elif test x$gcc_cv_as != x; then
23752     echo "$conftest_s" > conftest.s
23753     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23754   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23755   (eval $ac_try) 2>&5
23756   ac_status=$?
23757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758   test $ac_status = 0; }; }
23759     then
23760         gcc_cv_as_powerpc_lwsync=yes
23761     else
23762       echo "configure: failed program was" >&5
23763       cat conftest.s >&5
23764     fi
23765     rm -f conftest.o conftest.s
23766   fi
23767 fi
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23769 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23770 if test $gcc_cv_as_powerpc_lwsync = yes; then
23771
23772 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23773
23774 fi
23775
23776     case $target in
23777       *-*-aix*) conftest_s='    .machine "476"
23778         .csect .text[PR]
23779         dci 0';;
23780       *) conftest_s='   .machine "476"
23781         .text
23782         dci 0';;
23783     esac
23784
23785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23786 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23787 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23788   $as_echo_n "(cached) " >&6
23789 else
23790   gcc_cv_as_powerpc_dci=no
23791     if test $in_tree_gas = yes; then
23792     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23793   then gcc_cv_as_powerpc_dci=yes
23794 fi
23795   elif test x$gcc_cv_as != x; then
23796     echo "$conftest_s" > conftest.s
23797     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23798   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23799   (eval $ac_try) 2>&5
23800   ac_status=$?
23801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23802   test $ac_status = 0; }; }
23803     then
23804         gcc_cv_as_powerpc_dci=yes
23805     else
23806       echo "configure: failed program was" >&5
23807       cat conftest.s >&5
23808     fi
23809     rm -f conftest.o conftest.s
23810   fi
23811 fi
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23813 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23814 if test $gcc_cv_as_powerpc_dci = yes; then
23815
23816 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23817
23818 fi
23819
23820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23821 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23822 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23823   $as_echo_n "(cached) " >&6
23824 else
23825   gcc_cv_as_powerpc_gnu_attribute=no
23826     if test $in_tree_gas = yes; then
23827     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23828   then gcc_cv_as_powerpc_gnu_attribute=yes
23829 fi
23830   elif test x$gcc_cv_as != x; then
23831     echo '.gnu_attribute 4,1' > conftest.s
23832     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23833   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23834   (eval $ac_try) 2>&5
23835   ac_status=$?
23836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23837   test $ac_status = 0; }; }
23838     then
23839         gcc_cv_as_powerpc_gnu_attribute=yes
23840     else
23841       echo "configure: failed program was" >&5
23842       cat conftest.s >&5
23843     fi
23844     rm -f conftest.o conftest.s
23845   fi
23846 fi
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23848 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23849 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23850
23851 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23852
23853 fi
23854
23855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23856 $as_echo_n "checking assembler for tls marker support... " >&6; }
23857 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23858   $as_echo_n "(cached) " >&6
23859 else
23860   gcc_cv_as_powerpc_tls_markers=no
23861     if test $in_tree_gas = yes; then
23862     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23863   then gcc_cv_as_powerpc_tls_markers=yes
23864 fi
23865   elif test x$gcc_cv_as != x; then
23866     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23867     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23868   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23869   (eval $ac_try) 2>&5
23870   ac_status=$?
23871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23872   test $ac_status = 0; }; }
23873     then
23874         gcc_cv_as_powerpc_tls_markers=yes
23875     else
23876       echo "configure: failed program was" >&5
23877       cat conftest.s >&5
23878     fi
23879     rm -f conftest.o conftest.s
23880   fi
23881 fi
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23883 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23884 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23885
23886 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23887
23888 fi
23889
23890     case $target in
23891       *-*-aix*)
23892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
23893 $as_echo_n "checking assembler for .ref support... " >&6; }
23894 if test "${gcc_cv_as_aix_ref+set}" = set; then :
23895   $as_echo_n "(cached) " >&6
23896 else
23897   gcc_cv_as_aix_ref=no
23898     if test $in_tree_gas = yes; then
23899     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
23900   then :
23901 fi
23902   elif test x$gcc_cv_as != x; then
23903     echo '      .csect stuff[rw]
23904              stuff:
23905                 .long 1
23906                 .extern sym
23907                 .ref sym
23908           ' > conftest.s
23909     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23910   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23911   (eval $ac_try) 2>&5
23912   ac_status=$?
23913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23914   test $ac_status = 0; }; }
23915     then
23916         gcc_cv_as_aix_ref=yes
23917     else
23918       echo "configure: failed program was" >&5
23919       cat conftest.s >&5
23920     fi
23921     rm -f conftest.o conftest.s
23922   fi
23923 fi
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
23925 $as_echo "$gcc_cv_as_aix_ref" >&6; }
23926 if test $gcc_cv_as_aix_ref = yes; then
23927
23928 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
23929
23930 fi
23931         ;;
23932     esac
23933     ;;
23934
23935   mips*-*-*)
23936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23937 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23938 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23939   $as_echo_n "(cached) " >&6
23940 else
23941   gcc_cv_as_mips_explicit_relocs=no
23942     if test $in_tree_gas = yes; then
23943     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23944   then gcc_cv_as_mips_explicit_relocs=yes
23945 fi
23946   elif test x$gcc_cv_as != x; then
23947     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
23948     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23949   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950   (eval $ac_try) 2>&5
23951   ac_status=$?
23952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953   test $ac_status = 0; }; }
23954     then
23955         gcc_cv_as_mips_explicit_relocs=yes
23956     else
23957       echo "configure: failed program was" >&5
23958       cat conftest.s >&5
23959     fi
23960     rm -f conftest.o conftest.s
23961   fi
23962 fi
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23964 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23965 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23966   if test x$target_cpu_default = x
23967        then target_cpu_default=MASK_EXPLICIT_RELOCS
23968        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23969        fi
23970 fi
23971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23972 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23973 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23974   $as_echo_n "(cached) " >&6
23975 else
23976   gcc_cv_as_mips_no_shared=no
23977     if test $in_tree_gas = yes; then
23978     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23979   then gcc_cv_as_mips_no_shared=yes
23980 fi
23981   elif test x$gcc_cv_as != x; then
23982     echo 'nop' > conftest.s
23983     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
23984   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23985   (eval $ac_try) 2>&5
23986   ac_status=$?
23987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23988   test $ac_status = 0; }; }
23989     then
23990         gcc_cv_as_mips_no_shared=yes
23991     else
23992       echo "configure: failed program was" >&5
23993       cat conftest.s >&5
23994     fi
23995     rm -f conftest.o conftest.s
23996   fi
23997 fi
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23999 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24000 if test $gcc_cv_as_mips_no_shared = yes; then
24001
24002 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24003
24004 fi
24005
24006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24007 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24008 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24009   $as_echo_n "(cached) " >&6
24010 else
24011   gcc_cv_as_mips_gnu_attribute=no
24012     if test $in_tree_gas = yes; then
24013     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24014   then gcc_cv_as_mips_gnu_attribute=yes
24015 fi
24016   elif test x$gcc_cv_as != x; then
24017     echo '.gnu_attribute 4,1' > conftest.s
24018     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24019   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24020   (eval $ac_try) 2>&5
24021   ac_status=$?
24022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24023   test $ac_status = 0; }; }
24024     then
24025         gcc_cv_as_mips_gnu_attribute=yes
24026     else
24027       echo "configure: failed program was" >&5
24028       cat conftest.s >&5
24029     fi
24030     rm -f conftest.o conftest.s
24031   fi
24032 fi
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24034 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24035 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24036
24037 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24038
24039 fi
24040
24041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24042 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24043 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24044   $as_echo_n "(cached) " >&6
24045 else
24046   gcc_cv_as_mips_dtprelword=no
24047     if test $in_tree_gas = yes; then
24048     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24049   then gcc_cv_as_mips_dtprelword=yes
24050 fi
24051   elif test x$gcc_cv_as != x; then
24052     echo '.section .tdata,"awT",@progbits
24053 x:
24054         .word 2
24055         .text
24056         .dtprelword x+0x8000' > conftest.s
24057     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24058   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059   (eval $ac_try) 2>&5
24060   ac_status=$?
24061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062   test $ac_status = 0; }; }
24063     then
24064         gcc_cv_as_mips_dtprelword=yes
24065     else
24066       echo "configure: failed program was" >&5
24067       cat conftest.s >&5
24068     fi
24069     rm -f conftest.o conftest.s
24070   fi
24071 fi
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24073 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24074 if test $gcc_cv_as_mips_dtprelword = yes; then
24075
24076 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24077
24078 fi
24079
24080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24081 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24082     gcc_cv_as_ld_jalr_reloc=no
24083     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24084       if test $in_tree_ld = yes ; then
24085         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 \
24086            && test $in_tree_ld_is_elf = yes; then
24087           gcc_cv_as_ld_jalr_reloc=yes
24088         fi
24089       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24090         echo '  .ent x' > conftest.s
24091         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24092         echo '  ld $25,%call16(y)($28)' >> conftest.s
24093         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24094         echo '1:        jalr $25' >> conftest.s
24095         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24096         echo '1:        jalr $25' >> conftest.s
24097         echo '  .end x' >> conftest.s
24098         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24099            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24100           if $gcc_cv_objdump -d conftest.so | grep -q jalr \
24101              && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
24102             gcc_cv_as_ld_jalr_reloc=yes
24103           fi
24104         fi
24105         rm -f conftest.*
24106       fi
24107     fi
24108     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24109       if test x$target_cpu_default = x; then
24110         target_cpu_default=MASK_RELAX_PIC_CALLS
24111       else
24112         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24113       fi
24114     fi
24115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24116 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24117
24118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24119 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24120 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24121   $as_echo_n "(cached) " >&6
24122 else
24123   gcc_cv_ld_mips_personality_relaxation=no
24124        if test $in_tree_ld = yes ; then
24125          if test "$gcc_cv_gld_major_version" -eq 2 \
24126                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24127                  -o "$gcc_cv_gld_major_version" -gt 2; then
24128            gcc_cv_ld_mips_personality_relaxation=yes
24129          fi
24130        elif test x$gcc_cv_as != x \
24131                  -a x$gcc_cv_ld != x \
24132                  -a x$gcc_cv_readelf != x ; then
24133          cat > conftest.s <<EOF
24134         .cfi_startproc
24135         .cfi_personality 0x80,indirect_ptr
24136         .ent test
24137 test:
24138         nop
24139         .end test
24140         .cfi_endproc
24141
24142         .section .data,"aw",@progbits
24143 indirect_ptr:
24144         .dc.a personality
24145 EOF
24146          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24147             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24148            if $gcc_cv_readelf -d conftest 2>&1 \
24149               | grep TEXTREL > /dev/null 2>&1; then
24150              :
24151            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24152                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24153              :
24154            else
24155              gcc_cv_ld_mips_personality_relaxation=yes
24156            fi
24157          fi
24158        fi
24159        rm -f conftest.s conftest.o conftest
24160 fi
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24162 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24163     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24164
24165 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24166
24167     fi
24168     ;;
24169 esac
24170
24171 # Mips and HP-UX need the GNU assembler.
24172 # Linux on IA64 might be able to use the Intel assembler.
24173
24174 case "$target" in
24175   mips*-*-* | *-*-hpux* )
24176     if test x$gas_flag = xyes \
24177        || test x"$host" != x"$build" \
24178        || test ! -x "$gcc_cv_as" \
24179        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24180       :
24181     else
24182       echo "*** This configuration requires the GNU assembler" >&2
24183       exit 1
24184     fi
24185     ;;
24186 esac
24187
24188 # ??? Not all targets support dwarf2 debug_line, even within a version
24189 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24190 # info to the output file.  So, as supported targets are added to gas 2.11,
24191 # add some instruction here to (also) show we expect this might work.
24192 # ??? Once 2.11 is released, probably need to add first known working
24193 # version to the per-target configury.
24194 case "$target" in
24195   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24196   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24197   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24198   | spu-*-* | fido*-*-* | m32c-*-*)
24199     insn="nop"
24200     ;;
24201   ia64*-*-* | s390*-*-*)
24202     insn="nop 0"
24203     ;;
24204   mmix-*-*)
24205     insn="swym 0"
24206     ;;
24207 esac
24208 if test x"$insn" != x; then
24209  conftest_s="\
24210         .file 1 \"conftest.s\"
24211         .loc 1 3 0
24212         $insn"
24213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24214 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24215 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24216   $as_echo_n "(cached) " >&6
24217 else
24218   gcc_cv_as_dwarf2_debug_line=no
24219     if test $in_tree_gas = yes; then
24220     if test $in_tree_gas_is_elf = yes \
24221   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24222   then gcc_cv_as_dwarf2_debug_line=yes
24223 fi
24224   elif test x$gcc_cv_as != x; then
24225     echo "$conftest_s" > conftest.s
24226     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24227   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24228   (eval $ac_try) 2>&5
24229   ac_status=$?
24230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231   test $ac_status = 0; }; }
24232     then
24233         if test x$gcc_cv_objdump != x \
24234    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24235       | grep debug_line > /dev/null 2>&1; then
24236      gcc_cv_as_dwarf2_debug_line=yes
24237    fi
24238     else
24239       echo "configure: failed program was" >&5
24240       cat conftest.s >&5
24241     fi
24242     rm -f conftest.o conftest.s
24243   fi
24244 fi
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24246 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24247
24248
24249 # The .debug_line file table must be in the exact order that
24250 # we specified the files, since these indices are also used
24251 # by DW_AT_decl_file.  Approximate this test by testing if
24252 # the assembler bitches if the same index is assigned twice.
24253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24254 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24255 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24256   $as_echo_n "(cached) " >&6
24257 else
24258   gcc_cv_as_dwarf2_file_buggy=no
24259   if test x$gcc_cv_as != x; then
24260     echo '      .file 1 "foo.s"
24261         .file 1 "bar.s"' > conftest.s
24262     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24263   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24264   (eval $ac_try) 2>&5
24265   ac_status=$?
24266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24267   test $ac_status = 0; }; }
24268     then
24269         gcc_cv_as_dwarf2_file_buggy=yes
24270     else
24271       echo "configure: failed program was" >&5
24272       cat conftest.s >&5
24273     fi
24274     rm -f conftest.o conftest.s
24275   fi
24276 fi
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24278 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24279
24280
24281  if test $gcc_cv_as_dwarf2_debug_line = yes \
24282  && test $gcc_cv_as_dwarf2_file_buggy = no; then
24283
24284 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24285
24286  fi
24287
24288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24289 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24290 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24291   $as_echo_n "(cached) " >&6
24292 else
24293   gcc_cv_as_gdwarf2_flag=no
24294     if test $in_tree_gas = yes; then
24295     if test $in_tree_gas_is_elf = yes \
24296   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24297   then gcc_cv_as_gdwarf2_flag=yes
24298 fi
24299   elif test x$gcc_cv_as != x; then
24300     echo "$insn" > conftest.s
24301     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24302   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24303   (eval $ac_try) 2>&5
24304   ac_status=$?
24305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306   test $ac_status = 0; }; }
24307     then
24308         gcc_cv_as_gdwarf2_flag=yes
24309     else
24310       echo "configure: failed program was" >&5
24311       cat conftest.s >&5
24312     fi
24313     rm -f conftest.o conftest.s
24314   fi
24315 fi
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24317 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24318 if test $gcc_cv_as_gdwarf2_flag = yes; then
24319
24320 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24321
24322 fi
24323
24324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24325 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24326 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24327   $as_echo_n "(cached) " >&6
24328 else
24329   gcc_cv_as_gstabs_flag=no
24330     if test $in_tree_gas = yes; then
24331     if test $in_tree_gas_is_elf = yes \
24332   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24333   then gcc_cv_as_gstabs_flag=yes
24334 fi
24335   elif test x$gcc_cv_as != x; then
24336     echo "$insn" > conftest.s
24337     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24338   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339   (eval $ac_try) 2>&5
24340   ac_status=$?
24341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342   test $ac_status = 0; }; }
24343     then
24344         # The native Solaris 9/Intel assembler doesn't understand --gstabs
24345    # and warns about it, but still exits successfully.  So check for
24346    # this.
24347    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24348   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24349   (eval $ac_try) 2>&5
24350   ac_status=$?
24351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24352   test $ac_status = 0; }; }
24353    then :
24354    else gcc_cv_as_gstabs_flag=yes
24355    fi
24356     else
24357       echo "configure: failed program was" >&5
24358       cat conftest.s >&5
24359     fi
24360     rm -f conftest.o conftest.s
24361   fi
24362 fi
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24364 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24365 if test $gcc_cv_as_gstabs_flag = yes; then
24366
24367 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24368
24369 fi
24370
24371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24372 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24373 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24374   $as_echo_n "(cached) " >&6
24375 else
24376   gcc_cv_as_debug_prefix_map_flag=no
24377     if test $in_tree_gas = yes; then
24378     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24379   then gcc_cv_as_debug_prefix_map_flag=yes
24380 fi
24381   elif test x$gcc_cv_as != x; then
24382     echo "$insn" > conftest.s
24383     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24384   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385   (eval $ac_try) 2>&5
24386   ac_status=$?
24387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388   test $ac_status = 0; }; }
24389     then
24390         gcc_cv_as_debug_prefix_map_flag=yes
24391     else
24392       echo "configure: failed program was" >&5
24393       cat conftest.s >&5
24394     fi
24395     rm -f conftest.o conftest.s
24396   fi
24397 fi
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24399 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24400 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24401
24402 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24403
24404 fi
24405 fi
24406
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24408 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24409 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24410   $as_echo_n "(cached) " >&6
24411 else
24412   gcc_cv_as_lcomm_with_alignment=no
24413   if test x$gcc_cv_as != x; then
24414     echo '.lcomm bar,4,16' > 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_lcomm_with_alignment=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_lcomm_with_alignment" >&5
24431 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24432 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24433
24434 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24435
24436 fi
24437
24438 # Check whether --enable-gnu-unique-object was given.
24439 if test "${enable_gnu_unique_object+set}" = set; then :
24440   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24441     yes | no) ;;
24442     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24443 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24444   esac
24445 else
24446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24447 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24448 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24449   $as_echo_n "(cached) " >&6
24450 else
24451   gcc_cv_as_gnu_unique_object=no
24452     if test $in_tree_gas = yes; then
24453     if test $in_tree_gas_is_elf = yes \
24454   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24455   then gcc_cv_as_gnu_unique_object=yes
24456 fi
24457   elif test x$gcc_cv_as != x; then
24458     echo '.type foo, @gnu_unique_object' > conftest.s
24459     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24460   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24461   (eval $ac_try) 2>&5
24462   ac_status=$?
24463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24464   test $ac_status = 0; }; }
24465     then
24466         gcc_cv_as_gnu_unique_object=yes
24467     else
24468       echo "configure: failed program was" >&5
24469       cat conftest.s >&5
24470     fi
24471     rm -f conftest.o conftest.s
24472   fi
24473 fi
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24475 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24476 if test $gcc_cv_as_gnu_unique_object = yes; then
24477   # Also check for ld.so support, i.e. glibc 2.11 or higher.
24478    if test x$host = x$build -a x$host = x$target &&
24479        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24480       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24481       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24482       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24483       if test "$glibcnum" -ge 2011 ; then
24484         enable_gnu_unique_object=yes
24485       fi
24486     fi
24487 fi
24488 fi
24489
24490 if test x$enable_gnu_unique_object = xyes; then
24491
24492 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24493
24494 fi
24495
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24497 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24498 if test "${gcc_cv_as_line_zero+set}" = set; then :
24499   $as_echo_n "(cached) " >&6
24500 else
24501   gcc_cv_as_line_zero=no
24502   if test $in_tree_gas = yes; then
24503     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24504   then gcc_cv_as_line_zero=yes
24505 fi
24506   elif test "x$gcc_cv_as" != x; then
24507     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24508     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24509   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510   (eval $ac_try) 2>&5
24511   ac_status=$?
24512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513   test $ac_status = 0; }; } &&
24514        test "x`cat conftest.out`" = x
24515     then
24516       gcc_cv_as_line_zero=yes
24517     else
24518       echo "configure: failed program was" >&5
24519       cat conftest.s >&5
24520       echo "configure: error output was" >&5
24521       cat conftest.out >&5
24522     fi
24523     rm -f conftest.o conftest.s conftest.out
24524   fi
24525 fi
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24527 $as_echo "$gcc_cv_as_line_zero" >&6; }
24528 if test "x$gcc_cv_as_line_zero" = xyes; then
24529
24530 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24531
24532 fi
24533
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24535 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24536 gcc_cv_ld_eh_frame_hdr=no
24537 if test $in_tree_ld = yes ; then
24538   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 \
24539      && test $in_tree_ld_is_elf = yes; then
24540     gcc_cv_ld_eh_frame_hdr=yes
24541   fi
24542 elif test x$gcc_cv_ld != x; then
24543         # Check if linker supports --eh-frame-hdr option
24544         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24545                 gcc_cv_ld_eh_frame_hdr=yes
24546         fi
24547 fi
24548
24549 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24550
24551 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24552
24553 fi
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24555 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24556
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24558 $as_echo_n "checking linker position independent executable support... " >&6; }
24559 gcc_cv_ld_pie=no
24560 if test $in_tree_ld = yes ; then
24561   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 \
24562      && test $in_tree_ld_is_elf = yes; then
24563     gcc_cv_ld_pie=yes
24564   fi
24565 elif test x$gcc_cv_ld != x; then
24566         # Check if linker supports -pie option
24567         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24568                 gcc_cv_ld_pie=yes
24569         fi
24570 fi
24571 if test x"$gcc_cv_ld_pie" = xyes; then
24572
24573 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24574
24575 fi
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24577 $as_echo "$gcc_cv_ld_pie" >&6; }
24578
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24580 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24581 gcc_cv_ld_eh_gc_sections=no
24582 if test $in_tree_ld = yes ; then
24583   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 \
24584      && test $in_tree_ld_is_elf = yes; then
24585     gcc_cv_ld_eh_gc_sections=yes
24586   fi
24587 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24588   cat > conftest.s <<EOF
24589         .section        .text
24590 .globl _start
24591         .type _start, @function
24592 _start:
24593         .long foo
24594         .size _start, .-_start
24595         .section        .text.foo,"ax",@progbits
24596         .type foo, @function
24597 foo:
24598         .long 0
24599         .size foo, .-foo
24600         .section        .gcc_except_table.foo,"a",@progbits
24601 .L0:
24602         .long 0
24603         .section        .eh_frame,"a",@progbits
24604         .long .L0
24605 EOF
24606   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24607     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24608          | grep "gc-sections option ignored" > /dev/null; then
24609       gcc_cv_ld_eh_gc_sections=no
24610     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24611       gcc_cv_ld_eh_gc_sections=yes
24612       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24613       if test x$gcc_cv_as_comdat_group != xyes; then
24614         gcc_cv_ld_eh_gc_sections=no
24615         cat > conftest.s <<EOF
24616         .section        .text
24617 .globl _start
24618         .type _start, @function
24619 _start:
24620         .long foo
24621         .size _start, .-_start
24622         .section        .gnu.linkonce.t.foo,"ax",@progbits
24623         .type foo, @function
24624 foo:
24625         .long 0
24626         .size foo, .-foo
24627         .section        .gcc_except_table.foo,"a",@progbits
24628 .L0:
24629         .long 0
24630         .section        .eh_frame,"a",@progbits
24631         .long .L0
24632 EOF
24633         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24634           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24635                | grep "gc-sections option ignored" > /dev/null; then
24636             gcc_cv_ld_eh_gc_sections=no
24637           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24638             gcc_cv_ld_eh_gc_sections=yes
24639           fi
24640         fi
24641       fi
24642     fi
24643   fi
24644   rm -f conftest.s conftest.o conftest
24645 fi
24646 case "$target" in
24647   hppa*-*-linux*)
24648     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24649     gcc_cv_ld_eh_gc_sections=no
24650     ;;
24651 esac
24652 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24653
24654 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24655
24656 fi
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24658 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24659
24660 # --------
24661 # UNSORTED
24662 # --------
24663
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24665 $as_echo_n "checking linker --as-needed support... " >&6; }
24666 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24667   $as_echo_n "(cached) " >&6
24668 else
24669   gcc_cv_ld_as_needed=no
24670 if test $in_tree_ld = yes ; then
24671   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 \
24672      && test $in_tree_ld_is_elf = yes; then
24673     gcc_cv_ld_as_needed=yes
24674   fi
24675 elif test x$gcc_cv_ld != x; then
24676         # Check if linker supports --as-needed and --no-as-needed options
24677         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24678                 gcc_cv_ld_as_needed=yes
24679         fi
24680 fi
24681
24682 fi
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24684 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24685 if test x"$gcc_cv_ld_as_needed" = xyes; then
24686
24687 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24688
24689 fi
24690
24691 case "$target:$tm_file" in
24692   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24694 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24695 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24696   $as_echo_n "(cached) " >&6
24697 else
24698   gcc_cv_ld_no_dot_syms=no
24699     if test $in_tree_ld = yes ; then
24700       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
24701         gcc_cv_ld_no_dot_syms=yes
24702       fi
24703     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24704       cat > conftest1.s <<EOF
24705         .text
24706         bl .foo
24707 EOF
24708       cat > conftest2.s <<EOF
24709         .section ".opd","aw"
24710         .align 3
24711         .globl foo
24712         .type foo,@function
24713 foo:
24714         .quad .LEfoo,.TOC.@tocbase,0
24715         .text
24716 .LEfoo:
24717         blr
24718         .size foo,.-.LEfoo
24719 EOF
24720       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24721          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24722          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24723         gcc_cv_ld_no_dot_syms=yes
24724       fi
24725       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24726     fi
24727
24728 fi
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24730 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24731     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24732
24733 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24734
24735     fi
24736     ;;
24737 esac
24738
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24740 $as_echo_n "checking linker --build-id support... " >&6; }
24741 if test "${gcc_cv_ld_buildid+set}" = set; then :
24742   $as_echo_n "(cached) " >&6
24743 else
24744   gcc_cv_ld_buildid=no
24745   if test $in_tree_ld = yes ; then
24746     if test "$gcc_cv_gld_major_version" -eq 2 -a \
24747        "$gcc_cv_gld_minor_version" -ge 18 -o \
24748        "$gcc_cv_gld_major_version" -gt 2 \
24749        && test $in_tree_ld_is_elf = yes; then
24750       gcc_cv_ld_buildid=yes
24751     fi
24752   elif test x$gcc_cv_ld != x; then
24753     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24754       gcc_cv_ld_buildid=yes
24755     fi
24756   fi
24757 fi
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24759 $as_echo "$gcc_cv_ld_buildid" >&6; }
24760 if test x"$gcc_cv_ld_buildid" = xyes; then
24761
24762 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24763
24764 fi
24765
24766 # Check whether --enable-linker-build-id was given.
24767 if test "${enable_linker_build_id+set}" = set; then :
24768   enableval=$enable_linker_build_id;
24769 else
24770   enable_linker_build_id=no
24771 fi
24772
24773
24774 if test x"$enable_linker_build_id" = xyes; then
24775   if test x"$gcc_cv_ld_buildid" = xyes; then
24776
24777 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24778
24779   else
24780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24781 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24782   fi
24783 fi
24784
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24786 $as_echo_n "checking linker --sysroot support... " >&6; }
24787 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24788   $as_echo_n "(cached) " >&6
24789 else
24790   gcc_cv_ld_sysroot=no
24791   if test $in_tree_ld = yes ; then
24792       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
24793         gcc_cv_ld_sysroot=yes
24794       fi
24795   elif test x$gcc_cv_ld != x; then
24796     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24797       gcc_cv_ld_sysroot=yes
24798     fi
24799   fi
24800 fi
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24802 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24803 if test x"$gcc_cv_ld_sysroot" = xyes; then
24804
24805 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24806
24807 fi
24808
24809 if test x$with_sysroot = x && test x$host = x$target \
24810    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24811    && test "$prefix" != "NONE"; then
24812
24813 cat >>confdefs.h <<_ACEOF
24814 #define PREFIX_INCLUDE_DIR "$prefix/include"
24815 _ACEOF
24816
24817 fi
24818
24819 # Test for stack protector support in target C library.
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24821 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24822 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24823   $as_echo_n "(cached) " >&6
24824 else
24825   gcc_cv_libc_provides_ssp=no
24826     case "$target" in
24827        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24828       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24829         if test "x$with_headers" != x; then
24830           glibc_header_dir=$with_headers
24831         elif test "x$with_sysroot" = x; then
24832           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24833         elif test "x$with_build_sysroot" != "x"; then
24834           glibc_header_dir="${with_build_sysroot}/usr/include"
24835         elif test "x$with_sysroot" = xyes; then
24836           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24837         else
24838           glibc_header_dir="${with_sysroot}/usr/include"
24839         fi
24840       else
24841         glibc_header_dir=/usr/include
24842       fi
24843       # glibc 2.4 and later provides __stack_chk_fail and
24844       # either __stack_chk_guard, or TLS access to stack guard canary.
24845       if test -f $glibc_header_dir/features.h \
24846          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
24847             $glibc_header_dir/features.h > /dev/null; then
24848         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
24849            $glibc_header_dir/features.h > /dev/null; then
24850           gcc_cv_libc_provides_ssp=yes
24851         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
24852              $glibc_header_dir/features.h > /dev/null \
24853              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
24854              $glibc_header_dir/features.h > /dev/null; then
24855           gcc_cv_libc_provides_ssp=yes
24856         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
24857              $glibc_header_dir/features.h > /dev/null && \
24858              test -f $glibc_header_dir/bits/uClibc_config.h && \
24859              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
24860              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24861           gcc_cv_libc_provides_ssp=yes
24862         fi
24863       fi
24864         ;;
24865        *-*-gnu*)
24866          # Avoid complicated tests (see
24867          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24868          # simply assert that glibc does provide this, which is true for all
24869          # realistically usable GNU/Hurd configurations.
24870          gcc_cv_libc_provides_ssp=yes;;
24871        *-*-darwin* | *-*-freebsd*)
24872          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24873 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24874   gcc_cv_libc_provides_ssp=yes
24875 else
24876   echo "no __stack_chk_fail on this target"
24877 fi
24878
24879         ;;
24880   *) gcc_cv_libc_provides_ssp=no ;;
24881     esac
24882 fi
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24884 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24885
24886 if test x$gcc_cv_libc_provides_ssp = xyes; then
24887
24888 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24889
24890 fi
24891
24892 # Check if TFmode long double should be used by default or not.
24893 # Some glibc targets used DFmode long double, but with glibc 2.4
24894 # and later they can use TFmode.
24895 case "$target" in
24896   powerpc*-*-linux* | \
24897   powerpc*-*-gnu* | \
24898   sparc*-*-linux* | \
24899   s390*-*-linux* | \
24900   alpha*-*-linux*)
24901
24902 # Check whether --with-long-double-128 was given.
24903 if test "${with_long_double_128+set}" = set; then :
24904   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24905 else
24906   gcc_cv_target_ldbl128=no
24907       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24908         if test "x$with_sysroot" = x; then
24909           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24910         elif test "x$with_build_sysroot" != "x"; then
24911           glibc_header_dir="${with_build_sysroot}/usr/include"
24912         elif test "x$with_sysroot" = xyes; then
24913           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24914         else
24915           glibc_header_dir="${with_sysroot}/usr/include"
24916         fi
24917       else
24918         glibc_header_dir=/usr/include
24919       fi
24920       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24921         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24922       && gcc_cv_target_ldbl128=yes
24923
24924 fi
24925
24926     ;;
24927 esac
24928 if test x$gcc_cv_target_ldbl128 = xyes; then
24929
24930 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24931
24932 fi
24933
24934 # Find out what GC implementation we want, or may, use.
24935
24936 # Check whether --with-gc was given.
24937 if test "${with_gc+set}" = set; then :
24938   withval=$with_gc; case "$withval" in
24939   page)
24940     GGC=ggc-$withval
24941     ;;
24942   zone)
24943     GGC=ggc-$withval
24944
24945 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24946
24947     ;;
24948   *)
24949     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24950     ;;
24951 esac
24952 else
24953   GGC=ggc-page
24954 fi
24955
24956
24957 echo "Using $GGC for garbage collection."
24958
24959 # Libraries to use on the host.  This will normally be set by the top
24960 # level Makefile.  Here we simply capture the value for our Makefile.
24961 if test -z "${HOST_LIBS+set}"; then
24962   HOST_LIBS=
24963 fi
24964
24965
24966 # Use the system's zlib library.
24967 zlibdir=-L../zlib
24968 zlibinc="-I\$(srcdir)/../zlib"
24969
24970 # Check whether --with-system-zlib was given.
24971 if test "${with_system_zlib+set}" = set; then :
24972   withval=$with_system_zlib; zlibdir=
24973 zlibinc=
24974
24975 fi
24976
24977
24978
24979
24980
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24982 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24983     # Check whether --enable-maintainer-mode was given.
24984 if test "${enable_maintainer_mode+set}" = set; then :
24985   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24986 else
24987   maintainer_mode=no
24988 fi
24989
24990
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24992 $as_echo "$maintainer_mode" >&6; }
24993
24994 if test "$maintainer_mode" = "yes"; then
24995   MAINT=''
24996 else
24997   MAINT='#'
24998 fi
24999
25000 # --------------
25001 # Language hooks
25002 # --------------
25003
25004 # Make empty files to contain the specs and options for each language.
25005 # Then add #include lines to for a compiler that has specs and/or options.
25006
25007 subdirs=
25008 lang_opt_files=
25009 lang_specs_files=
25010 lang_tree_files=
25011 # These (without "all_") are set in each config-lang.in.
25012 # `language' must be a single word so is spelled singularly.
25013 all_languages=
25014 all_compilers=
25015 all_outputs='Makefile gccbug'
25016 # List of language makefile fragments.
25017 all_lang_makefrags=
25018 # List of language subdirectory makefiles.  Deprecated.
25019 all_lang_makefiles=
25020 # Additional files for gengtype
25021 all_gtfiles="$target_gtfiles"
25022
25023 # These are the languages that are set in --enable-languages,
25024 # and are available in the GCC tree.
25025 all_selected_languages=
25026
25027 # Add the language fragments.
25028 # Languages are added via two mechanisms.  Some information must be
25029 # recorded in makefile variables, these are defined in config-lang.in.
25030 # We accumulate them and plug them into the main Makefile.
25031 # The other mechanism is a set of hooks for each of the main targets
25032 # like `clean', `install', etc.
25033
25034 language_hooks="Make-hooks"
25035
25036 for lang in ${srcdir}/*/config-lang.in
25037 do
25038         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25039
25040         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25041         if test "x$lang_alias" = x
25042         then
25043               echo "$lang doesn't set \$language." 1>&2
25044               exit 1
25045         fi
25046         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25047         subdirs="$subdirs $subdir"
25048
25049         # $gcc_subdir is where the gcc integration files are to be found
25050         # for a language, both for internal compiler purposes (compiler
25051         # sources implementing front-end to GCC tree converters), and for
25052         # build infrastructure purposes (Make-lang.in, etc.)
25053         #
25054         # This will be <subdir> (relative to $srcdir) if a line like
25055         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25056         # is found in <langdir>/config-lang.in, and will remain <langdir>
25057         # otherwise.
25058         #
25059         # Except for the language alias (fetched above), the regular
25060         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25061         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25062         # only this and the language alias.
25063
25064         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25065         if [ "$gcc_subdir" = "" ]; then
25066            gcc_subdir="$subdir"
25067         fi
25068
25069         case ",$enable_languages," in
25070         *,$lang_alias,*)
25071             all_selected_languages="$all_selected_languages $lang_alias"
25072             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25073                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25074             fi
25075             ;;
25076         esac
25077
25078         language=
25079         boot_language=
25080         compilers=
25081         outputs=
25082         gtfiles=
25083         subdir_requires=
25084         . ${srcdir}/$gcc_subdir/config-lang.in
25085         if test "x$language" = x
25086         then
25087                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25088                 exit 1
25089         fi
25090
25091         ok=:
25092         case ",$enable_languages," in
25093                 *,$lang_alias,*) ;;
25094                 *)
25095                         for i in $subdir_requires; do
25096                                 test -f "${srcdir}/$i/config-lang.in" && continue
25097                                 ok=false
25098                                 break
25099                         done
25100                 ;;
25101         esac
25102         $ok || continue
25103
25104         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25105         if test -f $srcdir/$gcc_subdir/lang.opt; then
25106             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25107         fi
25108         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25109             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25110         fi
25111         if test -f ${srcdir}/$gcc_subdir/Makefile.in
25112                 then all_lang_makefiles="$gcc_subdir/Makefile"
25113         fi
25114         all_languages="$all_languages $language"
25115         all_compilers="$all_compilers $compilers"
25116         all_outputs="$all_outputs $outputs"
25117         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25118         case ",$enable_languages," in
25119                 *,lto,*)
25120
25121 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25122
25123                     enable_lto=yes
25124
25125                     # LTO needs to speak the platform's object file format, and has a
25126                     # number of implementations of the required binary file access APIs.
25127                     # ELF is the most common, and default.  We only link libelf if ELF
25128                     # is indeed the selected format.
25129                     LTO_BINARY_READER=${lto_binary_reader}
25130                     LTO_USE_LIBELF=-lelf
25131                     if test "x$lto_binary_reader" != "xlto-elf" ; then
25132                       LTO_USE_LIBELF=
25133                     fi
25134
25135
25136                     ;;
25137                 *) ;;
25138         esac
25139 done
25140
25141 # Pick up gtfiles for c
25142 gtfiles=
25143 . ${srcdir}/c-config-lang.in
25144 all_gtfiles="$all_gtfiles [c] $gtfiles"
25145
25146 check_languages=
25147 for language in $all_selected_languages
25148 do
25149         check_languages="$check_languages check-$language"
25150 done
25151
25152 # We link each language in with a set of hooks, reached indirectly via
25153 # lang.${target}.  Only do so for selected languages.
25154
25155 rm -f Make-hooks
25156 touch Make-hooks
25157 target_list="all.cross start.encap rest.encap tags \
25158         install-common install-man install-info install-pdf install-html dvi \
25159         pdf html uninstall info man srcextra srcman srcinfo \
25160         mostlyclean clean distclean maintainer-clean install-plugin"
25161
25162 for t in $target_list
25163 do
25164         x=
25165         for lang in $all_selected_languages
25166         do
25167                 x="$x $lang.$t"
25168         done
25169         echo "lang.$t: $x" >> Make-hooks
25170 done
25171
25172 # --------
25173 # UNSORTED
25174 # --------
25175
25176 # Create .gdbinit.
25177
25178 echo "dir ." > .gdbinit
25179 echo "dir ${srcdir}" >> .gdbinit
25180 if test x$gdb_needs_out_file_path = xyes
25181 then
25182         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25183 fi
25184 if test "x$subdirs" != x; then
25185         for s in $subdirs
25186         do
25187                 echo "dir ${srcdir}/$s" >> .gdbinit
25188         done
25189 fi
25190 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25191
25192 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25193
25194
25195
25196 # Find a directory in which to install a shared libgcc.
25197
25198 # Check whether --enable-version-specific-runtime-libs was given.
25199 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25200   enableval=$enable_version_specific_runtime_libs;
25201 fi
25202
25203
25204
25205 # Check whether --with-slibdir was given.
25206 if test "${with_slibdir+set}" = set; then :
25207   withval=$with_slibdir; slibdir="$with_slibdir"
25208 else
25209   if test "${enable_version_specific_runtime_libs+set}" = set; then
25210   slibdir='$(libsubdir)'
25211 elif test "$host" != "$target"; then
25212   slibdir='$(build_tooldir)/lib'
25213 else
25214   slibdir='$(libdir)'
25215 fi
25216 fi
25217
25218
25219
25220 # Substitute configuration variables
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282 # Echo link setup.
25283 if test x${build} = x${host} ; then
25284   if test x${host} = x${target} ; then
25285     echo "Links are now set up to build a native compiler for ${target}." 1>&2
25286   else
25287     echo "Links are now set up to build a cross-compiler" 1>&2
25288     echo " from ${host} to ${target}." 1>&2
25289   fi
25290 else
25291   if test x${host} = x${target} ; then
25292     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25293     echo " for ${target}." 1>&2
25294   else
25295     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25296     echo " from ${host} to ${target}." 1>&2
25297   fi
25298 fi
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308 if test "x${CLOOGLIBS}" != "x" ; then
25309
25310 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25311
25312 fi
25313
25314
25315
25316 if test "x${LIBELFLIBS}" != "x" ; then
25317
25318 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25319
25320 fi
25321
25322 # Check for plugin support
25323 # Check whether --enable-plugin was given.
25324 if test "${enable_plugin+set}" = set; then :
25325   enableval=$enable_plugin; enable_plugin=$enableval
25326 else
25327   enable_plugin=yes; default_plugin=yes
25328 fi
25329
25330
25331 pluginlibs=
25332 if test x"$enable_plugin" = x"yes"; then
25333
25334   case "${host}" in
25335     *-*-darwin*)
25336       export_sym_check="$gcc_cv_nm -g"
25337     ;;
25338     *)
25339       export_sym_check="$gcc_cv_objdump -T"
25340     ;;
25341   esac
25342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25343 $as_echo_n "checking for exported symbols... " >&6; }
25344   echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25345   ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25346   if $export_sym_check conftest | grep foobar > /dev/null; then
25347     : # No need to use a flag
25348   else
25349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25350 $as_echo_n "checking for -rdynamic... " >&6; }
25351     ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25352     if $export_sym_check conftest | grep foobar > /dev/null; then
25353       plugin_rdynamic=yes
25354       pluginlibs="-rdynamic"
25355     else
25356       plugin_rdynamic=no
25357       enable_plugin=no
25358     fi
25359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25360 $as_echo "$plugin_rdynamic" >&6; }
25361   fi
25362
25363   # Check -ldl
25364   saved_LIBS="$LIBS"
25365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25366 $as_echo_n "checking for library containing dlopen... " >&6; }
25367 if test "${ac_cv_search_dlopen+set}" = set; then :
25368   $as_echo_n "(cached) " >&6
25369 else
25370   ac_func_search_save_LIBS=$LIBS
25371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h.  */
25373
25374 /* Override any GCC internal prototype to avoid an error.
25375    Use char because int might match the return type of a GCC
25376    builtin and then its argument prototype would still apply.  */
25377 #ifdef __cplusplus
25378 extern "C"
25379 #endif
25380 char dlopen ();
25381 int
25382 main ()
25383 {
25384 return dlopen ();
25385   ;
25386   return 0;
25387 }
25388 _ACEOF
25389 for ac_lib in '' dl; do
25390   if test -z "$ac_lib"; then
25391     ac_res="none required"
25392   else
25393     ac_res=-l$ac_lib
25394     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25395   fi
25396   if ac_fn_c_try_link "$LINENO"; then :
25397   ac_cv_search_dlopen=$ac_res
25398 fi
25399 rm -f core conftest.err conftest.$ac_objext \
25400     conftest$ac_exeext
25401   if test "${ac_cv_search_dlopen+set}" = set; then :
25402   break
25403 fi
25404 done
25405 if test "${ac_cv_search_dlopen+set}" = set; then :
25406
25407 else
25408   ac_cv_search_dlopen=no
25409 fi
25410 rm conftest.$ac_ext
25411 LIBS=$ac_func_search_save_LIBS
25412 fi
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25414 $as_echo "$ac_cv_search_dlopen" >&6; }
25415 ac_res=$ac_cv_search_dlopen
25416 if test "$ac_res" != no; then :
25417   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25418
25419 fi
25420
25421   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25422     pluginlibs="$pluginlibs -ldl"
25423   fi
25424   LIBS="$saved_LIBS"
25425
25426   # Check that we can build shared objects with -fPIC -shared
25427   saved_LDFLAGS="$LDFLAGS"
25428   case "${host}" in
25429     *-*-darwin*)
25430       LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25431     ;;
25432     *)
25433       LDFLAGS="$LDFLAGS -fPIC -shared"
25434     ;;
25435   esac
25436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25437 $as_echo_n "checking for -fPIC -shared... " >&6; }
25438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25439 /* end confdefs.h.  */
25440 extern int X;
25441 int
25442 main ()
25443 {
25444 return X == 0;
25445   ;
25446   return 0;
25447 }
25448 _ACEOF
25449 if ac_fn_c_try_link "$LINENO"; then :
25450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25451 $as_echo "yes" >&6; }; have_pic_shared=yes
25452 else
25453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25454 $as_echo "no" >&6; }; have_pic_shared=no
25455 fi
25456 rm -f core conftest.err conftest.$ac_objext \
25457     conftest$ac_exeext conftest.$ac_ext
25458   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25459     pluginlibs=
25460     enable_plugin=no
25461   fi
25462   LDFLAGS="$saved_LDFLAGS"
25463
25464   # If plugin support had been requested but not available, fail.
25465   if test x"$enable_plugin" = x"no" ; then
25466     if test x"$default_plugin" != x"yes"; then
25467       as_fn_error "
25468 Building GCC with plugin support requires a host that supports
25469 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25470     fi
25471   fi
25472 fi
25473
25474
25475
25476 if test x"$enable_plugin" = x"yes"; then
25477
25478 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25479
25480 fi
25481
25482 # Configure the subdirectories
25483 # AC_CONFIG_SUBDIRS($subdirs)
25484
25485 # Create the Makefile
25486 # and configure language subdirectories
25487 ac_config_files="$ac_config_files $all_outputs"
25488
25489
25490 ac_config_commands="$ac_config_commands default"
25491
25492 cat >confcache <<\_ACEOF
25493 # This file is a shell script that caches the results of configure
25494 # tests run on this system so they can be shared between configure
25495 # scripts and configure runs, see configure's option --config-cache.
25496 # It is not useful on other systems.  If it contains results you don't
25497 # want to keep, you may remove or edit it.
25498 #
25499 # config.status only pays attention to the cache file if you give it
25500 # the --recheck option to rerun configure.
25501 #
25502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25504 # following values.
25505
25506 _ACEOF
25507
25508 # The following way of writing the cache mishandles newlines in values,
25509 # but we know of no workaround that is simple, portable, and efficient.
25510 # So, we kill variables containing newlines.
25511 # Ultrix sh set writes to stderr and can't be redirected directly,
25512 # and sets the high bit in the cache file unless we assign to the vars.
25513 (
25514   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25515     eval ac_val=\$$ac_var
25516     case $ac_val in #(
25517     *${as_nl}*)
25518       case $ac_var in #(
25519       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25520 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25521       esac
25522       case $ac_var in #(
25523       _ | IFS | as_nl) ;; #(
25524       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25525       *) { eval $ac_var=; unset $ac_var;} ;;
25526       esac ;;
25527     esac
25528   done
25529
25530   (set) 2>&1 |
25531     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25532     *${as_nl}ac_space=\ *)
25533       # `set' does not quote correctly, so add quotes: double-quote
25534       # substitution turns \\\\ into \\, and sed turns \\ into \.
25535       sed -n \
25536         "s/'/'\\\\''/g;
25537           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25538       ;; #(
25539     *)
25540       # `set' quotes correctly as required by POSIX, so do not add quotes.
25541       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25542       ;;
25543     esac |
25544     sort
25545 ) |
25546   sed '
25547      /^ac_cv_env_/b end
25548      t clear
25549      :clear
25550      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25551      t end
25552      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25553      :end' >>confcache
25554 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25555   if test -w "$cache_file"; then
25556     test "x$cache_file" != "x/dev/null" &&
25557       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25558 $as_echo "$as_me: updating cache $cache_file" >&6;}
25559     cat confcache >$cache_file
25560   else
25561     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25562 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25563   fi
25564 fi
25565 rm -f confcache
25566
25567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25568 # Let make expand exec_prefix.
25569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25570
25571 DEFS=-DHAVE_CONFIG_H
25572
25573 ac_libobjs=
25574 ac_ltlibobjs=
25575 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25576   # 1. Remove the extension, and $U if already installed.
25577   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25578   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25579   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25580   #    will be set to the directory where LIBOBJS objects are built.
25581   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25582   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25583 done
25584 LIBOBJS=$ac_libobjs
25585
25586 LTLIBOBJS=$ac_ltlibobjs
25587
25588
25589
25590
25591 : ${CONFIG_STATUS=./config.status}
25592 ac_write_fail=0
25593 ac_clean_files_save=$ac_clean_files
25594 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25596 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25597 as_write_fail=0
25598 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25599 #! $SHELL
25600 # Generated by $as_me.
25601 # Run this file to recreate the current configuration.
25602 # Compiler output produced by configure, useful for debugging
25603 # configure, is in config.log if it exists.
25604
25605 debug=false
25606 ac_cs_recheck=false
25607 ac_cs_silent=false
25608
25609 SHELL=\${CONFIG_SHELL-$SHELL}
25610 export SHELL
25611 _ASEOF
25612 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25613 ## -------------------- ##
25614 ## M4sh Initialization. ##
25615 ## -------------------- ##
25616
25617 # Be more Bourne compatible
25618 DUALCASE=1; export DUALCASE # for MKS sh
25619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25620   emulate sh
25621   NULLCMD=:
25622   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25623   # is contrary to our usage.  Disable this feature.
25624   alias -g '${1+"$@"}'='"$@"'
25625   setopt NO_GLOB_SUBST
25626 else
25627   case `(set -o) 2>/dev/null` in #(
25628   *posix*) :
25629     set -o posix ;; #(
25630   *) :
25631      ;;
25632 esac
25633 fi
25634
25635
25636 as_nl='
25637 '
25638 export as_nl
25639 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25640 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25641 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25643 # Prefer a ksh shell builtin over an external printf program on Solaris,
25644 # but without wasting forks for bash or zsh.
25645 if test -z "$BASH_VERSION$ZSH_VERSION" \
25646     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25647   as_echo='print -r --'
25648   as_echo_n='print -rn --'
25649 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25650   as_echo='printf %s\n'
25651   as_echo_n='printf %s'
25652 else
25653   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25654     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25655     as_echo_n='/usr/ucb/echo -n'
25656   else
25657     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25658     as_echo_n_body='eval
25659       arg=$1;
25660       case $arg in #(
25661       *"$as_nl"*)
25662         expr "X$arg" : "X\\(.*\\)$as_nl";
25663         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25664       esac;
25665       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25666     '
25667     export as_echo_n_body
25668     as_echo_n='sh -c $as_echo_n_body as_echo'
25669   fi
25670   export as_echo_body
25671   as_echo='sh -c $as_echo_body as_echo'
25672 fi
25673
25674 # The user is always right.
25675 if test "${PATH_SEPARATOR+set}" != set; then
25676   PATH_SEPARATOR=:
25677   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25678     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25679       PATH_SEPARATOR=';'
25680   }
25681 fi
25682
25683
25684 # IFS
25685 # We need space, tab and new line, in precisely that order.  Quoting is
25686 # there to prevent editors from complaining about space-tab.
25687 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25688 # splitting by setting IFS to empty value.)
25689 IFS=" ""        $as_nl"
25690
25691 # Find who we are.  Look in the path if we contain no directory separator.
25692 case $0 in #((
25693   *[\\/]* ) as_myself=$0 ;;
25694   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25695 for as_dir in $PATH
25696 do
25697   IFS=$as_save_IFS
25698   test -z "$as_dir" && as_dir=.
25699     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25700   done
25701 IFS=$as_save_IFS
25702
25703      ;;
25704 esac
25705 # We did not find ourselves, most probably we were run as `sh COMMAND'
25706 # in which case we are not to be found in the path.
25707 if test "x$as_myself" = x; then
25708   as_myself=$0
25709 fi
25710 if test ! -f "$as_myself"; then
25711   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25712   exit 1
25713 fi
25714
25715 # Unset variables that we do not need and which cause bugs (e.g. in
25716 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25717 # suppresses any "Segmentation fault" message there.  '((' could
25718 # trigger a bug in pdksh 5.2.14.
25719 for as_var in BASH_ENV ENV MAIL MAILPATH
25720 do eval test x\${$as_var+set} = xset \
25721   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25722 done
25723 PS1='$ '
25724 PS2='> '
25725 PS4='+ '
25726
25727 # NLS nuisances.
25728 LC_ALL=C
25729 export LC_ALL
25730 LANGUAGE=C
25731 export LANGUAGE
25732
25733 # CDPATH.
25734 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25735
25736
25737 # as_fn_error ERROR [LINENO LOG_FD]
25738 # ---------------------------------
25739 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25740 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25741 # script with status $?, using 1 if that was 0.
25742 as_fn_error ()
25743 {
25744   as_status=$?; test $as_status -eq 0 && as_status=1
25745   if test "$3"; then
25746     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25747     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25748   fi
25749   $as_echo "$as_me: error: $1" >&2
25750   as_fn_exit $as_status
25751 } # as_fn_error
25752
25753
25754 # as_fn_set_status STATUS
25755 # -----------------------
25756 # Set $? to STATUS, without forking.
25757 as_fn_set_status ()
25758 {
25759   return $1
25760 } # as_fn_set_status
25761
25762 # as_fn_exit STATUS
25763 # -----------------
25764 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25765 as_fn_exit ()
25766 {
25767   set +e
25768   as_fn_set_status $1
25769   exit $1
25770 } # as_fn_exit
25771
25772 # as_fn_unset VAR
25773 # ---------------
25774 # Portably unset VAR.
25775 as_fn_unset ()
25776 {
25777   { eval $1=; unset $1;}
25778 }
25779 as_unset=as_fn_unset
25780 # as_fn_append VAR VALUE
25781 # ----------------------
25782 # Append the text in VALUE to the end of the definition contained in VAR. Take
25783 # advantage of any shell optimizations that allow amortized linear growth over
25784 # repeated appends, instead of the typical quadratic growth present in naive
25785 # implementations.
25786 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25787   eval 'as_fn_append ()
25788   {
25789     eval $1+=\$2
25790   }'
25791 else
25792   as_fn_append ()
25793   {
25794     eval $1=\$$1\$2
25795   }
25796 fi # as_fn_append
25797
25798 # as_fn_arith ARG...
25799 # ------------------
25800 # Perform arithmetic evaluation on the ARGs, and store the result in the
25801 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25802 # must be portable across $(()) and expr.
25803 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25804   eval 'as_fn_arith ()
25805   {
25806     as_val=$(( $* ))
25807   }'
25808 else
25809   as_fn_arith ()
25810   {
25811     as_val=`expr "$@" || test $? -eq 1`
25812   }
25813 fi # as_fn_arith
25814
25815
25816 if expr a : '\(a\)' >/dev/null 2>&1 &&
25817    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25818   as_expr=expr
25819 else
25820   as_expr=false
25821 fi
25822
25823 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25824   as_basename=basename
25825 else
25826   as_basename=false
25827 fi
25828
25829 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25830   as_dirname=dirname
25831 else
25832   as_dirname=false
25833 fi
25834
25835 as_me=`$as_basename -- "$0" ||
25836 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25837          X"$0" : 'X\(//\)$' \| \
25838          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25839 $as_echo X/"$0" |
25840     sed '/^.*\/\([^/][^/]*\)\/*$/{
25841             s//\1/
25842             q
25843           }
25844           /^X\/\(\/\/\)$/{
25845             s//\1/
25846             q
25847           }
25848           /^X\/\(\/\).*/{
25849             s//\1/
25850             q
25851           }
25852           s/.*/./; q'`
25853
25854 # Avoid depending upon Character Ranges.
25855 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25856 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25857 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25858 as_cr_digits='0123456789'
25859 as_cr_alnum=$as_cr_Letters$as_cr_digits
25860
25861 ECHO_C= ECHO_N= ECHO_T=
25862 case `echo -n x` in #(((((
25863 -n*)
25864   case `echo 'xy\c'` in
25865   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25866   xy)  ECHO_C='\c';;
25867   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25868        ECHO_T=' ';;
25869   esac;;
25870 *)
25871   ECHO_N='-n';;
25872 esac
25873
25874 rm -f conf$$ conf$$.exe conf$$.file
25875 if test -d conf$$.dir; then
25876   rm -f conf$$.dir/conf$$.file
25877 else
25878   rm -f conf$$.dir
25879   mkdir conf$$.dir 2>/dev/null
25880 fi
25881 if (echo >conf$$.file) 2>/dev/null; then
25882   if ln -s conf$$.file conf$$ 2>/dev/null; then
25883     as_ln_s='ln -s'
25884     # ... but there are two gotchas:
25885     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25886     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25887     # In both cases, we have to default to `cp -p'.
25888     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25889       as_ln_s='cp -p'
25890   elif ln conf$$.file conf$$ 2>/dev/null; then
25891     as_ln_s=ln
25892   else
25893     as_ln_s='cp -p'
25894   fi
25895 else
25896   as_ln_s='cp -p'
25897 fi
25898 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25899 rmdir conf$$.dir 2>/dev/null
25900
25901
25902 # as_fn_mkdir_p
25903 # -------------
25904 # Create "$as_dir" as a directory, including parents if necessary.
25905 as_fn_mkdir_p ()
25906 {
25907
25908   case $as_dir in #(
25909   -*) as_dir=./$as_dir;;
25910   esac
25911   test -d "$as_dir" || eval $as_mkdir_p || {
25912     as_dirs=
25913     while :; do
25914       case $as_dir in #(
25915       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25916       *) as_qdir=$as_dir;;
25917       esac
25918       as_dirs="'$as_qdir' $as_dirs"
25919       as_dir=`$as_dirname -- "$as_dir" ||
25920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25921          X"$as_dir" : 'X\(//\)[^/]' \| \
25922          X"$as_dir" : 'X\(//\)$' \| \
25923          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25924 $as_echo X"$as_dir" |
25925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25926             s//\1/
25927             q
25928           }
25929           /^X\(\/\/\)[^/].*/{
25930             s//\1/
25931             q
25932           }
25933           /^X\(\/\/\)$/{
25934             s//\1/
25935             q
25936           }
25937           /^X\(\/\).*/{
25938             s//\1/
25939             q
25940           }
25941           s/.*/./; q'`
25942       test -d "$as_dir" && break
25943     done
25944     test -z "$as_dirs" || eval "mkdir $as_dirs"
25945   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25946
25947
25948 } # as_fn_mkdir_p
25949 if mkdir -p . 2>/dev/null; then
25950   as_mkdir_p='mkdir -p "$as_dir"'
25951 else
25952   test -d ./-p && rmdir ./-p
25953   as_mkdir_p=false
25954 fi
25955
25956 if test -x / >/dev/null 2>&1; then
25957   as_test_x='test -x'
25958 else
25959   if ls -dL / >/dev/null 2>&1; then
25960     as_ls_L_option=L
25961   else
25962     as_ls_L_option=
25963   fi
25964   as_test_x='
25965     eval sh -c '\''
25966       if test -d "$1"; then
25967         test -d "$1/.";
25968       else
25969         case $1 in #(
25970         -*)set "./$1";;
25971         esac;
25972         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25973         ???[sx]*):;;*)false;;esac;fi
25974     '\'' sh
25975   '
25976 fi
25977 as_executable_p=$as_test_x
25978
25979 # Sed expression to map a string onto a valid CPP name.
25980 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25981
25982 # Sed expression to map a string onto a valid variable name.
25983 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25984
25985
25986 exec 6>&1
25987 ## ----------------------------------- ##
25988 ## Main body of $CONFIG_STATUS script. ##
25989 ## ----------------------------------- ##
25990 _ASEOF
25991 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25992
25993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25994 # Save the log message, to keep $0 and so on meaningful, and to
25995 # report actual input values of CONFIG_FILES etc. instead of their
25996 # values after options handling.
25997 ac_log="
25998 This file was extended by $as_me, which was
25999 generated by GNU Autoconf 2.64.  Invocation command line was
26000
26001   CONFIG_FILES    = $CONFIG_FILES
26002   CONFIG_HEADERS  = $CONFIG_HEADERS
26003   CONFIG_LINKS    = $CONFIG_LINKS
26004   CONFIG_COMMANDS = $CONFIG_COMMANDS
26005   $ $0 $@
26006
26007 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26008 "
26009
26010 _ACEOF
26011
26012 case $ac_config_files in *"
26013 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26014 esac
26015
26016 case $ac_config_headers in *"
26017 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26018 esac
26019
26020
26021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26022 # Files that config.status was made for.
26023 config_files="$ac_config_files"
26024 config_headers="$ac_config_headers"
26025 config_commands="$ac_config_commands"
26026
26027 _ACEOF
26028
26029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26030 ac_cs_usage="\
26031 \`$as_me' instantiates files and other configuration actions
26032 from templates according to the current configuration.  Unless the files
26033 and actions are specified as TAGs, all are instantiated by default.
26034
26035 Usage: $0 [OPTION]... [TAG]...
26036
26037   -h, --help       print this help, then exit
26038   -V, --version    print version number and configuration settings, then exit
26039   -q, --quiet, --silent
26040                    do not print progress messages
26041   -d, --debug      don't remove temporary files
26042       --recheck    update $as_me by reconfiguring in the same conditions
26043       --file=FILE[:TEMPLATE]
26044                    instantiate the configuration file FILE
26045       --header=FILE[:TEMPLATE]
26046                    instantiate the configuration header FILE
26047
26048 Configuration files:
26049 $config_files
26050
26051 Configuration headers:
26052 $config_headers
26053
26054 Configuration commands:
26055 $config_commands
26056
26057 Report bugs to the package provider."
26058
26059 _ACEOF
26060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26061 ac_cs_version="\\
26062 config.status
26063 configured by $0, generated by GNU Autoconf 2.64,
26064   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26065
26066 Copyright (C) 2009 Free Software Foundation, Inc.
26067 This config.status script is free software; the Free Software Foundation
26068 gives unlimited permission to copy, distribute and modify it."
26069
26070 ac_pwd='$ac_pwd'
26071 srcdir='$srcdir'
26072 AWK='$AWK'
26073 test -n "\$AWK" || AWK=awk
26074 _ACEOF
26075
26076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26077 # The default lists apply if the user does not specify any file.
26078 ac_need_defaults=:
26079 while test $# != 0
26080 do
26081   case $1 in
26082   --*=*)
26083     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26084     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26085     ac_shift=:
26086     ;;
26087   *)
26088     ac_option=$1
26089     ac_optarg=$2
26090     ac_shift=shift
26091     ;;
26092   esac
26093
26094   case $ac_option in
26095   # Handling of the options.
26096   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26097     ac_cs_recheck=: ;;
26098   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26099     $as_echo "$ac_cs_version"; exit ;;
26100   --debug | --debu | --deb | --de | --d | -d )
26101     debug=: ;;
26102   --file | --fil | --fi | --f )
26103     $ac_shift
26104     case $ac_optarg in
26105     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26106     esac
26107     as_fn_append CONFIG_FILES " '$ac_optarg'"
26108     ac_need_defaults=false;;
26109   --header | --heade | --head | --hea )
26110     $ac_shift
26111     case $ac_optarg in
26112     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26113     esac
26114     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26115     ac_need_defaults=false;;
26116   --he | --h)
26117     # Conflict between --help and --header
26118     as_fn_error "ambiguous option: \`$1'
26119 Try \`$0 --help' for more information.";;
26120   --help | --hel | -h )
26121     $as_echo "$ac_cs_usage"; exit ;;
26122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26123   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26124     ac_cs_silent=: ;;
26125
26126   # This is an error.
26127   -*) as_fn_error "unrecognized option: \`$1'
26128 Try \`$0 --help' for more information." ;;
26129
26130   *) as_fn_append ac_config_targets " $1"
26131      ac_need_defaults=false ;;
26132
26133   esac
26134   shift
26135 done
26136
26137 ac_configure_extra_args=
26138
26139 if $ac_cs_silent; then
26140   exec 6>/dev/null
26141   ac_configure_extra_args="$ac_configure_extra_args --silent"
26142 fi
26143
26144 _ACEOF
26145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26146 if \$ac_cs_recheck; then
26147   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26148   shift
26149   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26150   CONFIG_SHELL='$SHELL'
26151   export CONFIG_SHELL
26152   exec "\$@"
26153 fi
26154
26155 _ACEOF
26156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26157 exec 5>>config.log
26158 {
26159   echo
26160   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26161 ## Running $as_me. ##
26162 _ASBOX
26163   $as_echo "$ac_log"
26164 } >&5
26165
26166 _ACEOF
26167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26168 #
26169 # INIT-COMMANDS
26170 #
26171 subdirs='$subdirs'
26172
26173 _ACEOF
26174
26175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26176
26177 # Handling of arguments.
26178 for ac_config_target in $ac_config_targets
26179 do
26180   case $ac_config_target in
26181     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26182     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26183     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26184     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26185     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26186     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26187
26188   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26189   esac
26190 done
26191
26192
26193 # If the user did not use the arguments to specify the items to instantiate,
26194 # then the envvar interface is used.  Set only those that are not.
26195 # We use the long form for the default assignment because of an extremely
26196 # bizarre bug on SunOS 4.1.3.
26197 if $ac_need_defaults; then
26198   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26199   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26200   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26201 fi
26202
26203 # Have a temporary directory for convenience.  Make it in the build tree
26204 # simply because there is no reason against having it here, and in addition,
26205 # creating and moving files from /tmp can sometimes cause problems.
26206 # Hook for its removal unless debugging.
26207 # Note that there is a small window in which the directory will not be cleaned:
26208 # after its creation but before its name has been assigned to `$tmp'.
26209 $debug ||
26210 {
26211   tmp=
26212   trap 'exit_status=$?
26213   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26214 ' 0
26215   trap 'as_fn_exit 1' 1 2 13 15
26216 }
26217 # Create a (secure) tmp directory for tmp files.
26218
26219 {
26220   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26221   test -n "$tmp" && test -d "$tmp"
26222 }  ||
26223 {
26224   tmp=./conf$$-$RANDOM
26225   (umask 077 && mkdir "$tmp")
26226 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26227
26228 # Set up the scripts for CONFIG_FILES section.
26229 # No need to generate them if there are no CONFIG_FILES.
26230 # This happens for instance with `./config.status config.h'.
26231 if test -n "$CONFIG_FILES"; then
26232
26233 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26234   ac_cs_awk_getline=:
26235   ac_cs_awk_pipe_init=
26236   ac_cs_awk_read_file='
26237       while ((getline aline < (F[key])) > 0)
26238         print(aline)
26239       close(F[key])'
26240   ac_cs_awk_pipe_fini=
26241 else
26242   ac_cs_awk_getline=false
26243   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26244   ac_cs_awk_read_file='
26245       print "|#_!!_#|"
26246       print "cat " F[key] " &&"
26247       '$ac_cs_awk_pipe_init
26248   # The final `:' finishes the AND list.
26249   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26250 fi
26251 ac_cr=`echo X | tr X '\015'`
26252 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26253 # But we know of no other shell where ac_cr would be empty at this
26254 # point, so we can use a bashism as a fallback.
26255 if test "x$ac_cr" = x; then
26256   eval ac_cr=\$\'\\r\'
26257 fi
26258 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26259 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26260   ac_cs_awk_cr='\r'
26261 else
26262   ac_cs_awk_cr=$ac_cr
26263 fi
26264
26265 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26266 _ACEOF
26267
26268 # Create commands to substitute file output variables.
26269 {
26270   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26271   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26272   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26273   echo "_ACAWK" &&
26274   echo "_ACEOF"
26275 } >conf$$files.sh &&
26276 . ./conf$$files.sh ||
26277   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26278 rm -f conf$$files.sh
26279
26280 {
26281   echo "cat >conf$$subs.awk <<_ACEOF" &&
26282   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26283   echo "_ACEOF"
26284 } >conf$$subs.sh ||
26285   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26287 ac_delim='%!_!# '
26288 for ac_last_try in false false false false false :; do
26289   . ./conf$$subs.sh ||
26290     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26291
26292   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26293   if test $ac_delim_n = $ac_delim_num; then
26294     break
26295   elif $ac_last_try; then
26296     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26297   else
26298     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26299   fi
26300 done
26301 rm -f conf$$subs.sh
26302
26303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26304 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26305 _ACEOF
26306 sed -n '
26307 h
26308 s/^/S["/; s/!.*/"]=/
26309 p
26310 g
26311 s/^[^!]*!//
26312 :repl
26313 t repl
26314 s/'"$ac_delim"'$//
26315 t delim
26316 :nl
26317 h
26318 s/\(.\{148\}\).*/\1/
26319 t more1
26320 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26321 p
26322 n
26323 b repl
26324 :more1
26325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26326 p
26327 g
26328 s/.\{148\}//
26329 t nl
26330 :delim
26331 h
26332 s/\(.\{148\}\).*/\1/
26333 t more2
26334 s/["\\]/\\&/g; s/^/"/; s/$/"/
26335 p
26336 b
26337 :more2
26338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26339 p
26340 g
26341 s/.\{148\}//
26342 t delim
26343 ' <conf$$subs.awk | sed '
26344 /^[^""]/{
26345   N
26346   s/\n//
26347 }
26348 ' >>$CONFIG_STATUS || ac_write_fail=1
26349 rm -f conf$$subs.awk
26350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26351 _ACAWK
26352 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26353   for (key in S) S_is_set[key] = 1
26354   FS = "\a"
26355   \$ac_cs_awk_pipe_init
26356 }
26357 {
26358   line = $ 0
26359   nfields = split(line, field, "@")
26360   substed = 0
26361   len = length(field[1])
26362   for (i = 2; i < nfields; i++) {
26363     key = field[i]
26364     keylen = length(key)
26365     if (S_is_set[key]) {
26366       value = S[key]
26367       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26368       len += length(value) + length(field[++i])
26369       substed = 1
26370     } else
26371       len += 1 + keylen
26372   }
26373   if (nfields == 3 && !substed) {
26374     key = field[2]
26375     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
26376       \$ac_cs_awk_read_file
26377       next
26378     }
26379   }
26380   print line
26381 }
26382 \$ac_cs_awk_pipe_fini
26383 _ACAWK
26384 _ACEOF
26385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26386 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26387   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26388 else
26389   cat
26390 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26391   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26392 _ACEOF
26393
26394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26396 # trailing colons and then remove the whole line if VPATH becomes empty
26397 # (actually we leave an empty line to preserve line numbers).
26398 if test "x$srcdir" = x.; then
26399   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26400 s/:*\$(srcdir):*/:/
26401 s/:*\${srcdir}:*/:/
26402 s/:*@srcdir@:*/:/
26403 s/^\([^=]*=[     ]*\):*/\1/
26404 s/:*$//
26405 s/^[^=]*=[       ]*$//
26406 }'
26407 fi
26408
26409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26410 fi # test -n "$CONFIG_FILES"
26411
26412 # Set up the scripts for CONFIG_HEADERS section.
26413 # No need to generate them if there are no CONFIG_HEADERS.
26414 # This happens for instance with `./config.status Makefile'.
26415 if test -n "$CONFIG_HEADERS"; then
26416 cat >"$tmp/defines.awk" <<\_ACAWK ||
26417 BEGIN {
26418 _ACEOF
26419
26420 # Transform confdefs.h into an awk script `defines.awk', embedded as
26421 # here-document in config.status, that substitutes the proper values into
26422 # config.h.in to produce config.h.
26423
26424 # Create a delimiter string that does not exist in confdefs.h, to ease
26425 # handling of long lines.
26426 ac_delim='%!_!# '
26427 for ac_last_try in false false :; do
26428   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26429   if test -z "$ac_t"; then
26430     break
26431   elif $ac_last_try; then
26432     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26433   else
26434     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26435   fi
26436 done
26437
26438 # For the awk script, D is an array of macro values keyed by name,
26439 # likewise P contains macro parameters if any.  Preserve backslash
26440 # newline sequences.
26441
26442 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26443 sed -n '
26444 s/.\{148\}/&'"$ac_delim"'/g
26445 t rset
26446 :rset
26447 s/^[     ]*#[    ]*define[       ][      ]*/ /
26448 t def
26449 d
26450 :def
26451 s/\\$//
26452 t bsnl
26453 s/["\\]/\\&/g
26454 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26455 D["\1"]=" \3"/p
26456 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26457 d
26458 :bsnl
26459 s/["\\]/\\&/g
26460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26461 D["\1"]=" \3\\\\\\n"\\/p
26462 t cont
26463 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26464 t cont
26465 d
26466 :cont
26467 n
26468 s/.\{148\}/&'"$ac_delim"'/g
26469 t clear
26470 :clear
26471 s/\\$//
26472 t bsnlc
26473 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26474 d
26475 :bsnlc
26476 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26477 b cont
26478 ' <confdefs.h | sed '
26479 s/'"$ac_delim"'/"\\\
26480 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26481
26482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26483   for (key in D) D_is_set[key] = 1
26484   FS = "\a"
26485 }
26486 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26487   line = \$ 0
26488   split(line, arg, " ")
26489   if (arg[1] == "#") {
26490     defundef = arg[2]
26491     mac1 = arg[3]
26492   } else {
26493     defundef = substr(arg[1], 2)
26494     mac1 = arg[2]
26495   }
26496   split(mac1, mac2, "(") #)
26497   macro = mac2[1]
26498   prefix = substr(line, 1, index(line, defundef) - 1)
26499   if (D_is_set[macro]) {
26500     # Preserve the white space surrounding the "#".
26501     print prefix "define", macro P[macro] D[macro]
26502     next
26503   } else {
26504     # Replace #undef with comments.  This is necessary, for example,
26505     # in the case of _POSIX_SOURCE, which is predefined and required
26506     # on some systems where configure will not decide to define it.
26507     if (defundef == "undef") {
26508       print "/*", prefix defundef, macro, "*/"
26509       next
26510     }
26511   }
26512 }
26513 { print }
26514 _ACAWK
26515 _ACEOF
26516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26517   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26518 fi # test -n "$CONFIG_HEADERS"
26519
26520
26521 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26522 shift
26523 for ac_tag
26524 do
26525   case $ac_tag in
26526   :[FHLC]) ac_mode=$ac_tag; continue;;
26527   esac
26528   case $ac_mode$ac_tag in
26529   :[FHL]*:*);;
26530   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26531   :[FH]-) ac_tag=-:-;;
26532   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26533   esac
26534   ac_save_IFS=$IFS
26535   IFS=:
26536   set x $ac_tag
26537   IFS=$ac_save_IFS
26538   shift
26539   ac_file=$1
26540   shift
26541
26542   case $ac_mode in
26543   :L) ac_source=$1;;
26544   :[FH])
26545     ac_file_inputs=
26546     for ac_f
26547     do
26548       case $ac_f in
26549       -) ac_f="$tmp/stdin";;
26550       *) # Look for the file first in the build tree, then in the source tree
26551          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26552          # because $ac_f cannot contain `:'.
26553          test -f "$ac_f" ||
26554            case $ac_f in
26555            [\\/$]*) false;;
26556            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26557            esac ||
26558            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26559       esac
26560       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26561       as_fn_append ac_file_inputs " '$ac_f'"
26562     done
26563
26564     # Let's still pretend it is `configure' which instantiates (i.e., don't
26565     # use $as_me), people would be surprised to read:
26566     #    /* config.h.  Generated by config.status.  */
26567     configure_input='Generated from '`
26568           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26569         `' by configure.'
26570     if test x"$ac_file" != x-; then
26571       configure_input="$ac_file.  $configure_input"
26572       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26573 $as_echo "$as_me: creating $ac_file" >&6;}
26574     fi
26575     # Neutralize special characters interpreted by sed in replacement strings.
26576     case $configure_input in #(
26577     *\&* | *\|* | *\\* )
26578        ac_sed_conf_input=`$as_echo "$configure_input" |
26579        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26580     *) ac_sed_conf_input=$configure_input;;
26581     esac
26582
26583     case $ac_tag in
26584     *:-:* | *:-) cat >"$tmp/stdin" \
26585       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26586     esac
26587     ;;
26588   esac
26589
26590   ac_dir=`$as_dirname -- "$ac_file" ||
26591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26592          X"$ac_file" : 'X\(//\)[^/]' \| \
26593          X"$ac_file" : 'X\(//\)$' \| \
26594          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26595 $as_echo X"$ac_file" |
26596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26597             s//\1/
26598             q
26599           }
26600           /^X\(\/\/\)[^/].*/{
26601             s//\1/
26602             q
26603           }
26604           /^X\(\/\/\)$/{
26605             s//\1/
26606             q
26607           }
26608           /^X\(\/\).*/{
26609             s//\1/
26610             q
26611           }
26612           s/.*/./; q'`
26613   as_dir="$ac_dir"; as_fn_mkdir_p
26614   ac_builddir=.
26615
26616 case "$ac_dir" in
26617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26618 *)
26619   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26620   # A ".." for each directory in $ac_dir_suffix.
26621   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26622   case $ac_top_builddir_sub in
26623   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26624   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26625   esac ;;
26626 esac
26627 ac_abs_top_builddir=$ac_pwd
26628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26629 # for backward compatibility:
26630 ac_top_builddir=$ac_top_build_prefix
26631
26632 case $srcdir in
26633   .)  # We are building in place.
26634     ac_srcdir=.
26635     ac_top_srcdir=$ac_top_builddir_sub
26636     ac_abs_top_srcdir=$ac_pwd ;;
26637   [\\/]* | ?:[\\/]* )  # Absolute name.
26638     ac_srcdir=$srcdir$ac_dir_suffix;
26639     ac_top_srcdir=$srcdir
26640     ac_abs_top_srcdir=$srcdir ;;
26641   *) # Relative name.
26642     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26643     ac_top_srcdir=$ac_top_build_prefix$srcdir
26644     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26645 esac
26646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26647
26648
26649   case $ac_mode in
26650   :F)
26651   #
26652   # CONFIG_FILE
26653   #
26654
26655 _ACEOF
26656
26657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26658 # If the template does not know about datarootdir, expand it.
26659 # FIXME: This hack should be removed a few years after 2.60.
26660 ac_datarootdir_hack=; ac_datarootdir_seen=
26661 ac_sed_dataroot='
26662 /datarootdir/ {
26663   p
26664   q
26665 }
26666 /@datadir@/p
26667 /@docdir@/p
26668 /@infodir@/p
26669 /@localedir@/p
26670 /@mandir@/p'
26671 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26672 *datarootdir*) ac_datarootdir_seen=yes;;
26673 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26674   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26675 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26676 _ACEOF
26677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26678   ac_datarootdir_hack='
26679   s&@datadir@&$datadir&g
26680   s&@docdir@&$docdir&g
26681   s&@infodir@&$infodir&g
26682   s&@localedir@&$localedir&g
26683   s&@mandir@&$mandir&g
26684   s&\\\${datarootdir}&$datarootdir&g' ;;
26685 esac
26686 _ACEOF
26687
26688 # Neutralize VPATH when `$srcdir' = `.'.
26689 # Shell code in configure.ac might set extrasub.
26690 # FIXME: do we really want to maintain this feature?
26691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26692 ac_sed_extra="$ac_vpsub
26693 $extrasub
26694 _ACEOF
26695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26696 :t
26697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26698 s|@configure_input@|$ac_sed_conf_input|;t t
26699 s&@top_builddir@&$ac_top_builddir_sub&;t t
26700 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26701 s&@srcdir@&$ac_srcdir&;t t
26702 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26703 s&@top_srcdir@&$ac_top_srcdir&;t t
26704 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26705 s&@builddir@&$ac_builddir&;t t
26706 s&@abs_builddir@&$ac_abs_builddir&;t t
26707 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26708 $ac_datarootdir_hack
26709 "
26710 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26711 if $ac_cs_awk_getline; then
26712   $AWK -f "$tmp/subs.awk"
26713 else
26714   $AWK -f "$tmp/subs.awk" | $SHELL
26715 fi >$tmp/out \
26716   || as_fn_error "could not create $ac_file" "$LINENO" 5
26717
26718 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26719   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26720   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26721   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26722 which seems to be undefined.  Please make sure it is defined." >&5
26723 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26724 which seems to be undefined.  Please make sure it is defined." >&2;}
26725
26726   rm -f "$tmp/stdin"
26727   case $ac_file in
26728   -) cat "$tmp/out" && rm -f "$tmp/out";;
26729   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26730   esac \
26731   || as_fn_error "could not create $ac_file" "$LINENO" 5
26732  ;;
26733   :H)
26734   #
26735   # CONFIG_HEADER
26736   #
26737   if test x"$ac_file" != x-; then
26738     {
26739       $as_echo "/* $configure_input  */" \
26740       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26741     } >"$tmp/config.h" \
26742       || as_fn_error "could not create $ac_file" "$LINENO" 5
26743     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26744       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26745 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26746     else
26747       rm -f "$ac_file"
26748       mv "$tmp/config.h" "$ac_file" \
26749         || as_fn_error "could not create $ac_file" "$LINENO" 5
26750     fi
26751   else
26752     $as_echo "/* $configure_input  */" \
26753       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26754       || as_fn_error "could not create -" "$LINENO" 5
26755   fi
26756  ;;
26757
26758   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26759 $as_echo "$as_me: executing $ac_file commands" >&6;}
26760  ;;
26761   esac
26762
26763
26764   case $ac_file$ac_mode in
26765     "as":F) chmod +x as ;;
26766     "collect-ld":F) chmod +x collect-ld ;;
26767     "nm":F) chmod +x nm ;;
26768     "default":C)
26769 case ${CONFIG_HEADERS} in
26770   *auto-host.h:config.in*)
26771   echo > cstamp-h ;;
26772 esac
26773 # Make sure all the subdirs exist.
26774 for d in $subdirs doc build
26775 do
26776     test -d $d || mkdir $d
26777 done
26778  ;;
26779
26780   esac
26781 done # for ac_tag
26782
26783
26784 as_fn_exit 0
26785 _ACEOF
26786 ac_clean_files=$ac_clean_files_save
26787
26788 test $ac_write_fail = 0 ||
26789   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26790
26791
26792 # configure is writing to config.log, and then calls config.status.
26793 # config.status does its own redirection, appending to config.log.
26794 # Unfortunately, on DOS this fails, as config.log is still kept open
26795 # by configure, so config.status won't be able to write to it; its
26796 # output is simply discarded.  So we exec the FD to /dev/null,
26797 # effectively closing config.log, so it can be properly (re)opened and
26798 # appended to by config.status.  When coming back to configure, we
26799 # need to make the FD available again.
26800 if test "$no_create" != yes; then
26801   ac_cs_success=:
26802   ac_config_status_args=
26803   test "$silent" = yes &&
26804     ac_config_status_args="$ac_config_status_args --quiet"
26805   exec 5>/dev/null
26806   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26807   exec 5>>config.log
26808   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26809   # would make configure fail if this is the last instruction.
26810   $ac_cs_success || as_fn_exit $?
26811 fi
26812 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26813   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26814 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26815 fi
26816